¸®µÎ ·Î±× È÷½ºÅ丮
ÀüÇüÀûÀÎ µ¥ÀÌÅͺ£À̽º ¿î¿µ ½Ã¿¡, ¸ðµç Æ®·£Àè¼ÇÀº ¿Â¶óÀÎ
¸®µÎ ·Î±× ÆÄÀÏ¿¡ ±â·ÏµË´Ï´Ù. ÀÌ°ÍÀº µ¥ÀÌÅͺ£À̽º Àå¾Ö°¡ ¹ß»ýÇÏ´Â °æ¿ì Æ®·£Àè¼ÇÀÇ ÀÚµ¿ÀûÀÎ º¹±¸¸¦ Çã¿ëÇÕ´Ï´Ù.
Noarchivelog ¸ðµå
µðÆúÆ®·Î µ¥ÀÌÅͺ£À̽º´Â noarchivelog
¸ðµå·Î »ý¼ºµË´Ï´Ù. noarchivelog ¸ðµå·Î µ¥ÀÌÅͺ£À̽º¸¦ ½ÇÇàÇϴ Ư¡Àº ´ÙÀ½°ú °°½À´Ï´Ù:
Noarchivelog ¸ðµåÀÇ ¿µÇâ
Noarchivelog¸ðµå·Î ¹Ìµð¾î º¹±¸ ¿É¼Ç
Archivelog ¸ðµå
¾ÆÄ«ÀÌºê ¿ä±¸»çÇ×
ÄÁÆ®·Ñ ÆÄÀÏ¿¡ archivelog ¸ðµå ¼³Á¤ÀÇ ¿µÇâ
¹Ìµð¾î º¹±¸ ¿É¼Ç
UNIX »óÀÇ ¿¹:LOG_ARCHIVE_DEST=/disk1/archive/
UNIX¿Í NT »óÀÇ ¿¹:LOG_ARCHIVE_FORMAT=arch%s.arc ÆÄÀÏ À̸§ ¿É¼Ç
ÁÖ:LOG_ARCHIVE_DEST ÆĶó¹ÌÅÍ´Â raw device¸¦ ÂüÁ¶Çؼ´Â ¾ÈµË´Ï´Ù. |
¾ÆÄ«À̺ê·Î±× ÆÄÀÏÀÇ ÀÌÁßÈ(duplexing)
¾ÆÄ«ÀÌºê ·Î±×
ÆÄÀϵéÀ» ÀÌÁßÈ ÇÔÀ¸·Î½á ¹Ìµð¾î Àå¾Ö·ÎºÎÅÍ ÀÌ ÆÄÀϵéÀ» ´õ¿í´õ º¸È£ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌÁßÈ°¡ ±¸¼ºµÇ¾úÀ» ¶§ ¾ÆÄ«ÀÌºê ·Î±× ÆÄÀÏÀÇ º¹»ç´Â ´ÙÀ½ÀÇ
init.ora ÆĶó¹ÌÅÍ ÆÄÀÏ¿¡ ÁöÁ¤µÈ ¸ñÀûÁö·Î ±â·ÏµË´Ï´Ù.
LOG_ARCHIVE_DUPLEX_DEST = filename or device name
ÁÖ:LOG_ARCHIVE_DUPLEX_DEST ÆĶó¹ÌÅÍ´Â ALTER SYSTEM ¸í·ÉÀ» »ç¿ëÇÏ¿© µ¿ÀûÀ¸·Î ¼³Á¤µÉ ¼ö ÀÖ½À´Ï´Ù.
LOG_ARCHIVE_DUPLEX_DEST ÆĶó¹ÌÅÍ´Â raw device¸¦ ÂüÁ¶Çؼ´Â ¾ÈµË´Ï´Ù.
´ÙÀ½ÀÇ ÆĶó¹ÌÅÍ ¼³Á¤¿¡ ÀÇÇØ ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏÀÌ ¼º°øÀûÀ¸·Î ±â·ÏµÇ¾îÁ®¾ß ÇÏ´Â ¾ÆÄ«ÀÌºê ·Î±× ¸ñÀûÁö °³¼ö¸¦ ÁöÁ¤ÇÒ ¼ö
ÀÖ½À´Ï´Ù:
LOG_ARCHIVE_MIN_SUCCEED_DEST = integer
ÁÖ: archivingÀÌ ±¸¼ºµÇ¾úÀ» ¶§, Æнº À̸§ÀÌ ¿î¿µ üÁ¦ ȯ°æ¿¡ µû¶ó ¼³Á¤µÇ¾î¾ß ÇÔÀ» È®ÀÎÇϽʽÿÀ. ÀÌ°ÍÀº UNIX¿Í NT¿¡¼ ¼·Î ´Ù¸¨´Ï´Ù.
Archivelog ¸ðµåÀÇ È°¼ºÈ
¸ðµå º¯°æÀº DBAÀÇ ÀÛ¾÷ÀÔ´Ï´Ù. ÀÌ°ÍÀº
µ¥ÀÌÅͺ£À̽º°¡ MOUNT »óÅÂÀÎ µ¿¾È ALTER DATABASE ¸í·ÉÀ» »ç¿ëÇÏ¿© ¼öÇàµË´Ï´Ù.
SVRMGR> alter database [ archivelog |
noarchivelog]
»ç¿ëÀÚ´Â µ¥ÀÌÅͺ£À̽ºÀÇ archivelog ¸ðµå¸¦ º¯°æÇϱâ À§ÇØ ¡°alter system¡± ±ÇÇÑÀ» °¡Á®¾ß¸¸ ÇÕ´Ï´Ù.
´Ü°è¹øÈ£ |
¼³¸í |
1 |
µ¥ÀÌÅͺ£À̽º¸¦ Á¾·á ÇÕ´Ï´Ù. |
2 |
µ¥ÀÌÅͺ£À̽ºÀÇ ¾ÆÄ«ÀÌºê ¸ðµå¸¦ º¯°æÇϱâ À§ÇÏ¿© MOUNT »óÅ·Πµ¥ÀÌÅͺ£À̽º¸¦
½ÃÀÛÇÕ´Ï´Ù: |
3 |
ALTER DATABASE¸í·ÉÀ» ÀÌ¿ëÇÏ¿© µ¥ÀÌÅͺ£À̽º¸¦ ¾ÆÄ«À̺ê·Î±× ¸ðµå·Î
¼³Á¤ÇÕ´Ï´Ù: |
4 |
µ¥ÀÌÅͺ£À̽º¸¦ ¿ÀÇ ÇÕ´Ï´Ù. |
5 |
µ¥ÀÌÅͺ£À̽º¸¦ Á¾·áÇÕ´Ï´Ù. |
6 |
µ¥ÀÌÅͺ£À̽ºÀÇ Àüü ´ÝÈù ¹é¾÷(full closed backup)À» ÃëÇÕ´Ï´Ù. |
ÁÖ: µ¥ÀÌÅͺ£À̽º ¸ðµå°¡ noarchivelog ¸ðµå¿¡¼ archivelog ¸ðµå·Î º¯°æµÈ ÈÄ,
¸ðµç µ¥ÀÌÅͺ£À̽º ÆÄÀÏ°ú ÄÁÆ®·Ñ
ÆÄÀÏÀ» ¹é¾÷ÇØ¾ß ÇÕ´Ï´Ù. µ¥ÀÌÅͺ£À̽º°¡ noarchivelog ¸ðµå¿´´ø µ¿¾ÈÀÇ ¹é¾÷Àº ³í¸®ÀûÀ¸·Î ´õ ÀÌ»ó »ç¿ëµÉ ¼ö
¾ø½À´Ï´Ù.
µ¥ÀÌÅͺ£À̽º¸¦ archivelog ¸ðµå·Î ¹Ù²Û ÈÄ¿¡ ÃëÇØÁø »õ·Î¿î ¹é¾÷Àº ¾ÕÀ¸·ÎÀÇ ¸ðµç ¾ÆÄ«ÀÌºê ¸®µÎ ·Î±× ÆÄÀÏÀÌ Àû¿ëµÉ °Í¿¡
´ëºñÇÑ ¹é¾÷ÀÔ´Ï´Ù.
µ¥ÀÌÅͺ£À̽º¸¦ ARCHIVELOG ¸ðµå·Î ¼³Á¤ÇÏ´Â °ÍÀº ÀÚµ¿ÀûÀ¸·Î ARCH ÇÁ·Î¼¼½º¸¦ È°¼ºÈÇÏÁö
¾Ê½À´Ï´Ù. ´ÙÀ½ ÁÖÁ¦´Â ARCH ÇÁ·Î¼¼½ºÀÇ È°¼ºÈÀÔ´Ï´Ù.
Backup Manager
Backup Manager¸¦ ÀÌ¿ëÇÑ ¾ÆÄ«ÀÌºê ¹æ¹ýÀÇ º¯°æ:
Backup
Manager -> ·Î±×ÆÄÀÏ -> ¸Þ´º¿¡¼ ÀÚµ¿Àû archivingÀ̳ª ·Î±×ÆÄÀÏÀÇ È°¼ºÈ ¹× ÀÚµ¿Àû archivingÀÇ
ºñÈ°¼ºÈ
¾ÆÄ«À̺ê ÇÁ·Î¼¼½º
ÀÏ´Ü µ¥ÀÌÅͺ£À̽º¸¦ ARCHIVELOG ¸ðµå·Î ¼³Á¤Çϸé DBA´Â ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏÀ» ÀÚµ¿À¸·Î ¾ÆÄ«À̺êÇÒ °ÍÀÎÁö ¶Ç´Â ¼öµ¿À¸·Î ¾ÆÄ«À̺êÇÒ °ÍÀÎÁö¸¦ °áÁ¤ÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ´Ü°è´Â ÀÌÈÄ º¹±¸ ÀÛ¾÷¿¡ »ç¿ëÇÒ ¾ÆÄ«ÀÌºê ·Î±×¸¦ »ý¼ºÇÏ´Â µÎ¹ø° ´Ü°èÀÔ´Ï´Ù.
ÀÚµ¿ ¾ÆÄ«À̺ê¿Í ¼öµ¿ ¾ÆÄ«À̺ê
Áöħ
Âü°í: ¾î¶² ÀÌÀ¯·Î ÀÎÇØ ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º(ARCn)°¡ ½ÇÆÐÇÑ °æ¿ì ÀÏ´Ü Æ®·£Àè¼Ç ÀÛ¾÷ÀÌ ¸ðµç ¸®µÎ ·Î±×¸¦ ä¿ì¸é Oracle ¼¹ö°¡ Á¤ÁöµË´Ï´Ù. µ¥ÀÌÅͺ£À̽º¸¦ ARCHIVELOG ¸ðµå·Î ¼³Á¤ÇÑ´Ù´Â °ÍÀº Oracle ¼¹ö·Î ÇÏ¿©±Ý ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏÀÌ ¾ÆÄ«À̺êµÇÁö ¾Ê¾ÒÀ» ¶§´Â ÇØ´ç ÆÄÀÏÀ» °ãÃľ²Áö ¾Êµµ·Ï ÇÏ´Â °ÍÀ̹ǷΠÀÌ·¸°Ô Á¤ÁöÇÏ´Â °ÍÀÌ ÀÌÄ¡¿¡ ¸Â´Â °ÍÀÔ´Ï´Ù. µû¶ó¼ ¿Â¶óÀÎ ¸®µÎ ·Î±×ÀÇ ¾ÆÄ«À̺ê´Â ½Ã½ºÅÛ »óÀÇ Æ®·£Àè¼Ç ÀÛ¾÷(¸®µÎ ·Î±× »ý¼º)°ú º¸Á¶¸¦ ¸ÂÃç ¼öÇàµÇ¾î¾ß ÇÕ´Ï´Ù.
¿ÀÇ ÀνºÅϽº¿¡¼ ¾ÆÄ«À̹ö ÇÁ·Î¼¼½ºÀÇ È°¼ºÈ
ARCH ÇÁ·Î¼¼½º°¡ ÃʱâÈ ÆĶó¹ÌÅ͸¦
ÅëÇØ È°¼ºÈµÇÁö ¾Ê´Â´Ù¸é ¿ÀÇ ÀνºÅϽº¿¡¼ ARCH ÇÁ·Î¼¼½º¸¦ È°¼ºÈÇÒ ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅͺ£À̽º´Â archivelog ¸ðµå·Î µÇ¾î¾ß
ÇÕ´Ï´Ù.
´Ü°è¹øÈ£ |
¼³¸í |
1 |
µ¥ÀÌÅͺ£À̽º¸¦ ¿ÀÇÂÇÏ°í, µ¥ÀÌÅͺ£À̽º°¡ archivelog¸ðµåÀÎÁö
È®ÀÎÇϽʽÿÀ. |
2 |
¾ÆÄ«À̹ö ÇÁ·Î¼¼½º(ARCH)¸¦ È°¼ºÈ ÇϽʽÿÀ. |
3 |
ARCH ÇÁ·Î¼¼½º´Â ·Î±× ÆÄÀÏÀÌ Ã¤¿öÁü(filled)¿¡ µû¶ó ÀÌ ÆÄÀÏÀ» ÀÚµ¿ÀûÀ¸·Î archivingÇÕ´Ï´Ù. |
Ư¡
ÀνºÅϽº ½ÃÀÛ ½Ã ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º
µ¥ÀÌÅͺ£À̽º°¡ ARCHIVELOG ¸ðµåÀÎ °æ¿ì init.ora ¸Å°³ º¯¼ö¸¦ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÏ¿© µ¥ÀÌÅͺ£À̽º ÀνºÅϽº°¡ ½ÃÀÛµÉ ¶§¸¶´Ù ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¸¦ ½ÃÀÛÇÒ ¼ö ÀÖ½À´Ï´Ù.
LOG_ARCHIVE_START = boolean
ÀÏ´Ü init.ora ¸Å°³º¯¼ö ÆÄÀÏÀÌ ¼³Á¤µÇ¸é DBA°¡ ÀÚµ¿ ¾ÆÄ«À̺긦 ¼öµ¿À¸·Î ½ÃÀÛÇÏÁö ¾Ê¾Æµµ ÀνºÅϽº ½ÃÀÛ ½Ã ARCn ÇÁ·Î¼¼½º°¡ ÀÚµ¿À¸·Î ½ÃÀ۵˴ϴÙ.
·Î±× ÆÄÀÏÀÇ ¼±ÅÃÀûÀÎ archiving
¿©·¯ºÐÀÌ DBA ±ÇÇÑÀÌ ÀÖ´Ù¸é, ´ÙÀ½ÀÇ
¸í·ÉÀ» ÀÌ¿ëÇÏ¿© ¸®µÎ ·Î±× ÆÄÀÏÀ» ¼öµ¿ÀûÀ¸·Î ¾ÆÄ«À̺êÇÒ ¼ö ÀÖ½À´Ï´Ù:
´Ü°è¹øÈ£ |
¼³¸í |
1 |
SQL ¸í·ÉÀÎ ¡°alter system archive log [option]¡±¸¦
½ÇÇàÇϽʽÿÀ. |
2 |
¸í·ÉÀ» ½ÇÇàÇÏ´Â »ç¿ëÀÚ¿¡ ´ëÇÑ ¼¹ö ÇÁ·Î¼¼½º´Â ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏÀÇ archivingÀ» ¼öÇàÇÒ °ÍÀÔ´Ï´Ù. |
¿É¼Ç
¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏÀ» ¼±ÅÃÀûÀ¸·Î ¾ÆÄ«À̺ê ÇÒ ¶§ ¡°alter system archive log¡±¸í·É¿¡ ´ÙÀ½ÀÇ ¿É¼ÇÀ»
»ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
¿É¼Ç |
¼³¸í |
THREAD |
¾ÆÄ«ÀÌºê µÉ ¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀ» Æ÷ÇÔÇÏ´Â ½º·¹µåÀÇ ÁöÁ¤(Oracle Parallel Server¿¡
´ëÇÏ¿©) |
SEQUENCE |
·Î±× ½ÃÄö½º ¹øÈ£¿¡ ÀÇÇØ ½Äº°µÇ´Â ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀ» ¾ÆÄ«À̺ê |
CHANGE |
SCN¿¡ ±Ù°ÅÇÑ ¾ÆÄ«À̺ê |
GROUP |
¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀ» ¾ÆÄ«À̺ê |
CURRENT |
ÁöÁ¤µÈ ½º·¹µåÀÇ ÇöÀç ¸®µÎ ·Î±× ÆÄÀϱ׷ìÀ» ¾ÆÄ«À̺ê
|
LOGFILE |
ÆÄÀÏ À̸§¿¡ ÀÇÇØ ½Äº°µÇ´Â ¸â¹ö°¡ ÀÖ´Â ¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀ» ¾ÆÄ«À̺ê
|
NEXT |
¾ÆÄ«À̺êµÇÁö ¾ÊÀº °¡Àå ¿À·¡µÈ ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀ» ¾ÆÄ«À̺ê |
ALL |
¸ðµç ¿Â¶óÀÎ ¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀ» ¾ÆÄ«À̺ê |
START |
¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀÇ ÀÚµ¿ÀûarchivingÀÇ È°¼º |
TO |
¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀÌ ¾ÆÄ«À̺êµÉ À§Ä¡ ÁöÁ¤ |
STOP |
¸®µÎ ·Î±× ÆÄÀÏ ±×·ìÀÇ ÀÚµ¿ÀûarchivingÀÇ ºñÈ°¼ºÈ |
¸í·É ¶óÀÎÀ» ÀÌ¿ëÇÑ ARCH ÇÁ·Î¼¼½ºÀÇ ºñÈ°¼ºÈ
Server Manager¿¡¼
ALTER SYSTEM ¸í·ÉÀ» »ç¿ëÇϰųª Backup Manager¸¦ »ç¿ëÇÏ¿© ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¸¦ start ½ÃŲ ¹æ¹ý¿¡
°³ÀÇÄ¡ ¾Ê°í ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¸¦ Ç×»ó
ÁßÁöÇÒ ¼ö ÀÖ½À´Ï´Ù.
´Ü°è |
¼³¸í |
1 |
ARCH ÇÁ·Î¼¼½º°¡ ÀÌ¹Ì È°¼ºÈ µÇ¾ú´Ù¸é, ARCH ÇÁ·Î¼¼½º¸¦ ÁßÁöÇϱâ À§ÇÏ¿© ´ÙÀ½ ¸í·ÉÀ»
½ÇÇàÇÕ´Ï´Ù: |
2 |
´ÙÀ½°ú °°ÀÌ init.oraÆÄÀÏÀ» ÆíÁýÇÏ°í ÆĶó¹ÌÅ͸¦ ¼³Á¤ÇÔÀ¸·Î½á ÀÚµ¿Àû archivingÀÌ
ÀνºÅϽº ½ÃÀÛ ½Ã¿¡ È°¼ºÈ µÇÁö ¾Êµµ·Ï ÇÕ´Ï´Ù. |
ARCH ÇÁ·Î¼¼½º¸¦ ÁßÁöÇϱâ ÀüÀ̳ª ÁßÁöÇÑ ÈÄ Áï½Ã µ¥ÀÌÅͺ£À̽º¸¦ NOARCHIVELOG
¸ðµå·Î ¼³Á¤ÇϽʽÿÀ. ARCH ÇÁ·Î¼¼½ºÀÇ ÁßÁö´Â µ¥ÀÌÅͺ£À̽º¸¦ NOARCHIVELOG ¸ðµå·Î ¼³Á¤ÇÏÁö ¾Ê½À´Ï´Ù. ¸®µÎ ·Î±×ÀÇ ¸ðµç ±×·ìÀÌ
»ç¿ëµÇ°í ¾ÆÄ«À̺êµÇÁö ¾ÊÀ» ¶§,
µ¥ÀÌÅͺ£À̽º°¡ ARCHIVELOG ¸ðµå¿¡ ÀÖ´Ù¸é µ¥ÀÌÅͺ£À̽º´Â ÁßÁö(hang)µÉ ¼ö ÀÖ½À´Ï´Ù.
µ¿Àû ºä
µ¥ÀÌÅÍ µñ¼Å³Ê¸® ºä¸¦ »ç¿ëÇÏ¿© ·Î±× ÆÄÀÏÀ» °ü¸®ÇÏ°í º¼ ¼ö ÀÖ½À´Ï´Ù.
SELECT destination, binding, target, status
FROM v$archive_dest;
DESTINATION BINDING TARGET STATUS
---------------------- --------- ------- --------
/db1/oracle/DEMO/arch MANDATORY PRIMARY VALID
/db2/oracle/DEMO/arch OPTIONAL PRIMARY DEFERRED
standbyDEMO OPTIONAL STANDBY ERROR
OPTIONAL PRIMARY INACTIVE
OPTIONAL PRIMARY INACTIVE
Âü°í: ÁúÀǸ¦ ÇÏ¸é ´Ù¼¸ °³ÀÇ ÇàÀÌ Ç¥½ÃµÇ¸ç °¢ ÇàÀº °¡´ÉÇÑ ´ë»ó¿¡ ´ëÇÑ Á¤º¸¸¦ ³ªÅ¸³À´Ï´Ù. INACTIVE »óÅ´ ÀÌ ´ë»óÀÌ Á¤ÀǵÇÁö ¾Ê¾ÒÀ½À» ³ªÅ¸³À´Ï´Ù. VALID »óÅ´ ´ë»óÀÌ È°¼ºÈµÇ¾ú°í ¿À·ù°¡ ¾øÀ½À» ³ªÅ¸³À´Ï´Ù.
°¢ ´ë»ó¿¡ ´ëÇÑ ¿À·ù ¹× ¿À·ù°¡ ¹ß»ýÇÑ ·Î±× ½ÃÄö½º ¹øÈ£¸¦ È®ÀÎÇÏ·Á¸é ´ÙÀ½ ÁúÀǸ¦ »ç¿ëÇÕ´Ï´Ù.
SELECT destination,fail_sequence,error
FROM v$archive_dest
WHERE status='ERROR';
DESTINATION FAIL_SEQ ERROR
------------ -------- ----------------------------------
standbyDEMO 2010 ORA-12154: TNS:could not resolve
service name
1 row selected.
SELECT * FROM v$archive_processes;
PROCESS STATUS LOG_SEQUENCE STAT
------- ------ ------------ -----
0 ACTIVE 2014 BUSY
1 ACTIVE 0 IDLE
2 ACTIVE 0 IDLE
3 STOPPED 0 IDLE
4 STOPPED 0 IDLE
5 STOPPED 0 IDLE
6 STOPPED 0 IDLE
7 STOPPED 0 IDLE
8 STOPPED 0 IDLE
9 STOPPED 0 IDLE
10 rows selected.
°¡´ÉÇÑ 10°³ÀÇ ¾ÆÄ«À̹ö ÇÁ·Î¼¼½º°¡ ÇÑ Ç྿ Ç¥½ÃµË´Ï´Ù. ACTIVE »óÅ´ ÇÁ·Î¼¼½º°¡ ½ÃÀ۵Ǿú°í ½ÇÇà ÁßÀÓÀ» ³ªÅ¸³À´Ï´Ù. ÇöÀç ¾ÆÄ«À̺ê ÁßÀÎ ÇÁ·Î¼¼½º´Â BUSY »óÅ·Πǥ½ÃµÇ¸ç ÀÌ ÇÁ·Î¼¼½ºÀÇ LOG_SEQUENCE ¿¿¡´Â ¾ÆÄ«À̺ê ÁßÀÎ ÇöÀç ·Î±× ½ÃÄö½º ¹øÈ£°¡ Ç¥½ÃµË´Ï´Ù.
¾ÆÄ«ÀÌºê ·Î±× Á¤º¸
ARCHIVE LOG LIST ¸í·ÉÀº DBA¿¡°Ô µ¥ÀÌÅͺ£À̽ºÀÇ ·Î±× ¸ðµå ¹× ¾ÆÄ«ÀÌºê »óÅ¿¡ ´ëÇÑ Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.
SQL> archive log list;
Database log mode Archive mode
Automatic archival Enabled
Archive destination /oracle/backup/archive/
Oldest online log sequence 1304
Next log sequence to archive 1305
Current log sequence 1305
¾ÆÄ«ÀÌºê ¸ñ·Ï Ç¥½Ã |
¼³¸í |
Database log mode |
ÇöÀç ¾ÆÄ«ÀÌºê ¸ðµå |
Automatic archival |
¼±ÅÃÀû ¾ÆÄ«À̹ö ÇÁ·Î¼¼½ºÀÇ »óÅ |
Archive destination |
·Î±× ÆÄÀÏÀÌ º¹»ç(¼öµ¿ ¸í·É ¶Ç´Â ºÐ¸® ÇÁ·Î¼¼½º¸¦ ÅëÇØ)µÉ ´ë»ó. ¸ðµÎ Çʼö ´ë»óÀÏÁö¶óµµ ÇϳªÀÇ ´ë»ó¸¸ Ç¥½ÃµË´Ï´Ù. |
Oldest online log sequence |
°¡Àå ¿À·¡µÈ ¿Â¶óÀÎ ·Î±×ÀÇ ½ÃÄö½º ¹øÈ£ |
Next log sequence to archive |
¾ÆÄ«À̺êÇÒ ´ÙÀ½ ¸®µÎ ·Î±×(ARCHIVELOG ¸ðµå¿¡¼¸¸ Ç¥½Ã) |
Current log sequence |
ÇöÀç ·Î±× ÆÄÀÏÀÇ ½ÃÄö½º ¹øÈ£ |
LOG_ARCHIVE_DEST_n ¸Å°³º¯¼ö
LOG_ARCHIVE_DEST ¹× LOG_ARCHIVE_DUPLEX_DEST ¸Å°³º¯¼ö
º¹¼ö ¾ÆÄ«ÀÌºê ´ë»óÀ» Á¤ÀÇÇÏ´Â ´Ù¸¥ ¹æ½ÄÀ¸·Î´Â LOG_ARCHIVE_DEST ¸Å°³º¯¼ö¸¦ »ç¿ëÇÏ¿© ±âº» À§Ä¡¸¦ ÁöÁ¤ÇÏ´Â ¹æ½Ä°ú LOG_ARCHIVE_DUPLEX_DEST ¸Å°³º¯¼ö¸¦ »ç¿ëÇÏ¿© ¹é¾÷ ´ë»óÀ» Á¤ÀÇÇÏ´Â ¹æ½ÄÀÌ ÀÖ½À´Ï´Ù. ÀÌ ¹æ½ÄÀº ¿ø°Ý À§Ä¡·Î ¾ÆÄ«À̺êÇÏ´Â µ¥ »ç¿ëÇÒ ¼ö ¾ø´Ù´Â Á¡À» Á¦¿ÜÇϸé LOG_ARCHIVE_DEST_1 ¹× LOG_ARCHIVE_DEST_2 ¸Å°³º¯¼ö¸¦ »ç¿ëÇÏ´Â °Í°ú °°½À´Ï´Ù.
¾ÆÄ«ÀÌºê ´ë»óÀ» Á¤ÀÇÇÏ´Â µÎ ¹æ½ÄÀº »óÈ£ ¹èŸÀûÀÔ´Ï´Ù. ÀÌµé ¹æ½Ä Áß LOG_ARCHIVE_DEST_nÀ» »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.
LOG_ARCHIVE_DEST_STATE_n ¸Å°³º¯¼ö
Âü°í: DEFER »óÅ·Π¼³Á¤µÈ ´ë»óÀ¸·Î´Â ¾ÆÄ«À̺갡 ¼öÇàµÇÁö ¾Ê½À´Ï´Ù. ÀÌ ´ë»óÀÇ »óÅ°¡ ENABLE·Î º¯°æµÇ¸é ´©¶ôµÈ ·Î±×¸¦ ¼öµ¿À¸·Î ÀÌ ´ë»ó¿¡ ¾ÆÄ«À̺êÇØ¾ß ÇÕ´Ï´Ù.
LOG_ARCHIVE_MAX_PROCESSES ¸Å°³º¯¼ö
º´·Ä DDL(µ¥ÀÌÅÍ Á¤ÀǾî) ¹× º´·Ä DML(µ¥ÀÌÅÍ Á¶ÀÛ¾î) ÀÛ¾÷Àº ´ë·®ÀÇ ¸®µÎ ·Î±×¸¦ »ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. µû¶ó¼ ´ÜÀÏ ARC0 ÇÁ·Î¼¼½º·Î´Â ÀÌ·¯ÇÑ ¸®µÎ ·Î±×¸¦ ±× »ý¼º ¼Óµµ¿¡ ¸ÂÃç Á¦´ë·Î ¾ÆÄ«À̺êÇÏÁö ¸øÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ ¹®Á¦¸¦ ¹æÁöÇϱâ À§ÇØ º¹¼ö ¾ÆÄ«À̹ö ÇÁ·Î¼¼½º¸¦ »ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. º¹¼ö ¾ÆÄ«À̹ö ÇÁ·Î¼¼½º´Â ¼öµ¿À¸·Î ¶Ç´Â ÀÛ¾÷ ´ë±â¿À» »ç¿ëÇÏ¿© »ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù.
ARCn ÇÁ·Î¼¼½ºÀÇ µ¿Àû ¹øÈ£
´ë·®ÀÇ Æ®·£Àè¼Ç ·Îµå ¶Ç´Â ÀÛ¾÷ Áß¿¡ DBA´Â Ãß°¡ ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¸¦ Àӽ÷Π½ÃÀÛÇÏ¿© ¾ÆÄ«À̺ê ÀÛ¾÷ ·Îµå¿¡ ´ëÇÑ º´¸ñ Çö»óÀ» ¹æÁöÇÒ ¼ö ÀÖ½À´Ï´Ù. Æ®·£Àè¼Ç ÀÛ¾÷ÀÌ º¸Åë ¼öÁØÀ¸·Î ³·¾ÆÁö¸é DBA´Â ÀϺΠARCn ÇÁ·Î¼¼½º¸¦ Á¤ÁöÇÒ ¼ö ÀÖ½À´Ï´Ù.
¿¹¸¦ µé¾î, ¸ÅÀÏ µÎ °³ÀÇ ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¿Í ÇÔ²² µ¥ÀÌÅͺ£À̽º°¡ ½ÃÀÛµÇ°í ¸Å´Þ ¸»ÀÏÀ̸é ÀÛ¾÷ÀÌ Ç×»ó Áõ°¡µÇ´Â °æ¿ì ´ÙÀ½°ú °°ÀÌ ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¸¦ Ãß°¡ÇÕ´Ï´Ù.
SQL> alter system set LOG_ARCHIVE_MAX_PROCESSES=3;
¸»ÀÏ ÀÌÈÄ µ¥ÀÌÅͺ£À̽º°¡ Á¾·áµÇÁö ¾ÊÀº °æ¿ì DBA´Â ´ÙÀ½ SQL ¸í·ÉÀ» ½ÇÇàÇÏ¿© Ãß°¡ ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¸¦ Á¤ÁöÇÒ ¼ö ÀÖ½À´Ï´Ù.
SQL> alter system set LOG_ARCHIVE_MAX_PROCESSES=2;
Âü°í: µ¥ÀÌÅͺ£À̽º¸¦ ¹ã¿¡ Á¾·áÇÏ¸é ´ÙÀ½ ³¯¿¡´Â init.ora ÆÄÀÏ¿¡ ¼³Á¤µÈ ´ë·Î ¿ÀÁ÷ µÎ °³ÀÇ ¾ÆÄ«À̺ê ÇÁ·Î¼¼½º¿Í ÇÔ²² µ¥ÀÌÅͺ£À̽º°¡ ´Ù½Ã ½ÃÀ۵˴ϴÙ.
FAST_START_IO_TARGET °ª
FAST_START_IO_TARGETÀÇ °ªÀ» ÁöÁ¤ÇÏ·Á¸é »ç¿ëÀÚ¿Í ³íÀÇÇÑ ÈÄ ÇÊ¿äÇÑ ¼ºñ½º ·¹º§À» °áÁ¤ÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ½Ã°£À» V$FILESTAT ºäÀÇ Æò±Õ I/O ½Ã°£ Åë°è¸¦ »ç¿ëÇÏ¿© »óÀÀÇÏ´Â µ¥ÀÌÅÍ ÆÄÀÏ I/O Ƚ¼ö·Î º¯È¯ÇÕ´Ï´Ù.
º¹±¸ ½Ã°£¿¡ ´ëÇÑ ¸Å°³º¯¼öÀÇ ¿µÇâ ¸ð´ÏÅÍ
V$INSTANCE_RECOVERY ºä
V$TARGETRBA ºä
ÂüÁ¶
ȯ°æ |
ÂüÁ¶ |
ÆĶó¹ÌÅÍ |
LOG_ARCHIVE_START |
µ¿Àû ¼º´É ºä |
V$ARCHIVED_LOG |
µ¥ÀÌÅÍ µñ¼Å³Ê¸® ºä |
¾øÀ½ |
¸í·É¾î |
ALTER SYSTEM ARCHIVE [options] |