佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > ORA-00392ORA-00312日志正在清除故障

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

熱門標(biāo)簽:地方門戶網(wǎng)站 網(wǎng)站排名優(yōu)化 呼叫中心市場需求 鐵路電話系統(tǒng) Linux服務(wù)器 AI電銷 百度競價排名 服務(wù)外包

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

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

一、故障現(xiàn)象

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 allowed
ORA-00312: online log 3 thread 1: '/oradata/sincnet/redo03.log'
-- 查看故障描述信息
SQL> ho 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.

--下面的SQL語句表名3個日志文件都處于clearing狀態(tài)
SQL> select group#,bytes/1024/1024||'M',status from v$log;

GROUP# BYTES/1024/1024||'M' STATUS
---------- ----------------------------------------- ----------------
1 50M CLEARING
3 50M CLEARING_CURRENT
2 50M CLEARING/code>

二、故障處理

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

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

您可能感興趣的文章:
  • Oracle數(shù)據(jù)庫系統(tǒng)緊急故障處理方法
  • ORACLE 報警日志如何查看?
  • oracle 如何關(guān)閉打開歸檔日志
  • Linux下Oracle歸檔日志自動清理腳本代碼(sh)
  • oracle 11g的警告日志和監(jiān)聽日志的刪除方法
  • ORACLE DATAGUARD中手工處理日志v$archive_GAP的方法
  • 教你怎樣用Oracle方便地查看報警日志錯誤

標(biāo)簽:仙桃 湖南 蘭州 衡水 湘潭 黃山 崇左 銅川

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ORA-00392ORA-00312日志正在清除故障》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    绥滨县| 赤峰市| 黄冈市| 三河市| 泰州市| 黑龙江省| 光山县| 桐庐县| 辽宁省| 祥云县| 黄石市| 吐鲁番市| 宁城县| 龙州县| 苗栗县| 青川县| 平泉县| 三台县| 丘北县| 太仆寺旗| 扶沟县| 谷城县| 乐安县| 平度市| 桃江县| 米易县| 门头沟区| 佳木斯市| 台东市| 镇康县| 焉耆| 安图县| 顺平县| 德昌县| 南川市| 平原县| 喜德县| 汾阳市| 哈尔滨市| 龙游县| 微山县|