½Ã³ª¸®¿À14: Current Online Redo Log GroupÀÇ À¯½Ç - DB Open »óÅ - ¿ÏÀüº¹±¸
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-07-25 11:46:42
 

SQL> select v$logfile.member from v$logfile where group#=
  2  (select min(v$log.group#) from v$log where status='CURRENT');

MEMBER
------------------------------------------------------------
/home/human/oradata/HUMAN/redo02.log
/home/human/oradata/HUMAN/log02b.rdo

SQL> select * from v$log;

    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
        1          1        15  104857600          2 YES INACTIVE
      887751 25-JUL-03

        2          1        16  104857600          2 NO  CURRENT
      887753 25-JUL-03


SQL> !rm  $HOME/oradata/HUMAN/redo02.log

SQL> !rm $HOME/oradata/HUMAN/log02b.rdo

SQL> !ls $HOME/oradata/HUMAN/ 

1) Database°¡ ºñÁ¤»óÀûÀ¸·Î ¼öÇà È®ÀÎ

SQL> @LABS/moreemphist
<-- Hang »óÅ¿¡ ÀÖ´Ù¸é,    // ¸¸ÀÏ Instance°¡ Á×¾ú´Ù¸é ½Ã³ª¸®¿À 15¸¦ ¼öÇàÇÏ°í À̾ ÇÑ´Ù.

$ sqlplus '/as sysdba'

SQL> select * from v$log;

    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
        1          1        17  104857600          2 NO  CURRENT
      888035 25-JUL-03

        2          1        16  104857600          2 NO  INACTIVE
      887753 25-JUL-03

    --> current°¡ ¹Ù²î¾ú³×!!!

2) Recovery

SQL> alter database clear unarchived logfile group ?; 
          <-- À§¿¡¼­ »èÁ¦Çß´ø group¹øÈ£ ÀÔ·Â <-- Hang »óÅ¿¡ ÀÖ´ø °ÍÀÌ ÀÌÁ¦ Á¤»ó ÀÛµ¿(»ó´ë Å͹̳ο¡¼­ È®ÀÎ °¡´É) / log fileµµ »ý¼ºµÊ => À̶§ log´Â archive µÇÁö ¾Ê´Â´Ù.

SQL> select * from v$log;
        <-- current Redo log groupÀÇ LSNÈ®ÀÎ

SQL> !ls $HOME/arch/log/*    <-- current Redo log groupÀÇ LSNÈ®ÀΠ --16¹ø ºüÁü
1.ARC  11.ARC  13.ARC  15.ARC  18.ARC  2.ARC  4.ARC  6.ARC  8.ARC
10.ARC  12.ARC  14.ARC  17.ARC  19.ARC  3.ARC  5.ARC  7.ARC  9.ARC

µû¶ó¼­ whole backupÀ» ¹Þ¾Æ¾ß ÇÑ´Ù.

SQL> !rm $HOME/arch/log/*

SQL> @LABS/onlinebackup.sql

SQL> alter system switch logfile; <-- 4¹ø ½ÇÇàÇÑ´Ù

SQL> !ls $HOME/arch/log/


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦