淘先锋技术网

首页 1 2 3 4 5 6 7
昨天发现无法登录Oracle数据库,通过sqlplus工具open数据库时报如下错误:

alter database open
*
ERROR at line 1:
ORA-00322: log 2 of thread 1 is not current copy
ORA-00312: online log 2 thread 1: '/opt/oracle/oradata/dfecr/redo02.log'

通过上网寻找到如下解决方法:
1. shutdown immediate;
2. startup mount;
3. alter database clear logfile 'opt\oracle\oradata\oradb\REDO02.LOG';
4. alter database open;

按上述步骤操作后则数据库成功open,
SQL> select status from v$instance;

STATUS
------------
OPEN

详细问题解决说明,参见如下连接:
http://blog.csdn.net/csucxcc/archive/2008/10/25/3141452.aspx