第一步:全備datafile,controlfile,spfile/pfile
創(chuàng)新互聯(lián)主營(yíng)稱多網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,成都APP應(yīng)用開發(fā),稱多h5成都微信小程序搭建,稱多網(wǎng)站營(yíng)銷推廣歡迎稱多等地區(qū)企業(yè)咨詢第二步:恢復(fù)日志。(原冷備的日志沒有用,千萬(wàn)不要用?。?/p>SQL> select member from v$logfile;
/ora/app/oracle/oradata/orcl/redo03.log
/ora/app/oracle/oradata/orcl/redo02.log
/ora/app/oracle/oradata/orcl/redo01.log
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 10
Current log sequence 12
SQL> ho rm $ORACLE_BASE/oradata/orcl/redo*.log --模擬日志文件丟失。
SQL> ho ls $ORACLE_BASE/oradata/orcl/redo*.log
ls: cannot access /ora/app/oracle/oradata/orcl/redo*.log: No such file or directory
SQL> startup force
ORACLE instance started.
Total System Global Area 1536602112 bytes
Fixed Size 2213616 bytes
Variable Size 956303632 bytes
Database Buffers 570425344 bytes
Redo Buffers 7659520 bytes
Database mounted.
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/ora/app/oracle/oradata/orcl/redo03.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
SQL> alter database open resetlogs; --第一步
alter database open resetlogs
*
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery
SQL> recover database using backup controlfile; --第二步
ORA-00279: change 1384991 generated at 05/22/2016 20:05:08 needed for thread 1
ORA-00289: suggestion : /ora/app/oracle/flash_recovery_area/ORCL/archivelog/2016_05_22/o1_mf_1_12_%u_.arc
ORA-00280: change 1384991 for thread 1 is in sequence #12
Specify log: { 另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
名稱欄目:ORACLE非歸檔模式下REDO日志丟失修復(fù)-創(chuàng)新互聯(lián)
網(wǎng)站URL:http://weahome.cn/article/ppjjh.html