Name

RECOVER

Synopsis

RECOVER [DATABASE [[UNTIL
   {CANCEL
   | CHANGE system_change_number
   | TIME date_time}
   [USING BACKUP CONTROLFILE]
   [PARALLEL([DEGREE {num_of_procs | DEFAULT}
   | INSTANCES {num_of_inst | DEFAULT}]...)
   | NOPARALLEL] |

RECOVER TABLESPACE tablespace_name
   [,tablespace_name...]
   [PARALLEL([DEGREE {num_of_procs | DEFAULT}
   | INSTANCES {num_of_inst | DEFAULT}]...)
   | NOPARALLEL] |

RECOVER DATAFILE
   datafile_name [,datafile_name...]
   [PARALLEL([DEGREE {num_of_procs | DEFAULT}
   | INSTANCES {num_of_inst | DEFAULT}]...)
   | NOPARALLEL]

The RECOVER command initiates media recovery on a database, tablespace, or datafile. You must be connected as SYSDBA, SYSOPER, or INTERNAL in order to use RECOVER. Here are some examples:

RECOVER TABLESPACE USERS
RECOVER DATABASE UNTIL -
   TIME 20-JAN-2000:16:57:00

Parameters

RECOVER DATABASE

Initiates media recovery on the entire database. The database must be mounted but not open.

RECOVER TABLESPACE tablespace_name

Initiates media recovery on the specified tablespace or list of tablespaces (up to a maximum of 16). The tablespace(s) must be offline, and the database must be mounted and open.

RECOVER DATAFILE datafile_name

Initiates media recovery on the specified datafile or list of datafiles. The datafiles to be recovered must be offline. As long as none of the datafiles are part of the SYSTEM tablespace, the database may remain open.

UNTIL CANCEL

Allows you to recover one log file at a time, with the opportunity to cancel after each log file has been processed.

UNTIL ...

Get Oracle SQL*Plus Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.