oracle rac模式单台节点启动时报错:ORA-01102: cannot mount database in exclusive mode
此时,先启动哪个节点,优先启动的节点会自动,后面启动的节点会报如上错误。找了网上的删除lk*文件、清除共享内存等方式,皆无效。
后采用一下方式恢复:
报错详情:
ORA-01102 cannot mount database in EXCLUSIVE mode
Cause: Some other instance has the database mounted exclusive or shared.
Action: Shut down the other instance or mount in a compatible mode.
SQL> alter database mount;
alter database mount
*
ERROR at line 1:
ORA-01102: cannot mount database in EXCLUSIVE mode
SQL>
恢复方式:
kill掉oracle相关进程:
kill -9 `ps -ef | grep $ORACLE_SID | grep -v grep | awk '{print $2}'`
然后在已经启动的数据库中执行:
alter system set cluster_database=TRUE scope=spfile sid='*';
shutdown immediate;
然后在切换至操作系统,用root用户执行(或有root权限的用户执行):
srvctl start database -d DB_NAME