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.

6.4 Backup examples<br />

This section describes some typical backup examples using RMAN, complete<br />

with sample scripts. The examples are based on the following d<strong>at</strong>abase<br />

instances:<br />

Target d<strong>at</strong>abase: paris<br />

Recovery c<strong>at</strong>alog d<strong>at</strong>abase: rio<br />

For the examples, we used RMAN command files and redirected the output to<br />

logfiles. RMAN command files are regular text files containing commands<br />

executed by RMAN.<br />

The examples illustr<strong>at</strong>e how to perform the following functions:<br />

Consistent whole d<strong>at</strong>abase backup<br />

Archive redo log backup<br />

Incremental level 0 backup<br />

6.4.1 Consistent whole d<strong>at</strong>abase backup<br />

In the following examples, we are using RMAN to shut down and restart the<br />

d<strong>at</strong>abase, to guarantee th<strong>at</strong> all read-write d<strong>at</strong>afiles and control files have<br />

been check-pointed with respect to the same system change number (SCN).<br />

These examples are suitable for d<strong>at</strong>abases oper<strong>at</strong>ing in ARCHIVELOG and<br />

NOARCHIVELOG mode, and in our opinion, they represent the most<br />

common backup oper<strong>at</strong>ion:<br />

rman target internal/manager@PARIS rcvc<strong>at</strong> rman/rman@RIO<br />

cmdfile=backup_offline_paris log=backup_offline_paris.log<br />

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

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

Saved successfully!

Ooh no, something went wrong!