数据库停库启动数据库时报错
SQL> startup nomount;
ORA-17612: Failed to discover Oracle Disk Manager library, return value 2
检查odm链接,发现链接已经做好,并检查该链接文件也在
oracle@rac1:/oracle/product/10.2/database/lib > ls -la |grep odm
lrwxrwxrwx 1 oracle dba 26 Oct 27 2011 libodm10.so -> /opt/VRTSodm/lib/libodm.so
-rwxr-xr-x 1 root sys 67696 Sep 7 2011 libodm10.so.bak
-rwxr-xr-x 1 oracle dba 67696 May 14 2010 libodmd10.so
检查odm的状态,状态为stop,说明odm没有启动,启动odm进程.
rac1[/]#/sbin/init.d/odm status
odm is stopped.
rac1[/]#/sbin/init.d/odm start
* Future operations will ask whether to update the backup.
* The requested changes have been applied to the currently
running configuration.
oracle@esshlj1:/dev/odm > /sbin/init.d/odm status
odm is running.
启动odm进程后启动数据库,可以正常启动了.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 3.4360E+10 bytes
Fixed Size 2131040 bytes
Variable Size 1.0704E+10 bytes
Database Buffers 2.3622E+10 bytes
Redo Buffers 31420416 bytes
Database mounted.
SQL> alter database open;
Database altered.
SQL>
SQL>
SQL> quit
检查odm的状态
rac1[/]#/sbin/init.d/odm status
还可以通过查看/dev/odm下是否有文件,有文件说明正常.