停止ASM例項
To shut down an Oracle ASM instance, perform the following steps:
SQLPLUS /NOLOG
SQL> CONNECT SYS AS SYSASM
Enter password: sys_password
Connected.
SQL> SHUTDOWN NORMAL
For more information about user authentication, see .
The following list describes the SHUTDOWN modes and the behavior of the Oracle ASM instance in each mode.
-
NORMAL Clause
Oracle ASM waits for any in-progress SQL to complete before performing an orderly dismount of all of the disk groups and shutting down the Oracle ASM instance. Before the instance is shut down, Oracle ASM waits for all of the currently connected users to disconnect from the instance. If any database instances are connected to the Oracle ASM instance, then the SHUTDOWN command returns an error and leaves the Oracle ASM instance running. NORMAL is the default shutdown mode.
ASM等待正在執行的SQL完成操作、所有使用者斷開連線才停止例項,如果有DB繼續連著該例項,那麼該操作出錯
-
IMMEDIATE or TRANSACTIONAL Clause
Oracle ASM waits for any in-progress SQL to complete before performing an orderly dismount of all of the disk groups and shutting down the Oracle ASM instance. Oracle ASM does not wait for users currently connected to the instance to disconnect. If any database instances are connected to the Oracle ASM instance, then the SHUTDOWN command returns an error and leaves the Oracle ASM instance running. Because the Oracle ASM instance does not contain any transactions, the TRANSACTIONAL mode behaves the same as IMMEDIATE mode.
ASM等待所有正在執行的SQL完成後進行dismount和停止例項的操作,不等待使用者斷開連線,同樣如果還有DB例項連線到ASM例項,那麼停止操作出錯,
必須等到DB例項斷開才正常關閉ASM例項
-
ABORT Clause
The Oracle ASM instance immediately shuts down without the orderly dismount of disk groups. This causes recovery to occur upon the next Oracle ASM startup.
If any database instance is connected to the Oracle ASM instance, then the database instance aborts.
If any Oracle Automatic Storage Management Cluster File System (Oracle ACFS) file systems are currently mounted on Oracle ADVM volumes, those file systems should first be dismounted. Otherwise, applications encounter I/O errors and Oracle ACFS user data and metadata may not be written to storage before the Oracle ASM storage is fenced. For information about dismounting an Oracle ACFS file system, see . For more information about user authentication on Oracle ASM instance, see .
這種情況下ASM例項和連線的DB例項都異常關閉,下次啟動需要恢復,慎用。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21754115/viewspace-1194999/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC+DG(asm單例項)ASM單例
- 【Oracle】ASM例項安裝入門OracleASM
- 呀!ASM例項起不來可咋整ASM
- ASM單例項安裝後,需要手動設定ASM的引數檔案ASM單例
- Oracle 11gR2 ASM例項記憶體管理OracleASM記憶體
- [20191128]11GR2 asm例項audit檔案.txtASM
- ORACLE11GR2 RAC解除安裝ASM例項步驟OracleASM
- 11.2.0.4單例項ASM安裝報錯ohasd failed to ... line 73.單例ASMAI
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 【ASK_ORACLE】Relink ASM單例項資料庫詳細步驟OracleASM單例資料庫
- 【運維技巧】海豚排程工作流例項卡在正在停止&任務例項卡在正在執行怎麼辦?運維
- ASM REBLANCE引起的DG備庫停止同步問題ORA-16055ASM
- php例項化物件的例項方法PHP物件
- 【資料庫資料恢復】Oracle ASM例項無法掛載的資料恢復案例資料庫資料恢復OracleASM
- OkHttpClient例項HTTPclient
- unittest例項
- jQuery 例項jQuery
- Activiti的流程例項【ProcessInstance】與執行例項【Execution】
- 例項化list
- msfvenom使用例項
- 雙層 for 例項
- python socket例項Python
- pinctrl使用例項
- Draggable 拖拽例項
- python例項1Python
- 策略模式例項模式
- SQLMAP 例項COOKBOOKSQL
- Java例項教程Java
- ORM 例項教程ORM
- 類和例項
- Proxy例項set()
- expect使用例項
- 【資料庫資料恢復】ASM例項不能掛載的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle
- 如何區分例項化網格中的每個例項
- 如何將獨立例項轉換成叢集例項EU
- Websocet 入門例項Web
- Laravel kernel例項化Laravel
- Python例項集錦Python
- BootStrap | 例項 - 摺疊boot