SQL> alter database add logfile member '/tmp/redo033.log' to group 3;
Database altered.
SQL> ho
$ ls -la /tmp/redo033.log
-rw-r----- 1 oracle oinstall 52429312 May 19 17:13 /tmp/redo033.log
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 436 52428800 2 YES ACTIVE 32611337 19-MAY-08
2 1 437 52428800 2 NO CURRENT 32611361 19-MAY-08
3 1 435 52428800 3 YES INACTIVE 32611335 19-MAY-08
$ rm /tmp/redo033.log
SQL> alter system switch logfile;
-----------
NO ERROR:
-----------
Check alert log:
Errors in file testdb_arc0_25296.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/tmp/redo033.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
SQL> alter database drop logfile member '/tmp/redo033.log';
Database altered.
SQL> alter database add logfile member '/tmp/redo033.log' to group 3;
Database altered.
------------------------------
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ---------
1 1 463 52428800 2 YES ACTIVE 32612535 19-MAY-08
2 1 462 52428800 2 YES ACTIVE 32612521 19-MAY-08
3 1 464 52428800 3 NO CURRENT 32612545 19-MAY-08
SQL> ho
$ rm /tmp/redo033.log
SQL> alter system switch logfile;
-----------
NO ERROR:
-----------
Check alert log:
Errors in file testdb_m000_14312.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/tmp/redo033.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Thread 1 cannot allocate new log, sequence 466
SQL> alter database drop logfile member '/tmp/redo033.log';
Database altered.
SQL> alter database add logfile member '/tmp/redo033.log' to group 3;
Database altered.
--------------------------------
ไม่มีความคิดเห็น:
แสดงความคิดเห็น