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.

The first st<strong>at</strong>ement alter system archive log current forces <strong>Oracle</strong> to perform<br />

a log switch and to include the present log in the backup set.<br />

If the d<strong>at</strong>abase is running in ARCHIVELOG MODE and it is not possible to<br />

perform consistent backups, then the backup of the archived redo logs should<br />

be processed immedi<strong>at</strong>ely after the d<strong>at</strong>abase backup. But there are other<br />

reasons too to perform the backup of the archived redo logs frequently:<br />

If the file system containing the LOG_ARCHIVE_DESTn has no space left,<br />

<strong>Oracle</strong> is no more able to archive the logs - and waits until the archiver<br />

process is able to archive again<br />

When a disk fails, it is still possible to recover without (or only a minimum)<br />

of d<strong>at</strong>a loss; even when the d<strong>at</strong>abase backup is already some hours or<br />

days old<br />

10.3.3 Incremental level 0 backup<br />

This example shows how to perform an incremental backup of the d<strong>at</strong>abase<br />

with RMAN. The level 0 backup is the base for further incremental backups<br />

with a higher level:<br />

run {<br />

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

'ENV=(DSMO_AVG_SIZE=265)';<br />

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

'ENV=(DSMO_AVG_SIZE=265)';<br />

backup<br />

incremental level 0<br />

setsize = 265000<br />

form<strong>at</strong> '%d/%t/%s/%p'<br />

tag 'beach inc lvl0 weekly'<br />

d<strong>at</strong>abase ;<br />

release channel t1 ;<br />

release channel t2 ;<br />

}<br />

In this example, setsize = 265000 specifies the maximum size of a backup<br />

set. It must be gre<strong>at</strong>er or equal to the largest d<strong>at</strong>afile in the backup. Th<strong>at</strong> is<br />

another option to control the composition of the d<strong>at</strong>afiles in a backup set<br />

166 <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!