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.

\<br />

Next we started RMAN, connected to the recovery c<strong>at</strong>alog, and started the<br />

d<strong>at</strong>abase in mount mode:<br />

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

Recovery Manager: Release 8.1.7.0.0 - Production<br />

RMAN-06193: connected to target d<strong>at</strong>abase (not started)<br />

RMAN-06008: connected to recovery c<strong>at</strong>alog d<strong>at</strong>abase<br />

RMAN> startup mount;<br />

RMAN-06196: <strong>Oracle</strong> instance started<br />

RMAN-06199: d<strong>at</strong>abase mounted<br />

Once the d<strong>at</strong>abase is started in mount mode, we are ready to run the<br />

RMAN script to recover the d<strong>at</strong>abase:<br />

RMAN> run {<br />

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

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

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

5> alter d<strong>at</strong>abase open;<br />

6> release channel t1;<br />

7> }<br />

When the RMAN script completed, the d<strong>at</strong>abase was restored, archived logs<br />

were applied, and the d<strong>at</strong>abase was completely recovered.<br />

12.3.3 Incomplete / partial disaster recovery<br />

For this partial disaster recovery example, we did the following.<br />

Made sure we had a prior full RMAN d<strong>at</strong>abase backup<br />

Archived the redo logs<br />

Cre<strong>at</strong>ed a new table lost<br />

Inserted some rows into this table<br />

Shut down the d<strong>at</strong>abase beach<br />

Deleted the d<strong>at</strong>afiles, controlfiles, redologs<br />

Chapter 12. Recovering <strong>Oracle</strong> d<strong>at</strong>abases on Windows 2000 193

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

Saved successfully!

Ooh no, something went wrong!