Oracle® Database Backup and Recovery Reference 11g Release 2 (11.2) Part Number E10643-01 |
|
|
View PDF |
Purpose
Use the SHUTDOWN
command to shut down the target database without exiting RMAN. This command is equivalent to the SQL*Plus SHUTDOWN
statement.
See Also:
Oracle Database Administrator's Guide for information on how to start up and shut down a database, and SQL*Plus User's Guide and Reference forSHUTDOWN
syntaxUsage Notes
You cannot use the RMAN SHUTDOWN
command to shut down the recovery catalog database. To shut down this database, start a SQL*Plus session and issue a SHUTDOWN
statement.
If the database operates in NOARCHIVELOG
mode, then you must shut down the database cleanly and then issue a STARTUP
MOUNT
before a making a backup.
Syntax
shutdown::=
Semantics
Example 3-48 Shutting Down a Database with the Immediate Option
This example waits for current SQL transactions to be processed before shutting down, then mounts the database:
SHUTDOWN IMMEDIATE; STARTUP MOUNT;
Example 3-49 Shutting Down a Database in NOARCHIVELOG Mode
This example backs up a database running in NOARCHIVELOG
mode:
STARTUP FORCE DBA; SHUTDOWN IMMEDIATE; STARTUP MOUNT; # executing the preceding commands ensures that database is in proper state # for NOARCHIVELOG backups BACKUP DATABASE; ALTER DATABASE OPEN;