修改了硬件時(shí)間后導(dǎo)致oracle無法正常啟動怎么辦-創(chuàng)新互聯(lián)

這篇文章主要介紹“修改了硬件時(shí)間后導(dǎo)致oracle無法正常啟動怎么辦”,在日常操作中,相信很多人在修改了硬件時(shí)間后導(dǎo)致oracle無法正常啟動怎么辦問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”修改了硬件時(shí)間后導(dǎo)致oracle無法正常啟動怎么辦”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

我們提供的服務(wù)有:成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、奉賢ssl等。為千余家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的奉賢網(wǎng)站制作公司
[root@lzr1 ~]#  hwclock --set --date="01/19/19 18:06" 
[root@lzr1 ~]#  hwclock --hctosys

修改了下系統(tǒng)時(shí)間

然后重啟機(jī)器

[root@lzr1 ~]# reboot
[root@lzr1 ~]# 
Broadcast message from root@lzr1
        (/dev/pts/0) at 18:06 ...
The system is going down for reboot NOW!

重啟后進(jìn)入sqlplus

[oracle@lzr1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Sat Jan 19 18:08:04 2019
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to an idle instance.
SQL>

發(fā)現(xiàn)空實(shí)例,startup一下

SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA01/orcl/spfileorcl.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA01/orcl/spfileorcl.ora
ORA-15056: additional error message
ORA-17503: ksfdopn:2 Failed to open file +DATA01/orcl/spfileorcl.ora
ORA-15001: diskgroup "DATA01" does not exist or is not mounted
ORA-06512: at line 4

提示無法識別控制文件和參數(shù)文件

先用之前的參數(shù)文件啟動到nomount狀態(tài)

[oracle@lzr1 pfile]$ pwd
/u01/app/oracle/admin/orcl/pfile
[oracle@lzr1 pfile]$ ls
init.ora.11142018235636
[oracle@lzr1 pfile]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Sat Jan 19 18:11:19 2019
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup nomount pfile='/u01/app/oracle/admin/orcl/pfile/init.ora.11142018235636';
ORACLE instance started.
Total System Global Area 1202556928 bytes
Fixed Size                  2252704 bytes
Variable Size             822083680 bytes
Database Buffers          369098752 bytes
Redo Buffers                9121792 bytes
SQL> create spfile from pfile;
File created.

再去找一下控制文件cat init.ora.11142018235636

最下面一行是

control_files=("+DATA01/orcl/controlfile/current.260.996015513", "+FRA/orcl/controlfile/current.256.994895415")

進(jìn)入磁盤中看一下控制文件

[grid@lzr1 ~]$ asmcmd
ASMCMD> ls
DATA/
DATA01/
FRA/
ASMCMD> cd +DATA01/orcl/controlfile

將DATA01和FRA兩個控制文件的文件名修改到pfile參數(shù)文件中,保存,再啟動數(shù)據(jù)庫即可

注:

不要修改硬件時(shí)間,會導(dǎo)致開機(jī)時(shí)提示

Checking filesystems
/dev/mapper/VolGroup-lv_root: Superblock last mount time (Thu Jul 31 11:12:34 2014,
now = Mon Jul 28 11:15:32 2014) is in the future.

/dev/mapper/VolGroup-lv_root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i .e., without -a or -p options)
[FAILED]

*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell,
*** Warning -- SELinux is active
*** Disabling security enforcement for system recovery.
*** Run *setenforce 1* to reenable.
Give root password for maintenance
(or type Control-D to continue):

上次裝載superblock時(shí)間和現(xiàn)在時(shí)間不一致,磁盤無法正常工作

解決辦法:

1. 拿安裝盤啟動
2. 把日期調(diào)到較早的時(shí)候
3. 磁盤檢查
4. 硬盤啟動,把時(shí)間改正常

到此,關(guān)于“修改了硬件時(shí)間后導(dǎo)致oracle無法正常啟動怎么辦”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

當(dāng)前標(biāo)題:修改了硬件時(shí)間后導(dǎo)致oracle無法正常啟動怎么辦-創(chuàng)新互聯(lián)
URL地址:http://muchs.cn/article20/diecco.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、網(wǎng)站制作、營銷型網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)公司外貿(mào)建站、ChatGPT

廣告

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

成都做網(wǎng)站