Skip Headers

Oracle9i Recovery Manager Reference
Release 2 (9.2)

Part Number A96565-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

RMAN Commands , 52 of 59


SHUTDOWN

Syntax

Text description of shutdown.gif follows
Text description of the illustration shutdown.gif


Purpose

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

See Also:

Oracle9i Database Administrator's Guide for information on how to start up and shut down a database, and SQL*Plus User's Guide and Reference for SHUTDOWN syntax

Restrictions and Usage Notes

Keywords and Parameters

Syntax Element Description

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 shuts down, Oracle waits for currently connected users to disconnect
  • The next startup of the database will not require instance recovery.

ABORT

Shuts down 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, that is, either commit or terminate 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 terminated, any client still connected is disconnected.

Examples

Shutting Down a Database by Using the Immediate Option: Example

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: Example

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 COPIES 2 DATABASE;
ALTER DATABASE OPEN;

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback