°³¿ä
Recovery Manager´Â DBA°¡ °­·ÂÇÑ ¿î¿µÃ¼Á¦ µ¶¸³ ½ºÅ©¸³Æ® ¾ð¾î·Î ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÇÁ·Î¼¼½º¸¦ °ü¸®Çϴµ¥ µµ¿òÀ» ÁÖ´Â ¿À¶óŬ À¯Æ¿¸®Æ¼ÀÔ´Ï´Ù. Recovery ManagerÀÇ ±â´ÉÀº ¸í·É ¶óÀÎ ÀÎÅÍÆäÀ̽º¿Í Oracle Enterprise Manager Backup Manager(GUI)¸¦ ÅëÇؼ­µµ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

Note: RMANÀÌ Á¢¼ÓÇÏ·Á´Â ´ë»ó µ¥ÀÌÅͺ£À̽º´Â ¸¶¿îÆ®µÇ°Å³ª ¿­·ÁÁ®¾ß¸¸ ÇÏ¸ç º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ »ç¿ëµÇ¸é Ä«Å»·Î±× µ¥ÀÌÅͺ£À̽º°¡ ¿­·ÁÁ®¾ß¸¸ ÇÕ´Ï´Ù.

Recovery Process ½ÃÀÛ ´Ü°è

 ´Ü°è¹øÈ£

  ¼³¸í

1

Recovery Manager »ç¿ëÀÚ ÇÁ·Î¼¼½º°¡ ½ÃÀ۵˴ϴÙ.

2

RMANÀÌ ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓÇÏ´Â ¼­¹ö ÇÁ·Î¼¼½º µÑÀ» »ý¼ºÇÕ´Ï´Ù.

3

µð½ºÅ©³ª Å×ÀÌÇÁ¿¡ ¾²±â À§ÇØ Ãß°¡ ¼­¹ö ÇÁ·Î¼¼½º°¡ »ý¼ºµË´Ï´Ù.

4

º¹±¸ Ä«Å»·Î±× µ¥ÀÌÅͺ£À̽º¿¡ÀÇ Á¢¼ÓÀº ¼±Åà »çÇ×ÀÔ´Ï´Ù.

5

±×·¡ÇÈ »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º(GUI)¸¦ »ç¿ëÇÏ´Â °ÍÀº ¼±Åà »çÇ×ÀÔ´Ï´Ù.


Recovery Manager

Recovery Manager´Â ¸ðµç ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷À» ÄÁÆ®·Ñ ÆÄÀÏ¿¡ ±â·ÏÇÕ´Ï´Ù. ¹é¾÷Àº ¹°¸®ÀûÀ¸·Î µð½ºÅ©³ª Å×ÀÌÇÁ¿¡ ÀúÀåµË´Ï´Ù. RMANÀº PL/SQL ÀÎÅÍÆäÀ̽º¸¦ ÅëÇØ ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷À» ¼öÇàÇϱâ À§ÇØ ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓÇÏ´Â ¼­¹ö ÇÁ·Î¼¼½º¸¦ (ä³ÎÀ» ÇÒ´çÇÏ¿©) »ý¼ºÇÔÀ¸·Î½á ¿À¶óŬ ¼­¹ö¿Í »óÈ£ ÀÛ¿ëÇÕ´Ï´Ù.

MML(Media Management Layer)
Å×ÀÌÇÁ¿¡ ¾²±â¸¦ ÇÏ·Á¸é Ãß°¡ ¸Åü °ü¸® ¼ÒÇÁÆ®¿þ¾î°¡ ÇÊ¿äÇÕ´Ï´Ù. ¾÷ü°¡ ¾î¶² Ç÷§ÆûÀ» Áö¿øÇÏ´ÂÁö¸¦ ¾Ë¾Æ¾ß ÇÕ´Ï´Ù. Ãß°¡ ÀúÀå ½Ã½ºÅÛÀÇ ¼ö´Â °è¼Ó Áõ°¡ÇÏ°í ÀÖ½À´Ï´Ù.

RMAN¿¡ ´ëÇÑ ¿ÀÇØ
RMANÀº ¿À¶óŬ ¼­¹ö¿¡ ÀÇÇØ Á¦°øµÇ´Â µµ±¸ÀÔ´Ï´Ù. ÇÏÁö¸¸ ´ÙÀ½°ú °°ÀÌ ¿ÀÇØÇÏ´Â ½Ç¼ö¸¦ ÀúÁö¸£Áö´Â ¸¶½Ê½Ã¿À:

ÁÖ: º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ »ç¿ëµÇ¸é ÇÙ½ÉÀûÀÎ Á¤º¸´Â ÄÁÆ®·Ñ ÆÄÀÏ°ú º°°³ÀÇ µ¥ÀÌÅͺ£À̽º ¸ðµÎ¿¡ ÀúÀåµË´Ï´Ù.

MML(Media Management Layer)¶õ tape drive¿Í °°Àº ¼øÂ÷Àû ÀåÄ¡(sequential media)¿¡ µ¥ÀÌÅÍ ¹é¾÷, º¹¿ø, º¹±¸ ÀÛ¾÷À» Çϱâ À§ÇÏ¿© load, label, unload µîÀ» ÇÏ´Â À¯Æ¿¸®Æ¼¸¦ ¸»ÇÕ´Ï´Ù. Backup S/W ÀÚü°¡ ¾Æ´Ï¶ó RMAN°ú °°Àº Backup S/W¿¡¼­ Å×ÀÌÇÁ ÀåÄ¡¸¦ »ç¿ëÇÏ°íÀÚ ÇÒ ¶§ ÇÊ¿äÇÑ ÀÏÁ¾ÀÇ ¶óÀ̺귯¸®·Î ÀÌÇØÇÏ½Ã¸é µÇ°Ú½À´Ï´Ù.

Recovery Manager ±â´É
RMANÀº Server Manager¸¦ »ç¿ëÇؼ­´Â °¡´ÉÇÏÁö ¾ÊÀº ¿©·¯ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù:

Recovery Manager ±â´É(°è¼Ó)

Recovery Manager ±¸¼º ¿ä¼Ò
RMANÀº DBA µµ±¸ÀÌ¸ç ´ÙÀ½°ú °°Àº ¿©·¯ ºÎºÐÀ¸·Î ±¸¼ºµÇ¾î ÀÖ½À´Ï´Ù:

Recovery Manager ÆÐÅ°Áö
catproc.sql ½ºÅ©¸³Æ®°¡ ½ÇÇàµÉ ¶§ ÆÐÅ°Áö µÎ°³°¡ »ý¼ºµË´Ï´Ù. À̵é ÆÐÅ°Áö¸¦ »ý¼ºÇÏ´Â ½ºÅ©¸³Æ®´Â $ORACLE_HOME/rdbms/admin µð·ºÅ丮¿¡ À§Ä¡ÇÕ´Ï´Ù.

DMBS_RCVCAT°ú DBMS_RCVMAN ÆÐÅ°Áö
À̵éÀº dbmsrman.sql°ú prvtmns.plb ÆÄÀÏ¿¡ ÀÇÇØ »ý¼ºµË´Ï´Ù. DBMS_RCVCATÀº º¹±¸ Ä«Å»·Î±×(Recovery Catalog) ³»ÀÇ Á¤º¸¸¦ °ü¸®Çϱâ À§ÇØ Recovery Manager¿¡ ÀÇÇØ »ç¿ëµÇ¸ç DBMS_RCVMANÀº ÄÁÆ®·Ñ ÆÄÀÏÀ̳ª º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ÁúÀÇÇÕ´Ï´Ù.

DBMS_BACKUP_RESTORE ÆÐÅ°Áö
ÀÌ°ÍÀº dbmsbkrs.sql°ú prvtbkrs.plb ÆÄÀÏ¿¡ ÀÇÇØ »ý¼ºµÇ¸ç µ¥ÀÌÅÍÆÄÀÏ°ú ¾ÆÄ«ÀÌºê ·Î±× ¹é¾÷À» »ý¼ºÇÏ°í, º¹¿øÇÏ°í, º¹±¸Çϱâ À§ÇØ ¿À¶óŬ°ú ¿î¿µ üÁ¦°£ÀÇ »óÈ£ ÀÛ¿ëÇÏ´Â µ¥¿¡ »ç¿ëµË´Ï´Ù. ¿î¿µ üÁ¦°¡ ÆÐÅ°Áö·ÎºÎÅÍ ÀÏ´Ü Á¤º¸¸¦ ¹ÞÀ¸¸é µ¥ÀÌÅÍ´Â µð½ºÅ©¿Í °°Àº ÀúÀå ÀåÄ¡ »ó¿¡ ÀúÀåµË´Ï´Ù.

°í·ÁÇØ¾ß ÇÒ »çÇ×
Recovery Manager¸¦ »ç¿ëÇϱâ Àü¿¡ ´ÙÀ½À» °í·ÁÇØ º¸½Ê½Ã¿À:

Recovery Manager Line Mode
Recovery Manager´Â ÀÚü ¸í·É ¾ð¾î¸¦ °¡Áø ¸í·É ¶óÀÎ ÀÎÅÍÇÁ¸®ÅÍ(CLI, Command Line Interpreter)·Î¼­ ÀÛµ¿ÇÕ´Ï´Ù. CLI´Â SVRMGR°ú °°Àº µ¶¸³Çü(standalone) ¾ÖÇø®ÄÉÀ̼ÇÀÔ´Ï´Ù. CLI´Â ƯÀ¯ÀÇ ÀÚü ¸í·É ¾ð¾î¸¦ ¹ø¿ªÇÏ¸ç ´ëÈ­½Ä ¸ðµå¿Í ÀÏ°ý ó¸® ¸ðµå¸¦ ¸ðµÎ °¡Áö°í ÀÖ½À´Ï´Ù. ¾çÂÊ ¸ðµå¿¡¼­ ¸ðµç ¸í·ÉÀÌ ¿Ïº®È÷ Áö¿øµË´Ï´Ù.

Backup Manager
Recovery Manager´Â OEM(Oracle Enterprise Manager)ÀÇ ÇÑ ±¸¼º ¿ä¼ÒÀÎ Backup manager¿¡ ÅëÇյǾî ÀÖÀ¸¸ç, ±×·¡ÇÈ »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÏ¿© ¸í·É ¶óÀÎ À¯Æ¿¸®Æ¼¿¡¼­ »ç¿ë °¡´ÉÇÑ ¸ðµç ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.

Note: RMANÀº º¸Åë ¸í·É ¶óÀÎ ÀÎÅÍÆäÀ̽º¸¦ ¸»ÇÕ´Ï´Ù.

Backup Manager °³¿ä
Backup Manager´Â Recovery Manager¿¡ ÀÇÇÑ Á¤º¸¸¦ »ý¼º, À¯Áö, ¾×¼¼½ºÇϱâ À§ÇÑ Á÷°üÀû »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇϸç, RMAN ¸í·É ¶óÀÎ ÀÎÅÍÆäÀ̽º¿¡ Ãß°¡ÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Backup Manager¸¦ »ç¿ëÇÏ·Á¸é OEM(Oracle Enterprise Manager)ÀÌ ¸ÕÀú ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù. Backup Manager´Â OEM µ¥ÀÌÅͺ£À̽º °ü¸® µµ±¸ ¼¼Æ®ÀÇ ºÎºÐÀÔ´Ï´Ù.

Backup Manager Ư¼º
Backup Manager´Â RMAN¿¡ Ãß°¡·Î ´ÙÀ½ Ư¼ºÀ» Á¦°øÇÕ´Ï´Ù:

ÇÁ·Î¼¼½º
Backup Manager´Â Windows NT°¡ µ¹¾Æ°¡°í ÀÖ´Â À©µµ¿ì Ŭ¶óÀ̾ðÆ® PC¿¡ »óÁÖÇÏ¸ç ´ë»ó µ¥ÀÌÅͺ£À̽º°¡ µé¾î ÀÖ´Â ¼­¹ö »óÀÇ Recovery Manager¿ÍÀÇ ÀÎÅÍÆäÀ̽º¸¦ »ý¼ºÇØ ÁÝ´Ï´Ù. µ¥ÀÌÅͺ£À̽º¿¡ÀÇ Á¢¼ÓÀº Recovery Manager¸¦ »ç¿ëÇϱ⠽ÃÀÛÇÒ ¶§ ¼­¹ö ÇÁ·Î¼¼½º¸¦ ÀÌ¿ëÇÏ¿© ¼³Á¤µË´Ï´Ù.

º¹±¸ Ä«Å»·Î±×(Recovery Catalog)
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ¼±Åà »çÇ×ÀÔ´Ï´Ù. ÇÊ¿äÇÑ °æ¿ì ÀÚ½ÅÀÇ ½ºÅ°¸¶(sys³ª systemÀÌ ¾Æ´Ñ)¿¡ ¸¸µé¾îÁö°í DBA¿¡ ÀÇÇØ ¹é¾÷µÇ¾îÁ®¾ß ÇÕ´Ï´Ù. ÀÏ·ÃÀÇ Å×À̺í, ¶Ç´Â ÀúÀå¼Ò·Î ±¸¼ºµÇ¸ç ¿À¶óŬ µ¥ÀÌÅͺ£À̽º¿¡ À§Ä¡ÇÏ°í Recovery Manager¿¡ ÀÇÇØ À¯ÁöµÇ¸ç ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷¿¡ ´ëÇÑ Àå±â°£ÀÇ Á¤º¸¸¦ ÀúÀåÇÏ°í ÀÖ½À´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â µ¥ÀÌÅͳª ¾ÆÄ«À̺êÀÇ ½ÇÁ¦ ¹é¾÷À» ÀúÀåÇÏÁö´Â ¾Ê½À´Ï´Ù. À̵éÀº µð½ºÅ©³ª Å×ÀÌÇÁ¿¡ ÆÄÀÏ·Î ÀúÀåµÇ¾î Áý´Ï´Ù.

º¹±¸ Ä«Å»·Î±×(Recovery Catalog) ³»¿ë
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½ Á¤º¸¸¦ ´ã°í ÀÖ½À´Ï´Ù:

º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½°ú °°Àº ¶§¿¡ À¯¸®ÇÕ´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â »ç¿ëÇϸé Recovery Manager¿¡ Ãß°¡ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½°ú °°Àº »óȲ ÇÏ¿¡¼­ ÀÌÁ¡À» Á¦°øÇÒ °ÍÀÔ´Ï´Ù:

º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½°ú °°Àº ¶§¿¡ ±×¸® À¯¿ëÇÏÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù.
RMAN°ú ÇÔ²² º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÒ °ÍÀ» ÃßõÇϱâ´Â ÇÏÁö¸¸ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ Ç×»ó ÇʼöÀûÀÎ °ÍÀº ¾Æ´Õ´Ï´Ù. ´ÙÀ½°ú °°Àº »óȲÀÏ ¶§¿¡´Â º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù:

Note: º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ »ç¿ëµÇÁö ¾ÊÀ¸¸é ´ÙÀ½À» È®ÀÎÇØ¾ß ÇÕ´Ï´Ù:

º¹±¸ Ä«Å»·Î±×(Recovery Catalog) °ü¸®
´ë»ó µ¥ÀÌÅͺ£À̽º°¡ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ Á÷Á¢ ¾×¼¼½ºÇÏÁö´Â ¾Ê½À´Ï´Ù. ¹é¾÷, ¾ÆÄ«À̺êµÈ ·Î±×, ±×¸®°í ´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ ±¸Á¶¿¡ ´ëÇÑ Á¤º¸´Â Recovery Manager¿¡ ÀÇÇؼ­¸¸ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ À§Ä¡µË´Ï´Ù.

ÀúÀå °í·Á »çÇ×
º¹±¸¸¦ ¿ëÀÌÇÏ°Ô ÇÏ°í ¼Óµµ¸¦ Çâ»ó½ÃÅ°°í, µ¿½Ã¿¡ µ¥ÀÌÅÍ ¼Õ½Ç À§ÇèÀ» °¨¼Ò½ÃÅ°·Á¸é ´ÙÀ½ Áöħ »çÇ×À» µû¸£½Ê½Ã¿À:

º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽ºÀÇ Å©±â °áÁ¤
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ À§ÇØ º°µµÀÇ µ¥ÀÌÅͺ£À̽º¸¦ »ý¼ºÇÏ·Á¸é À§ÀÇ Áöħ »çÇ×À» »ç¿ëÇÏ¿© °¢ Å×ÀÌºí½ºÆäÀ̽º¿¡ ÇÊ¿äÇÑ °ø°£À» °áÁ¤ÇϽʽÿÀ. À§ÀÇ ¼öÄ¡´Â ÀÏ³â ´ç ´ë»ó µ¥ÀÌÅͺ£À̽º Çϳª¸¦ ±âÁØÀ¸·Î ÇÑ °ÍÀÔ´Ï´Ù.

º¹±¸ Ä«Å»·Î±× »ý¼º ¹æ¹ý

º¹±¸ Ä«Å»·Î±×¸¦ »ý¼ºÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ ¼öÇàÇÕ´Ï´Ù.

  1. Ä«Å»·Î±× µ¥ÀÌÅͺ£À̽º¿¡ ¿¬°áÇÏ¿© Ä«Å»·Î±×¿¡ ´ëÇÑ Å×ÀÌºí½ºÆäÀ̽º¸¦ »ý¼ºÇÕ´Ï´Ù.
    SQL > create tablespace rman_ts datafile '<directory>/<name>'
      2 >      size 20M default storage
      3 >      (initial 100K next 100K pctincrease 0);
     
  2. Recovery Manager »ç¿ëÀÚ¸¦ »ý¼ºÇÕ´Ï´Ù.
    SQL > create user rman_db1 identified by rman_db1
      2 >              default tablespace rman_ts
      3 >              temporary tablespace temp
      4 >              quota unlimited on rman_ts;
     
  3. ÀÌ »ç¿ëÀÚ¿¡°Ô º¹±¸ Ä«Å»·Î±×¸¦ À¯Áö °ü¸®ÇÏ°í ¹é¾÷ ¹× º¹±¸ ÀÛ¾÷À» ¼öÇàÇÒ ¼ö ÀÖ´Â ·Ñ°ú ±ÇÇÑÀ» ºÎ¿©ÇÕ´Ï´Ù.
    SQL > grant recovery_catalog_owner to rman_db1;
    SQL > grant connect, resource to rman_db1;
     
  4. Å×ÀÌºí½ºÆäÀ̽º ¹× ·Ñ¹é ¼¼±×¸ÕÆ®¿¡ ÃæºÐÇÑ °ø°£ÀÌ ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù. Ä«Å»·Î±×´Â 20MB Á¤µµÀÇ °ø°£ÀÌ ÇÊ¿äÇÏ°í ·Ñ¹é ¼¼±×¸ÕÆ®´Â Å©±â°¡ 5MB Á¤µµ µÇ¾î¾ß ÇÕ´Ï´Ù.
  5. ¿î¿µ üÁ¦¿¡ ·Î±×ÀÎÇÑ ÈÄ RMAN ¸í·ÉÀ» ½ÇÇàÇÏ¿© RMAN ¸í·É ÀÎÅÍÇÁ¸®Å͸¦ È£ÃâÇÏ°í Ä«Å»·Î±×¸¦ »ý¼ºÇÕ´Ï´Ù. MSGLOG(¶Ç´Â Oracle8i¿¡¼­´Â LOG) ¿É¼ÇÀ» »ç¿ëÇϸé RMANÀÌ ¸Þ½ÃÁö ¹× ¸í·ÉÀ» ÆÄÀÏ·Î Ãâ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.
    % rman catalog rman_db1/rman_db1@catdb msglog = catalog.log
    create catalog tablespace rman_ts;
    exit;

    Âü°í: MSGLOG¸¦ »ç¿ëÇϸé Ãâ·ÂÀÌ ÆÄÀÏ·Î Á÷Á¢ º¸³»Á®¼­ RMAN ÇÁ·ÒÇÁÆ®°¡ Ç¥½ÃµÇÁö ¾ÊÀ» ¼öµµ ÀÖ½À´Ï´Ù. µû¶ó¼­ Ä¿¼­°¡ »õ·Î¿î Çà¿¡ Ç¥½ÃµÇ¸é CREATE CATALOG ¸í·ÉÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù. ¸¶Âù°¡Áö·Î ´ÙÀ½ »õ Çà¿¡ exit ¸í·ÉÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù. MSLOGÀÇ ¸ñÀûÀº Ä«Å»·Î±× »ý¼º °úÁ¤¿¡¼­ ¹ß»ýÇÒ ¼ö ÀÖ´Â ¿À·ù¸¦ ±â·ÏÇÏ¿© ¼öÁ¤ ÀÛ¾÷ÀÌ ÀÌ·ç¾îÁöµµ·Ï ÇÏ´Â µ¥ ÀÖ½À´Ï´Ù.
     
  6. RMAN¿¡¼­ »ý¼ºÇÑ catalog.log ÆÄÀÏÀ» °Ë»çÇÏ¿© Ä«Å»·Î±× »ý¼º Áß¿¡ ¿À·ù°¡ ÀÖ´ÂÁö ¿©ºÎ¸¦ È®ÀÎÇÕ´Ï´Ù. ¿À·ù¸¦ ãÀº °æ¿ì Ä«Å»·Î±× ¼ÒÀ¯ÀÚÀÇ ¸ðµç °´Ã¼¸¦ »èÁ¦ÇÏ°í óÀ½ºÎÅÍ ´Ù½Ã »ý¼ºÇØ¾ß ÇÕ´Ï´Ù.
    catalog.log´Â ´ÙÀ½°ú °°ÀÌ Ç¥½ÃµÉ ¼ö ÀÖ½À´Ï´Ù.
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN-06008: connected to recovery catalog database
    RMAN-06428: recovery catalog is not installed
    RMAN> create catalog tablespace rman_ts;
    RMAN-06431: recovery catalog created
    RMAN>
    RMAN> exit;
    Recovery Manager complete
     
  7. ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ Æ÷ÇÔÇÏ´Â ¼­¹ö¿¡¼­ RMAN ½ÇÇà ÆÄÀÏÀ» »ç¿ëÇÏ¿© ¿¬°áÇÕ´Ï´Ù. SYSDBA ±ÇÇÑÀ» °¡Áø »ç¿ëÀÚ·Î ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ ·Î±×ÀÎÇØ¾ß ¸ðµç ¹é¾÷ ¹× º¹±¸ ÀÛ¾÷À» ¼öÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.
    % rman target sys/oracle@db1
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN-06005: connected to target database: DB1 (DBID=472633597)
    RMAN> connect catalog rman_db1/rman_db1@catdb
    RMAN-06008: connected to recovery catalog database
    RMAN>
     
  8. ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ Ä«Å»·Î±×¿¡ µî·ÏÇÕ´Ï´Ù. ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ º¹±¸ Ä«Å»·Î±×¿¡ µî·ÏÇØ¾ß µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ Á¤º¸¸¦ ÀúÀåÇÏ´Â µ¥ Ä«Å»·Î±×¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Recovery Manager´Â µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ °íÀ¯ ½Äº°ÀÚ·Î µ¥ÀÌÅͺ£À̽º°¡ óÀ½ »ý¼ºµÉ ¶§ °è»êµÇ´Â ³»ºÎ DBID(µ¥ÀÌÅͺ£À̽º ½Äº°ÀÚ)¸¦ »ç¿ëÇÕ´Ï´Ù. ±âÁ¸ µ¥ÀÌÅͺ£À̽º¸¦ º¹»çÇÑ ´ÙÀ½ db_nameÀ» º¯°æÇÏ¿© »ý¼ºÇÑ »õ µ¥ÀÌÅͺ£À̽º¸¦ µî·ÏÇÏ·Á°í ½ÃµµÇÏ¸é µî·ÏÀÌ ½ÇÆÐÇÕ´Ï´Ù. º¹»çµÈ µ¥ÀÌÅͺ£À̽º¸¦ ¹é¾÷ÇÏ·Á¸é »õ º¹±¸ Ä«Å»·Î±× ¼ÒÀ¯ÀÚ¸¦ »ý¼ºÇÑ ´ÙÀ½ »õ °èÁ¤¿¡¼­ Ä«Å»·Î±×¸¦ »ý¼ºÇØ¾ß ÇÕ´Ï´Ù.
    RMAN> register database;

    RMAN-03022: compiling command: register
    RMAN-03023: executing command: register
    RMAN-08006: database registered in recovery catalog
    RMAN-03023: executing command: full resync
    RMAN-08002: starting full resync of recovery catalog
    RMAN-08004: full resync complete

    RMAN>

ÄÁÆ®·Ñ ÆÄÀϷκÎÅÍ ¾òÀ» ¼ö ÀÖ´Â Á¤º¸
ÄÁÆ®·Ñ ÆÄÀÏÀº Recovery Manager¿¡ ÀÇÇØ ¼öÇàµÇ´Â ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷À» ´ã°í ÀÖ½À´Ï´Ù. Á¤º¸·®Àº ¹é¾÷ ºóµµ, ´ë»ó µ¥ÀÌÅͺ£À̽º Å©±â, ±×¸®°í º¸À¯ ±â°£¿¡ µû¶ó ´Ù¸£°Ô Áõ°¡ÇÕ´Ï´Ù.

ÄÁÆ®·Ñ ÆÄÀÏ ¼³Á¤
CONTROL_FILE_RECORD_KEEP_TIME ÆĶó¹ÌÅÍ´Â ÄÁÆ®·Ñ ÆÄÀÏ¿¡ ÀúÀåµÈ RMAN Á¤º¸°¡ ¸çÄ¥ÀÌ Áö³ª¸é µ¤¾î ¾²¿©Áú °ÍÀÎÁö ÁöÁ¤ÇÕ´Ï´Ù. °ªÀÌ ÀÛÀ¸¸é ÀÛÀ»¼ö·Ï ÀÚÁÖ µ¤¾î ¾²¿©Áö°í ÄÁÆ®·Ñ ÆÄÀÏÀÇ ¼ºÀåÀ» ÃÖ¼ÒÈ­ÇÑ´Ù´Â °ÍÀ» ÀǹÌÇÕ´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇϸé ÀÛÀº °ªÀ» ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù. ±âº»°ªÀº 7ÀÏÀÔ´Ï´Ù.

Note: º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÒ ¶§ ÄÁÆ®·Ñ ÆÄÀÏ¿¡ µ¤¾î ¾²¿©Áö´Â °Íº¸´Ù ´õ ÀÚÁÖ À絿±â°¡ ¼öÇàµÇµµ·Ï ÇϽʽÿÀ.

¿¹¸¦ µé¾î 1·Î ¼³Á¤µÇ¾î ÀÖ´Ù¸é Recovery Manager Á¤º¸´Â ÇϷ絿¾È À¯ÁöµË´Ï´Ù. ÀÌ °æ¿ì º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÑ´Ù¸é À絿±â°¡ ÃÖ¼ÒÇÑ ÇÏ·ç¿¡ ÇѹøÀº ¼öÇàµÇµµ·Ï ÇϽʽÿÀ.

ÄÁÆ®·Ñ ÆÄÀÏÀÇ ¼ºÀå
ÄÁÆ®·Ñ ÆÄÀÏÀÇ Å©±â°¡ CONTROL_FILE_RECORD_KEEP_TIME¿¡ ÀÇÇØ ÁöÁ¤µÈ ½Ã°£µ¿¾È ¸ðµç Á¤º¸¸¦ ÀúÀåÇϱ⿡´Â ³Ê¹« ÀÛ´Ù¸é ÄÁÆ®·Ñ ÆÄÀÏÀº Å©±â°¡ Á¡Á¡ Ä¿Áý´Ï´Ù. ÄÁÆ®·Ñ ÆÄÀÏÀÌ Ä¿Áö±â Àü¿¡ ´ÙÀ½°ú °°Àº ƯÁ¤ ´Ü°è°¡ ¼öÇàµË´Ï´Ù:

  1. ÄÁÆ®·Ñ ÆÄÀÏ ³»ÀÇ ºó °ø°£ÀÌ »ç¿ëµË´Ï´Ù.
  2. CONTROL_FILE_RECORD_KEEP_TIMEº¸´Ù ¿À·¡µÈ ¿£Æ®¸®°¡ µ¤¾î ¾²¿©Áý´Ï´Ù.
  3. ´õ ÀÌ»ó »ç¿ë °¡´ÉÇÑ °ø°£ÀÌ ¾øÀ» °æ¿ì, ÇÊ¿äÇÏ´Ù¸é ÄÁÆ®·Ñ ÆÄÀÏÀÌ ÀÚ¶ó³³´Ï´Ù.

ÄÁÆ®·Ñ ÆÄÀÏ »çº»
º¹±¸ Ä«Å»·Î±×(Recovery Catalog) »ç¿ë ¿©ºÎ¿Í´Â »ó°ü¾øÀÌ Recovery Manager´Â °¡²û Àбâ À§ÇØ ÄÁÆ®·Ñ ÆÄÀÏÀÇ Àӽà ¹é¾÷À» ¸¸µé¾î¾ß ÇÕ´Ï´Ù. RMANÀÌ ÄÁÆ®·Ñ ÆÄÀÏÀÇ Àбâ ÀÏ°ü¼º À̹ÌÁö(read-consistent image)¸¦ ºÁ¾ß ÇÒ ¶§¸¶´Ù ½º³À¼¦ ÄÁÆ®·Ñ ÆÄÀÏÀÌ »ý¼ºµË´Ï´Ù. Àбâ ÀÏ°ü¼º À̹ÌÁö´Â ÄÁÆ®·Ñ ÆÄÀÏÀÇ circular ÇÏÁö ¾ÊÀº Àç»ç¿ë ·¹Äڵ带 ÁúÀÇÇÒ ¶§ ÇÊ¿äÇÕ´Ï´Ù. circular ÇÏÁö ¾ÊÀº Àç»ç¿ë ·¹ÄÚµå´Â µ¥ÀÌÅÍ ÆÄÀÏ, Å×ÀÌºí½ºÆäÀ̽º, ¿Â¶óÀÎ ¸®µÎ ·Î±×, ±×¸®°í ½º·¹µå Á¤º¸¸¦ ´ã°í ÀÖ½À´Ï´Ù.

ÀÌ ÆÄÀÏÀÇ À§Ä¡´Â ¼³Á¤ °¡´ÉÇÕ´Ï´Ù:
 RMAN> set snapshot controlfile name to ¡®/disk1/backup/ctl_300.snp¡¯;
UNIX ½Ã½ºÅÛ »ó¿¡¼­ ½º³À¼¦ ÄÁÆ®·Ñ ÆÄÀÏÀÇ ±âº» À§Ä¡´Â:
 $ORACLE_HOME/dbs/snapcf_<dbname>.f
´Ü: <dbname>Àº µ¥ÀÌÅͺ£À̽º À̸§

ÄÁÆ®·Ñ ÆÄÀÏ Àç»ý¼º
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ÄÁÆ®·Ñ ÆÄÀÏ¿¡ Æ÷ÇÔµÈ Á¤º¸¸¦ º¹Á¦ÇÕ´Ï´Ù. Recovery Manager´Â Ä«Å»·Î±×¸¦ »ç¿ëÇÏ¿© ¼Õ»óµÈ ÄÁÆ®·Ñ ÆÄÀÏÀ» Àç»ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù.

RMAN ¸í·É ¶óÀÎ
RMANÀ» ½ÃÀÛÇÏ·Á¸é ´ÙÀ½ ±¸¹®À» »ç¿ëÇϽʽÿÀ:
   rman target <qstring> [rcvcat <qstring> | cmdfile <qstring> |
     msglog <qstring> | append]

   Àμö    

  ¼³¸í

 TARGET

Recovery Manager°¡ ÀÛ¾÷ÇÏ°Ô µÉ µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ »ç¿ëÀÚ ID¿Í ºñ¹Ð ¹øÈ£¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â Á¢¼Ó ¹®ÀÚ¿­

 RCVCAT

º¹±¸ Ä«Å»·Î±×¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ »ç¿ëÀÚ ID¿Í ºñ¹Ð¹øÈ£¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â Á¢¼Ó ¹®ÀÚ¿­

 CMDFILE

RMAN¿¡ ´ëÇÑ ÀÔ·Â ¸í·ÉÀ» Æ÷ÇÔÇÏ°í ÀÖ´Â ÆÄÀÏÀÇ À̸§. ÀÌ Àμö°¡ ÁöÁ¤µÇ¸é RMANÀº ÀÏ°ý ó¸® ¸ðµå·Î ÀÛµ¿Çϸç, ÁöÁ¤µÇÁö ¾ÊÀ¸¸é ´ëÈ­½Ä ¶óÀÎ ¸ðµå·Î ÀÛµ¿ÇÕ´Ï´Ù.

 MSGLOG

RMANÀÌ ¸í·É°ú Ãâ·Â °á°ú¸¦ ±â·ÏÇØ µÎ´Â ÆÄÀÏÀÇ À̸§. ÁöÁ¤µÇÁö ¾ÊÀ¸¸é RMANÀº ½ºÅ©¸°À¸·Î Ãâ·ÂÇÕ´Ï´Ù.

 APPEND

ÀÌ ÆĶó¹ÌÅÍ´Â mslog ÆÄÀÏÀÌ Ãß°¡ ¸ðµå(append mode)·Î ¿­·ÁÁöµµ·Ï ÇÕ´Ï´Ù. ÀÌ ÆĶó¹ÌÅÍ°¡ ÁöÁ¤µÇÁö ¾Ê°í mslog ÆÄÀÏ°ú °°Àº À̸§À» °¡Áø ÆÄÀÏÀÌ ÀÌ¹Ì Á¸ÀçÇÏ¸é µ¤¾î ¾²¿©Áý´Ï´Ù.

 QSTRING

ºó Ä­°ú ±¸µÔÁ¡À» Æ÷ÇÔÇÒ ¼ö ÀÖ´Â ÀÎ¿ë ¹®ÀÚ¿­(quoted string).  ¿¹, ¡°sys/change_on_install@08db¡± Ȭ µû¿ÈÇ¥, ¶Ç´Â °ã µû¿ÈÇ¥¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù

Recovery Manager ½ÃÀÛ
RMANÀ¸·Î Á¢¼ÓÇÏ´Â µ¥´Â ¼¼ °¡Áö ÀÌÀ¯°¡ ÀÖ½À´Ï´Ù:

Á¢¼Ó ÇÁ·Î¼¼½º
RMAN Á¢¼Ó ¸í·ÉÀ» Ä¡¸é ´ÙÀ½ À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù:

Recovery Manager·ÎÀÇ Á¢¼Ó
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏ¿© RMAN¿¡ Á¢¼ÓÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ µû¸£½Ê½Ã¿À:

  1. ¹é¾÷ÇÏ°íÀÚ ÇÏ´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ °áÁ¤
  2. ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â µ¥ÀÌÅͺ£À̽º¸¦ °áÁ¤
    Note: º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ ¾ÆÁ÷ »ý¼ºµÇÁö ¾Ê¾Ò´Ù¸é ¡°º¹±¸ Ä«Å»·Î±×(Recovery Catalog) »ý¼º¡± ¼½¼ÇÀÇ ÀýÂ÷¸¦ µû¸£½Ê½Ã¿À.

  3. RMANÀ¸·Î Á¢¼ÓÇϱâ À§ÇØ ´ÙÀ½ ¼¼ °¡Áö ¹æ¹ý Áß Çϳª »ç¿ë
    -  Áö¿ª RMAN Á¢¼ÓÀ» À§Çؼ­´Â ¿î¿µ üÁ¦ ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½À» ÀÔ·Â:
      UNIXÀÇ °æ¿ì
      $ ORACLE_SID=DB00; export ORACLE_SID
      $ rman rcvcat rman/rman@RCVCAT
      RMAN> connect target

      NTÀÇ °æ¿ì
      $ SET ORACLE_SID=DB00
      $ rman80 rcvcat rman/rman@RCVCAT
      RMAN> connect target

    -  SYSDBA ±ÇÇÑÀ» °¡Áø »ç¿ëÀÚ·Î RMAN¿¡ Á¢¼ÓÇÏ·Á¸é:
      
     $ rman target scott/tiger rcvcat rman/rman@RCVCAT
    -  ¿ø°ÝÀ¸·Î RMAN¿¡ Á¢¼ÓÇÏ·Á¸é:
       $ rman target scott/tiger@DB00 rcvcat rman/rman@RCVCAT

Note

Á¢¼Ó ÇÁ·Î¼¼½º
RMAN Á¢¼Ó ¸í·ÉÀ» Ä¡¸é ´ÙÀ½ À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù:

Recovery Manager¿¡ÀÇ Á¢¼Ó
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏÁö ¾Ê°í RMAN¿¡ Á¢¼ÓÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ µû¸£½Ê½Ã¿À:

  1. ¹é¾÷ÇÏ°íÀÚ ÇÏ´Â ´ë»ó µ¥ÀÌÅͺ£À̽º °áÁ¤
  2. RMAN¿¡ Á¢¼ÓÇÏ´Â ¼¼ °¡Áö ¹æ¹ý Áß Çϳª »ç¿ë.
    Áö¿ª RMAN Á¢¼ÓÀÇ °æ¿ì ¿î¿µ üÁ¦ ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½À» ÀÔ·Â:
      UNIXÀÇ °æ¿ì
      $ ORACLE_SID=DB00; export ORACLE_SID
      $ rman nocatalog
      RMAN> connect target
      NTÀÇ °æ¿ì
      $ SET ORACLE_SID=DB00
      $ rman nocatalog
      RMAN> connect target
    SYSDBA ±ÇÇÑÀ» °¡Áø »ç¿ëÀÚ¸¦ ÅëÇØ RMANÀ¸·Î Á¢¼ÓÇÏ°íÀÚ ÇÒ ¶§:
      $ rman target scott/tiger nocatalog
    ¿ø°ÝÀ¸·Î RMAN ¿¡ Á¢¼ÓÇÏ°íÀÚ ÇÒ ¶§:
     
     $ rman target scott/tiger@DB00 nocatalog

Backup Manager
Backup Manager¸¦ »ç¿ëÇÏ·Á¸é ¹é¾÷À̳ª º¹¿ø, ¶Ç´Â º¹±¸ °°Àº À¯Áö¸¦ À§ÇØ ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓµÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏ¿© Backup Manager¿¡ Á¢¼ÓÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ µû¸£½Ê½Ã¿À:

  1. OEM(Oracle Enterprise Manager) ½ÃÀÛ
  2. Navigator À©µµ¿ì¿¡¼­ ¹é¾÷ÇÏ°íÀÚ ÇÏ´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ ¼±ÅÃÇÏ¿© Á¢¼Ó
  3. Tools -> Applications ¸Þ´º¿¡¼­ Oracle Backup Manager ¼±ÅÃ
  4. Backup Manager - Subsystem ´ÙÀ̾ó·Î±× ¹Ú½º°¡ ³ªÅ¸³ª¸é ¡°Oracle8 Recovery Manager  Subsystem¡± ¼±ÅÃ
  5. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)·Î Á¢¼ÓÇÏ·Á¸é ¸Þ´º¿¡¼­ Catalog -> Use Recovery Catalog Ç׸ñ -> Catalog ¼±Åà -> Connect String ¼±ÅÃ
  6. Recovery Catalog Login ´ÙÀ̾ó·Î±× ¹Ú½º¿¡¼­ º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ »ç¿ëÀÚ À̸§,ºñ¹Ð ¹øÈ£, ±×¸®°í Á¢¼Ó ¹®ÀÚ¿­ ÀÔ·Â

Á¢¼Ó ÇÁ·Î¼¼½º
RMAN Á¢¼Ó ¸í·ÉÀ» Ä¡¸é ´ÙÀ½ À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù:

Note

RMAN¿¡¼­ backup, restore, recoveryÀÇ ´ë»óÀÌ µÇ´Â database¸¦ (       ) DB¶ó°í ºÎ¸¥´Ù. ºóÄ­¿¡ ¾Ë¸ÂÀº ´Ü¾î¸¦ ¿µ¾î ´ë¹®ÀÚ·Î ÀÔ·ÂÇϽÿÀ.
´ä

O