24.12.2012 Views

Backing Up Oracle - Computing at Cornell

Backing Up Oracle - Computing at Cornell

Backing Up Oracle - Computing at Cornell

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

E.3.3.1 Backup<br />

We performed both backups of the d<strong>at</strong>abase using normal online RMAN<br />

backups and TDP for ESS backup using the same RMAN backup script. Both<br />

type of backups used the same RMAN c<strong>at</strong>alog d<strong>at</strong>abase. From the point of<br />

view of RMAN, using TDP for ESS or just TDP for <strong>Oracle</strong> for our backups is<br />

imm<strong>at</strong>erial. As far as RMAN is concerned, the backups were performed using<br />

‘sbt_tape’ (a media manager), and they are tre<strong>at</strong>ed the same way.<br />

When using only RMAN to do backup, we use the command as follows using<br />

user oracle8 to perform the backup:<br />

rman target / c<strong>at</strong>alog rman2/rman@rman cmdfile<br />

‘/orc8/app/oracle/product/815/admin/tokyo/adhoc/backup’<br />

When using TDP for ESS backups, we use the procedure as discussed above<br />

in E.3.2, “<strong>Backing</strong> up the d<strong>at</strong>abase using TDP for ESS” on page 237. We ran<br />

them from user root.<br />

We also backed up the archive logs without using TDP for ESS. We used user<br />

oracle8 to do the backup. The RMAN backup command looks like this:<br />

rman target / c<strong>at</strong>alog rman2/rman@rman cmdfile<br />

‘/orc8/app/oracle/product/815/admin/tokyo/adhoc/backuplog’<br />

The backuplog file th<strong>at</strong> does the archive logs backup looks like this:<br />

sql 'alter system archive log current';<br />

run {<br />

alloc<strong>at</strong>e channel t1 type 'sbt_tape' parms<br />

'ENV=(DSMO_NODE=auckland,DSMI_ORC_CONFIG=/usr/tivoli/tsm/client/api/bin/dsm.opt,<br />

DSMI_LOG=/orc8/app/oracle/product/815/admin/tokyo/adhoc,DSMO_OWNER=oracle8)';<br />

backup (archivelog like '/orc8/app/oracle/product/815/admin/tokyo/arch/%'<br />

channel t1 delete input);<br />

release channel t1;<br />

}<br />

We also tested the TDP for ESS backup essorcp on the production machine<br />

while upd<strong>at</strong>es were ongoing on a USERS tablespace. The FlashCopy phase<br />

was quick. It did slow down the upd<strong>at</strong>es for a few seconds during the flash<br />

copy phase, but overall, the impact on the d<strong>at</strong>abase was very small.<br />

240 <strong>Backing</strong> <strong>Up</strong> <strong>Oracle</strong> using Tivoli Storage Management

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!