1.ORA-01102: cannot mount database in EXCLUSIVE mode
现象:
SQL> startup
Oracle instance started.
Total System Global Area 1224736768 bytes
Fixed Size 2020384 bytes
Variable Size 318770144 bytes
Database Buffers 889192448 bytes
Redo Buffers 14753792 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
解决方法:
a.cd $ORACLE_HOME/dbs
b.fuser -u lk* (fuser在/sbin目录下)
得到诸如:lkCAPITALV: 368(oracle) 370(oracle) 372(oracle) 374(oracle) 376(oracle) 378(oracle) 380(oracle) 382(oracle) 384(oracle) 386(oracle) 388(oracle) 397(oracle) 1472(oracle) 1557(oracle) 8852(oracle)
c.fuser -k lk* (杀掉资源占用的东东)
d.fuser -u lk*
若无输出显示,则达到目的了
再次启动数据库
SQL> startup
ORACLE instance started.
Total System Global Area 1224736768 bytes
Fixed Size 2020384 bytes
Variable Size 318770144 bytes
Database Buffers 889192448 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.
OK.问题解决。
2.ORA-01081:cannot start already-running ORACLE-shut it down first
SQL>shutdown abort
SQL>startup
3.ora-01219 数据库未打开:仅允许在固定的表/视图查询
是日志太多的缘故
首先执行语句 SQL〉shutdown immediate;
然后执行 SQL〉 startup mount; (若此步失败的话,转2步骤执行后在接着执行一下命令)
然后用CLEAR命令重建该日志文件
SQL>alter database clear logfile group 1;
如果是该日志组还没有归档,则需要用
SQL> alter database clear unarchived logfile group 1;
发现clear不成功
SQL> alter database clear unarchived logfile group 1;