ORA-01102: cannot mount database in EXCLUSIVE mode 的解決辦法
在RAC 環境多節點資料庫,只能啟動一個節點上的資料庫,當啟動另一節點時,報ORA-01102錯誤,如下:
SQL> startup
ORACLE instance started.
Total System Global Area 536870912 bytes
Fixed Size 2022144 bytes
Variable Size 176162048 bytes
Database Buffers 356515840 bytes
Redo Buffers 2170880 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
去網上檢視資料,發現很多網友都是刪除$ORACLE_HOME/dbs/ 下面的一些檔案,我按照他們的說法,並沒有實現預期的結果。
經過不斷摸索實驗,終於找到了解決辦法,如下:
1)我檢視alter日誌,提示如下錯誤:
Sun Aug 31 22:09:26 2014
Error: can not register my instance state - -1
Sun Aug 31 22:09:27 2014
ALTER DATABASE MOUNT
Sun Aug 31 22:09:37 2014
ORA-1102 signalled during: ALTER DATABASE MOUNT...
2)當我輪番開啟一個資料庫例項的時候,檢視引數cluster_database發現為flase,記得之前設定了此引數,感覺可能是此引數引起的,我嘗試著在一個節點上將此引數設定為true,然後重啟該節點,如下:
SQL> show parameter cluster_database;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database boolean FALSE
cluster_database_instances integer 1
SQL> alter system set cluster_database=true scope=spfile; --兩個節點都做修改
System altered.
SQL> shutdown immediate
3)驗證是否能在兩個節點上同時開啟資料庫,結果是可以的,如下:
SQL> select instance_name,status from gv$instance;
INSTANCE_NAME STATUS
---------------- ------------
HHPEN11 OPEN
HHPEN12 OPEN
SQL> startup
ORACLE instance started.
Total System Global Area 536870912 bytes
Fixed Size 2022144 bytes
Variable Size 176162048 bytes
Database Buffers 356515840 bytes
Redo Buffers 2170880 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
去網上檢視資料,發現很多網友都是刪除$ORACLE_HOME/dbs/ 下面的一些檔案,我按照他們的說法,並沒有實現預期的結果。
經過不斷摸索實驗,終於找到了解決辦法,如下:
1)我檢視alter日誌,提示如下錯誤:
Sun Aug 31 22:09:26 2014
Error: can not register my instance state - -1
Sun Aug 31 22:09:27 2014
ALTER DATABASE MOUNT
Sun Aug 31 22:09:37 2014
ORA-1102 signalled during: ALTER DATABASE MOUNT...
2)當我輪番開啟一個資料庫例項的時候,檢視引數cluster_database發現為flase,記得之前設定了此引數,感覺可能是此引數引起的,我嘗試著在一個節點上將此引數設定為true,然後重啟該節點,如下:
SQL> show parameter cluster_database;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database boolean FALSE
cluster_database_instances integer 1
SQL> alter system set cluster_database=true scope=spfile; --兩個節點都做修改
System altered.
SQL> shutdown immediate
3)驗證是否能在兩個節點上同時開啟資料庫,結果是可以的,如下:
SQL> select instance_name,status from gv$instance;
INSTANCE_NAME STATUS
---------------- ------------
HHPEN11 OPEN
HHPEN12 OPEN
SQL> show parameter cluster_database;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database boolean TRUE
cluster_database_instances integer 2
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database boolean TRUE
cluster_database_instances integer 2
總結:對於多例項資料庫,cluster_database引數一定要設定為true,如下是參考ORACLE官方文件
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29634949/viewspace-1261234/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- cannot mount database in EXCLUSIVE modeDatabase
- ORA-01102: cannot mount database in EXCLUSIVE modeDatabase
- ORA-01102 cannot mount database in EXCLUSIVE modeDatabase
- [Oracle] ORA-01102: cannot mount database in EXCLUSIVE modeOracleDatabase
- 關於ORA-01102: cannot mount database in EXCLUSIVE modeDatabase
- Oracle ORA-01102故障: cannot mount database in EXCLUSIVE modeOracleDatabase
- RAC 11.2.0.3 ORA-01102: cannot mount database in EXCLUSIVE mode”Database
- oracle ORA-01102: cannot mount database in EXCLUSIVE mode(無法起到獨佔模式)OracleDatabase模式
- Oracle 11g RAC ORA-01102: cannot mount database in EXCLUSIVE modeOracleDatabase
- Oracle 11g 報錯ORA-01102: cannot mount database in EXCLUSIVE modeOracleDatabase
- 啟動資料庫時 ORA-01102: cannot mount database in EXCLUSIVE mode資料庫Database
- ORA-01102: 不能EXCLUSIVE模式mount資料庫模式資料庫
- ORA-01102 的解決辦法
- ImportError: cannot import name ‘imresize‘解決辦法ImportError
- Oracle startup mount exclusive作用Oracle
- Cannot get a connection, pool exhausted解決辦法
- oracle OEM中 Accessibility Mode disable解決辦法Oracle
- 解決 TypeError: Type aliases cannot be used with isinstance(). 辦法Error
- ORA-19573: cannot obtain exclusive enqueue for datafile XXX 解決方法AIENQ
- virtualbox中Cannot register the hard disk錯誤解決辦法
- 【DataBase】:使用Oracle遇到的幾個問題及解決辦法DatabaseOracle
- Android Studio 出現“Cannot resolve symbol” 解決辦法AndroidSymbol
- Workspace in use or cannot be created, choose a different one.--錯誤解決辦法
- Oracle blocking issue with lock table in exclusive modeOracleBloC
- spring cvc-elt.1: Cannot find the declaration of element 'beans'解決辦法SpringBean
- ANS0326E This node has exceeded its maximum number of mount points 解決辦法
- 部署rac 提示ORA-15018: diskgroup cannot be created解決辦法
- Exclusive access could not be obtained because the database is in useAIDatabase
- OpenStack 的NAT解決辦法
- 公寓噪音的解決辦法
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- org.hibernate.exception.JDBCConnectionException: Cannot open connection 解決辦法ExceptionJDBC
- SVN被鎖的解決辦法
- ORA-28056的解決辦法
- job都停了的解決辦法
- github慢解決辦法Github
- Grub Rescue解決辦法
- /dev/null解決辦法devNull