Recovering Database (line mode)
- You have connected to both RMAN and the target database by using
RMAN
as the User Name, RMAN
as the Password, and BACKUP
as the Host String.
At the RMAN prompt, you have started the script and allocated the channel (C1) to back up the database.
Now restore the database by typing RESTORE DATABASE
and pressing Enter.
- We have released the channel and closed the statement for you by adding the end bracket. Now execute the statement by pressing Enter.
- We have released the channel and closed the statement for you by adding the end bracket. Now execute the statement by pressing Enter.
- RMAN now displays the result of executing the statement. Now that the database is recovered, open it by typing
ALTER DATABASE OPEN
; and pressing Enter.
- Now you can see that the database has been opened. This is the end of the simulation. Click Exit.
Recovery Manager in Command-line Mode
Recovery Manager in command-line mode is an Oracle9i tool that manages backing up, restoring, and recovering files. Recovery Manager is automatically installed with Oracle Utilities. Recovery Manager uses a special PL/SQL interface to the server for invoking backup functions.
This interface operates invisibly; you will interface only with a command line.
When RMAN needs to resynchronize from a read-consistent version of the control file, it creates a temporary snapshot control file. The default location of this file on Windows is ORACLE_BASE\ORACLE_HOME\database\sncfSID.ora.
You must clearly understand the command-line syntax described in Oracle9i
Recovery Manager Reference before using this tool. Backing up to tape requires an
optional MML from a third-party vendor.