What Are the Recovery Options?

There are many different ways in which a database can be recovered:

  • As a snapshot in time (from export or file-level backups without archive logging enabled)

  • To a point in time (from file-level backups plus archive logs)

  • Until cancel (from file-level backups plus archive logs)

For an entire tablespace, you can restore one or more datafiles from file-level backups. From an export, you can restore an entire schema, a table, or a set of tables. Using the import option “INDEXFILE=<file_name>”, you can obtain a script to build an index or set of indexes from an export file.

There are two types of database recovery:

  • Online — with the database open

  • Offline — with the database closed

Online Recovery

For an online recovery from within the database, use the commands RECOVER TABLESPACE... and/or RECOVER DATAFILE... in tablespace recovery. From outside of the database, use the import utility to recover tables, schemas, or the entire database from an export file.

Offline Recovery

From an offline recovery from SQLDBA or the Server Manager line mode option (svrmgrl ) with the database mounted but not opened, you can recover the system tablespace as well as an entire database. Using this method, if a tablespace has been corrupted and the DBA is absolutely sure that the tablespace can be rebuilt, the datafiles associated with that tablespace can be altered with the OFFLINE DROP option and the database opened. In such a case, the tablespace will be “untouchable” and must be dropped immediately. Use great caution when applying this technique, and contact Oracle World-Wide Support before proceeding with this plan since there are possible repercussions that could result in still more severe database corruption.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.76.0