Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA: Instance - Shutdown

Back


Instance and Database Shutdown

diagram

Phase Database / Instance Files to close
1 CLOSE: mounted online data files, redo log files
2 NOMOUNT: unmounted control file
3 SHUTDOWN: instance close  

Phase

Close


Unmounted


Shut Down


Shutdown Modes

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 ABORT


  ABORT+STARTUP FORCE Other mode
Checkpoint not yes
Databsae inconsistent stay consistent
subsequent startup Recover Required not required
shutdown speed Fast IMMEDIATE < TRANSACTIONAL < NORMAL

Save Shutdown - IMMEDIATE, TRANSACTIONAL, NORMAL,

normal_shutdown_diagram


Abnormal Shutdown - ABORT + STARTUP FORCE

abnormal_shutdown_diagram


SHUTDOWN IMMEDIATE: force a checkpoint


SHUTDOWN TRANSACTIONAL: wait for current transaction


SHUTDOWN NORMAL / SHUTDOWN: wait for current session


Unusual circumstances of shutdown



TOP