°³¿ä
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˼
¿À¶óŬ ¼¹ö¿¡ ÀÇÇØ Á¦°øµÇ´Â µµ±¸ÀÔ´Ï´Ù. ÇÏÁö¸¸ ´ÙÀ½°ú °°ÀÌ ¿ÀÇØÇÏ´Â ½Ç¼ö¸¦ ÀúÁö¸£Áö´Â ¸¶½Ê½Ã¿À:
- ¿À¶óŬ8¿¡¼ ¹é¾÷°ú º¹±¸¸¦ ¼öÇàÇÏ´Â À¯ÀÏÇÑ ¹æ¹ýÀÌ´Ù. ÇÊ¿äÇÏ´Ù¸é ¿î¿µ üÁ¦¸¦ »ç¿ëÇÏ¿© ¹é¾÷, º¹¿ø,
±×¸®°í º¹±¸ ÀÛ¾÷À» ¼öÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)ÀÌ´Ù. ¾Æ´Õ´Ï´Ù. °¡´ÉÇÏ´Ù¸é RMANÀº Ä«Å»·Î±×¸¦ »ç¿ëÇϱä ÇÕ´Ï´Ù. ÇÏÁö¸¸ Ä«Å»·Î±× ±× ÀÚüÀÎ °ÍÀº
¾Æ´Õ´Ï´Ù.
- ¿À¶óŬ8 ÀÌÀüÀÇ µ¥ÀÌÅͺ£À̽º¸¦ ¹é¾÷Çϱâ À§ÇÑ µµ±¸ÀÌ´Ù. ¾Æ´Õ´Ï´Ù. RMANÀº ¿À¶óŬ8¿¡¼¸¸
ÀÛµ¿ÇÕ´Ï´Ù.
- EBU(Enterprise Backup Utility)ÀÌ´Ù. ¾Æ´Õ´Ï´Ù. EBU´Â RMAN°ú ȣȯµÇÁö
¾ÊÀ¸¸ç EBU´Â ¿À¶óŬ8 µ¥ÀÌÅͺ£À̽º¿¡¼ µ¹¾Æ°¡Áö ¾Ê½À´Ï´Ù.
- NT ¹é¾÷ À¯Æ¿¸®Æ¼ÀÌ´Ù. ¾Æ´Õ´Ï´Ù. NT ¹é¾÷ À¯Æ¿¸®Æ¼´Â ¿î¿µ üÁ¦ À¯Æ¿¸®Æ¼ÀÌÁö ¿À¶óŬ À¯Æ¿¸®Æ¼°¡
¾Æ´Õ´Ï´Ù.
ÁÖ: º¹±¸ Ä«Å»·Î±×(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¸¦ »ç¿ëÇؼ´Â °¡´ÉÇÏÁö ¾ÊÀº ¿©·¯ ±â´ÉÀ»
Á¦°øÇÕ´Ï´Ù:
- µ¥ÀÌÅͺ£À̽º¿¡ ½ºÅ©¸³Æ®·Î ÀúÀåµÇ´Â ÀÚÁÖ ¼öÇàµÇ´Â ÀÛ¾÷À» ÀúÀåÇÕ´Ï´Ù.
- ¹é¾÷ ½Ã°£ÀÌ ¹Ýµå½Ã µ¥ÀÌÅͺ£À̽º Å©±â¿¡ Á¾¼ÓÀûÀÎ °ÍÀÌ ¾Æ´Ï¶ó µ¥ÀÌÅͺ£À̽º¿¡ °¡ÇØÁø º¯°æ ¼ö¿¡ ´õ
Á¾¼ÓÀûÀ̱⠶§¹®¿¡ À¯¿ëÇÑ ÁõºÐ ºí·Ï ·¹º§·Î ¹é¾÷ÇÕ´Ï´Ù.
- ¹é¾÷ÀÇ Å©±â¸¦ ÁÙÀ̱â À§ÇØ »ç¿ëµÇÁö ¾ÊÀº ºí·ÏÀ» ¹ßÃéÇÕ´Ï´Ù.
- ´ÙÀ½ Á¦ÇÑÀº °¢ ¹é¾÷¿¡ ´ëÇØ ÁöÁ¤µÉ ¼ö ÀÖ½À´Ï´Ù:
- ¿ÀÇ ÆÄÀÏ ¼ö : µ¿½Ã¿¡ ¿ ¼ö ÀÖ´Â
ÆÄÀÏ ¼ö¿¡ ´ëÇÑ OSÀÇ Á¦ÇÑÀ» ±Øº¹Çϱâ À§ÇØ
- ¹é¾÷ Á¶°¢(backup piece)ÀÇ Å©±â : ¹é¾÷ Á¶°¢ÀÌ ¿î¿µ üÁ¦³ª Media
Manager¿¡ ÀÇÇØ Çã¿ëµÇ´Â ÃÖ´ë ÆÄÀÏ Å©±â¿¡ µµ´ÞÇÒ ¼ö Àֱ⠶§¹®¿¡
- ¿î¿µ üÁ¦³ª Backup Manager·ÎºÎÅÍ ÀÚµ¿À¸·Î ½ÇÇàµÉ ¼ö ÀÖ½À´Ï´Ù(UNIX
»ó¿¡¼´Â¡°cron¡±, NT »ó¿¡¼´Â ¡°at¡±).
Recovery Manager ±â´É(°è¼Ó)
- ¹é¾÷°ú º¹¿ø µµÁß ÈÑ¼ÕµÈ ºí·Ï °ËÃâ.
Á¤º¸´Â µ¥ÀÌÅͺ£À̽º °æ°í ÆÄÀÏ(alert file),
ÃßÀû ÆÄÀÏ(trace file), ±×¸®°í ÄÁÆ®·Ñ ÆÄÀÏ¿¡ ±â·ÏµÇ¸ç V$BACKUP_CORRUPTION°ú V$COPY_CORRUPTION ºä¸¦
ÁúÀÇÇÏ¿© ¾Ë¾Æ³¾ ¼ö ÀÖ½À´Ï´Ù.
- Oracle Parallel Server¿¡¼ clustered node¿¡ °ÉÃÄ ºÐ»ê µ¥ÀÌÅͺ£À̽º
¹é¾÷, º¹¿ø, º¹±¸
- ¼º´É Çâ»ó:
- ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ÀÇ ÀÚµ¿ º´·ÄÈ.
- ¿Â¶óÀÎ µ¥ÀÌÅͺ£À̽º
¹é¾÷ µµÁß º°µµÀÇ ¸®µÎ°¡ »ý¼ºµÇÁö ¾Ê½À´Ï´Ù.
- ¹é¾÷Àº OLTP ÀÛ¾÷°úÀÇ °£¼·À» ÇÇÇϱâ À§ÇØ ÆÄÀÏ ´ç, ÃÊ´ç Àб⸦ Á¦ÇÑÇϵµ·Ï ¹é¾÷ÀÌ
Á¦Çѵ˴ϴÙ.
- ´ÙÁßȸ¦ »ç¿ëÇÏ¿© Å×ÀÌÇÁ µå¶óÀÌºê ½ºÆ®¸®¹ÖÀ» À¯ÁöÇÏ´Â µ¿¾È ÇÑ ÆÄÀÏÀÌ Àб⠾²±â¸¦ °ú´ÙÇÏ°Ô ÇÏ´Â °ÍÀ» ¸·¾Æ
ÁÝ´Ï´Ù.
- ¼Óµµ¿Í ½Å·Ú¼º Çâ»óÀ» À§ÇØ ÀúÀå ÀåÄ¡(¿¹, µð½ºÅ©, Å×ÀÌÇÁ)¿Í »óÈ£ ÀÛ¿ëÇÏ´Â Á¦ 3ÀÚÀÇ ¸Åü °ü¸®
µµ±¸ »ç¿ë
Recovery Manager ±¸¼º ¿ä¼Ò
RMANÀº DBA µµ±¸ÀÌ¸ç ´ÙÀ½°ú °°Àº ¿©·¯ ºÎºÐÀ¸·Î ±¸¼ºµÇ¾î ÀÖ½À´Ï´Ù:
- Executable(¿£Áø)
Recovery Manager ¸í·ÉÀ» ¹°¸®Àû ÆÄÀÏ¿¡ ´ëÇØ ÀÛµ¿ÇÏ´Â
ÀÏ·ÃÀÇ ´Ü°è·Î ¹ø¿ªÇÕ´Ï´Ù.
- RMAN ÀÎÅÍÆäÀ̽º(SVRMGR°ú À¯»ç)
DBA°¡ ¿£Áø¿¡ ¸í·ÉÀ» ³»¸®±â À§ÇØ »ç¿ëÇÏ´Â ´ëȽÄ,
ÀÏ°ý ó¸® ¸ðµå ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù.
- ´ë»ó µ¥ÀÌÅͺ£À̽º
¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ÇÒ µ¥ÀÌÅͺ£À̽ºÀÔ´Ï´Ù.
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)
´ë»ó µ¥ÀÌÅͺ£À̽º¿Í °ü·ÃÀÖ´Â Á¤º¸¸¦ ÀúÀåÇÏ°í ÀÖ´Â ÀúÀå¼ÒÀÔ´Ï´Ù(´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ
ÄÁÆ®·Ñ ÆÄÀϷκÎÅÍ ¾ò½À´Ï´Ù).
- ä³Î
°¢ ä³Î¸¶´Ù Recovery Manager´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ ¿À¶óŬ ¼¹ö ÇÁ·Î¼¼½º¸¦ »ý¼ºÇÏ¿© ¹é¾÷, º¹¿ø,
±×¸®°í º¹±¸¸¦ ¼öÇàÇÕ´Ï´Ù.
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 Catalog)°¡ ÇÊ¿äÇÑ°¡?
½ºÅ©¸³Æ®¸¦ ÀúÀåÇϰųª ¿À·£ ±â°£ µ¿¾È ¹é¾÷°ú º¹¿ø Á¤º¸¸¦ º¸À¯Çϰųª,
¶Ç´Â ƯÁ¤ RMAN ±â´ÉÀ» »ç¿ëÇÒ ÇÊ¿ä°¡ Àִ°¡?
- Æнº¿öµå ÆÄÀÏÀÌ ÇÊ¿äÇÑ°¡?
- Backup Manager µîÀ» »ç¿ëÇÏ¿© ¿ø°ÝÀ¸·Î µ¥ÀÌÅͺ£À̽º
ȯ°æÀ» °ü¸®ÇÏ°íÀÚ Çϴ°¡?
- º¸¾ÈÀ» °ÈÇÏ°íÀÚ Çϴ°¡?
- TNS alias(¿¹,
scott/tiger@tns_alias)¸¦ »ç¿ëÇÏ¿© RMAN¿¡ Á¢¼ÓÇϴ°¡?
- ÆĶó¹ÌÅÍ ÆÄÀÏ°ú Æнº¿öµå ÆÄÀÏÀ» ¾î¶»°Ô ¹é¾÷ÇÒ °ÍÀΰ¡?
Recovery Manager´Â
init.ora³ª Æнº¿öµå ÆÄÀÏ, ¶Ç´Â ¿ÜºÎ OS ÆÄÀÏÀ» ¹é¾÷ÇÏÁö ¾Ê½À´Ï´Ù. À̵é ÀÛ¾÷Àº DBA°¡ ¼öÇàÇؾ߸¸ ÇÕ´Ï´Ù.
- Recovery Manager Line mode³ª Backup Manager¸¦ »ç¿ëÇؾ߸¸
Çϴ°¡?
- Backup Manager¸¦ »ç¿ëÇÏ·Á¸é Enterprise 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¿¡ Ãß°¡·Î ´ÙÀ½ Ư¼ºÀ» Á¦°øÇÕ´Ï´Ù:
- »ç¿ëÇϱ⠽¬¿î À©µµ¿ì ÀÎÅÍÆäÀ̽º Á¦°ø
- ºü¸¥ ¾×¼¼½º¸¦ À§ÇØ OEM µ¥ÀÌÅͺ£À̽º °ü¸® µµ±¸ ¼¼Æ®¿¡ ÅëÇÕ
- ¿î¿µ üÁ¦¿Í´Â µ¶¸³ÀûÀ¸·Î ÄܼÖÀ» »ç¿ëÇÏ¿© ÀÛ¾÷À» º¸´Ù ½±°Ô »ý¼ºÇÏ°í °èȹ
ÇÁ·Î¼¼½º
Backup
Manager´Â Windows NT°¡ µ¹¾Æ°¡°í ÀÖ´Â À©µµ¿ì Ŭ¶óÀ̾ðÆ® PC¿¡ »óÁÖÇÏ¸ç ´ë»ó µ¥ÀÌÅͺ£À̽º°¡ µé¾î ÀÖ´Â ¼¹ö »óÀÇ Recovery Manager¿ÍÀÇ
ÀÎÅÍÆäÀ̽º¸¦ »ý¼ºÇØ ÁÝ´Ï´Ù. µ¥ÀÌÅͺ£À̽º¿¡ÀÇ Á¢¼ÓÀº Recovery Manager¸¦ »ç¿ëÇϱ⠽ÃÀÛÇÒ ¶§ ¼¹ö ÇÁ·Î¼¼½º¸¦ ÀÌ¿ëÇÏ¿©
¼³Á¤µË´Ï´Ù.
- º» °úÁ¤Àº Windows NT 4.0¿¡¼¸¸ µ¹¾Æ°¡´Â OEM V1.5¸¦ ±âÁØÀ¸·Î ÇÕ´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ¼±Åà »çÇ×ÀÔ´Ï´Ù.
ÇÊ¿äÇÑ °æ¿ì ÀÚ½ÅÀÇ ½ºÅ°¸¶(sys³ª systemÀÌ ¾Æ´Ñ)¿¡ ¸¸µé¾îÁö°í DBA¿¡ ÀÇÇØ ¹é¾÷µÇ¾îÁ®¾ß ÇÕ´Ï´Ù. ÀÏ·ÃÀÇ Å×À̺í, ¶Ç´Â ÀúÀå¼Ò·Î ±¸¼ºµÇ¸ç
¿À¶óŬ µ¥ÀÌÅͺ£À̽º¿¡ À§Ä¡ÇÏ°í Recovery Manager¿¡ ÀÇÇØ À¯ÁöµÇ¸ç ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷¿¡ ´ëÇÑ Àå±â°£ÀÇ Á¤º¸¸¦ ÀúÀåÇÏ°í
ÀÖ½À´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â µ¥ÀÌÅͳª ¾ÆÄ«À̺êÀÇ ½ÇÁ¦ ¹é¾÷À» ÀúÀåÇÏÁö´Â ¾Ê½À´Ï´Ù. À̵éÀº µð½ºÅ©³ª Å×ÀÌÇÁ¿¡ ÆÄÀÏ·Î ÀúÀåµÇ¾î
Áý´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)
³»¿ë
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½ Á¤º¸¸¦ ´ã°í ÀÖ½À´Ï´Ù:
- µ¥ÀÌÅÍ ÆÄÀÏ°ú ¾ÆÄ«À̺êµÈ ·Î±× ¹é¾÷ ¼¼Æ®, ±×¸®°í ¹é¾÷ Á¶°¢
µ¥ÀÌÅÍ ÆÄÀÏ, ¶Ç´Â ¾ÆÄ«À̺êµÈ ·Î±×ÀÇ ¹é¾÷Àº ¹é¾÷ ¼¼Æ®¸¦
±¸¼ºÇÕ´Ï´Ù. ¹é¾÷ ¼¼Æ®´Â ¿©·¯ ¹é¾÷ Á¶°¢À» °¡Áú ¼ö ÀÖ½À´Ï´Ù. Ä«Å»·Î±×´Â ¹é¾÷ ¼¼Æ®ÀÇ À̸§°ú ½Ã°£ °°Àº Á¤º¸¸¦ ÀúÀåÇÕ´Ï´Ù.
- µ¥ÀÌÅÍ ÆÄÀÏ »çº»
»çº»Àº µð½ºÅ© »ó¿¡ ÀúÀåµÈ µ¥ÀÌÅÍ ÆÄÀÏ, ¶Ç´Â ¾ÆÄ«À̺êµÈ ·Î±×ÀÇ ¹°¸®Àû »çº»ÀÔ´Ï´Ù. Ä«Å»·Î±×´Â µ¥ÀÌÅÍ ÆÄÀÏ »çº»ÀÇ ½Ã°£ ±â·Ï(timestamp)°ú À̸§À»
±â·ÏÇÕ´Ï´Ù.
- ¾ÆÄ«À̺êµÈ ¸®µÎ ·Î±×¿Í ±× »çº»
Ä«Å»·Î±×´Â µ¥ÀÌÅͺ£À̽º¿¡ ÀÇÇØ »ý¼ºµÈ
¾ÆÄ«À̺êµÈ ·Î±×ÀÇ ±â·Ï°ú
Recovery Manager¿¡ ÀÇÇØ ¸¸µé¾îÁø »çº»À» À¯Áö º¸¼öÇÕ´Ï´Ù.
- ´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ ¹°¸®Àû ±¸Á¶
Ä«Å»·Î±×´Â µ¥ÀÌÅͺ£À̽º ÄÁÆ®·Ñ ÆÄÀÏÀÌ
Á¦°øÇÏ´Â °Í°ú À¯»çÇÑ Á¤º¸¸¦ ´ã°í ÀÖ½À´Ï´Ù.
- ÀúÀåµÈ ½ºÅ©¸³Æ®¸¦ È£ÃâÇÏ´Â ¸í¸íµÈ ÀÏ·ÃÀÇ ¸í·É
ÀÚÁÖ ½ÇÇàµÇ´Â ¸í·Éµµ Ä«Å»·Î±×¿¡ ÀúÀåµÉ ¼ö
ÀÖ½À´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½°ú °°Àº ¶§¿¡
À¯¸®ÇÕ´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â »ç¿ëÇϸé
Recovery Manager¿¡ Ãß°¡ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½°ú °°Àº »óȲ ÇÏ¿¡¼ ÀÌÁ¡À» Á¦°øÇÒ °ÍÀÔ´Ï´Ù:
- ¹é¾÷ Á¤º¸¸¦ Àå±â°£ º¸°üÇØ¾ß ÇÒ ¶§
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ´ë»ó µ¥ÀÌÅͺ£À̽ºº¸´Ù´Â º°µµÀÇ µð½ºÅ© »óÀÇ ´Ù¸¥ µ¥ÀÌÅͺ£À̽º¿¡ ÀúÀåÇÏ´Â °ÍÀÌ °¡´ÉÇϵµ·Ï
ÃæºÐÇÑ ÀÚ¿øÀÌ ÀÖÀ» ¶§
- ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸¿¡ ´ëÇØ ÀúÀåµÈ ½ºÅ©¸³Æ®°¡ ÇÊ¿äÇÒ ¶§
- point-in-time Å×ÀÌºí½ºÆäÀ̽º º¹±¸°¡ ÇÊ¿äÇÒ ¶§
- ÁõºÐ ºí·Ï ·¹º§ ¹é¾÷ÀÌ ÇÊ¿äÇÒ ¶§
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ´ÙÀ½°ú °°Àº ¶§¿¡ ±×¸®
À¯¿ëÇÏÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù.
RMAN°ú ÇÔ²² º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÒ °ÍÀ» ÃßõÇϱâ´Â ÇÏÁö¸¸ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ Ç×»ó ÇʼöÀûÀÎ °ÍÀº
¾Æ´Õ´Ï´Ù. ´ÙÀ½°ú °°Àº »óȲÀÏ ¶§¿¡´Â º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù:
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ º¸À¯ÇÏ°í ÀÖ´Â º¸Á¶ µ¥ÀÌÅͺ£À̽º°¡ ºñ»ý»êÀûÀÎ ¿À¹öÇìµåÀÏ °Í °°Àº
°æ¿ì
- ´ÙÀ½ ±â´ÉÀÌ ÇÊ¿äÇÏÁö ¾ÊÀº °æ¿ì:
- point-in-time Å×ÀÌºí½ºÆäÀ̽º
º¹±¸
- ¹é¾÷, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷ÀÌ ¿î¿µÃ¼Á¦¸¦ ÅëÇؼ, ¶Ç´Â ¼öµ¿À¸·Î ¼öÇàµÇ¾î À̵é ÀÛ¾÷À» ÀÚµ¿ÈÇÒ ÇÊ¿ä°¡ ¾øÀ» °æ¿ì
-
ÄÁÆ®·Ñ ÆÄÀÏÀÌ ÇöÇàÀÌ ¾Æ´Ò ¶§ÀÇ ÀÚµ¿ º¹±¸
Note: º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ »ç¿ëµÇÁö ¾ÊÀ¸¸é ´ÙÀ½À»
È®ÀÎÇØ¾ß ÇÕ´Ï´Ù:
- ÄÁÆ®·Ñ ÆÄÀÏÀ» ´ÙÁßÈÇÏ¿© º°°³ÀÇ µð½ºÅ©¿¡ »çº»À» À§Ä¡½Ãŵ´Ï´Ù.
- ¹é¾÷ ÆÄÀÏ, ³¯Â¥, ¹é¾÷ Á¶°¢ÀÇ À̸§, ±×¸®°í ¸ðµç Recovery Manager ¹é¾÷ ·Î±×ÀÇ ¼¼ºÎ
±â·ÏÀ» À¯ÁöÇÕ´Ï´Ù.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)
°ü¸®
´ë»ó µ¥ÀÌÅͺ£À̽º°¡ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ Á÷Á¢ ¾×¼¼½ºÇÏÁö´Â
¾Ê½À´Ï´Ù. ¹é¾÷, ¾ÆÄ«À̺êµÈ ·Î±×,
±×¸®°í ´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ ±¸Á¶¿¡ ´ëÇÑ Á¤º¸´Â Recovery Manager¿¡ ÀÇÇؼ¸¸ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡
À§Ä¡µË´Ï´Ù.
ÀúÀå °í·Á »çÇ×
º¹±¸¸¦ ¿ëÀÌÇÏ°Ô
ÇÏ°í ¼Óµµ¸¦ Çâ»ó½ÃÅ°°í, µ¿½Ã¿¡ µ¥ÀÌÅÍ ¼Õ½Ç À§ÇèÀ» °¨¼Ò½ÃÅ°·Á¸é ´ÙÀ½ Áöħ »çÇ×À» µû¸£½Ê½Ã¿À:
- ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ý¼ºÇÏÁö ¸¶½Ê½Ã¿À. º°µµÀÇ µð½ºÅ© »ó¿¡ µ¥ÀÌÅÍ ÆÄÀÏÀ» °¡Áø º°°³ÀÇ µ¥ÀÌÅͺ£À̽º¸¦
¼±ÅÃÇϽʽÿÀ.
- ¹é¾÷ÇØ¾ß ÇÒ µ¥ÀÌÅͺ£À̽º°¡ ¸¹´Ù¸é ¸ðµç ´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ Á¤º¸¸¦ ´ã¾Æ µÑ º°µµÀÇ º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽º »ý¼ºÀ»
°í·ÁÇϽʽÿÀ.
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ¹é¾÷ÇϽʽÿÀ. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ÃÖ»óÀÇ º¹¿ø, º¹±¸
¹æ¹ýÀ» °áÁ¤Çϱâ À§ÇØ Recovery Manager¿¡ ÀÇÇØ »ç¿ëµË´Ï´Ù.
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ´ë»ó µ¥ÀÌÅͺ£À̽º¿Í´Â ´Ù¸¥ µð½ºÅ© »óÀÇ µ¥ÀÌÅͺ£À̽º¿¡ ÀúÀåÇϽʽÿÀ.
º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽ºÀÇ Å©±â
°áÁ¤
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ À§ÇØ º°µµÀÇ µ¥ÀÌÅͺ£À̽º¸¦ »ý¼ºÇÏ·Á¸é À§ÀÇ Áöħ »çÇ×À» »ç¿ëÇÏ¿© °¢ Å×ÀÌºí½ºÆäÀ̽º¿¡
ÇÊ¿äÇÑ °ø°£À» °áÁ¤ÇϽʽÿÀ. À§ÀÇ ¼öÄ¡´Â ÀÏ³â ´ç ´ë»ó µ¥ÀÌÅͺ£À̽º Çϳª¸¦ ±âÁØÀ¸·Î ÇÑ °ÍÀÔ´Ï´Ù.
º¹±¸ Ä«Å»·Î±× »ý¼º ¹æ¹ý
º¹±¸ Ä«Å»·Î±×¸¦ »ý¼ºÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ ¼öÇàÇÕ´Ï´Ù.
- Ä«Å»·Î±× µ¥ÀÌÅͺ£À̽º¿¡ ¿¬°áÇÏ¿© Ä«Å»·Î±×¿¡ ´ëÇÑ Å×ÀÌºí½ºÆäÀ̽º¸¦ »ý¼ºÇÕ´Ï´Ù.
SQL > create tablespace rman_ts datafile
'<directory>/<name>'
2 > size 20M default storage
3 > (initial 100K next 100K pctincrease 0);
- 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;
- ÀÌ »ç¿ëÀÚ¿¡°Ô º¹±¸ Ä«Å»·Î±×¸¦ À¯Áö °ü¸®ÇÏ°í ¹é¾÷ ¹× º¹±¸ ÀÛ¾÷À» ¼öÇàÇÒ ¼ö ÀÖ´Â ·Ñ°ú ±ÇÇÑÀ»
ºÎ¿©ÇÕ´Ï´Ù.
SQL > grant
recovery_catalog_owner to rman_db1;
SQL > grant connect, resource to
rman_db1;
- Å×ÀÌºí½ºÆäÀ̽º ¹× ·Ñ¹é ¼¼±×¸ÕÆ®¿¡ ÃæºÐÇÑ °ø°£ÀÌ ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù. Ä«Å»·Î±×´Â 20MB Á¤µµÀÇ °ø°£ÀÌ ÇÊ¿äÇÏ°í
·Ñ¹é ¼¼±×¸ÕÆ®´Â Å©±â°¡ 5MB Á¤µµ µÇ¾î¾ß ÇÕ´Ï´Ù.
- ¿î¿µ üÁ¦¿¡ ·Î±×ÀÎÇÑ ÈÄ 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ÀÇ ¸ñÀûÀº Ä«Å»·Î±× »ý¼º °úÁ¤¿¡¼ ¹ß»ýÇÒ ¼ö ÀÖ´Â ¿À·ù¸¦ ±â·ÏÇÏ¿©
¼öÁ¤ ÀÛ¾÷ÀÌ ÀÌ·ç¾îÁöµµ·Ï ÇÏ´Â µ¥ ÀÖ½À´Ï´Ù.
- 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
- ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ Æ÷ÇÔÇÏ´Â ¼¹ö¿¡¼ 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>
- ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ Ä«Å»·Î±×¿¡ µî·ÏÇÕ´Ï´Ù. ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ º¹±¸ Ä«Å»·Î±×¿¡ µî·ÏÇØ¾ß µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ Á¤º¸¸¦
ÀúÀåÇÏ´Â µ¥ Ä«Å»·Î±×¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. 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¿¡ ÀÇÇØ ÁöÁ¤µÈ ½Ã°£µ¿¾È ¸ðµç Á¤º¸¸¦ ÀúÀåÇϱ⿡´Â ³Ê¹« ÀÛ´Ù¸é ÄÁÆ®·Ñ ÆÄÀÏÀº Å©±â°¡
Á¡Á¡ Ä¿Áý´Ï´Ù. ÄÁÆ®·Ñ ÆÄÀÏÀÌ Ä¿Áö±â Àü¿¡ ´ÙÀ½°ú °°Àº ƯÁ¤ ´Ü°è°¡ ¼öÇàµË´Ï´Ù:
- ÄÁÆ®·Ñ ÆÄÀÏ ³»ÀÇ ºó °ø°£ÀÌ »ç¿ëµË´Ï´Ù.
- CONTROL_FILE_RECORD_KEEP_TIMEº¸´Ù ¿À·¡µÈ ¿£Æ®¸®°¡ µ¤¾î
¾²¿©Áý´Ï´Ù.
- ´õ ÀÌ»ó »ç¿ë °¡´ÉÇÑ °ø°£ÀÌ ¾øÀ» °æ¿ì, ÇÊ¿äÇÏ´Ù¸é ÄÁÆ®·Ñ ÆÄÀÏÀÌ ÀÚ¶ó³³´Ï´Ù.
ÄÁÆ®·Ñ ÆÄÀÏ »çº»
º¹±¸ Ä«Å»·Î±×(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À¸·Î Á¢¼ÓÇÏ´Â µ¥´Â ¼¼ °¡Áö ÀÌÀ¯°¡ ÀÖ½À´Ï´Ù:
- ÀûÇÕÇÑ »ç¿ëÀÚÀÎÁö ÀÎÁõÇϱâ À§ÇØ
- ¹é¾÷ÇÒ µ¥ÀÌÅͺ£À̽º¸¦ ½Äº°Çϱâ À§ÇØ
- ÇÊ¿äÇÑ °æ¿ì º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ Æ÷ÇÔÇÏ´Â »ç¿ëÇÒ µ¥ÀÌÅͺ£À̽º¸¦ ½Äº°Çϱâ À§ÇØ
Á¢¼Ó ÇÁ·Î¼¼½º
RMAN Á¢¼Ó
¸í·ÉÀ» Ä¡¸é ´ÙÀ½ À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù:
- Recovery Manager¿¡ ´ëÇØ »ç¿ëÀÚ ÇÁ·Î¼¼½º°¡ »ý¼ºµË´Ï´Ù.
»ç¿ëÀÚ ÇÁ·Î¼¼½º´Â ´ë»ó
µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓÇÑ ¿À¶óŬ ¼¹ö
ÇÁ·Î¼¼½º µÎ °³¸¦ »ý¼ºÇÕ´Ï´Ù:
- Çϳª´Â ±âº» ÇÁ·Î¼¼½º·Î SQL ¸í·ÉÀ» ½ÇÇàÇÏ°í ÄÁÆ®·Ñ ÆÄÀÏ°ú ¸®µÎ ·Î±×ÀÇ
roll-forward¸¦ À絿±âÇÕ´Ï´Ù.
- ´Ù¸¥ Çϳª´Â Æú¸µ ÇÁ·Î¼¼½º·Î ÀνºÅϽº ´ç Çϳª ¾¿¸¸ ÀÖÀ¸¸ç, RPC
¿Ï·á(completion)¸¦ ã½À´Ï´Ù.
- ¼¹ö ÇÁ·Î¼¼½º´Â º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽º°¡ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ÀÐ¾î µéÀÌ°í °»½ÅÇÒ ¼ö ÀÖµµ·Ï »ý¼ºµË´Ï´Ù.
Recovery Manager·ÎÀÇ Á¢¼Ó
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏ¿© RMAN¿¡ Á¢¼ÓÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ µû¸£½Ê½Ã¿À:
- ¹é¾÷ÇÏ°íÀÚ ÇÏ´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ °áÁ¤
- ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â µ¥ÀÌÅͺ£À̽º¸¦ °áÁ¤
Note: º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ ¾ÆÁ÷ »ý¼ºµÇÁö ¾Ê¾Ò´Ù¸é
¡°º¹±¸ Ä«Å»·Î±×(Recovery Catalog) »ý¼º¡± ¼½¼ÇÀÇ ÀýÂ÷¸¦ µû¸£½Ê½Ã¿À.
- 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
- Á¢¼Ó ¹®ÀÚ¿(¿¹, @RCVCAT)Àº tnsnames.ora ÆÄÀÏ¿¡ ÁöÁ¤µÈ ´ë·Î ÀûÇÕÇÑ TNS º°Äª(alias) À̾î¾ß¸¸
ÇÕ´Ï´Ù.
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ ¾ÆÁ÷ »ý¼ºµÇÁö ¾Ê¾Ò´Ù¸é ¡°º¹±¸ Ä«Å»·Î±×(Recovery Catalog)»ý¼º¡±ÀÇ ´Ü°è¸¦
µû¸£½Ê½Ã¿À.
Á¢¼Ó ÇÁ·Î¼¼½º
RMAN Á¢¼Ó ¸í·ÉÀ» Ä¡¸é ´ÙÀ½ À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù:
- Recovery Manager¿¡ ´ëÇØ »ç¿ëÀÚ ÇÁ·Î¼¼½º°¡ »ý¼ºµË´Ï´Ù.
- »ç¿ëÀÚ ÇÁ·Î¼¼½º´Â ¿À¶óŬ ¼¹ö ÇÁ·Î¼¼½º µÎ°³¸¦ »ý¼ºÇÕ´Ï´Ù:
- Çϳª´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓµÈ ±âº» ÇÁ·Î¼¼½º·Î SQL
¸í·ÉÀ» ½ÇÇàÇÏ°í ÄÁÆ®·Ñ ÆÄÀÏÀ» À絿±âÇÏ°í º¹±¸ roll-forward¸¦ ÇÕ´Ï´Ù.
- ´Ù¸¥ Çϳª´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓµÈ Æú¸µ
ÇÁ·Î¼¼½º·Î RPC ¿Ï·á(completion)¸¦ ã½À´Ï´Ù(µ¥ÀÌÅͺ£À̽º ´ç ¿ÀÁ÷ Çϳª).
- ¹é¾÷°ú º¹±¸ Á¤º¸´Â ÄÁÆ®·Ñ ÆÄÀϷκÎÅÍ ÀÐ¾î µéÀÔ´Ï´Ù.
Recovery Manager¿¡ÀÇ Á¢¼Ó
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÏÁö ¾Ê°í
RMAN¿¡ Á¢¼ÓÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ µû¸£½Ê½Ã¿À:
- ¹é¾÷ÇÏ°íÀÚ ÇÏ´Â ´ë»ó µ¥ÀÌÅͺ£À̽º °áÁ¤
- 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¿¡ Á¢¼ÓÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦
µû¸£½Ê½Ã¿À:
- OEM(Oracle Enterprise Manager) ½ÃÀÛ
- Navigator À©µµ¿ì¿¡¼ ¹é¾÷ÇÏ°íÀÚ ÇÏ´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¸¦ ¼±ÅÃÇÏ¿© Á¢¼Ó
- Tools -> Applications ¸Þ´º¿¡¼ Oracle Backup Manager
¼±ÅÃ
- Backup Manager - Subsystem ´ÙÀ̾ó·Î±× ¹Ú½º°¡ ³ªÅ¸³ª¸é ¡°Oracle8
Recovery Manager Subsystem¡± ¼±ÅÃ
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)·Î Á¢¼ÓÇÏ·Á¸é ¸Þ´º¿¡¼ Catalog -> Use
Recovery Catalog
Ç׸ñ -> Catalog ¼±ÅÃ
-> Connect String ¼±ÅÃ
- Recovery Catalog Login ´ÙÀ̾ó·Î±× ¹Ú½º¿¡¼ º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ
»ç¿ëÀÚ À̸§,ºñ¹Ð ¹øÈ£, ±×¸®°í Á¢¼Ó ¹®ÀÚ¿ ÀÔ·Â
Á¢¼Ó ÇÁ·Î¼¼½º
RMAN Á¢¼Ó
¸í·ÉÀ» Ä¡¸é ´ÙÀ½ À̺¥Æ®°¡ ¹ß»ýÇÕ´Ï´Ù:
- Ŭ¶óÀ̾ðÆ® PC »óÀÇ Backup Manager¿¡ ´ëÇØ »ç¿ëÀÚ ÇÁ·Î¼¼½º°¡ »ý¼ºµË´Ï´Ù.
- »ç¿ëÀÚ ÇÁ·Î¼¼½º´Â ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓµÇ¾î ÀÖ´Â ¿À¶óŬ ¼¹ö ÇÁ·Î¼¼½º¸¦ µÎ °³
»ý¼ºÇÕ´Ï´Ù(ÀϹÝÀûÀÎ RMAN Á¢¼Ó¿¡¼Ã³·³).
- º¹±¸ Ä«Å»·Î±×(Recovery Catalog)°¡ »ç¿ëµÇ¸é Á¤º¸¸¦ ÀÐ¾î ¿À°í °»½ÅÇϱâ À§ÇØ º¹±¸ Ä«Å»·Î±× (Recovery Catalog) µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇØ ¼¹ö ÇÁ·Î¼¼½º°¡ »ý¼ºµË´Ï´Ù.
Note
- ¿Â¶óÀÎ ¹é¾÷ÀÇ °æ¿ì µ¥ÀÌÅͺ£À̽º¸¦ archivelog ¸ðµå·Î ³õÀ¸½Ê½Ã¿À.
- ¿ø°Ý °ü¸®¿Í SYSDBA ±ÇÇÑ¿¡ ÇÊ¿äÇϹǷΠºñ¹Ð ¹øÈ£°¡ ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇϽʽÿÀ.
RMAN¿¡¼ backup, restore, recoveryÀÇ ´ë»óÀÌ µÇ´Â database¸¦ ( ) DB¶ó°í ºÎ¸¥´Ù. ºóÄ¿¡ ¾Ë¸ÂÀº
´Ü¾î¸¦ ¿µ¾î ´ë¹®ÀÚ·Î ÀÔ·ÂÇϽÿÀ.
´ä
O