¹é¾÷°ú º¹±¸ (Hot backup)
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-04-18 14:53:29
 

hot backupÀº ±âº»ÀûÀ¸·Î archive mode ¿¡¼­¸¸ °¡´ÉÇÏ´Ù

1. ÀÚµ¿À¸·Î archiving ÇϱâÀ§Çؼ­ ?/dbs/initSID.ora ÆÄÀÏ¿¡ ´ÙÀ½ ³»¿ë Ãß°¡ÇÑ´Ù.
LOG_ARCHIVE_START=TRUE
LOG_ARCHIVE_DEST=/arch/log
LOG_ARCHIVE_FORMAT=%s.arc

2. µ¥ÀÌŸº£À̽º¸¦ archive mode·Î Àüȯ
$sqlplus "sys/change_on_install as sysdba"
SQL>startup mount
SQL>alter database archivelog;
SQL>alter database open;

3. archiving »óȲÀ» display À§Çؼ­
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival            Enabled
Archive destination            /opt/oracle/arch/log
Oldest online log sequence    89
Next log sequence to archive  92
Current log sequence          92


4. hot backupÀº ¾î¶»°Ô Çϴ°¡?
  archive ¸ðµå°¡ È°¼ºÈ­ µÈ »óÅ¿¡¼­ tablespace ´ÜÀ§·Î ¹é¾÷ÇØ¾ß ÇÑ´Ù.
SQL> alter tablespace system begin backup;
$tar zcvf systemback.tar /opt/oracle/oradata/dbs/syst01.dbf
SQL> alter tablespace system end backup;

SQL> alter tablespace nanu01 begin backup;
$tar zcvf nanuback.tar /opt/oracle/oradata/dbs/nanu01.dbf
SQL> alter tablespace nanu01 end backup;

5. º¹±¸´Â ¾î¶»°Ô Çϴ°¡?
1) ÀÏ¹Ý Å×ÀÌºí½ºÆäÀ̽º(non-system tablespace) µ¥ÀÌÅÍ ÆÄÀÏÀÌ  corruptµÈ °æ¿ì
- corruptµÈ datafileÀ» »èÁ¦ÇÏ°í backupµÈ ÆÄÀÏÀ» restore½ÃŲ´Ù.
$ tar zxvf nanuback.tar
SQL> startup mount
SQL> recover datafile '/opt/oracle/oradata/dbs/nanu01.dbf';
SQL> alter datafile open;

2) system tablespace µ¥ÀÌÅÍ ÆÄÀÏÀÌ corruptµÈ °æ¿ì
- corruptµÈ datafileÀ» »èÁ¦ÇÏ°í backupµÈ ÆÄÀÏÀ» restore½ÃŲ´Ù
$ tar zxvf systemback.tar
SQL> startup mount
SQL> recover database;
SQL> alter database open;


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