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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.3 Backup examples<br />

Image copies are not discussed further in this chapter, because RMAN does<br />

not send image copies to TSM — they are always stored locally on disk.<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 />

Whole consistent d<strong>at</strong>abase backup<br />

Archive redo log backup<br />

incremental level 0 backup<br />

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

In our example, we are using RMAN to shut down and restart the d<strong>at</strong>abase to<br />

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

pointed with respect to the same SCN.<br />

This example is suitable for d<strong>at</strong>abases oper<strong>at</strong>ing in ARCHIVELOG and<br />

NOARCHIVELOG mode and is in our opinion the most common backup<br />

oper<strong>at</strong>ion.<br />

On our environment we cre<strong>at</strong>ed a folder called scripts in the c:\oracle\admin<br />

directory. In this folder we store our RMAN scripts. Before running the RMAN<br />

scripts we first change to this directory and also set ORACLE_SID=BEACH.<br />

C:\oracle\admin\scripts>rman target internal/manager@beach rcvc<strong>at</strong> rman/rman@rio<br />

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

Figure 50. Whole consistent backup, RMAN command<br />

Chapter 10. <strong>Oracle</strong> backup consider<strong>at</strong>ions on Windows 2000 163

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

Saved successfully!

Ooh no, something went wrong!