Oracle8i Backup and Recovery Guide Release 8.1.5 A67773-01 |
|
To mount or open a database.
alter database |
allows you to either mount or open the database. |
|
|
mount |
mounts the database without opening it. |
|
open |
opens the database. |
mount database |
mounts the database without opening it. This option is equivalent to the SQL statement ALTER DATABASE MOUNT. See Also: For ALTER DATABASE syntax, see the Oracle8i SQL Reference. |
|
open database |
mounts and opens database. This option is equivalent to the SQL statement ALTER DATABASE OPEN. See Also: For ALTER DATABASE syntax, see the Oracle8i SQL Reference. |
This example mounts the database, takes a whole database backup, then opens the database. At the RMAN prompt enter:
startup mount; run { allocate channel ch1 type disk; backup database; # now that the backup is complete, open the database. alter database open; }
To restore the control file to its default location enter the following:
startup nomount; run { allocate channel ch1 type 'sbt_tape'; restore controlfile; } # mount the database with the restored control file. alter database mount;