oracle 安装 挂载磁盘组_ora-15077,ASM磁盘组不能挂载
ora-15077,ASM磁盤組不能掛載2009-09-29 18:51 一、現象分析:
1、數據庫和實例服務無法啟動,如下:
[oracle@rac1 ~]$ crs_stat -t
Name? ?? ?? ???Type? ?? ?? ???Target? ? State? ???Host
------------------------------------------------------------
ora.....CRM.cs application? ? ONLINE? ? OFFLINE? ?rac1
ora....cl1.srv application? ? ONLINE? ? OFFLINE? ?rac1
ora.orcl.db? ? application? ? ONLINE? ? OFFLINE? ?rac2
ora....l1.inst application? ? ONLINE? ? OFFLINE? ?rac1
ora....l2.inst application? ? ONLINE? ? OFFLINE? ?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? ? ONLINE? ? rac2
ora.rac2.vip? ?application? ? ONLINE? ? ONLINE? ? rac2
2、單獨啟動某個應用服務依然啟不起來
3、用sqlplus啟動實例,如下:
[oracle@rac1]$ export ORACLE_SID=devdb1
SQL> startup;
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DG1/devdb/spfiledevdb.ora'
ORA-17503: ksfdopn:2 Failed to open file +DG1/devdb/spfiledevdb.ora
ORA-15077: could not locate ASM instance serving a required diskgroup
可以看出diskgroup沒有mount,所以先把diskgroup mount
也可做下面的測試,同樣也會報磁盤組沒掛載:
[oracle@rac1 bdump]$ export ORACLE_SID=+ASM1
[oracle@rac1 bdump]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 22 17:59:39 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> shutdown immediate;
ORA-15100: invalid or missing diskgroup name
ASM instance shutdown
SQL> startup;
ASM instance started
Total System Global Area? ?92274688 bytes
Fixed Size? ?? ?? ?? ?? ?? ?1217884 bytes
Variable Size? ?? ?? ?? ???65890980 bytes
ASM Cache? ?? ?? ?? ?? ?? ?25165824 bytes
ORA-15110: no diskgroups mounted
二、解決辦法:
1、首先掛載ASM磁盤組
[oracle@rac1 bdump]$ export ORACLE_SID=+ASM1
[oracle@rac1 bdump]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 22 17:59:39 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> select name,state from v$asm_diskgroup;
NAME? ?? ?? ?? ?? ?? ?? ?? ?? ?STATE
------------------------------ -----------
RECOVERYDEST? ?? ?? ?? ?? ?? ? DISMOUNTED
DG1? ?? ?? ?? ?? ?? ?? ?? ?? ? DISMOUNTED
SQL> alter diskgroup RECOVERYDEST mount;
Diskgroup altered.
SQL> alter diskgroup DG1 mount;
Diskgroup altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
2、啟動數據庫實例
[oracle@rac1 bdump]$ export ORACLE_SID=devdb1
[oracle@rac1 bdump]$ sqlplus / as sysdba
SQL> startup;
ORACLE instance started.
Total System Global Area 264241152 bytes
Fixed Size? ?? ?? ?? ?? ?? ?1218868 bytes
Variable Size? ?? ?? ?? ? 109053644 bytes
Database Buffers? ?? ?? ? 150994944 bytes
Redo Buffers? ?? ?? ?? ?? ? 2973696 bytes
Database mounted.
database open.
三、原因:
發現可能是因為oracle用戶下的.bashrc文件中$ORACLE_SID環境變量與實際建庫的數據庫名不一致所至,所以在數據庫啟動時會找不到環境變量對應的實例名
.bashrc中是orcl1
[oracle@rac1~]cat .bashrc
.....
export ORACLE_SID=orcl1
.....
而實現的實例名是devdb1
所以修改.bashrc中的ORACLE_SID=devdb1
SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+RAC_DISK/RACDB/spfileRACDB.ora'
ORA-17503: ksfdopn:2 Failed to open file +RAC_DISK/RACDB/spfileRACDB.ora
ORA-15077: could not locate ASM instance serving a required diskgroup
--檢查ASM實例運行情況
[oracle@node1 ~]$ srvctl status asm -n node1
ASM instance +ASM1 is running on node node1.
[oracle@node1 ~]$ srvctl status asm -n node2
ASM instance +ASM2 is not running on node node2.
[oracle@node1 ~]$
能看出,在節點2(也就是出問題的節點)上ASM實例并沒有啟動 ,明顯是asm實列沒有startup.數據庫的spfile又放在asm區,由于asm實列沒有起來,導致數據庫找不到磁盤組。
[oracle@node2 dbs]$ export ORACLE_SID=+ASM2
[oracle@node2 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 17 08:57:56 2009
Copyright (c) 1982, 2005, Oracle.??All rights reserved.
Connected to an idle instance.
SQL> startup
ASM instance started
Total System Global Area? ?92274688 bytes
Fixed Size? ?? ?? ?? ?? ?? ?1217884 bytes
Variable Size? ?? ?? ?? ???65890980 bytes
ASM Cache? ?? ?? ?? ?? ?? ?25165824 bytes
ASM diskgroups mounted
[oracle@node2 dbs]$ export ORACLE_SID=RACDB2
SQL> startup
ORACLE instance started.
Total System Global Area??184549376 bytes
Fixed Size? ?? ?? ?? ?? ?? ?1218412 bytes
Variable Size? ?? ?? ?? ???96471188 bytes
Database Buffers? ?? ?? ???83886080 bytes
Redo Buffers? ?? ?? ?? ?? ? 2973696 bytes
Database mounted.
Database opened.
SQL>
http://blog.iyunv.com/mustbelove/article/details/1441156
總結
以上是生活随笔為你收集整理的oracle 安装 挂载磁盘组_ora-15077,ASM磁盘组不能挂载的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么做了梦第二天想不起来_元旦提醒:为
- 下一篇: tf热保护怎么安装_SEW-电机热保护说