Oracle資料庫:Oracle資料庫報ORA-01102故障解決方式(四)

點擊「和我一起走吧」關注

請點擊關注與分享 每天學習一點點

在STARTUP一資料庫時,發生如下錯誤:

SQL> conn /as sysdba

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 276824064 bytes

Fixed Size 778736 bytes

Variable Size 137371152 bytes

Database Buffers 138412032 bytes

Redo Buffers 262144 bytes

ORA-01102: cannot mount database in EXCLUSIVE mode

Advertisements

SQL> shutdown immediate

ORA-01507: database not mounted

ORACLE instance shut down.

GOOGLE一下,發現是lk<SID>文件造成的,該文件位於ORALCE_HOME下的dbs目錄下,馬上檢查該文件

[root@qa-oracle dbs]# fuser -u lkNDMSQA

「lkORACLE 這個文件」

lkNDMSQA: 6666(oracle) 6668(oracle) 6670(oracle) 6672(oracle) 6674(oracle) 6676(oracle) 6678(oracle) 6680(oracle) 6690(oracle) 6692(oracle) 6694(oracle) 6696(oracle) 6737(oracle) 6830(oracle)

Advertisements

果然該文件沒釋放,用fuser命令kill掉:

[root@qa-oracle dbs]# fuser -k lkNDMSQA

lkNDMSQA: 6666 6668 6670 6672 6674 6676 6678 6680 6690 6692 6694 6696 6737 6830

[root@qa-oracle dbs]# fuser -u lkNDMSQA

然後:

SQL> startup

ORACLE instance started.

Total System Global Area 276824064 bytes

Fixed Size 778736 bytes

Variable Size 137371152 bytes

Database Buffers 138412032 bytes

Redo Buffers 262144 bytes

Database mounted.

Database opened.

SQL>

資料庫成功OPEN.

Advertisements

你可能會喜歡