数据库一致关闭后REDO LOG全部丢失的解决办法

来源:互联网 发布:mac ai如何剪切图片 编辑:程序博客网 时间:2024/04/30 01:45

C:Documents and SettingsAdministrator>sqlplus /nolog

SQL*Plus: Release 9.2.0.6.0 - Production on Fri Nov 17 23:31:22 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.

Total System Global Area 135340020 bytes
Fixed Size 454644 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: 'D:ORACLEORADATAZHANGYEREDO01.LOG'


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01139: RESETLOGS option only valid after an incomplete database recovery


SQL> recover database until cancel;
Media recovery complete.
SQL> alter database open resetlogs;

Database altered.

SQL>

 
原创粉丝点击