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.

Inform<strong>at</strong>ion from th<strong>at</strong> command was used in the set until portion of the<br />

RMAN restore script:<br />

RMAN> run {<br />

2> set until logseq = 69 thread = 1;<br />

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

4> restore controlfile;<br />

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

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

7> recover d<strong>at</strong>abase delete archivelog;<br />

8> alter d<strong>at</strong>abase open resetlogs;<br />

9> release channel t1;<br />

10> }<br />

In this example:<br />

- set until logseq = 69 thread = 1; specifies a logseq of 69 and a thread of 1<br />

for the subsequent restore and recovery commands. This inform<strong>at</strong>ion<br />

was collected from the list backup of archivelog all; command.<br />

- restore controlfile causes RMAN to restore the controlfiles to all<br />

control file destin<strong>at</strong>ions. The control files are not restored by the<br />

restore d<strong>at</strong>abase command.<br />

- restore d<strong>at</strong>abase restores all d<strong>at</strong>afiles belonging to the d<strong>at</strong>abase.<br />

Existing d<strong>at</strong>afiles are overwritten.<br />

- recover d<strong>at</strong>abase delete archivelog deletes restored archived logs th<strong>at</strong><br />

are no longer needed.<br />

- alter d<strong>at</strong>abase open resetlogs is the only way to open the d<strong>at</strong>abase<br />

again, because the d<strong>at</strong>a in the redo logs cannot be used any longer.<br />

After a successful d<strong>at</strong>abase point-in-time recovery, a consistent backup of<br />

the d<strong>at</strong>abase is required.<br />

12.3.4 Duplic<strong>at</strong>e d<strong>at</strong>abase<br />

For an example of duplic<strong>at</strong>ing a d<strong>at</strong>abase, see Section 8.3.4, “Duplic<strong>at</strong>e<br />

d<strong>at</strong>abase” on page 114.<br />

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

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

Saved successfully!

Ooh no, something went wrong!