成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

oracle安裝完無法登陸數(shù)據(jù)庫

今天靜默安裝完oracle11gr2版本后,連入數(shù)據(jù)庫后,出現(xiàn)如下情況:

十年專注建站、設(shè)計、互聯(lián)網(wǎng)產(chǎn)品按需制作服務(wù),業(yè)務(wù)涵蓋品牌網(wǎng)站制作、商城網(wǎng)站建設(shè)、微信平臺小程序開發(fā)、軟件系統(tǒng)開發(fā)、手機APP定制開發(fā)等。憑借多年豐富的經(jīng)驗,我們會仔細了解每個客戶的需求而做出多方面的分析、設(shè)計、整合,為客戶設(shè)計出具風格及創(chuàng)意性的商業(yè)解決方案,創(chuàng)新互聯(lián)更提供一系列網(wǎng)站制作和網(wǎng)站推廣的服務(wù),以推動各中小企業(yè)全面信息數(shù)字化,并利用創(chuàng)新技術(shù)幫助各行業(yè)提升企業(yè)形象和運營效率。

[oracle@oracle response]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 29 09:04:40 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.                                                  

SQL> shutdown immediate;

ORA-01034: ORACLE not available

ORA-27101: shared memory realm does not exist

Linux-x86_64 Error: 2: No such file or directory

SQL> alter system register;

alter system register

*

ERROR at line 1:

ORA-01034: ORACLE not available

Process ID: 0

Session ID: 0 Serial number: 0

于是上網(wǎng)查了一下資料,排除了內(nèi)存不足問題,說是數(shù)據(jù)庫沒有打開,然后嘗試重新打開,結(jié)果還是報錯。如下:

SQL> startup mount;

ORA-01078: failure in processing system parameters

LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initORCL.ora'

根據(jù)提示查找initORCL.ora文件,發(fā)現(xiàn)沒有。于是將$ORACLE_BASE/admin/orcl/pfile目錄下的init.ora.***形式的文件copy到$ORACLE_HOME/dbs目錄下重命名為initORCL.ora即可。(注:initORCL.ora中的orcl為你的實例名 ORACLE_SID,這里我的SID為:ORCL)

或者將$ORACLE_HOME/dbs目錄下spflieoracl.ora改名為spfileORCL.ora即可。(注:spfileORCL.ora中的ORCL為環(huán)境變量中設(shè)置的SID)

[oracle@oracle ~]$ cp /u01/app/oracle/admin/orcl/pfile/init.ora.82920179156 $ORACLE_HOME/dbs/initORCL.ora

[oracle@oracle ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 29 11:58:27 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup mount;

ORACLE instance started.

Total System Global Area  626327552 bytes

Fixed Size                  2215944 bytes

Variable Size             184553464 bytes

Database Buffers          436207616 bytes

Redo Buffers                3350528 bytes

ORA-01102: cannot mount database in EXCLUSIVE mode

嘗試正常關(guān)閉數(shù)據(jù)庫:

SQL> shutdown immediate;

ORA-01507: database not mounted

ORACLE instance shut down.

查了一下資料,發(fā)現(xiàn)是lk<SID>文件造成的,該文件位于ORALCE_HOME下的dbs目錄下,馬上檢查該文件:

[oracle@oracle ~]$ ls $ORACLE_HOME/dbs

hc_DBUA0.dat  hc_ORCL.dat  initORCL.ora  orapworcl

hc_orcl.dat   init.ora     lkORCL        spfileorcl.ora

[oracle@oracle dbs]$ fuser -u lkORCL

lkORCL:               7621(oracle)  7627(oracle)  7631(oracle)  7633(oracle)  7637(oracle)  7639(oracle)  7641(oracle)  7643(oracle)  7645(oracle)  7647(oracle)  7649(oracle)  7651(oracle)  7663(oracle)  7680(oracle)  7682(oracle)  7684(oracle)  7692(oracle)  8272(oracle)

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

[oracle@oracle dbs]$ fuser -k lkORCL

lkORCL:               7621  7627  7631  7633  7637  7639  7641  7643  7645  7647  7649  7651  7663  7680  7682  7684  7692  8272

[oracle@oracle dbs]$ fuser -u lkORCL

然后:

SQL> startup mount;

ORACLE instance started.

Total System Global Area  626327552 bytes

Fixed Size                  2215944 bytes

Variable Size             184553464 bytes

Database Buffers          436207616 bytes

Redo Buffers                3350528 bytes

Database mounted.

在進行歸檔時發(fā)現(xiàn):

SQL> alter database archivelog;

alter database archivelog

*

ERROR at line 1:

ORA-00265: instance recovery required, cannot set ARCHIVELOG mode

繼續(xù)查資料,發(fā)現(xiàn)需要先將數(shù)據(jù)庫起到open狀態(tài):

SQL> alter dababase open;

alter dababase open

      *

ERROR at line 1:

ORA-00940: invalid ALTER command

發(fā)現(xiàn)還是報錯,繼續(xù)查資料,找到一個datafile被offline的解決辦法。解決辦法。

shutdown immediate
startup mount

recover datafile 2

alter database datafile 2 online
alter datebase open

結(jié)果如下:

SQL> recover datafile 2;

Media recovery complete.

SQL> alter database datafile 2 online;

Database altered.

SQL> alter database open;

Database altered.


然后對數(shù)據(jù)庫進行重啟,問題解決。

靜默安裝了很多次,頭一次出現(xiàn)安裝好就無法登陸數(shù)據(jù)庫的問題,折騰到半夜兩點,還是度參數(shù)不熟悉,繼續(xù)努力吧!

本文名稱:oracle安裝完無法登陸數(shù)據(jù)庫
瀏覽地址:http://jinyejixie.com/article38/jojopp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、網(wǎng)站導航、網(wǎng)站營銷、網(wǎng)站制作、企業(yè)網(wǎng)站制作關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設(shè)
库伦旗| 余庆县| 义乌市| 宣汉县| 泸溪县| 玛沁县| 五常市| 四平市| 东阿县| 永和县| 东海县| 香港| 白玉县| 水城县| 巨野县| 永新县| 阳原县| 汕头市| 永和县| 普格县| 乌拉特中旗| 沙雅县| 柘城县| 永登县| 冀州市| 连云港市| 尖扎县| 平利县| 积石山| 鲜城| 辉南县| 普陀区| 新乡市| 民权县| 信丰县| 济宁市| 梨树县| 保定市| 原平市| 萨嘎县| 乌海市|