After you have completed a successful restore of a database, you must use the Oracle Server Manager Console to recover the database of the earlier versions.
To recover a database with current control files
Now at the SQL*Plus prompt enter
CONNECT SYS/SYS_PASSWORD AS SYSDBA; STARTUP MOUNT
Note: You may use a different Oracle SYSDBA instead of SYSTEM if the SYSDBA has the proper backup and restore privileges.
RECOVER DATABASE
For example, if Oracle needs the name of the archive redo log file with a sequence number of 49, the following message displays:
ORA-00279: Change 10727 generated at 09/15/95 16:33:17 needed for thread 1 ORA-00289: Suggestion : D:\ORANT|saparch\ARC00049.001 ORA-00200: Change 10727 for thread 1 is in sequence #49 Specify log<<RET>=suggested : filename : AUTO : FROM logsource : CANCEL
Applying suggested logfile... Log applied.
After each log is applied, Oracle continues to apply the next redo log file until the recovery is complete.
Note: If Oracle returns an error indicating that the log file cannot be opened, the log file may not be available. At the prompt, enter CANCEL. This command stops the complete media recovery.
For more information about recovery and archive redo log files, see the Oracle documentation.
ALTER DATABASE OPEN;
The database is now recovered to the last log file available.
Note: For the most reliable database objects recovery, you should back up archived log files using the ~ARCHIVELOG object. For more information on database recovery, see Oracle documentation.
Copyright © 2015 Arcserve.
All rights reserved.
|
|