SHUTDOWN

Shutdown a database instance.
This is a SQL*Plus command (not part of standard SQL)

Syntax:

   SHUTDOWN ABORT

   SHUTDOWN IMMEDIATE

   SHUTDOWN TRANSACTIONAL [LOCAL]

   SHUTDOWN NORMAL

key:
   ABORT
              The fastest possible shutdown of the database without waiting for calls to complete
              or for users to disconnect.
              Uncommitted transactions are not rolled back.
              Client SQL statements currently being processed are terminated.
              All users currently connected to the database are implicitly disconnected.
              The next database startup will require instance recovery.

              Use this option if a background process terminates abnormally.

   IMMEDIATE
              Does not wait for current calls to complete or users to disconnect from
              the database.
              Further connects are prohibited.
              The database is closed and dismounted.
              The instance is shutdown and no instance recovery is required on the next database startup.

   NORMAL
              NORMAL is the default option which waits for users to disconnect from
              the database.
              Further connects are prohibited.
              The database is closed and dismounted.
              The instance is shutdown and no instance recovery is required on the next database startup.

   TRANSACTIONAL [LOCAL]

              A planned shutdown of an instance, allowing active transactions to complete first.
              It prevents clients from losing work without requiring all users to log off.
              No client can start a new transaction on this instance.
              Attempting to start a new transaction results in disconnection.
              After completion of all transactions, any client still connected to
              the instance is disconnected.
              Now the instance shuts down (SHUTDOWN IMMEDIATE).
              The next startup of the database will not require any instance recovery procedures.

              The LOCAL mode specifies a transactional shutdown on the local instance only,
              so that it only waits on local transactions to complete, not all transactions.
              This is useful, for example, for scheduled outage maintenance.

"Never appeal to a man's "better nature." He may not have one. Invoking his self-interest gives you more leverage.” ~ Lazarus Long

Related Oracle Commands:

ALTER DATABASE
MOUNT | OPEN
ALTER SESSION CLOSE DATABASE LINK
ALTER SYSTEM disable restricted session
ALTER SYSTEM kill session
STARTUP

Related Views:

   DBA_PENDING_TRANSACTIONS 
   DBA_JOBS_RUNNING  
   V$SESSION


 
Copyright © 1999-2024 SS64.com
Some rights reserved