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 following is an explan<strong>at</strong>ion of various st<strong>at</strong>ements in our coding example:<br />

set maxcorrupt for d<strong>at</strong>afile 1 to 0 causes <strong>Oracle</strong> to abort the backup<br />

process if RMAN detects corrupt blocks in the SYSTEM tablespace.<br />

In our d<strong>at</strong>abase, we used AUTOEXTEND=ON for all d<strong>at</strong>afiles. D<strong>at</strong>afile 1 is<br />

always used for the SYSTEM tablespace.<br />

backup full causes a whole d<strong>at</strong>abase backup.<br />

filesperset 3 forces RMAN to include maximal 3 files in a backup set.<br />

A possible restore from a single d<strong>at</strong>afile will be processed faster.<br />

form<strong>at</strong> ‘%d%t%s%p’ cre<strong>at</strong>es a TSM low level name including d<strong>at</strong>abase<br />

name/timestamp/backup set number/backup piece number<br />

tag ‘paris offline 20010316.1111’ is a user defined symbolic name which<br />

is assigned to backup sets. It makes it easier to address these backups in<br />

RMAN restore or change commands.<br />

alter d<strong>at</strong>abase open finally makes the d<strong>at</strong>abase accessible to users.<br />

6.4.2 Archived redo log backup<br />

The next examples show how to back up archived redo logs.<br />

In both examples, the current log is archived before the backup archivelog is<br />

started.<br />

The first example uses only one log archive destin<strong>at</strong>ion as input for the RMAN<br />

backup and two different channels to speed up the process.<br />

With the filesperset 20 RMAN cre<strong>at</strong>es up to 20 backup pieces in one backup<br />

set.<br />

The delete input option tells RMAN to deletes the archive logs on disk after a<br />

successful backup:<br />

Chapter 6. <strong>Oracle</strong> backup consider<strong>at</strong>ions on UNIX 83

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

Saved successfully!

Ooh no, something went wrong!