RAC 下使用DBCA 建立ASM出錯(ORA-15032,ORA-15063)
先說說我的系統和ORACLE版本
SQL> select * from v$version
2 ;
2 ;
BANNER
--------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
[oracle@rac2 etc]$ more redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
--------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
[oracle@rac2 etc]$ more redhat-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
以前使用的RAC+RAW的方式,現在再同樣的ORACLE使用者下面準備建立一個ASM 叢集例項,用來測試。
但是再使用DBCA 選擇ASM配置過後輸入了引數等資訊後建立的時候DBCA報錯
ORA-15032 ORA-15063
。
然後檢視了一下pfile返現ASM再兩個例項的pfile都已經建立成功,並且節點1的ASM記憶體和後臺程式都起來,然後嘗試連線到ASM例項,
SQL> shutdown abort
ASM instance shutdown
然後嘗試啟動
SQL> startup
ASM instance started
SQL> startup
ASM instance started
Total System Global Area 92274688 bytes
Fixed Size 1272168 bytes
Variable Size 65836696 bytes
ASM Cache 25165824 bytes
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "TEST"
發現確實報錯,但是我這個RAW是沒有問題,很是莫名其妙,檢視METALINK也沒有有價值的資訊。檢視磁碟組
Fixed Size 1272168 bytes
Variable Size 65836696 bytes
ASM Cache 25165824 bytes
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "TEST"
發現確實報錯,但是我這個RAW是沒有問題,很是莫名其妙,檢視METALINK也沒有有價值的資訊。檢視磁碟組
SQL> select * from v$asm_diskgroup;
no rows selected
no rows selected
發現磁碟組根本沒有建立,後來我嘗試手動建立磁碟組成功了
SQL> create diskgroup TEST external redundancy disk '/dev/raw/raw12';
Diskgroup created.
沒有報錯。
然後嘗試再節點2啟動ASM例項
[oracle@rac2 dbs]$ export ORACLE_SID=+ASM2
[oracle@rac2 dbs]$ sqlplus / as sysdba
[oracle@rac2 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Apr 25 11:44:07 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup
ASM instance started
ASM instance started
Total System Global Area 92274688 bytes
Fixed Size 1272168 bytes
Variable Size 65836696 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
Fixed Size 1272168 bytes
Variable Size 65836696 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
發現沒有問題了。10G的ASM BUG真多我靠
最後必須要手動註冊ASM資源到OCR
[oracle@rac1 bdump]$ srvctl add asm -n rac1 -i +ASM1 -o /home/oracle/product/10.2.0/db
[oracle@rac1 bdump]$ srvctl add asm -n rac2 -i +ASM2 -o /home/oracle/product/10.2.0/db
[oracle@rac1 bdump]$ srvctl add asm -n rac2 -i +ASM2 -o /home/oracle/product/10.2.0/db
最後重啟所有的CRS資源
[oracle@rac1 bdump]$ crs_stop -all
Attempting to stop `ora.ppzhu.dw.ppzhu1.srv` on member `rac1`
Attempting to stop `ora.rac1.gsd` on member `rac1`
Attempting to stop `ora.rac1.ons` on member `rac1`
Attempting to stop `ora.ppzhu.dw.ppzhu2.srv` on member `rac2`
Stop of `ora.ppzhu.dw.ppzhu1.srv` on member `rac1` succeeded.
Attempting to stop `ora.ppzhu.dw.cs` on member `rac2`
Attempting to stop `ora.rac2.gsd` on member `rac2`
Attempting to stop `ora.ppzhu.db` on member `rac2`
Stop of `ora.ppzhu.dw.ppzhu2.srv` on member `rac2` succeeded.
Stop of `ora.rac1.ons` on member `rac1` succeeded.
Stop of `ora.rac1.gsd` on member `rac1` succeeded.
Stop of `ora.rac2.gsd` on member `rac2` succeeded.
Stop of `ora.ppzhu.dw.cs` on member `rac2` succeeded.
Stop of `ora.ppzhu.db` on member `rac2` succeeded.
`ora.ppzhu.ppzhu2.inst` is already OFFLINE.
`ora.ppzhu.ppzhu1.inst` is already OFFLINE.
Attempting to stop `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`
Attempting to stop `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`
Stop of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.
Attempting to stop `ora.rac1.vip` on member `rac1`
Stop of `ora.rac1.vip` on member `rac1` succeeded.
Stop of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.
Attempting to stop `ora.rac2.vip` on member `rac2`
Stop of `ora.rac2.vip` on member `rac2` succeeded.
CRS-0216: Could not stop resource 'ora.ppzhu.ppzhu1.inst'.
Attempting to stop `ora.ppzhu.dw.ppzhu1.srv` on member `rac1`
Attempting to stop `ora.rac1.gsd` on member `rac1`
Attempting to stop `ora.rac1.ons` on member `rac1`
Attempting to stop `ora.ppzhu.dw.ppzhu2.srv` on member `rac2`
Stop of `ora.ppzhu.dw.ppzhu1.srv` on member `rac1` succeeded.
Attempting to stop `ora.ppzhu.dw.cs` on member `rac2`
Attempting to stop `ora.rac2.gsd` on member `rac2`
Attempting to stop `ora.ppzhu.db` on member `rac2`
Stop of `ora.ppzhu.dw.ppzhu2.srv` on member `rac2` succeeded.
Stop of `ora.rac1.ons` on member `rac1` succeeded.
Stop of `ora.rac1.gsd` on member `rac1` succeeded.
Stop of `ora.rac2.gsd` on member `rac2` succeeded.
Stop of `ora.ppzhu.dw.cs` on member `rac2` succeeded.
Stop of `ora.ppzhu.db` on member `rac2` succeeded.
`ora.ppzhu.ppzhu2.inst` is already OFFLINE.
`ora.ppzhu.ppzhu1.inst` is already OFFLINE.
Attempting to stop `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`
Attempting to stop `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`
Stop of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.
Attempting to stop `ora.rac1.vip` on member `rac1`
Stop of `ora.rac1.vip` on member `rac1` succeeded.
Stop of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.
Attempting to stop `ora.rac2.vip` on member `rac2`
Stop of `ora.rac2.vip` on member `rac2` succeeded.
CRS-0216: Could not stop resource 'ora.ppzhu.ppzhu1.inst'.
CRS-0216: Could not stop resource 'ora.ppzhu.ppzhu2.inst'.
[oracle@rac1 bdump]$ crs_start -all
Attempting to start `ora.rac1.vip` on member `rac1`
Attempting to start `ora.rac2.vip` on member `rac2`
Attempting to start `ora.ppzhu.ppzhu1.inst` on member `rac1`
Attempting to start `ora.ppzhu.ppzhu2.inst` on member `rac2`
Attempting to start `ora.rac2.ASM2.asm` on member `rac2`
Attempting to start `ora.rac1.ASM1.asm` on member `rac1`
Start of `ora.rac1.ASM1.asm` on member `rac1` succeeded.
Start of `ora.rac2.vip` on member `rac2` succeeded.
Attempting to start `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`
Start of `ora.rac1.vip` on member `rac1` succeeded.
Attempting to start `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`
Start of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.
Start of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.
Start of `ora.rac2.ASM2.asm` on member `rac2` succeeded.
Start of `ora.ppzhu.ppzhu1.inst` on member `rac1` succeeded.
Start of `ora.ppzhu.ppzhu2.inst` on member `rac2` succeeded.
Attempting to start `ora.ppzhu.dw.cs` on member `rac2`
CRS-1002: Resource 'ora.rac1.ons' is already running on member 'rac1'
Attempting to start `ora.rac1.vip` on member `rac1`
Attempting to start `ora.rac2.vip` on member `rac2`
Attempting to start `ora.ppzhu.ppzhu1.inst` on member `rac1`
Attempting to start `ora.ppzhu.ppzhu2.inst` on member `rac2`
Attempting to start `ora.rac2.ASM2.asm` on member `rac2`
Attempting to start `ora.rac1.ASM1.asm` on member `rac1`
Start of `ora.rac1.ASM1.asm` on member `rac1` succeeded.
Start of `ora.rac2.vip` on member `rac2` succeeded.
Attempting to start `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`
Start of `ora.rac1.vip` on member `rac1` succeeded.
Attempting to start `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`
Start of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.
Start of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.
Start of `ora.rac2.ASM2.asm` on member `rac2` succeeded.
Start of `ora.ppzhu.ppzhu1.inst` on member `rac1` succeeded.
Start of `ora.ppzhu.ppzhu2.inst` on member `rac2` succeeded.
Attempting to start `ora.ppzhu.dw.cs` on member `rac2`
CRS-1002: Resource 'ora.rac1.ons' is already running on member 'rac1'
CRS-1002: Resource 'ora.ppzhu.db' is already running on member 'rac2'
Attempting to start `ora.rac1.gsd` on member `rac1`
Attempting to start `ora.ppzhu.dw.ppzhu1.srv` on member `rac1`
Attempting to start `ora.ppzhu.dw.ppzhu2.srv` on member `rac2`
Attempting to start `ora.rac2.gsd` on member `rac2`
Attempting to start `ora.rac2.ons` on member `rac2`
Start of `ora.ppzhu.dw.cs` on member `rac2` succeeded.
Start of `ora.ppzhu.dw.ppzhu1.srv` on member `rac1` succeeded.
Start of `ora.rac1.gsd` on member `rac1` succeeded.
Start of `ora.ppzhu.dw.ppzhu2.srv` on member `rac2` succeeded.
Start of `ora.rac2.gsd` on member `rac2` succeeded.
Start of `ora.rac2.ons` on member `rac2` failed.
rac1 : CRS-1019: Resource ora.rac2.ons (application) cannot run on rac1
Attempting to start `ora.ppzhu.dw.ppzhu1.srv` on member `rac1`
Attempting to start `ora.ppzhu.dw.ppzhu2.srv` on member `rac2`
Attempting to start `ora.rac2.gsd` on member `rac2`
Attempting to start `ora.rac2.ons` on member `rac2`
Start of `ora.ppzhu.dw.cs` on member `rac2` succeeded.
Start of `ora.ppzhu.dw.ppzhu1.srv` on member `rac1` succeeded.
Start of `ora.rac1.gsd` on member `rac1` succeeded.
Start of `ora.ppzhu.dw.ppzhu2.srv` on member `rac2` succeeded.
Start of `ora.rac2.gsd` on member `rac2` succeeded.
Start of `ora.rac2.ons` on member `rac2` failed.
rac1 : CRS-1019: Resource ora.rac2.ons (application) cannot run on rac1
CRS-0223: Resource 'ora.ppzhu.db' has placement error.
CRS-0223: Resource 'ora.rac1.ons' has placement error.
CRS-0215: Could not start resource 'ora.rac2.ons'.
[oracle@rac1 bdump]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ppzhu.db application ONLINE ONLINE rac2
ora....u.dw.cs application ONLINE ONLINE rac2
ora....hu1.srv application ONLINE ONLINE rac1
ora....hu2.srv application ONLINE ONLINE rac2
ora....u1.inst application ONLINE ONLINE rac1
ora....u2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE OFFLINE
ora.rac2.vip application ONLINE ONLINE rac2
Name Type Target State Host
------------------------------------------------------------
ora.ppzhu.db application ONLINE ONLINE rac2
ora....u.dw.cs application ONLINE ONLINE rac2
ora....hu1.srv application ONLINE ONLINE rac1
ora....hu2.srv application ONLINE ONLINE rac2
ora....u1.inst application ONLINE ONLINE rac1
ora....u2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE OFFLINE
ora.rac2.vip application ONLINE ONLINE rac2
應該沒有問題了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-693647/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 建立ASM磁碟組報錯ORA-15063ASM
- dbca建立oracle 11g rac發現不了asm磁碟OracleASM
- 基於asm的單例項資料庫啟動時報錯ORA-15032 ORA-15063一例ASM單例資料庫
- Oracle 11g RAC 建立例項DBCA無法發現ASM DiskgroupOracleASM
- dbca -silent建立rac資料庫資料庫
- RAC環境在ASM上建立表空間出錯ORA-569ASM
- AIX下使用dbca建立oracle資料庫AIOracle資料庫
- DBCA建立ASM報錯ORA-27125: unable to create shared memory segmentASM
- dbca靜默silent建立資料庫_空間不足出錯資料庫
- ASM裝載磁碟組時ORA-15063錯誤處理ASM
- 11G ORACLE RAC DBCA 無法識別asm磁碟組OracleASM
- 11gR2 RAC dbca無法發現ASM磁碟組ASM
- oracle rac 無法建立asm磁碟OracleASM
- windows下建立asmWindowsASM
- rac環境下使用impdp匯入資料出錯
- 2 Day DBA-使用DBCA建立和管理資料庫—使用DBCA建立資料庫資料庫
- 在ASM下建立spfile 出現DB_UNKOWNASM
- [ASM] ORA-15032 ORA-15260ASM
- ORACLE 使用DBCA安裝資料庫出現錯誤Oracle資料庫
- 【RAC】 RAC For W2K8R2 安裝--dbca建立資料庫(七)資料庫
- Windows平臺下建立asmWindowsASM
- DBCA建庫出現CHMOD NOT FOUND錯誤
- 2.3.1 有關使用DBCA建立資料庫資料庫
- 2 Day DBA-使用DBCA建立和管理資料庫—啟動DBCA資料庫
- oracle RAC dbca的時候報錯提示cluster nodes are not accessibleOracle
- oracle 10G rac 執行dbca 報錯處理方法Oracle 10g
- RAC和ASM環境下打patchASM
- 【故障處理】DBCA建庫詭異問題處理--rac環境不能建立rac庫
- linux下如何使用raw device來建立管理asm diskLinuxdevASM
- Oracle下建立ASM磁碟總結OracleASM
- Oracle 18c使用dbca建立級聯DGOracle
- 2 Day DBA-使用DBCA建立資料庫資料庫
- Oralce 10g 使用DBCA建立資料庫資料庫
- 【RAC】因清理不完整導致RAC ASM例項建立失敗ASM
- RAC建立ASM單個磁碟不能操作2TASM
- DBCA建庫時找不到ASM磁碟ASM
- AIX下使用ASMAIASM
- 使用DBCA建立資料庫時,報告錯誤:ORA-12547: TNS: lost contact錯誤資料庫