All technological notes.
Tools:
SQL*Plus SHUTDOWN commandEnterprise ManagerRequired privileges of connection:
SYSDBASYSOPERUse Case:

| Phase | Database / Instance | Files to close |
|---|---|---|
| 1 | CLOSE: mounted | online data files, redo log files |
| 2 | NOMOUNT: unmounted | control file |
| 3 | SHUTDOWN: instance close |
CloseUnmountedperform:
control files of the database.At this point, the database instance remains in memory.
Shut DownPerform:
SGA ceases to occupy memory| Database Behavior | new user | Waits sessions end | Waits transactions end | checkpoint and closes open files |
|---|---|---|---|---|
ABORT |
- | - | - | - |
IMMEDIATE |
- | - | - | Y |
TRANSACTIONAL |
- | - | Y | Y |
NORMAL |
- | Y | Y | Y |
SHUTDOWN ABORTdoes not checkpoint the open data files
data files consistent before the database can reopen.Use Case:
CDB, issuing SHUTDOWN ABORT on a PDB == issuing SHUTDOWN IMMEDIATE on a non-CDB.ABORT+STARTUP FORCE |
Other mode | |
|---|---|---|
| Checkpoint | not | yes |
| Databsae | inconsistent | stay consistent |
| subsequent startup Recover | Required | not required |
| shutdown speed | Fast | IMMEDIATE < TRANSACTIONAL < NORMAL |
IMMEDIATE, TRANSACTIONAL, NORMAL,ABORT modeOracle Database:
SGA to
online data filesonline redo log files.online data filesonline redo log files.The control files remain open after a database is closed.
offline tablespaces
offline data files of offline tablespaces have been closed already.
ABORT + STARTUP FORCEthe instance of an open database closes and shuts down the database instantaneously, if
SHUTDOWN ABORTOracle Database does not write data in the buffers of the SGA, the modified buffer, to
data filesredo log files.Uncommited changes not rolled back.
Auto instance recovery is required during the subsequent reopening of the database.

SHUTDOWN IMMEDIATE: force a checkpointSHUTDOWN ABORT.checkpoint and terminates any executing SQL statements
SHUTDOWN TRANSACTIONAL: wait for current transactionSHUTDOWN NORMAL / SHUTDOWN: wait for current sessionunusual circumstances: shutdown of a database instance may not occur cleanly.
a subsequent instance startup may fail because remnants of a previous instance exist.
SHUTDOWN ABORT statement.process monitor (PMON) or the instance.
INSTANCE_ABORT_DELAY_TIME specifies how many seconds to delay an internally generated instance failure. This delay gives you a chance to respond.