oracle10g archive mode º¯°æ ¹æ¹ý
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2007-07-10 09:16:22
 

oracle10g archive mode º¯°æ ¹æ¹ý


1. ÀÌÀü ¹öÀü°ú º¯°æ »çÇ×
  -  LOG_ARCHIVE_START parameter°¡ ´õ ÀÌ»ó »ç¿ëµÇÁö ¾ÊÀ½
    (¼³Á¤ÇÏ½Ã¸é ´õ ÀÌ»ó Áö¿ø µÇÁö ¾Ê´Â parameter¶ó´Â ³»¿ëÀÇ ¸Þ¼¼Áö°¡ ¶ä)
  -  LOG_ARCHIVE_FORMATµµ ÀÌÀüÀÇ ÀÚÀ¯·Î¿î À̸§ ºÙÀ̱⿡¼­
      %s,%t,%r À» Æ÷ÇÔÇØ¾ß ÇÕ´Ï´Ù.
      ¿¹: log_archive_format = arch_%s_%t_%r.arc
      (´©¶ôµÇ´Â ¿É¼ÇÀÌ ÀÖÀ» °æ¿ì ORA-19905 ¿¡·¯ ¹ß»ýÇÔ)
  -  LOG_ARCHIVE_DEST´Â ´õ ÀÌ»ó Áö¿øµÇÁö ¾Ê½À´Ï´Ù. ¹Ýµå½Ã _1 ¸¦ ºÙÀÌ¼Å¾ß ÇÔ
      LOG_ARCHIVE_DEST_1 = "location=/home14/ARCH/TEST"

2. ¼³Á¤ ¹æ¹ý
    ¼³Á¤ ¹æ¹ýÀº ÀÌÀü°ú µ¿ÀÏÇÕ´Ï´Ù.

  2.1 initSID.ora file¿¡ ¾Æ·¡ÀÇ Ç׸ñ Ãß°¡
        vi initTEST.ora
        log_archive_dest_1 = "location=/home14/ARCH/TEST"
        log_archive_format = arch_%s_%t_%r.arc

  2.2 Archive Mode ¹Ý¿µÇϱâ
        su - oracle (oracle user)
        sqlplus "/as sysdba"
        SQL> shutdown immediate (abort´Â ¾ÈµÊ)
        SQL> startup mount
        SQL> alter database archivelog;
        SQL> archive log list
        SQL> alter database open;


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