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.

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

The earlier chapters in this Windows 2000 section have covered the various<br />

procedures and methods for backing up <strong>Oracle</strong> d<strong>at</strong>abases. Now we shall<br />

address the important topic of recovery of these d<strong>at</strong>abases.<br />

12.1 Restore oper<strong>at</strong>ions<br />

Recovering a d<strong>at</strong>abase, tablespace, or d<strong>at</strong>a file is a two-stage process. The<br />

object is first restored and then it is recovered.<br />

The restore process restores the necessary full or incremental level 0<br />

backups. Incremental backups <strong>at</strong> levels gre<strong>at</strong>er than 0 are not restored.<br />

These are restored during the subsequent recovery process.<br />

By default, the objects are restored to their original loc<strong>at</strong>ion as specified in<br />

the recovery c<strong>at</strong>alog. An altern<strong>at</strong>ive loc<strong>at</strong>ion can also be specified if required.<br />

RMAN uses the recovery c<strong>at</strong>alog to select the most current backup sets for<br />

use in the restore. The mode in which the d<strong>at</strong>abase is running determines<br />

whether a consistent or inconsistent restore oper<strong>at</strong>ion can be performed.<br />

12.1.1 Consistent d<strong>at</strong>abase recovery<br />

If the d<strong>at</strong>abase is running in NOARCHIVELOG mode, it can be restored only<br />

from a whole d<strong>at</strong>abase backup. The control files and all d<strong>at</strong>a files are restored<br />

from a consistent backup. The d<strong>at</strong>abase must be mounted but not open<br />

during the restore oper<strong>at</strong>ion.<br />

After a consistent restore, the d<strong>at</strong>abase can be opened without performing<br />

any recovery. Any upd<strong>at</strong>es to the d<strong>at</strong>abase after the backup are lost.<br />

12.1.2 Inconsistent d<strong>at</strong>abase recovery<br />

If the d<strong>at</strong>abase is running in ARCHIVELOG mode, a subset of the d<strong>at</strong>abase<br />

such as a d<strong>at</strong>a file, tablespace, or the entire d<strong>at</strong>abase can be restored to the<br />

most current st<strong>at</strong>e or to a specific point in time. This type of restore is<br />

inconsistent because the d<strong>at</strong>abase cannot be started after the restore. The<br />

restore oper<strong>at</strong>ion must be followed by a recovery oper<strong>at</strong>ion. After the<br />

recovery is finished, the d<strong>at</strong>abase can then be opened. The following objects<br />

can be restored:<br />

D<strong>at</strong>abase<br />

Tablespace<br />

D<strong>at</strong>a file<br />

© Copyright IBM Corp. 2001 189

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

Saved successfully!

Ooh no, something went wrong!