Oracle8i Backup and Recovery Guide
Release 8.1.5

A67773-01

Library

Product

Contents

Index

Prev Prev Next


shutdown

Syntax


Purpose

To shut down the target database without exiting RMAN. This command is equivalent to using the SQL*Plus SHUTDOWN statement.

See Also: For information on how to start up and shut down a database, see the Oracle8i Administrator's Guide. For SHUTDOWN syntax, see the SQL*Plus User's Guide and Reference.

Requirements

Keywords and Parameters

normal  

shuts down the database with normal priority (default option), which means:

  • No new connections are allowed after the statement is issued.

  • Before the database is shut down, Oracle waits for all currently connected users to disconnect from the database.

  • The next startup of the database will not require instance recovery.

 

abort  

aborts the target instance, with the following consequences:

  • All current client SQL statements are immediately terminated.

  • Uncommitted transactions are not rolled back until next startup.

  • Oracle disconnects all connected users.

  • Oracle will perform crash recovery on the database at next startup.

 

immediate  

shuts down the target database immediately, with the following consequences:

  • Current client SQL statements being processed by Oracle are allowed to complete.

  • Uncommitted transactions are rolled back.

  • All connected users are disconnected.

 

transactional  

shuts down the target database while minimizing interruption to clients, with the following consequences:

  • Clients currently conducting transactions are allowed to complete, i.e., either commit or abort before shutdown.

  • No client can start a new transaction on this instance; any client attempting to start a new transaction is disconnected.

  • After all transactions have either committed or aborted, any client still connected is disconnected.

 

Examples

Shutting Down a Database in Immediate Mode

This example waits for current SQL transactions to be processed before shutting down, then mounts the database:

shutdown immediate;
startup mount;
Shutting Down a Database in NOARCHIVELOG Mode

This example backs up a database running in NOARCHIVELOG mode:

shutdown abort;
startup dba;
shutdown;
startup mount;
# executing the above commands ensures that database is in proper state for noarchivelog 
# backup
run {
     set duplex = 4;
     allocate channel dev1 type 'sbt_tape';
     backup database;
     alter database open;
}

Related Topics

"alterDatabase"

"startup"




Prev

Top

Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index