国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Oracle > 正文

ORA-00392ORA-00312日志正在清除故障

2024-08-29 13:58:56
字體:
來源:轉載
供稿:網友
這篇文章主要介紹了ORA-00392ORA-00312日志正在清除故障的相關資料,需要的朋友可以參考下
 

最近在還原Oracle數據庫后open的時候碰到了ORA-00392: log 3 of thread 1 is being cleared, operation not allowed,其字面含義則是日志文件正在被清除,不允許操作。

通常情況下,當我們基于不完全恢復的時候,日志文件需要被清空,而此時是正在被清空。不是很好理解啊。下面是這個問題的解決方案。

一、故障現象

<code class="hljs vhdl">SQL> alter database open resetlogs;alter database open resetlogs*ERROR at line 1:ORA-00392: log 3 of thread 1 is being cleared, operation not allowedORA-00312: online log 3 thread 1: '/oradata/sincnet/redo03.log'-- 查看故障描述信息SQL> ho oerr ora 0039200392, 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.--下面的SQL語句表名3個日志文件都處于clearing狀態SQL> select group#,bytes/1024/1024||'M',status from v$log;GROUP# BYTES/1024/1024||'M' STATUS---------- ----------------------------------------- ----------------1 50M CLEARING3 50M CLEARING_CURRENT2 50M CLEARING</code>

二、故障處理

<code class="hljs vhdl"><code class="hljs vhdl">下面直接執行clear logfile 命令SQL> ALTER DATABASE CLEAR LOGFILE GROUP 1;Database altered.SQL> ALTER DATABASE CLEAR LOGFILE GROUP 2;Database altered.SQL> ALTER DATABASE CLEAR LOGFILE GROUP 3;Database altered.--再次查看狀態,此時狀態顯示為常見的幾種正常狀態SQL> select group#,bytes/1024/1024||'M',status from v$log;GROUP# BYTES/1024/1024||'M' STATUS---------- ----------------------------------------- ----------------1 50M UNUSED3 50M CURRENT2 50M UNUSED--再次嘗試open resetlog,依舊錯誤,實例終止,需要upgradeSQL> alter database open resetlogs;alter database open resetlogs*ERROR at line 1:ORA-01092: ORACLE instance terminated. Disconnection forcedORA-00704: bootstrap process failureORA-39700: database must be opened with UPGRADE optionProcess ID: 30553Session ID: 1217 Serial number: 3--查看是否存在pmon進程SQL> ho ps -ef|grep pmonoracle 30589 30440 0 16:02 pts/1 00:00:00 /bin/bash -c ps -ef|grep pmonoracle 30591 30589 0 16:02 pts/1 00:00:00 grep pmon--Author : Leshami--Blog : http://blog.csdn.net/leshami--下面嘗試upgrade,因為當前基于一個11.2.0.1的備份恢復到11.2.0.4,所以需要upgradeSQL> startup upgrade;ORA-24324: service handle not initializedORA-01041: internal error. hostdef extension doesn't existSQL> SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options[oracle@10134569 DBSRV]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Wed Feb 24 16:03:15 2016Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to an idle instance.SQL> startup upgrade;ORACLE instance started.Total System Global Area 1068937216 bytesFixed Size 2260088 bytesVariable Size 704643976 bytesDatabase Buffers 352321536 bytesRedo Buffers 9711616 bytesDatabase mounted.Database opened.SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql; --執行升級腳本</code></code>

關于ORA-00392ORA-00312日志正在清除故障的教程小編就給大家介紹這么多,希望對大家有所幫助!



發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 始兴县| 格尔木市| 东宁县| 简阳市| 高台县| 抚宁县| 固始县| 嘉祥县| 龙井市| 嘉善县| 东光县| 高阳县| 七台河市| 驻马店市| 波密县| 合阳县| 辽宁省| 宜春市| 洪江市| 雷州市| 高邮市| 双桥区| 南雄市| 长沙市| 古交市| 疏附县| 沐川县| 富川| 泽州县| 建昌县| 普洱| 泽库县| 嘉黎县| 陇川县| 襄汾县| 长宁县| 北海市| 罗平县| 凤冈县| 东阿县| 洞头县|