執行alter database open resetlogs提示ORA-00392和ORA-00312錯誤
問題現象:開啟資料庫,提示錯誤
RMAN> alter database open resetlogs; RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of alter db command at 12/17/2018 11:22:26 ORA-00392: log 2 of thread 1 is being cleared, operation not allowed ORA-00312: online log 2 thread 1: '/u02/app/oracle/oradata/cams/redo02.log'
問題描述
[oracle@SIT130093 ~]$ oerr ORA 00392 00392, 00000, "log %s of thread %s is being cleared, operation not allowed" // *Cause: An operation encountered this online log in the middle of being // cleared. The command that began the clearing may have terminated // without completing the clearing. // *Action: If the clear command is still executing then wait for its // completion. If it terminated then reissue the clear command, or // drop the log.
解決方案
SYS@cams>select GROUP#,STATUS from v$log; GROUP# STATUS ---------- ---------------- 1 CLEARING 3 CLEARING 2 CLEARING_CURRENT SYS@cams>alter database clear logfile group 1; Database altered. SYS@cams>alter database clear logfile group 2; Database altered. SYS@cams>alter database clear logfile group 3; Database altered. SYS@cams>select GROUP#,STATUS from v$log; GROUP# STATUS ---------- ---------------- 1 UNUSED 3 UNUSED 2 CURRENT
RMAN> alter database open resetlogs; database opened
如果使用clear logfile的方案不好使,可採用如下方案:
Recreate the controflile with the RESETLOGS option. 1) Get the controlfile trace from below command : SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/tmp/control.sql' resetlogs ; 2) Modify the CREATE CONTROLFILE script /tmp/control.sql and ensure that all directories for the online redo logs exist and Oracle has permission to write to it 3) Create the controlfile in NOMOUNT state : SQL> STARTUP FORCE NOMOUNT SQL> @/tmp/control.sql controlfile created 4) Run a fake recovery : SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL ; Type <CANCEL> when prompted 5) Open with RESETLOGS option: SQL> ALTER DATABASE OPEN RESETLOGS;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31394774/viewspace-2285953/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter database open resetlogs;Database
- ALTER DATABASE RESETLOGS 的作用Database
- 請教執行錯誤提示
- 部署 11G 物理DataGuard時 ALTER DATABASE OPEN 報錯Database
- Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION`Database
- PbootCMS錯誤提示:執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- alter database和alter system和alter session的區別DatabaseSession
- 使用rman執行recover database 的時候出現RMAN-06054的錯誤提示Database
- Abp框架之執行Update-Database 命令系列錯誤框架Database
- 升級提示 執行SQL發生錯誤!錯誤:duplicate column name: picstitleSQL
- ORA-00312錯誤分析
- pbootcms升級提示 執行SQL發生錯誤!錯誤:duplicate column name: picstitlebootSQL
- Open Resetlogs Reports Errors ORA-00313 and ORA-00312 to Alert_1366482.1Error
- PBOOTCMS網站程式提示“執行SQL發生錯誤!錯誤:DISK I/O ERROR”boot網站SQLError
- ORA-1113 signalled during: alter database open...Database
- win10執行jade提示399錯誤怎麼辦_win10執行jade提示399錯誤的解決方法Win10
- 執行錯誤集
- alter database in OracleDatabaseOracle
- 忍不住問下alter system 和alter database的區別Database
- 執行 valet 提示 sudo 問題和 undefined function Valet\collect () 錯誤的解決辦法UndefinedFunction
- LoadRunner在執行時常見的提示錯誤和解決方法
- alter database datafile offline and alter database tablespace ...offlineDatabase
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- 關於 SAP ABAP SYSTEM_SHM_OPEN_CHANGE_LOCK 執行時錯誤的問題
- Struts1.1執行錯誤!
- 請問PBOOTCMS網站程式提示“執行SQL發生錯誤!錯誤:DISK I/O ERROR”怎麼辦boot網站SQLError
- open resetlogs後資料恢復資料恢復
- 執行SQL發生錯誤!錯誤:disk I/O errorSQLError
- Excel宏執行時提示錯誤1004的三個解決方法Excel
- RAC 例項不能啟動 ORA-1589 signalled during ALTER DATABASE OPENDatabase
- alter database offline 與 alter database offline drop效果比對Database
- 執行Bex 出現 61704 錯誤
- 求救!!!!!!jsp執行錯誤;(轉)JS
- autotrace 和explain plan for可能導致執行計劃錯誤AI
- PbootCMS執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- PHPmake錯誤:undefinedreferencetolibiconv_openPHPUndefined
- Linux錯誤:xhost unable to open displayLinux