1.現(xiàn)象
公司主營業(yè)務(wù):網(wǎng)站設(shè)計(jì)、成都網(wǎng)站制作、移動(dòng)網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實(shí)現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競爭能力。成都創(chuàng)新互聯(lián)公司是一支青春激揚(yáng)、勤奮敬業(yè)、活力青春激揚(yáng)、勤奮敬業(yè)、活力澎湃、和諧高效的團(tuán)隊(duì)。公司秉承以“開放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對(duì)我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團(tuán)隊(duì)有機(jī)會(huì)用頭腦與智慧不斷的給客戶帶來驚喜。成都創(chuàng)新互聯(lián)公司推出前鋒免費(fèi)做網(wǎng)站回饋大家。由于之前啟動(dòng)過一次報(bào)錯(cuò),首先關(guān)閉數(shù)據(jù)庫,然后重啟
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on 星期二 5月 26 15:36:50 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
連接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE 例程已經(jīng)關(guān)閉。
SQL>
SQL> startup
ORACLE 例程已經(jīng)啟動(dòng)。
Total System Global Area 5.3447E+10 bytes
Fixed Size 2232248 bytes
Variable Size 3.2481E+10 bytes
Database Buffers 2.0938E+10 bytes
Redo Buffers 26517504 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
SQL>
SQL> exit
從 Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 斷開
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on 星期二 5月 26 15:43:32 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
連接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE 例程已經(jīng)關(guān)閉。
SQL>
SQL> exit
從 Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 斷開
2.分析原因
到$ORACLE_HOME/dbs下找到lk開頭文件,這個(gè)錯(cuò)誤主要是lk
它的主要作用是說明DATABASE MOUNT上了,不用在MOUNT了;DATABASE UNMOUNT 后會(huì)自動(dòng)刪除,但異常情況時(shí)文件存在的話,即使數(shù)據(jù)庫已經(jīng)停掉,系統(tǒng)也會(huì)認(rèn)為數(shù)據(jù)庫已經(jīng)mount了
$ cd $ORACLE_HOME/dbs
$ ls -l
total 96
-rw-rw---- 1 oracle oinstall 1544 Nov 17 2014 hc_DBUA0.dat
-rw-rw---- 1 oracle oinstall 1544 Nov 17 2014 hc_itdb1.dat
-rw-rw---- 1 oracle oinstall 1544 May 26 15:43 hc_itsys.dat
-rw-rw---- 1 oracle oinstall 1544 May 26 15:43 hc_itsys1.dat
-rw-rw---- 1 oracle oinstall 1544 May 13 16:16 hc_orcl.dat
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 24 Nov 17 2014 lkITSYS1
-rw-r----- 1 oracle oinstall 24 Aug 04 2014 lkORCL
-rw-r----- 1 oracle oinstall 1536 Nov 17 2014 orapwitsys1
-rw-r----- 1 oracle oinstall 1536 Aug 04 2014 orapworcl
-rw-r----- 1 oracle oinstall 2560 May 05 10:15 spfileitsys1.ora
-rw-r----- 1 oracle oinstall 2560 Feb 10 22:00 spfileorcl.ora
3.解決方法
用fuser命令kill掉占用lkITSYS1文件的進(jìn)程
$ fuser -k lkITSYS1
lkITSYS1: 5701814 5767372 5832954 6946854 7209198 7667712 7930062 8323164 8388624 8847426 9306156 9633968 9699564 9895986 16187422
$ fuser -u lkITSYS1
lkITSYS1:
$
$
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on 星期二 5月 26 15:46:35 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
已連接到空閑例程。
SQL>
SQL> startup
ORACLE 例程已經(jīng)啟動(dòng)。
Total System Global Area 5.3447E+10 bytes
Fixed Size 2232248 bytes
Variable Size 3.2481E+10 bytes
Database Buffers 2.0938E+10 bytes
Redo Buffers 26517504 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
SQL>