oracle 中 移动logfile :出错

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: '/kuozhan/test/redo03.log'


移动到最后一步出错!~

前面几步的操作是:
shutdown immediate
ho mv /opt/oracle/oradate/orcl/redo03.log /kuo/test/
startup mount
alter database rename file '/opt/oracle/oradate/orcl/redo03.log' to '/kuo/test/log03.log';
alter database open;--->就是在这里出现上面的错误!

可能是删除的日志是current状态的原因!但是怎么解决呢?现在数据库到不了open了!

开始不知道怎么办,结果把group 1 删除了,现在使用如下方法恢复:
alter database until cancel;
alter datebase  open resetlogs;
shutdown immediate
startup
到此正常启动,OK!

附上操作过程以及现象;
SQL> startup mount
ORACLE instance started.

Total System Global Area  608174080 bytes
Fixed Size                  1220820 bytes
Variable Size             184553260 bytes
Database Buffers          415236096 bytes
Redo Buffers                7163904 bytes
Database mounted.
SQL> recover database until cancel
Media recovery complete.
SQL> alter database open
  2  ;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

SQL> alter database open resetlogs;

Database altered.

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01531: a database already open by the instance


SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area  608174080 bytes
Fixed Size                  1220820 bytes
Variable Size             188747564 bytes
Database Buffers          411041792 bytes
Redo Buffers                7163904 bytes
Database mounted.
Database opened.

SQL> select group#,status from v$log;

    GROUP# STATUS
---------- ----------------
         2 UNUSED
         3 CURRENT


日志组变成2个了,但是oracle启动成功了。




你可能感兴趣的:(oracle,职场,logfile,休闲)