最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

 更新時(shí)間:2016年03月18日 11:26:36   作者:樂(lè)沙彌的世界  
這篇文章主要介紹了ORA-00392ORA-00312日志正在清除故障的相關(guān)資料,需要的朋友可以參考下

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

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

一、故障現(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語(yǔ)句表名3個(gè)日志文件都處于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),此時(shí)狀態(tài)顯示為常見(jiàn)的幾種正常狀態(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,依舊錯(cuò)誤,實(shí)例終止,需要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進(jìn)程
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,因?yàn)楫?dāng)前基于一個(gè)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í)行升級(jí)腳本</code></code>

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

相關(guān)文章

最新評(píng)論

远安县| 许昌市| 隆昌县| 柳林县| 彰化市| 达日县| 永清县| 乌审旗| 安新县| 行唐县| 库尔勒市| 苏尼特右旗| 马边| 新营市| 贵港市| 新密市| 赣榆县| 曲周县| 德江县| 长岛县| 乌海市| 皋兰县| 鄱阳县| 山阴县| 海口市| 萝北县| 景洪市| 常州市| 于田县| 四会市| 浙江省| 库尔勒市| 平度市| 家居| 平江县| 普兰店市| 乐业县| 阿瓦提县| 肇东市| 应城市| 天长市|