執行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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- PbootCMS錯誤提示:執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- Abp框架之執行Update-Database 命令系列錯誤框架Database
- 升級提示 執行SQL發生錯誤!錯誤:duplicate column name: picstitleSQL
- win10執行jade提示399錯誤怎麼辦_win10執行jade提示399錯誤的解決方法Win10
- pbootcms升級提示 執行SQL發生錯誤!錯誤:duplicate column name: picstitlebootSQL
- 31.提示錯誤fopen_means Too many open files
- PBOOTCMS網站程式提示“執行SQL發生錯誤!錯誤:DISK I/O ERROR”boot網站SQLError
- alter database disable thread 2Databasethread
- 執行錯誤集
- 執行 valet 提示 sudo 問題和 undefined function Valet\collect () 錯誤的解決辦法UndefinedFunction
- Excel宏執行時提示錯誤1004的三個解決方法Excel
- 關於 SAP ABAP SYSTEM_SHM_OPEN_CHANGE_LOCK 執行時錯誤的問題
- 請問PBOOTCMS網站程式提示“執行SQL發生錯誤!錯誤:DISK I/O ERROR”怎麼辦boot網站SQLError
- IntelliJ IDEA 執行專案的時候提示 Command line is too long 錯誤IntelliJIdea
- 執行SQL發生錯誤!錯誤:disk I/O errorSQLError
- android.database.sqlite.SQLiteException: no such table錯誤AndroidDatabaseSQLiteException
- MySQL錯誤提示(10061)MySql
- PbootCMS執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- PbootCMS 執行SQL發生錯誤!錯誤: no such table:ay_configbootSQL
- ORA-279 signalled during: alter database recover logfileDatabase
- win10系統執行GTA5提示Unrecoverable Fault錯誤如何解決Win10
- Nessus提示API Disabled錯誤API
- onethink安裝提示錯誤
- 關於安裝ros和執行tuetlebot3的錯誤ROS
- 如何處理WordPress網站提示“建立資料庫連線時出錯”或“Error establishing a database connection”錯誤網站資料庫ErrorDatabase
- 教你如何解決win10執行msi提示錯誤程式碼2502的問題Win10
- 執行指令碼寫入中間表錯誤返回錯誤資訊指令碼
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- mysql執行函式出現1418錯誤MySql函式
- hadoop(二)—hadoop配置、執行錯誤總結Hadoop
- 網站提示400錯誤:錯誤請求怎麼辦網站
- win10系統無法執行掃描程式提示scanner錯誤怎麼解決Win10
- 安裝golang tour,提示錯誤Golang
- 如何關閉PHP錯誤提示PHP
- myeclipse中提示Hot Code Replace Failed提示窗錯誤EclipseAI
- win10執行com+應用程式編錄錯誤提示錯誤程式碼80040154-沒有註冊類怎麼解決Win10
- win10系統執行庫提示rundll32.exe應用程式錯誤如何解決Win10
- ThinkPHP框架中自定義錯誤頁面和提示頁面PHP框架