oracle 例項啟動和關閉解讀
About Instance Startup
When you start the Oracle instance, you typically start it such that the state of the database is OPEN and ready for user connections. However, there are situations in which you may want to start the instance with the database in the MOUNTED state, but not open. An instance can also be started without the database either mounted or open. Thus, there are three stages to starting an instance:
-
You start the instance using one of the following methods:
-
Using the SQL*Plus STARTUP command. See .
-
On Microsoft Windows, using the Services program in Control Panel to start the Oracle Database services. See .
The instance reads the initialization parameter file, allocates SGA memory, and starts the background processes.
-
-
If you mount the database, then the Oracle instance opens the control file for the database, but does not open the data files. The database is now considered to be in the MOUNT state. This state enables you to perform certain administrative functions that cannot be performed when other users are accessing the database. An example of such a function is enabling or disabling the archiving of online redo log files. See for information about online redo log file archiving.
-
If you open the database, then, after reading the parameter file and control file, the online redo log files and data files for the database are also opened. The state of the database is now OPEN and user access to the data is available.
The default startup mode for the database (OPEN) completes the three stages in sequence. Unless you explicitly specify otherwise, the instance is started, the database is mounted, and then the database is opened.
About Instance Shutdown
Instance shutdown is the reverse of instance startup. When you shut down the Oracle instance, the default mode is a NORMAL shutdown, which means users are not allowed to create new connections to the database, but the shutdown process waits for all currently connected users to exit their sessions. After all the users have disconnected, then the committed transactions are written to disk, the database files are closed, and the instance is stopped. However, there are situations in which you may not want to wait for users to disconnect on their own (IMMEDIATE mode), or you want to let the current transactions for each user complete before they are disconnected (TRANSACTIONAL mode). In emergency situations you can even shut down the database without waiting for the committed transactions to be written to disk (ABORT mode).
Shutting down an instance goes through the following stages:
-
After all the users have exited from their sessions, or been disconnected, Oracle Database writes data in the SGA to the data files and online redo log files. A checkpoint is performed on the data files and their headers are marked current as of the time of the instance shutdown. The data files and online redo log files are then closed and the state of the database is changed to CLOSED. The control file remains open to the instance.
-
The Oracle instance dismounts the database and updates relevant entries in the control file to record a clean shutdown. The control file is closed. The database is now closed and dismounted. The instance is in the NOMOUNT state.
-
The Oracle instance stops the background processes and deallocates the shared memory used by the SGA.
If a SHUTDOWN ABORT or abnormal termination occurs, then the instance of an open database closes and shuts down the database instantaneously. Oracle Database does not write data in the buffers of the SGA to the data files and redo log files. The subsequent reopening of the database requires instance recovery, which Oracle Database performs automatically.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29519108/viewspace-1449625/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 2 Day DBA-管理Oracle例項-關閉和啟動Oracle例項-使用OEMDC關閉和啟動Oracle例項Oracle
- Oracle例項的啟動和關閉Oracle
- 2 Day DBA-管理Oracle例項-關於例項的啟動和關閉-關於例項啟動Oracle
- 2 Day DBA-管理Oracle例項-關於例項的啟動和關閉-關於例項關閉Oracle
- 2 Day DBA-管理Oracle例項-關於例項的啟動和關閉-管理啟動和關閉許可權Oracle
- ASM CRS 例項啟動和關閉ASM
- Oracle單例項+ASM啟動與關閉Oracle單例ASM
- 【02】Oracle資料庫的例項啟動關閉詳解Oracle資料庫
- Oracle 資料庫例項啟動關閉過程Oracle資料庫
- Oracle11g RAC在例項關閉後自動在啟動例項上歸檔Oracle
- 例項管理及資料庫的啟動關閉資料庫
- MySQL 多例項啟動和關閉指令碼MySql指令碼
- oracle自動啟動和關閉的方法Oracle
- oracle 啟動 關閉步驟詳解Oracle
- oracle啟動與關閉Oracle
- ORACLE DataGuard 關閉啟動Oracle
- Oracle自動啟動和關閉的方法 (轉)Oracle
- Oracle DG主備啟動和關閉流程Oracle
- oracle啟動和關閉指令碼for LinuxOracle指令碼Linux
- Oracle資料庫的啟動和關閉Oracle資料庫
- ORACLE RAC 的啟動和關閉順序Oracle
- oracle起動和關閉詳解(轉)Oracle
- ORACLE啟動模式及關閉Oracle模式
- Oracle RAC 啟動與關閉Oracle
- ORACLE資料庫的啟動和關閉(轉)Oracle資料庫
- Oracle入門——起動和關閉詳解Oracle
- 自動重新啟動oracle例項 for windowsOracleWindows
- mysql的啟動和關閉MySql
- 啟動oracle例項最少引數Oracle
- oracle多個例項啟動方法Oracle
- Oracle 11gR2 RAC的關閉和啟動Oracle
- js div層漸變方式開啟和關閉效果程式碼例項JS
- Linux 下 Oracle隨系統自動啟動和關閉LinuxOracle
- Oracle監聽啟動後自動關閉Oracle
- linux svn啟動和關閉Linux
- MySQL Windows下關閉和啟動MySqlWindows
- 資料庫啟動和關閉資料庫
- ORACLE資料庫的啟動和關閉之二(轉)Oracle資料庫