共計 3268 個字符,預計需要花費 9 分鐘才能閱讀完成。
這篇文章主要介紹 oracle 中出現 ORA-15201 錯誤怎么辦,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
系統環境:
操作系統: AIX5300-08
Oracle 軟件:Oracle 10gR2
錯誤現象:
通過 AIX 系統下的 LV 建立,ASM 磁盤出現故障
查看 ASM 磁盤信息
[oracle@aix211 ~]$kfod
——————————————————————————–
ORACLE_SID ORACLE_HOME
================================================================================
+ASM /u01/app/oracle/product/10.2.0/db_1
[oracle@aix211 ~]$kfod status=TRUE asm_diskstring= /dev/rlv* disk=all
——————————————————————————–
Disk Size Header Path
================================================================================
1: 4096 Mb FOREIGN /dev/rlv_asm1 // 這個裸設備信息和其他 lv 不一致
2: 4096 Mb CANDIDATE /dev/rlv_asm2
3: 4096 Mb CANDIDATE /dev/rlv_asm3
4: 4096 Mb CANDIDATE /dev/rlv_asm4
——————————————————————————–
ORACLE_SID ORACLE_HOME
================================================================================
+ASM /u01/app/oracle/product/10.2.0/db_1
6、建立 ASM 磁盤組
[oracle@aix211 ~]$export ORACLE_SID=+ASM
[oracle@aix211 ~]$sqlplus /as sysdba
SQL*Plus: Release 10.2.0.1.0 – Production on Tue May 27 16:36:03 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL create diskgroup dg1
2 normal redundancy
3 failgroup fg1 disk /dev/rlv_asm1
4 failgroup fg2 disk /dev/rlv_asm2
create diskgroup dg1
*
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15201: disk /dev/rlv_asm1 contains a valid RDBMS file
報錯信息:rlv_asm1 被數據庫實例占用
解決方法:
清除 ASM 磁盤頭部信息:
[oracle@aix211 ~]$dd if=/dev/zero of=/dev/rlv_asm1 bs=8192 count=2560
2560+0 records in
2560+0 records out
[oracle@aix211 ~]$kfod status=TRUE asm_diskstring= /dev/rlv* disk=all
——————————————————————————–
Disk Size Header Path
================================================================================
1: 4096 Mb CANDIDATE /dev/rlv_asm1 // 此時,rlv_asm1 和其他 lv 保持一致
2: 4096 Mb CANDIDATE /dev/rlv_asm2
3: 4096 Mb CANDIDATE /dev/rlv_asm3
4: 4096 Mb CANDIDATE /dev/rlv_asm4
——————————————————————————–
ORACLE_SID ORACLE_HOME
================================================================================
+ASM /u01/app/oracle/product/10.2.0/db_1
再建立磁盤組:
[oracle@aix211 ~]$sqlplus /as sysdba
SQL*Plus: Release 10.2.0.1.0 – Production on Tue May 27 16:44:16 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL create diskgroup dg1
2 normal redundancy
3 failgroup fg1 disk /dev/rlv_asm1
4 failgroup fg2 disk /dev/rlv_asm2
Diskgroup created.
SQL create diskgroup rcy1
2 normal redundancy
3 failgroup fg1 disk /dev/rlv_asm3
4 failgroup fg2 disk /dev/rlv_asm4
Diskgroup created.
查看磁盤組信息
SQL select name,state from v$asm_diskgroup;
NAME STATE
—————————— ———–
DG1 MOUNTED
RCY1 MOUNTED
@至此,問題解決,應該是在 LV 的字符設備的頭部出現了 ASM 無法處理的信息,清除頭部信息后,問題解決。
以上是“oracle 中出現 ORA-15201 錯誤怎么辦”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注丸趣 TV 行業資訊頻道!