°³¿ä
º» ÀåÀº º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ °¡Áø Recovery
Manager¸¦ »ç¿ëÇϴµ¥ ÇÊ¿äÇÑ ±¸¼º ¿ä¼Ò¸¦ ´Ù·ì´Ï´Ù. ´Ù·ç¾îÁö´Â ÁÖÁ¦´Â ´ÙÀ½ ¼ø¼´ë·ÎÀÔ´Ï´Ù:
Recovery Manager ½ÃÀÛ
Recovery Manager´Â ´ÙÀ½ ¹æ¹ýÀ¸·Î ½ÃÀÛÇÒ ¼ö ÀÖ½À´Ï´Ù:
Note
µ¥ÀÌÅͺ£À̽º µî·Ï
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ý¼ºÇÏ°í
Recovery Manager¸¦ ½ÃÀÛÇÑ ÈÄÀÇ Ã¹¹ø° ´Ü°è´Â º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ µ¥ÀÌÅͺ£À̽º¸¦ µî·ÏÇÏ´Â °ÍÀÔ´Ï´Ù. ¹é¾÷À» ÇÏ·Á¸é ¹Ýµå½Ã ÀÌ°ÍÀ» ¸ÕÀú ÇÏ¿©¾ß ÇÕ´Ï´Ù.
Á¢¼ÓÇÒ ´ë»ó µ¥ÀÌÅͺ£À̽º°¡ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ µî·ÏµË´Ï´Ù.
¿¹
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-08029: snapshot controlfile name set to default
value:
$ORACLE_HOME\DATABASE\SNCF$ORACLE_SID.ORA
RMAN-08002:
starting full resync of recovery catalog
RMAN-08004: full resync
complete
ÀÌ ÀÛ¾÷À» ¼öÇàÇÏ·Á¸é ´ë»ó µ¥ÀÌÅͺ£À̽º°¡ ¸¶¿îÆ®µÇ°Å³ª ¿·ÁÁ®
ÀÖ¾î¾ß ÇÕ´Ï´Ù. ´ë»ó µ¥ÀÌÅͺ£À̽º ±¸Á¶¿¡ ´ëÇÑ Á¤º¸´Â ÄÁÆ®·Ñ ÆÄÀϷκÎÅÍ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)·Î
Àü¼ÛµË´Ï´Ù.
Note
Recovery
Manager´Â µ¥ÀÌÅͺ£À̽º°¡ óÀ½ »ý¼ºµÉ ¶§ °è»êµÇ¾îÁø ³»ºÎ DBID(Database Identifier)¸¦ µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ °íÀ¯ ½Äº°ÀÚ·Î
»ç¿ëÇÕ´Ï´Ù. ±âÁ¸ µ¥ÀÌÅͺ£À̽º¸¦ º¹»çÇÏ¿© »ý¼ºÇÑ »õ µ¥ÀÌÅͺ£À̽º¸¦ µî·ÏÇÏ°í db_nameÀ» º¯°æÇÏ·Á°í ÇÏ¸é ½ÇÆÐÇÒ °ÍÀÔ´Ï´Ù. º¹»çµÈ
µ¥ÀÌÅͺ£À̽º¸¦ ¹é¾÷ÇÏ·Á¸é »õ º¹±¸ Ä«Å»·Î±×(Recovery Catalog) ¼ÒÀ¯ÀÚ¸¦ »ý¼ºÇÑ ÈÄ, ÀÌ °èÁ¤¿¡¼ Ä«Å»·Î±×¸¦
À缳ġÇϽʽÿÀ.
Backup Manager
Backup Manager¸¦ »ç¿ëÇÏ¿© µ¥ÀÌÅͺ£À̽º¸¦ µî·ÏÇÏ·Á¸é:
µ¥ÀÌÅͺ£À̽º Àç¼³Á¤ ¸í·É
´ë»ó µ¥ÀÌÅͺ£À̽º°¡ °ú°ÅÀÇ ÇÑ ½ÃÁ¡À¸·Î º¹±¸µÇ·Á¸é µ¥ÀÌÅͺ£À̽º°¡ ºÒ¿ÏÀü º¹±¸¶ó°í ¾Ë·ÁÁø
¡°resetlogs¡± ¿É¼ÇÀ¸·Î ¿·ÁÁ®¾ß¸¸ ÇÕ´Ï´Ù. ÀÌ °æ¿ì Recovery Manager´Â ¡°reset database¡± ¸í·ÉÀÌ ³»·ÁÁú ¶§±îÁö
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.
ÀÌ°ÍÀº Recovery Manager°¡ resetlogs¿Í ¿¹Àü ÄÁÆ®·Ñ ÆÄÀÏÀÇ ¿ì¹ßÀû º¹¿øÀ» ±¸º°Çϴµ¥ µµ¿òÀÌ µË´Ï´Ù.
¿¹
RMAN> ret database;
RMAN-03022: compiling command:
reset
RMAN-03023: executing command: reset
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
Incarnation ¹øÈ£
µ¥ÀÌÅͺ£À̽ºÀÇ incarnationÀº 0À¸·Î Àç¼³Á¤µÇ´Â ·Î±× ½ÃÄö½º ¹øÈ£¿¡ ¿ì¼±ÇÏ¿© µ¥ÀÌÅͺ£À̽ºÀÇ ¹öÀüÀ» ½Äº°Çϴµ¥ »ç¿ëµÇ´Â
¹øÈ£ÀÔ´Ï´Ù. ÀÌ°ÍÀº ¾ÆÄ«À̺êµÈ ¸®µÎ
·Î±×¿Í ¿Â¶óÀÎ ¸®µÎ ·Î±×°¡ µ¥ÀÌÅͺ£À̽ºÀÇ ºÎÀûÀýÇÑ ¡°incarnation¡±¿¡ Àû¿ëµÇ´Â °ÍÀ» ¸·¾Æ ÁÝ´Ï´Ù. ¡°reset database¡± ¸í·ÉÀº
µ¥ÀÌÅͺ£À̽ºÀÇ incarnation Á¤º¸¸¦ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ÀúÀåÇϱâ À§ÇØ Recovery Manager¿¡ ÀÇÇØ »ç¿ëµË´Ï´Ù. ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡
ÀÇÇÑ ÀÌÈÄÀÇ ¸ðµç ¹é¾÷°ú ·Î±× ¾ÆÄ«À̺ê´Â »õ µ¥ÀÌÅͺ£À̽º incarnation°ú °ü·ÃµË´Ï´Ù.
¡°Reset Database to Incarnation¡± ¸í·É
¡°reset
database to incarnation <key>¡± ¸í·ÉÀº µ¥ÀÌÅͺ£À̽ºÀÇ ÀÌÀü incarnationÀÇ ¹é¾÷À» º¹¿øÇÔ¿¡ ÀÇÇÑ
¡°resetlogs¡± ÀÛ¾÷ÀÇ È¿°ú¸¦ µÇµ¹¸± ¶§ »ç¿ëÇÕ´Ï´Ù. µÇµ¹¾Æ °¥ µ¥ÀÌÅͺ£À̽º incarnation¿¡ ´ëÇØ ·¹ÄÚµåÀÇ ±âº» Å°(primary
key)¸¦ ÁöÁ¤ÇÏ¿©¾ß ÇÕ´Ï´Ù:
RMAN> reset
database to incarnation <identifier>;
Note: ½Äº°ÀÚ´Â ¡°list incarnation of database¡± ¸í·ÉÀ¸·Î ¾òÀ» ¼ö
ÀÖ½À´Ï´Ù.
¿¹
RMAN> list incarnation of database;
RMAN-03022:
compiling command: list
RMAN-06240: List of Database
Incarnations
RMAN-06241: DB KeyInc Key DB Name DB ID CUR Reset
SCN
RMAN-06242: ---------- --- ------- ---------- ---
---------
RMAN-06243: 1 2 ORACLE 1186311932 YES
25730
RMAN-06243: 1 421 ORACLE 1186311932 NO
172279
RMAN> reset database to incarnation 421;
Backup Manager
Backup Manager¸¦ »ç¿ëÇÏ¿© µ¥ÀÌÅͺ£À̽º¸¦ Àç¼³Á¤ÇÏ·Á¸é:
Ä«Å»·Î±× ¸í·É À絿±â
À絿±â ÀÛ¾÷Àº
Recovery Manager·Î ÇÏ¿©±Ý º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ ÇöÀç ÄÁÆ®·Ñ ÆÄÀÏ°ú ºñ±³ÇÏ¿© ºüÁö°Å³ª º¯°æµÈ Á¤º¸¸¦ °¡Áö°í º¹±¸
Ä«Å»·Î±×(Recovery Catalog)¸¦ °»½ÅÇϵµ·Ï
ÇÕ´Ï´Ù.
À絿±â°¡ ÇÊ¿äÇÑ ÀÌÀ¯
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â ·Î±× ½ºÀ§Ä¡°¡
¹ß»ýÇϰųª ·Î±×°¡ ¾ÆÄ«À̺êµÉ ¶§,
¶Ç´Â µ¥ÀÌÅͺ£À̽º ±¸Á¶°¡ º¯°æµÉ ¶§ ÀÚµ¿ÀûÀ¸·Î °»½ÅµÇÁö ¾Ê½À´Ï´Ù. À̵é Á¤º¸´Â ÄÁÆ®·Ñ ÆÄÀÏ¿¡ ij½¬µÇ¸ç º¹±¸ Ä«Å»·Î±×(Recovery Catalog)·Î ÀÚÁÖ ÀúÀåµÇ¾îÁ®¾ß
ÇÕ´Ï´Ù. ¼º´É Çâ»óÀ» À§ÇØ Recovery Manager´Â º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿Í ÀÏÄ¡ÇÏÁö ¾Ê´Â ÄÁÆ®·Ñ ÆÄÀÏ ±â·Ï¸¸À» À絿±âÇÕ´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)´Â º¹±¸¿¡ ÇÊ¿äÇÑ ¸ðµç
Á¤º¸¸¦ ÀúÀåÇÕ´Ï´Ù.
À絿±â ¸í·É ±¸¹®
´ÙÀ½Àº À絿±â
¸í·ÉÀÇ ¿Ïº®ÇÑ ±¸¹®ÀÔ´Ï´Ù:
resync catalog [from
controlfilecopy <control
file name>];
µ¥ÀÌÅͺ£À̽º ±â·Ï À絿±â
¡°resync catalog¡± ¸í·ÉÀº ÃÖ¼ÒÇÑ ´ë»ó µ¥ÀÌÅͺ£À̽º°¡ ¸¶¿îÆ®µÇ¾î ÀÖ´Ù¸é ´ÙÀ½ ·¹Äڵ带
°»½ÅÇÕ´Ï´Ù:
¡°Resync Catalog¡±
¸í·ÉÀ» »ç¿ëÇÒ ¶§
´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ ¹°¸®Àû ±¸Á¶¸¦ º¯°æÇÑ ÈÄ ¡°resync catalog¡± ¸í·ÉÀ» ³»¸®´Â °ÍÀº
¿©·¯ºÐÀÇ Ã¥ÀÓÀÔ´Ï´Ù. ¹°¸®Àû ½ºÅ°¸¶ º¯°æÀº ´ÙÀ½ ÀÛ¾÷¿¡ ÇØ´çÇÕ´Ï´Ù:
Note: ´ë»ó µ¥ÀÌÅͺ£À̽º°¡ ¹é¾÷ ÄÁÆ®·Ñ ÆÄÀÏÀ̳ª »õ·Î »ý¼ºµÈ ÄÁÆ®·Ñ ÆÄÀÏ, ¶Ç´Â ÇöÇàÀÌ ¾Æ´Ñ(noncurrent) ÄÁÆ®·Ñ ÆÄÀÏÀ» ¸¶¿îÆ®Çß´Ù¸é º¹±¸ Ä«Å»·Î±×(Recovery Catalog)ÀÇ ¹°¸®Àû ½ºÅ°¸¶ Á¤º¸´Â °»½ÅµÇÁö ¾Ê½À´Ï´Ù.
ÀÚµ¿ À絿±â
Recovery
Manager´Â º¹±¸ Ä«Å»·Î±×(Recovery Catalog) µ¥ÀÌÅͺ£À̽º¿¡ Á¢¼ÓµÇ¾îÁ® ÀÖ´Ù¸é ¹é¾÷À̳ª º¹¿ø, ¶Ç´Â º¹±¸ ¸í·É ÀüÈÄ¿¡ ÀÚµ¿À¸·Î À絿±â¸¦
¼öÇàÇÕ´Ï´Ù. Á¢¼ÓµÇ¾îÁ® ÀÖÁö ¾ÊÀ» °æ¿ì º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ °»½ÅÇÏ·Á¸é ¡°backup¡±°ú ¡°copy¡± ¸í·É µÚ¿¡ ¡°resync catalog¡± ¸í·ÉÀÌ
ÇÊ¿äÇÕ´Ï´Ù.
Backup Manager
Backup Manager¸¦ »ç¿ëÇÏ¿© µ¥ÀÌÅͺ£À̽º¸¦ À絿±â ÇÏ·Á¸é:
Change¿Í Catalog
¸í·É
ÀÌµé ¸í·ÉÀº º¹±¸ Ä«Å»·Î±×(Recovery Catalog), ÄÁÆ®·Ñ ÆÄÀÏ, ±×¸®°í ¹°¸®Àû ¸Åü¿¡ ÀúÀåµÈ Á¤º¸¸¦ ¼öµ¿À¸·Î
Á¦¾îÇÕ´Ï´Ù.
Á¤ÀÇ
ÀÌµé ¸í·ÉÀ» ¼º°øÀûÀ¸·Î
»ç¿ëÇÏ·Á¸é ¸î °¡Áö Å° ¿ë¾î°¡ ÇÊ¿äÇÕ´Ï´Ù. ÀÌµé ¿ë¾îÀÇ °³³äÀº 7 Àå¿¡¼ ´Ù·ç¾îÁ³½À´Ï´Ù.
¡°Change¡± ¸í·É ±¸¹®
¡°change¡± ¸í·É¿¡ ´ëÇØ ´ÙÀ½ ±¸¹®À» »ç¿ëÇϽʽÿÀ:
change <File Type> <Name>
<Options>;
´Ü: File Type
archivelog
datafilecopy
[tag]
backuppiece
[tag]
backupset
controlfilecopy
[tag]
Options Delete
Available
Unavailable
Uncatalog
Validate
Note
¿¹
½Ã½ºÅÛ ÆÄÀÏÀÇ »çº»ÀÌ /disk1/copy µð·ºÅ丮¿¡ ´õ ÀÌ»ó Á¸ÀçÇÏÁö
¾Ê½À´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡¼ ÀÌ Á¤º¸¸¦ Á¦°ÅÇÏ·Á¸é:
RMAN> change datafilecopy ¡®/disk1/copy/system01.dbf¡¯
2>
uncatalog;
¡°Catalog¡± ¸í·É ±¸¹®
¡°catalog¡± ¸í·É¿¡ ´ëÇؼ´Â ´ÙÀ½
±¸¹®À» »ç¿ëÇϽʽÿÀ:
catalog <File
Type> <quoted_string> TAG =<quoted_string> |
<identifier>;
´Ü: File Type
archivelog
datafilecopy
controlfilecopy
Note
¿¹
DB00 µ¥ÀÌÅͺ£À̽ºÀÇ ½Ã½ºÅÛ ÆÄÀÏÀÇ ¿î¿µ üÁ¦ »çº»ÀÌ /disk1/copy
µð·ºÅ丮¿¡ Á¸ÀçÇÕ´Ï´Ù. ÀÌ Á¤º¸¸¦ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ÀúÀåÇÏ·Á¸é:
RMAN> catalog datafilecopy
¡®/disk1/copy/system01.dbf¡¯
2> tag = ¡®DB00SYS¡¯;
Change ¸í·É
ÀÌ ¸í·ÉÀº ¹é¾÷ ¼¼Æ®, ¹é¾÷ Á¶°¢, ÆÄÀÏ »çº», ¾ÆÄ«À̺êµÈ ·Î±×, ±×¸®°í ÄÁÆ®·Ñ ÆÄÀÏ¿¡
ÀÛµ¿ÇÏ¿© ´ÙÀ½À» ÇÕ´Ï´Ù:
µ¥ÀÌÅÍ ÆÄÀÏ ¹é¾÷ »èÁ¦
ÄÁÆ®·Ñ ÆÄÀÏ, º¹±¸ Ä«Å»·Î±×(Recovery Catalog), ±×¸®°í ±×µéÀÌ µé¾î
ÀÖ´Â ¸Åü·ÎºÎÅÍ ¿À·¡µÈ ÆÄÀÏÀ» Á¦°ÅÇÕ´Ï´Ù. ÀÌ ¸í·É ¾Õ¿¡´Â Ç×»ó ¡°allocate channel¡± ¸í·ÉÀÌ ÀÖ¾î¾ß ÇÕ´Ï´Ù. ¿¹¸¦ µé¾î µ¥ÀÌÅÍ ÆÄÀÏ »çº»À»
»èÁ¦ÇÏ·Á¸é:
RMAN> allocate channel for
delete type = disk;
RMAN> change datafilecopy ¡®/disk1/data/system01.bak¡¯
delete;
RMAN> release channel;
ä³Î ÇÒ´ç
¿î¿µ üÁ¦¿¡ ¾×¼¼½ºÇÏ´Â
¸í·ÉÀº ä³ÎÀ» ÇÒ´çÇØ¾ß ÇÕ´Ï´Ù. ¡°change. . . delete¡± ¸í·ÉÀÌ µð½ºÅ©³ª Å×ÀÌÇÁ »ó¿¡¼ ¹°¸®Àû ÆÄÀÏÀ» »èÁ¦ÇÏ·Á¸é ä³ÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.
µ¿½Ã¿¡ ÇÑ Ã¤³Î¸¸ÀÌ ÇÒ´çµÉ ¼ö ÀÖ¾î ¸ðµç OS ¸í·ÉÀº ¿Ï·áµÉ ¶§ ä³ÎÀ» ÇØÁ¦ÇÕ´Ï´Ù.
Allocate Channel ±¸¹®(ºÎºÐ)
Allocate channel for delete
type [disk | ¡®SBT_TAPE¡¯]
¡°for delete¡± ¿É¼ÇÀº ÆÄÀÏÀ» »èÁ¦ÇÒ
¶§¿¡¸¸ À¯¿ëÇϸç ÀÛ¾÷¿¡ ´ëÇÑ ÀÔ·ÂÀ̳ª Ãâ·Â ä³Î·Î »ç¿ëµÉ ¼ö ¾ø½À´Ï´Ù. ÀÌ°ÍÀº µÚ¿¡ ¼³¸íµÉ º°µµÀÇ ¡°allocate channel¡± ¸í·ÉÀ»
Æ÷ÇÔÇÕ´Ï´Ù.
Catalog ¸í·É
¡°catalog¡± ¸í·ÉÀ» »ç¿ëÇÏ¿© ´ÙÀ½°ú °°Àº °Íµé¿¡ ´ëÇÑ µ¥ÀÌÅÍ ÆÄÀÏ »çº» Á¤º¸³ª ¾ÆÄ«À̺êµÈ ·Î±× Á¤º¸, ¶Ç´Â ÄÁÆ®·Ñ ÆÄÀÏ
»çº» Á¤º¸¸¦ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù:
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ÀÌÁßÈµÈ ÆÄÀÏ(mirrored file) ÀúÀå
ÀÌÁßÈµÈ µð½ºÅ© µå¶óÀ̺긦
Áß´ÜÇÑ ÈÄ ¡°Catalog¡± ¸í·ÉÀ» »ç¿ëÇÏ¿© ÆÄÀÏ
»çº»ÀÇ À§Ä¡¸¦ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. µð½ºÅ©°¡ resilver(Áï,ÀÌÁßÈµÈ °ÍÀÌ À絿±âÈ)µÉ ¶§
¡°change uncatalog¡± ¸í·ÉÀ» »ç¿ëÇÏ¿© º¹±¸ Ä«Å»·Î±×(Recovery Catalog)·ÎºÎÅÍ ÆÄÀÏÀ» Á¦°ÅÇϽʽÿÀ.
Ä«Å»·Î±× Á¤º¸ Ãß°¡ |
ÀÒ¾î¹ö¸®°Å³ª ¼Õ»óµÈ Ä«Å»·Î±×
µ¥ÀÌÅͺ£À̽º
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â µ¥ÀÌÅͺ£À̽º°¡ ¼Õ»óµÇ¾î À籸ÃàµÇ¾îÁ®¾ß ÇÑ´Ù¸é ´ÙÀ½ ¹æ¹ý Áß Çϳª¸¦
»ç¿ëÇÏ¿© Ä«Å»·Î±×¸¦ À籸ÃàÇÒ ¼ö
ÀÖ½À´Ï´Ù:
Note
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)
º¸°í
ÀÌµé ¸í·ÉÀº º¹±¸ Ä«Å»·Î±×(Recovery Catalog) ³»¿¡ Æ÷ÇÔµÈ Á¤º¸¸¦
ºÐ¼®ÇÏ°í ³ª¿ÇØ ÁÝ´Ï´Ù.
¡°Report¡± ¸í·É
¹é¾÷,
º¹»ç, º¹¿ø, ±×¸®°í º¹±¸ ÀÛ¾÷ÀÇ ´Ù¾çÇÑ ±¹¸éÀ» ºÐ¼®ÇÏ·Á¸é ¡°Report¡± ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù.
¡°List¡± ¸í·É
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ÀúÀåµÈ ¹é¾÷ ¼¼Æ®,
ÆÄÀÏ »çº», ±×¸®°í ¾ÆÄ«À̺êµÈ ·Î±×¿¡
´ëÇÑ Á¤º¸¸¦ Ãâ·ÂÇÏ·Á¸é ¡°List¡± ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù.
Note: ¡°Report¡± ¸í·ÉÀº Backup Manager
v1.4¿¡¼´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.
¡°Report¡± ¸í·É ±¸¹®
¡°report¡± ¸í·É¿¡ ´ëÇؼ´Â ´ÙÀ½ ±¸¹®À»
»ç¿ëÇϽʽÿÀ:
report need backup
<Options> = integer <Object> <name>;
report unrecoverable
<Object> <name>;
report obsolete redundancy =
integer;
report schema <atClause>;
´Ü: Options incremental
days
redundancy
Object
datafile
tablespace
database
atClause
at time = <quoted_string>
at scn = integer
at logseq = integer
Note
¿¹
¹é¾÷µÇ¾î¾ßÇÒ ÆÄÀÏÀ» °áÁ¤ÇÏ·Á¸é:
RMAN> report need backup incremental 3
database;
¡°List¡± ¸í·É ±¸¹®
list <Options> of
<Object List> <values>;
list incarnation of database of
<values>;
´Ü: Options
copy
backupset
Object List datafile
<quoted_string>
tablespace <quoted_string>
database
archivelog all
Values tag = <quoted_string>
device type
<quoted_string>
like
<quoted_string>
from
time = <quoted_string>
until time =
<quoted_string>
Note
¿¹
½Ã½ºÅÛ Å×ÀÌºí½ºÆäÀ̽ºÀÇ ¸â¹öÀÎ µ¥ÀÌÅÍÆÄÀÏÀÇ ¸ðµç ÆÄÀÏ »çº»À»
³ª¿ÇÏ·Á¸é:
RMAN> list copy of
tablespace system;
Report ¸í·É
ÀÌ ¸í·ÉÀº ¡°List¡± ¸í·Éº¸´Ù ´õ ÀÚ¼¼È÷ º¹±¸ Ä«Å»·Î±×(Recovery Catalog)ÀÇ Á¤º¸¸¦ ºÐ¼®ÇØ
ÁÝ´Ï´Ù.
´ÙÀ½°ú °°Àº ´Ù¾çÇÑ Áú¹®¿¡ ´ëÇØ º¸°í°¡ ¸¸µé¾îÁú ¼ö ÀÖ½À´Ï´Ù:
Report Need Backup ¸í·É
¡°Report Need Backup¡± ¸í·ÉÀº ¹é¾÷ÀÌ ÇÊ¿äÇÑ ¸ðµç µ¥ÀÌÅÍ ÆÄÀÏÀ» ³ªÅ¸³»´Âµ¥ »ç¿ëÇÕ´Ï´Ù.
º¸°í¼ ´Â º¹¿ø¿¡ »ç¿ëµÇ¾úÀ» °¡Àå ÃÖ±ÙÀÇ ¹é¾÷À» ³ªÅ¸³» ÁÝ´Ï´Ù. ¼¼ °¡Áö ¿É¼ÇÀÌ ÀÖ½À´Ï´Ù:
List ¸í·É
¡°List¡± ¸í·ÉÀº ´ÙÀ½°ú °°Àº Á¤º¸¸¦ ÀüºÎ º¸¿© ÁÖ´Â ÀÚ¼¼ÇÑ º¸°í¼¸¦ ¸¸µé¾î ³À´Ï´Ù:
¡°List¡± ¸í·ÉÀÇ ¿¹
¡°List¡± ¸í·ÉÀ» »ç¿ëÇϱâ Àü¿¡ ´ë»ó µ¥ÀÌÅͺ£À̽º¿Í
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¸¦ ¸í½ÃÇÏ¿© RMAN¿¡
Á¢¼ÓÇؾ߸¸ ÇÕ´Ï´Ù:
RMAN> target
sys/oracle@DB00¡± \
2> rcvcat rman/rman@RCVCAT¡±
µ¥ÀÌÅÍ ÆÄÀÏ »çº» ³ª¿
À§ÀÇ ¿¹´Â
¡°List¡± ¸í·ÉÀ» »ç¿ëÇÏ¿© SYSTEM Å×ÀÌºí½ºÆäÀ̽º¿¡ ´ëÇÑ µ¥ÀÌÅÍ ÆÄÀÏÀÇ »çº»À» ³ª¿ÇÏ°í ÀÖ½À´Ï´Ù.
¹é¾÷ ¼¼Æ® ³ª¿
À§ÀÇ ¿¹´Â
¡°List¡± ¸í·ÉÀ» »ç¿ëÇÏ¿© µ¥ÀÌÅÍ
ÆÄÀÏ ¡°/disk1/data/user01.dbf¡±ÀÇ ¸ðµç ¹é¾÷À» ³ª¿ÇÏ°í ÀÖ½À´Ï´Ù.
Incarnation ³ª¿
ˤ˂
¿¹´Â µ¥ÀÌÅͺ£À̽º DB00ÀÇ ¸ðµç ¾Ë·ÁÁø incarnationÀ» ³ª¿ÇÏ°í ÀÖ½À´Ï´Ù.
Backup Manager
Backup Manager¸¦ »ç¿ëÇÏ¿© ¹é¾÷ ¼¼Æ®¿Í ÆÄÀÏÀÇ »çº»À» ³ª¿ÇÏ·Á¸é:
ÀúÀåµÈ ½ºÅ©¸³Æ®
Recovery Manager ½ºÅ©¸³Æ®´Â ´ÙÀ½¿¡ ´ëÇÑ ÀÏ·ÃÀÇ ¸í·ÉÀÔ´Ï´Ù:
½ºÅ©¸³Æ® ÀúÀå
¾ß°£ ¹é¾÷Àº
Nightly BackupÀ̶ó´Â ½ºÅ©¸³Æ® Çϳª·Î »ý¼ºµÇ°í ÀúÀåµÉ ¼ö ÀÖ½À´Ï´Ù. º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ½ºÅ©¸³Æ®¸¦ ÀúÀåÇϸé
DBA°¡ Recovery Manager¸¦ »ç¿ëÇÏ¿© (±â°è¿¡ »ó°ü¾øÀÌ) ½ºÅ©¸³Æ®¿¡ ¾×¼¼½ºÇÒ ¼ö ÀÖ°Ô ÇØ ÁÝ´Ï´Ù. ¾î¶² ½ºÅ©¸³Æ®°¡ ÀúÀåµÇ¾î ÀÖ´ÂÁö
¾Ë¾Æ º¸·Á¸é RC_STORED_SCRIPT¿Í RC_STORED_SCRIPT_LINE ºä¸¦ ÁúÀÇÇϽʽÿÀ.
½ºÅ©¸³Æ® ±¸¹®
½ºÅ©¸³Æ®¸¦ À¯ÁöÇÏ´Â ÁÖ
¸í·É ³× °¡Áö´Â ´ÙÀ½°ú °°½À´Ï´Ù:
Note: ÀÌ°ÍÀÌ ¿Ïº®ÇÑ ±¸¹®Àº ¾Æ´Õ´Ï´Ù.
Run ¸í·É »ç¿ë
½ºÅ©¸³Æ®¸¦ »ý¼ºÇϰųª ´ëüÇÏ´Â °ÍÀº º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ Á¤º¸¸¦ ÀúÀåÇϱ⸸ ÇÒ
»Ó ½ÇÇàÀ» ÇÏÁö´Â ¾Ê½À´Ï´Ù. ÀúÀåµÈ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÏ·Á¸é ¡°run¡± ¸í·ÉÀ» »ç¿ëÇؾ߸¸ ÇÕ´Ï´Ù.
Run ±¸¹®
¿î¿µ üÁ¦ ¸í·É,
SQL ½ºÅ©¸³Æ®, ¹é¾÷ ¸í·É, ÀúÀåµÈ ½ºÅ©¸³Æ® µîÀ» ½ÇÇàÇÏ·Á¸é ¡°run¡± ¸í·ÉÀ» »ç¿ëÇϽʽÿÀ. ©¸·ÇÑ ±¸¹® ¼Ò°³°¡ ¾Æ·¡¿¡
ÀÖ½À´Ï´Ù:
run { <commands>
;}
´Ü: Commands
allocate
backup
execute script <name>;
recover
sql
host
Note: ÀÌ°ÍÀÌ ¿Ïº®ÇÑ ±¸¹®Àº ¾Æ´Õ´Ï´Ù.
Run ¸í·É
¿¹
ÀÌ¹Ì »ý¼ºÇÑ ¡°NightlyBackup¡±À» ½ÇÇàÇÏ·Á¸é ´ÙÀ½ ±¸¹®À»
»ç¿ëÇϽʽÿÀ:
RMAN> run { execute
script NightlyBackup ; }
µ¥ÀÌÅÍ µñ¼Å³Ê¸®
ºä
catrman.sql ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÒ ¶§ º¹±¸ Ä«Å»·Î±×(Recovery Catalog) ÀÚü ½ºÅ°¸¶¿¡ ¿©·¯ ºä°¡ »ý¼ºµË´Ï´Ù. Áß¿äÇÑ ºä ¸î °¡ÁöÀÔ´Ï´Ù:
¿¹ 1
º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ¾î¶² µ¥ÀÌÅͺ£À̽º°¡
ÇöÀç µî·ÏµÇ¾î ÀÖ´ÂÁö º¸·Á¸é:
SQL> select *
from rc_database;
DB_KEY
DBINC_KEY DBID NAME CHANGE# RESETLOGS
------ ---------
---------- ---- ------- --------
1 2 1943591421 DB00
1 20-OCT-97
¿¹ 2
´ë»ó µ¥ÀÌÅͺ£À̽ºÀÇ ¾î¶²
Å×ÀÌºí½ºÆäÀ̽º°¡ ÇöÀç º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ÀúÀåµÇ¾î ÀÖ´ÂÁö º¸·Á¸é:
SQL> select DB_KEY, DBINC_KEY, DB_NAME, TS#,
NAME,
2> CREATION_CHANGE# CHANGE#, CREATION_TIME
CRE_DATE
3> from rc_tablespace;
DB_KEY DBINC_KEY DB_NAME TS# NAME CHANGE#
CRE_DATE
------ --------- ------ --- ------- -------
---------
1 2 DB00 3 DATA01 9611
20-OCT-97
1 2 DB00 1 RBS 9599
20-OCT_97
1 2 DB00 4 RMAN_TS 14023
29-OCT-97
1 2 DB00 0 SYSTEM 3
20-OCT-97
1 2 DB00 2 TEMP 9605
20-OCT-97
¿¹ 3
ÇöÀç º¹±¸ Ä«Å»·Î±×(Recovery Catalog)¿¡ ´ë»ó µ¥ÀÌÅͺ£À̽º¿¡
´ëÇÑ ¾î¶² ½ºÅ©¸³Æ®°¡ ÀúÀåµÇ¾î ÀÖ´ÂÁö º¸·Á¸é:
SQL>
select * from rc_stored_script;
DB_KEY DB_NAME SCRIPT_NAME
------ -------
-------------
1 DB00 nightlybackup
1 DB00
archivebackup