ASM無法自動載入磁碟組問題解決一例

zad800發表於2010-09-10

問題描述:啟動ASM例項時,出現ORA-15110錯誤

SQL> startup

ASM instance started

 

Total System Global Area   96468992 bytes

Fixed Size                  1217908 bytes

Variable Size              70085260 bytes

ASM Cache                  25165824 bytes

ORA-15110: no diskgroups mounted

 

解決過程:

1、  我們曾經為asm例項建立過磁碟組,先確認磁碟組的名稱:

SQL> select name from v$asm_diskgroup;

NAME

------------------------------

DATA

經過查詢,發現磁碟組的名稱為DATA

 

2、確認下檢視一下asm_diskstring初始化引數,該引數中設定了磁碟組的中的磁碟的位置(本例中使用了邏輯卷):

SQL> show parameter string

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

asm_diskstring                       string      /dev/mapper/vg1*


3、  經過查詢發現,上述引數並無異常狀況,下面我們來手動載入一下磁碟組:

SQL> alter system set asm_diskgroups='data';

System altered.

 

4、為了讓例項啟動時,就能載入預設的磁碟組,需要我們設定asm_diskgroups引數。修改之前,先查詢下此引數:

SQL> show parameter asm_diskgroup

 

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

asm_diskgroups                       string

 

5、原來此引數為空。我們需要將修改的值寫入spfile

SQL> alter system set asm_diskgroups=data scope=spfile;

alter system set asm_diskgroups=data scope=spfile

*

ERROR at line 1:

ORA-32001: write to SPFILE requested but no SPFILE specified at startup

6、發現上述過程出錯,原因是沒有spfile檔案,例項在啟動的時候讀取的是pfile。現在建立該spfile

SQL> create spfile from pfile;

File created.

 

7、重啟例項後,檢視spfile初始化引數,發現例項目前已經使用spfile檔案:

SQL> shutdown immediate

ORA-15100: invalid or missing diskgroup name

 

ASM instance shutdown

SQL> startup

ASM instance started

Total System Global Area   96468992 bytes

Fixed Size                  1217908 bytes

Variable Size              70085260 bytes

ASM Cache                  25165824 bytes

ORA-15110: no diskgroups mounted

 

SQL> show parameter spfile

NAME                                 TYPE        VALUE

------------------------------------                                     -----------       ------------------------------

spfile                               string      /opt/ora10g/product/10.2.0/db_

                                                 1/dbs/spfile+ASM.ora

8、設定asm_diskgroups引數,取值設定為第1步中查詢到的“data”:

SQL> alter system set asm_diskgroups=data scope=spfile;

System altered.

 

9、重啟資料庫例項,發現asm能在啟動時自動載入預設的磁碟組了:

SQL> shutdown immediate

ORA-15100: invalid or missing diskgroup name

ASM instance shutdown

 

SQL> startup

ASM instance started

Total System Global Area   96468992 bytes

Fixed Size                  1217908 bytes

Variable Size              70085260 bytes

ASM Cache                  25165824 bytes

ASM diskgroups mounted

 

總結:若asm例項在啟動時無法自動載入磁碟組時,先手動載入磁碟組進行測試,確認磁碟組能夠正常使用的情況下,我們再來設定初始化引數asm_diskgroups

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14600958/viewspace-673202/,如需轉載,請註明出處,否則將追究法律責任。

相關文章