问题现象:

SQL> startup
ORACLE instance started.
Total System Global Area 2818568848 bytes
Fixed Size 9138832 bytes
Variable Size 939524096 bytes
Database Buffers 1862270976 bytes
Redo Buffers 7634944 bytes

ORA-01102: cannot mount database in EXCLUSIVE mode

问题分析:

这个错误主要是lk文件造成的,该文件位于ORALCE_HOME下的dbs目录下,这个lk的主要作用是说明DATABASE MOUNT上了,不用在MOUNT了.DATABASE UNMOUNT 后会删除掉,如果DATABASE确实没有MOUNT,这个文件在你也MOUNT上,只有手工删除,所以一定要小心.

解决问题:

/sbin/fuser -u lkwhs

lkwhs: 3977(oracle) 3979(oracle) 3985(oracle) 3989(oracle) 3993(oracle) 3995(oracle) 3997(oracle) 3999(oracle) 4001(oracle) 4003(oracle) 4005(oracle) 4007(oracle)

该文件没释放,用fuser命令kill掉:

/sbin/fuser -k lkwhs

lkwhs: 6530 6532 6534 6536 6538 6540 6542 6544 6554 6556 6558 6560 7699 9376

/sbin/fuser -u lkwhs

然后:

SQL> startup

ORACLE instance started.
Total System Global Area 2818568848 bytes
Fixed Size 9138832 bytes
Variable Size 939524096 bytes
Database Buffers 1862270976 bytes
Redo Buffers 7634944 bytes
Database mounted.
Database opened.

SQL>

数据库成功OPEN.

Related Posts