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.

We started the d<strong>at</strong>abase in nomount mode with a startup nomount<br />

We invoked RMAN and performed a report schema to list the file id’s, the<br />

size and the corresponding file names<br />

We increased the space of file system /u03/orad<strong>at</strong>a - the df -k<br />

/u03/orad<strong>at</strong>a lists the amount of free KB in the file system, the output from<br />

the RMAN report schema lists the KB alloc<strong>at</strong>ed for a single d<strong>at</strong>afile.<br />

We cre<strong>at</strong>ed a RMAN command file including the options set newname for<br />

the d<strong>at</strong>afiles originally loc<strong>at</strong>ed on /u02/orad<strong>at</strong>a/oslo.<br />

In this example:<br />

- shutdown abort and startup nomont are included in the script because<br />

we had to run it several times. This way, it is guaranteed th<strong>at</strong> the st<strong>at</strong>us<br />

of the instance (STARTED) is correct.<br />

- set newname is used for the restore and for the switch command.<br />

- restore restores all d<strong>at</strong>afiles; file 4, 5, and 7 are renamed during the<br />

restore.<br />

- alter d<strong>at</strong>abase mount is required because of the following recover<br />

command.<br />

- switch d<strong>at</strong>afile all renames d<strong>at</strong>afiles 4, 5, and 7 in the control files —<br />

it is working like an alter d<strong>at</strong>abase oslo rename file ‘xxx’ to ‘yyy’.<br />

- recover d<strong>at</strong>abase applies redo log records.<br />

- alter d<strong>at</strong>abase open finally makes the d<strong>at</strong>abase available.<br />

Chapter 8. Recovering <strong>Oracle</strong> D<strong>at</strong>abases on UNIX 111

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

Saved successfully!

Ooh no, something went wrong!