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.

8.3.2 Complete recovery<br />

Next, we cre<strong>at</strong>ed the following RMAN command file and executed it:<br />

Unfortun<strong>at</strong>ely, RMAN was not able to take to d<strong>at</strong>afile online after the<br />

successful restore and recover. We had to execute exactly the same<br />

command in a SQL*Plus session, and it worked fine:<br />

Finally, user user1 was able to select all rows from its table.<br />

Our d<strong>at</strong>abase oslo on an AIX system failed, because of a handling error with<br />

SAN zoning and the AIX lost access to th<strong>at</strong> disk device. We had a file system<br />

/u02/orad<strong>at</strong>a on th<strong>at</strong> drive and some d<strong>at</strong>afiles, an archivelog destin<strong>at</strong>ion and a<br />

control file in this file system. The d<strong>at</strong>abase was running in ARCHIVELOG mode<br />

and an incomplete backup, started by cron, which was running just before<br />

th<strong>at</strong> happened. We had to recover the d<strong>at</strong>abase to a most current st<strong>at</strong>e. To<br />

achieve th<strong>at</strong>, we performed following steps:<br />

We edited the initoslo.ora file in the $ORACLE_HOME/dbs directory:<br />

- We changed the log_archive_dest_2 to /u03/orad<strong>at</strong>a/oslo/arch instead<br />

of /u02/orad<strong>at</strong>a/oslo/arch.<br />

- We changed the control_files parameter. Originally, we had control<br />

files in /u01/orad<strong>at</strong>a/oslo, /u02/orad<strong>at</strong>a/oslo and /u03/orad<strong>at</strong>a/oslo - we<br />

simply removed the string containing the /u02/orad<strong>at</strong>a/oslo.<br />

We cre<strong>at</strong>ed a new directory for the second log archive destin<strong>at</strong>ion by the<br />

command mkdir -p /u03/orad<strong>at</strong>a/oslo/arch.<br />

110 <strong>Backing</strong> <strong>Up</strong> <strong>Oracle</strong> using Tivoli Storage Management

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

Saved successfully!

Ooh no, something went wrong!