|
checkpoint not complete¿¡ ´ëÇؼ
database°¡ ÀüüÀûÀ¸·Î ¸ØÃá°Íó·³ ¾î¶°ÇÑ »õ·Î¿î ÀÛ¾÷µµ ÁøÇàÀÌ ¾ÈµÇ´Â °æ¿ì, alertSID.log file¸¦ È®ÀÎÇØ º¸¸é ¾Æ·¡¿Í °°Àº message°¡ ÀûÈù °æ¿ì°¡ ÀÖ´Ù.
Checkpoint not complete
ÀÌ·¯ÇÑ message°¡ ÀǹÌÇÏ´Â °ÍÀº ¹«¾ùÀ̸ç, ¿Ö ¹ß»ýÇÏ´ÂÁö, ±×¸®°í ¾î¶°ÇÑ Á¶Ä¡°¡ °¡´ÉÇÑÁö ÀÚ¼¼È÷ »ìÆ캻´Ù.
1. checkpoint¶õ ¹«¾ùÀΰ¡?
~~~~~~~~~~~~~~~~~~~~~
checkpoint´Â memory³»ÀÇ block bufferÀÇ ³»¿ë°ú disk»óÀÇ data block°£ÀÇ ³»¿ëÀ» ¸ÂÃß´Â database event¶ó°í ÇÒ ¼ö ÀÖ´Ù.
checkpoint°¡ ¹ß»ýÇϸé, ±×¶§±îÁö memory³»ÀÇ block¿¡ °¡ÇØÁø ¸ðµç º¯°æ »çÇ×À» disk»óÀÇ datafile³»¿¡ ¹Ý¿µÇÏ°Ô µÈ´Ù. database crash¿¡ ÀÇÇØ recovery°¡ ÇÊ¿ä ÇÏ°Ô µÇ¸é ÀÌ checkpointÀÌÈÄÀÇ º¯°æ»çÇ׿¡ ´ëÇؼ¸¸ recovery¸¦ ½ÃµµÇÏ¸é µÇ¹Ç·Î, recovery¸¦ ½±°í È¿À²ÀûÀ¸·Î ¼öÇàÇÒ ¼ö ÀÖ´Ù.
checkpointÁß¿¡ ¼öÇàµÇ´Â ÀÛ¾÷Àº ´ÙÀ½ µÎ °¡Áö·Î Á¤¸®ÇÒ ¼ö ÀÖ´Ù.
- DBWR°¡ buffer cache³»ÀÇ ¸ðµç º¯°æµÈ blockÀ» datafile¿¡ ±â·ÏÇÑ´Ù.
- LGWR(ȤÀº CKPT)°¡ ÇöÀç ¹ß»ýÇÑ checkpointÀÇ SCN°ªÀ» datafile°ú controlfile ¿¡ ±â·ÏÇÑ´Ù.
¿©±â¿¡¼ Áß¿äÇÑ °ÍÀº checkpoint event°¡ ¹ß»ýÇÏ¿© block buffer¿¡ ¾î´À blockÀÌ disk·Î ¾º¿©Á®¾ß Çϴ°¡¸¦ Ç¥½ÃÇϸé dbwr´Â ÀÌ·¸°Ô Ç¥½ÃµÈ buffer¸¦ ¼ø¼¿Í °ü°è¾øÀÌ disk·Î writeÇÏ°Ô µÈ´Ù. Áï redo log group1¿¡ ´ëÇÑ buffer¸¦ checkpointÇÏ°í ÀÖ´Â Áß¿¡ redo log group2¿¡ ´ëÇÑ checkpoint¿äûÀÌ µé¾î¿À¸é redo log group1¿¡ ´ëÇÑ checkpoint¸¦ ³¡³»°í group 2¿¡ ´ëÇÑ Ã³¸®¸¦ ÇÏ´Â °ÍÀÌ ¾Æ´Ï°í, redo log group1¿¡ ´ëÇÑ checkpoint°¡ ÁøÇà Áß¿¡ redo log group2¿¡ ÇØ´çÇÏ´Â bufferµµ buffer cache ³»¿¡ ¸ðµÎ Ç¥½ÃÇÑ ÈÄ À̰͵µ ¸ðµÎ group 1°ú group 2ÀÇ ±¸º°À̳ª ¼ø¼´Â À¯ÁöÇÏÁö ¸øÇÑä °°ÀÌ checkpoint°¡ ÀÌ·ç¾îÁö´Â °ÍÀÌ´Ù. ÀÌ°ÍÀº ÀÌÈÄ¿¡ ¼³¸íÇÒ Checkpoint not complete°¡ ¹ß»ýÇÏ´Â ¿øÀÎÀ» ¹àÇôÁÖ´Â Áß¿äÇÑ ±Ù°Å°¡ µÈ´Ù.
checkpoint°¡ ¹ß»ýµÇ´Â °æ¿ì´Â ´ÙÀ½ 4°¡Áö °æ¿ìÀÌ´Ù.
(1) log switch
(2) log_checkpoint_interval ¸¸ÅÀÇ os block °£°Ý
(3) log_checkpoint_timeout ÃÊ °£°Ý
(4) alter system checkpoint¸í·É¹® ¼öÇà½Ã
¾ÕÀÇ ¼¼°¡Áö °æ¿ì¿¡ ´ëÇؼ´Â ¾Æ·¡ º°µµÀÇ sectionÀ¸·Î ÀÚ¼¼È÷ ¼³¸íÇÏ¿´´Ù.
2. checkpoint¿Í ¼º´É
~~~~~~~~~~~~~~~~~
checkpoint¸¦ ÀÚÁÖÇϸé db crashÈÄ recovery½Ã°£À» ÁÙÀÏ ¼ö ÀÖ´Â ´ë½Å¿¡, ¿î¿µ Áß¿¡¼´Â ¼Óµµ¸¦ ÀúÇϽÃŲ´Ù. checkpointÁß¿¡´Â ÇØ´ç datafileÀÇ header³»¿ëÀÌ °íÁ¤µÇ¾î datafile header¿¡ ´ëÇÑ ´Ù¸¥ ÀÛ¾÷ÀÌ ÁøÇàµÇÁö ¸øÇÑ´Ù. ¶ÇÇÑ checkpoint°£°ÝÀÌ ³Ê¹« ªÀ¸¸é µÚ¿¡¼ ¼³¸íÇÒ 'checkpoint not complete' Çö»óÀÌ ¹ß»ýÇÒ °¡´É¼ºµµ Ä¿Áö°Ô µÇ¾î checkpoint¿¡ ´ëÇÑ tuningÀÌ ÇÊ¿äÇÏ°Ô µÇ´Â °ÍÀÌ´Ù.
3. CKPT process
~~~~~~~~~~~~
checkpoint ¼öÇà Áß checkpoint SCNÀÇ °ªÀ» controlfile°ú datafile header¿¡ ¹Ý¿µ½ÃÅ°´Â ÀÛ¾÷À» ¼öÇàÇÏ´Â background process´Â LGWR ȤÀº CKPT processÀÌ´Ù.
LGWR¿Í CKPTÁß ¾î´À process°¡ ÀÛ¾÷ÇÏ´ÂÁö´Â Oracle version°ú checkpoint_process ¶ó´Â parameter¿¡ ÀÇÇØ °áÁ¤µÈ´Ù. CKTP process¸¦ »ç¿ëÇÏ¿© LGWR processÀÇ ÀÛ¾÷À» ÁÙÀÌ´Â °ÍÀÌ ¼º´É Çâ»ó¿¡ »ó´çÇÑ µµ¿òÀÌ µÇ±â ¶§¹®¿¡ oracle versionÀÌ Áõ°¡ÇÒ¼ö·Ï CKPT processÀÇ »ç¿ëÀÌ ÀÚµ¿À¸·Î À¯µµµÈ´Ù.
(1) Oracle 7.0 - 7.3.2
initSID.ora file¿¡ CHECKPOINT_PROCESS=TRUE ·Î ÁöÁ¤µÇ¾î ÀÖ´Â °æ¿ì¸¸, CKPT process°¡ ±¸µ¿µÈ´Ù.
(2) Oracle 7.3.3, 7.3.4
db_files°¡ 50ÀÌ»óÀ̰ųª, ȤÀº db_block_buffers°ªÀÌ 10,000 ÀÌ»óÀ̸é, CHECKPOINT_PROCESS parameter¿¡ °ü°è¾øÀÌ Ç×»ó CKPT process°¡ ±¸µ¿µÈ´Ù. CHECKPOINT_PROCESS¸¦ TRUE·Î ÁöÁ¤Çϸé db_files³ª db_block_buffers°ª°ú ¹«°üÇÏ°Ô CKPT process°¡ ±âµ¿µÈ´Ù.
(3) Oracle8 8.0.3ÀÌ»ó
CKPT process ´Â Ç×»ó ±âµ¿µÇ¾î, CHECKPOINT_PROCESS¸¦ ÁöÁ¤Çϸé, ´ÙÀ½°ú °°Àº ¿À·ù°¡ ¹ß»ýÇÑ´Ù.
LM-101 "unknown parameter name checkpoint_process"
4. checkpoint°¡ ¹ß»ýµÇ´Â ½ÃÁ¡
~~~~~~~~~~~~~~~~~~~~
checkpoint°¡ ¹ß»ýÇÏ´Â ½ÃÁ¡Àº ¾Æ·¡¿Í °°ÀÌ 4°¡Áö °æ¿ì°¡ ÀÖ´Ù.
(1) log switch
log switch°¡ ¹ß»ýÇϸé Ç×»ó checkpoint°¡ ¹ß»ýÇÑ´Ù. ´Ü, checkpoint°¡ ¹ß»ýÇÑ´Ù°í ÇÏ¿© log switch°¡ µÇ´Â °ÍÀº ¾Æ´Ï´Ù. log swtich°¡ µÇ´Â °æ¿ì´Â »ç¿ë ÁßÀÎ log fileÀÌ ¸ðµÎ ¾º¿©Á³°Å³ª, ¸í½ÃÀûÀ¸·Î
'alter system switch logfile' ¹®ÀåÀ» ¼öÇàÇÑ °æ¿ìÀÌ´Ù.
online redo log fileÀÇ Å©±â´Â ¼º´É°ú º¹±¸¿¡ Áß¿äÇÑ ¿µÇâÀ» ¹ÌÄ£´Ù.
(2) LOG_CHECKPOINT_INTERVAL
ÀÌ parameterÀÇ ´ÜÀ§´Â OS block size·Î, ÀÌ Å©±â¸¸ÅÀÇ redo log file¿¡ ±â·ÏÇÑ ÈÄ¿¡ checkpoint°¡ ¹ß»ýÇÏ´Â °ÍÀÌ´Ù. ¿¹¸¦ µé¾î log_checkpoint_interval·Î 10,000ÀÌ ÁöÁ¤µÇ¾î ÀÖ°í, ´ëºÎºÐÀÇ UnixÀÇ °æ¿ìó·³ ÇÑ os block size°¡ 512 bytesÀ̸é, 10,000 * 512 bytes = 5m°¡ µÈ´Ù.
redo log fileÀÇ Å©±â°¡ 20m¶ó°í °¡Á¤ÇÒ ¶§, 5m¸¶´Ù checkpoint°¡ ¹ß»ýÇϹǷÎ, redo log fileÇϳª¸¦ ±â·ÏÇÏ´Â µ¿¾È 4¹øÀÇ checkpoint°¡ ¹ß»ýÇÏ´Â °ÍÀÌ´Ù.
±×·¯³ª ¹Ý´ë·Î log fileÀÌ ÀÌ Å©±âº¸´Ù ÀÛÀº 3m¶ó¸é log_checkpoint_interval parameter´Â ¹«½ÃµÇ°í log swtich¹ß»ý¸¶´Ù, Áï log file¿¡ 3m¸¸Å ±â·ÏÇÑ ÈÄ¿¡´Â Ç×»ó checkpoint°¡ ¹ß»ýÇÏ°Ô µÈ´Ù.
(3) LOG_CHECKPOINT_TIMEOUT
ÀÌ parameterÀÇ ´ÜÀ§´Â ÃÊ(second)À̸ç, ÀÌ ½Ã°£ °£°ÝÀ¸·Î checkpoint°¡ ¹ß»ý ÇÏ°Ô µÈ´Ù. log swtichÀü¿¡ checkpoint°¡ ¹ß»ýÇÏ±æ ¿øÇÑ´Ù¸é log_checkpoint_timeoutº¸´Ù´Â log_checkpoint_intervalÀ» »ç¿ëÇϵµ·Ï ±ÇÀåÇÑ´Ù. log_checkpoint_timeoutÀº transactionÀÌ ¹ß»ýÇÏÁö ¾Ê¾Æµµ ÀÏÁ¤ ½Ã°£ÀÌ Áö³ª¸é, ¹«Á¶°Ç checkpoint¸¦ ¹ß»ýÇÏ°Ô ÇÏ¿© ºÒÇÊ¿äÇÑ checkpoint¸¦ ¹ß»ý½ÃÅ°±â ¶§¹®ÀÌ´Ù.
5. ±× ¿ÜÀÇ checkpoint°ü·Ã parameter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(1) DB_BLOCK_CHECKPOINT_BATCH
ÀÌ parameter´Â Oracle7°ú Oracle8.0±îÁö¸¸ »ç¿ëµÇ´Â °ÍÀ¸·Î checkpoint½Ã¿¡ DBWR°¡ Çѹø¿¡ disk¿¡ writeÇÏ´Â block bufferÀÇ °¹¼ö¸¦ ÁöÁ¤ÇÑ´Ù. ÀÌ°ÍÀ» 32Á¤µµÀÇ Å« °ªÀ¸·Î ÁöÁ¤Çϸé checkpoint¼Óµµ¸¦ Çâ»ó½Ãų ¼ö ÀÖ´Ù.
(2) LOG_CHECKPOINTS_TO_ALERT
log swtich´Â Ç×»ó alert.log¿¡ ±â·ÏÀÌ ³²´Â´Ù. log switchº¸´Ù ÀÚÁÖ checkpoint°¡ ¹ß»ýÇϵµ·Ï ÇÑ °æ¿ì checkpoint¹ß»ý ½Ã°£°ú °£°ÝÀ» È®ÀÎÇÏ·Á¸é log_checkoiint_to_alert=true·Î init.ora file¿¡ ÁöÁ¤Çϸé È®ÀÎÀÌ °¡´ÉÇÏ´Ù.
6. redo log file°ú checkpoint
~~~~~~~~~~~~~~~~~~~~~~~
¾Õ¿¡¼ ¾ð±ÞÇÑ ¹Ù¿Í °°ÀÌ log switch½Ã¿¡´Â Ç×»ó checkpoint°¡ ¹ß»ýÇÑ´Ù. ÀϹÝÀû À¸·Î, og_checkpoint_intervalÀ̳ª log_checkpoint_timeoutÀ» log swtichº¸´Ù °£°ÝÀ» Å©°Ô ÇÏ¿© checkpoint°¡ log swtich½Ã¿¡¸¸ ¹ß»ýÇϵµ·Ï »ç¿ëÇÑ´Ù.
redo log fileÀÇ Å©±â°¡ ³Ê¹« ÀÛÀ¸¸é ºÒÇÊ¿äÇÑ checkpointÀÛ¾÷ÀÌ ÀÚÁÖ ¹ß»ýÇÒ ¼ö ÀÖ´Ù. alert.log¸¦ º¸¸é ¾Æ·¡¿Í °°Àº ÇüÅÂÀÇ log switch¿¡ ´ëÇÑ ±â·ÏÀÌ ³²°Ô µÇ´Âµ¥, ÀÌ°ÍÀ» ÅëÇØ log switch ¹ß»ý °£°ÝÀ» È®ÀÎÇÒ ¼ö ÀÖ´Ù.
Thread 1 advanced to log sequence 248
Current log# 2 seq# 248 mem# 0: /prod1/oradata/logs/redologs02.log
log switch°¡ ÀÚÁÖ ¹ß»ýÇÏ°Ô µÇ¸é ¼º´É ÀúÇϸ¦ °¡Á®¿Ã ¼ö ÀÖÀ¸¸ç, ÀϹÝÀûÀ¸·Î oracle¿¡¼´Â Çѽ𣿡 Çѹø Á¤µµÀÇ log swtich¸¦ ±ÇÀåÇÏ°í ÀÖ´Ù. ¿À¶óŬ »ç¿ëÀÚÀÇ °æ¿ì log fileÀ» ÀÛ°Ô À¯ÁöÇÏ´Â ÀÌÀ¯ Áß current redo log fileÀÇ corruption½Ã ÀҰԵǴ Á¤º¸ÀÇ ¾çÀÌ log fileÀÌ Å¬ ¼ö·Ï ºñ·ÊÀûÀ¸·Î Å«°ÍÀ» ¿°·ÁÇÏ´Â °æ¿ì°¡ ¸¹Àºµ¥ ÀÌ·¯ÇÑ °æ¿ì´Â redo log file¿¡ member¸¦ µÎ°í, ±× member¸¦ ´Ù¸¥ disk¿¡ À§Ä¡½ÃÅ´À¸·Î½á À§ÇèÀ» ÁÙÀÏ ¼ö ÀÖ´Ù.
log fileÀÇ Å©±â°¡ ³Ê¹« ÀÛ¾Æ log switch°¡ ÀÚÁÖ ¹ß»ýÇÏ°Ô µÇ´Â °æ¿ìÀÇ ¶Ç ´Ù¸¥ ¹®Á¦Á¡Àº log fileÀÇ status°¡ ACTIVEÀÎ »óÅ·Π¿À·¡ Áö¼ÓµÇ´Â °ÍÀÌ´Ù. ÀÌ°ÍÀº ¾Æ·¡ ¼³¸íÇÒ checkpoint not complete°°Àº Çö»ó¿¡µµ Á÷Á¢ÀûÀÎ ¿µÇâÀ» ¹ÌÄ£´Ù.
redo log fileÀº log swtcih°¡ ¹ß»ýÇÏ°í checkpoint°¡ ÁøÇàµÇ´Â µ¿¾È status°¡ ACTIVE »óÅ°¡ µÈ´Ù. ÀÌ°ÍÀº ÇØ´ç redo log¿¡ ´ëÇÑ checkpoint°¡ ¿ÏÀüÈ÷ ³¡³ª¸é, INACTIVE »óÅ·Πº¯°æµÈ´Ù.
±×·±µ¥ log switch¿¡ ÀÇÇØ checkpoint event°¡ ¹ß»ýµÈ °æ¿ì ¾ÆÁ÷ ÀÌÀü redo log file¿¡ ´ëÇÑ checkpoint°¡ ³¡³ªÁö ¾Ê¾Ò´Ù¸é ÀÌÀü checkpoint¿Í »õ·Î¿î checkpoint°¡ ±¸º°µÇ¾î ¼öÇàµÇ´Â °ÍÀÌ ¾Æ´Ï°í ÀÌÀü checkpoint¿Í »õ·Î¿î checkpoint°¡ Çϳª·Î ¹¿© »õ·Î¿î checkpoint±îÁö ³¡³ª¾ß¸¸ ÀÌÀü redo log fileµµ °°ÀÌ INACTIVE »óÅ·Πº¯°æÀÌ µÈ´Ù. ÀÌ¹Ì 1¹ø checkpoint¶õ ¹«¾ùÀΰ¡¿¡¼ ÀÌ¹Ì ¾ð±ÞÇÑ ³»¿ëÀÌ´Ù.
½ÇÁ¦ ¿î¿µÁß¿¡ redo log fileÀÇ ´ëºÎºÐÀÌ ACTIVEÀÎ »óÅ·ΠÀ¯ÁöµÇ´Ù°¡ batchÀÛ¾÷ÀÌ ³¡³¯¶§Âë ÇѲ¨¹ø¿¡ ¸ðµÎ INACTIVE·Î µÇ´Â Çö»óÀÌ ¹Ù·Î ÀÌ·¯ÇÑ ¿øÀζ§¹®ÀÌ´Ù.
Áï, ÀÌ°ÍÀº ¸Ç óÀ½ redo log file¿¡ ´ëÇÑ ³»¿ëµµ ¿©ÀüÈ÷ checkpoint°¡ ³¡³ªÁö ¾Ê¾Æ, ³ª¸ÓÁö redo log µéÀÌ ¸ðµÎ ±â´Ù¸®°í ÀÖ´Â Çö»óÀÌ ¾Æ´Ï¶ó, ºó¹øÇÑ log switch·Î ÀÎÇØ ¹Ù·Î Á÷Á¢ÀÇ log¿¡ ´ëÇÑ checkpoint°¡ ³¡³ª±â Àü¿¡ ´ÙÀ½ checkpoint°¡ ¿äû µÇ°í ÀÌ·¯ÇÑ ÀϵéÀÌ °è¼Ó À̾îÁü¿¡ µû¶ó checkpointÀÛ¾÷ÀÌ ¿¬¼ÓÀûÀ¸·Î ¹¿© ¹ß»ýÇÏ´Â °ÍÀÌ´Ù. ÀÌ·¯ÇÑ ÀÌÀ¯·Î ½ÇÁ¦·Î´Â redo log fileÀÇ ³»¿ëÀÇ ´ëºÎºÐÀÌ checkpoint°¡ ÀÌ·ç¾îÁ³Áö¸¸, ´Ù¼ö°¡ ACTIVEÀÎ »óÅ·ΠÁ¸ÀçÇÏ´Â Çö»óÀÌ ¹ß»ýÇÏ´Â °ÍÀÌ´Ù.
checkpointÁßÀÎ datafile header´Â ´Ù¸¥ ÀÛ¾÷ÀÌ blockingµÇ±â ¶§¹®¿¡ checkpoint ÁßÀÎ »óÅ·Π¿À·¡ Áö¼ÓµÇ´Â °ÍÀº ¹Ù¶÷Á÷ÇÏÁö ¾ÊÀ¸¸ç, ±×·¡¼ ÀûÁ¤ÇÑ redo log fileÀÇ Å©±â¿Í °¹¼ö°¡ Áß¿äÇÏ°Ô µÈ´Ù.
7. CHECKPOINT NOT COMPLETE
~~~~~~~~~~~~~~~~~~~~~~~~~
´Ù·®ÀÇ data¸¦ importÇϰųª loadÇÏ´Â °æ¿ì ȤÀº batch ÀÛ¾÷À» ÁøÇàÇÏ´Â °æ¿ì, databaseÀÛ¾÷ÀÌ Áß°£ Áß°£ ¸ØÃß´Â hangÇö»óÀÌ ¹ß»ýÇϸé¼, alert.log file¿¡ ´ÙÀ½°ú °°ÀÌ 'Checkpoint not complete'¶ó´Â message°¡ ¿©·¯¹ø ÀûÈù °ÍÀ» ¹ß°ß ÇÏ°Ô µÇ´Â °æ¿ì°¡ ÀÖ´Ù.
Thread 1 advanced to log sequence 248
Current log# 2 seq# 248 mem# 0: /prod1/oradata/logs/redologs02.log
Thread 1 cannot allocate new log, sequence 249
Checkpoint not complete
ÀÌ message°¡ ³ªÅ¸³»´Â °ÍÀº LGWR°¡ redo log¸¦ Àç»ç¿ëÇÏ·Á°í Çϴµ¥, ¾ÆÁ÷ ±× redo log fileÀÌ checkpoint°¡ ³¡³ªÁö ¾ÊÀº »óÅÂÀÓÀ» ³ªÅ¸³½´Ù. ¿¹¸¦ µé¾î, LGWR°¡ 1¹ø redo log group¿¡ ³»¿ëÀ» ±â·ÏÇÏ°í, 2¹øÀ¸·Î switchÇÏ¸é¼ 1¹ø¿¡ ´ëÇÑ checkpoint°¡ ÁøÇàÁßÀÎ »óÅ¿¡¼ 2¹ø 3¹ø redo logµµ ¸ðµÎ »ç¿ëÇÏ°í ´Ù½Ã 1¹øÀ» »ç¿ëÇÏ·Á°í Çϸé ÀÌ·¯ÇÑ ¸Þ½ÃÁö°¡ alert.log¿¡ ÀûÈ÷°Ô µÇ°í, 1¹øÀ» ´Ù½Ã »ç¿ëÇÒ ¼ö ÀÖÀ» ¶§±îÁö dbÀÇ ¸ðµç º¯°æ ÀÛ¾÷Àº waiting»óÅ°¡ µÈ´Ù.
ÀÌ·¯ÇÑ Çö»óÀº database¿¡ º¯°æÀ» °¡ÇÏ´Â dmlÀÌ ÇѲ¨¹ø¿¡ ºü¸£°Ô ¼öÇàµÇ´Â °æ¿ì LGWR°¡ redo log file¿¡ ºü¸¥ ¼Óµµ·Î ¸¹Àº ³»¿ëÀ» ±â·ÏÇÏ´Â °æ¿ì ¹ß»ýÇÑ´Ù.
redo log fileÀÇ Å©±â³ª °¹¼ö°¡ ÀÛ¾Æ log switch°¡ ºó¹øÈ÷ ¹ß»ýÇÏ´Â °æ¿ì, LGWR°¡ redo log¿¡ redoÁ¤º¸¸¦ ÀûÀ¸¸é¼ ÇѹÙÄû cycleÀ» µµ´Â ½Ã°£ÀÌ ³Ê¹« ºü¸£¸é ÀÌ·¯ÇÑ Çö»óÀº ½±°Ô ¹ß»ý °¡´ÉÇÏ´Ù. ¾Õ section¿¡¼ ¾ð±ÞÇßµíÀÌ oracle¿¡¼´Â Çѽ𣿡 Çѹø Á¤µµÀÇ log switch¿Í log switch½Ã¿¡¸¸ checkpoint°¡ ¹ß»ýÇÏ´Â °ÍÀ» ±âº»ÀûÀ¸·Î ±ÇÀåÇÑ´Ù.
±×·±µ¥ redo log fileÀÇ °¹¼ö¸¦ ¸î°³ ´õ Ãß°¡ÇÏ°í size¸¦ Áõ°¡ÇÏ¿´´Âµ¥µµ, ¸¶Âù°¡Áö·Î ÀÌ·¯ÇÑ Çö»óÀÌ ¹ß»ýÇÏ´Â °æ¿ì°¡ ÀÖ´Ù. redo log groupÀ» Ãß°¡ÇÏ¿©µµ, redo log groupÀ» Ãß°¡ÇÒ¶§¸¸ »ç¿ëÀÌ µÇ´Ù°¡ ´Ù½Ã Ãß°¡ÇÑ redo log group±îÁö ¸ðµÎ status°¡ ACTIVEÀÌ´Ù°¡ ¾î´À Á¤µµ ½Ã°£ÀÌ Áö³ª°Å³ª ÀÛ¾÷ÀÌ ³¡³ª¸é µ¿½Ã¿¡ ¸ðµç redo log groupÀÌ INACTIVE»óÅ·Πº¯°æµÇ´Â °ÍÀ» º¼ ¼ö ÀÖ´Ù.
ÀÌ°ÍÀº ÀÌ¹Ì ¾Õ¿¡¼ ¿©·¯Â÷·Ê ¼³¸íÇßµíÀÌ ÀÌ¹Ì ¼öÇàÁßÀÎ checkpoint°¡ ³¡³ªÁö ¾ÊÀº °æ¿ì ´ÙÀ½ checkpoint°¡ µé¾î¿À¸é ÀÌ°ÍÀÌ Çϳª·Î ¹ÀÌ°Ô µÇ±â ¶§¹®À̸ç, ¾Æ·¡¿¡ Á¤¸®ÇÑ ¹æ¹ýÀ» ÀÌ¿ëÇÏ¿© tuningÇÏ¿©¾ß ÇÑ´Ù.
Checkpoint not completeÇö»óÀ» ÇØ°áÇϱâ À§ÇÑ ¹æ¹ýÀ» Á¤¸®ÇØ º¸¸é ´ÙÀ½°ú °°´Ù.
(1) LGWR°¡ redo log fileÀ» ÇѹÙÄû µµ´Â cycleÀ» Áö¿¬½ÃŲ´Ù.
- redo log groupÀ» Ãß°¡½ÃŲ´Ù.
- redo log fileÀÇ Å©±â¸¦ Áõ°¡½ÃŲ´Ù.
(2) checkpoint¸¦ ÀÚÁÖ ¹ß»ýÇÏÁö ¾Êµµ·Ï ÇÑ´Ù.
- LOG_CHECKPOINT_INTERVALÀÇ °ªÀ» Áõ°¡½ÃŲ´Ù.
- online redo log fileÀÇ Å©±â¸¦ Áõ°¡½ÃŲ´Ù.
(3) checkpoint ÀÛ¾÷ÀÇ È¿À²¼ºÀ» Áõ°¡½ÃŲ´Ù.
- CHECKPOINT_PROCESS=TRUE ·Î ÁöÁ¤ÇÏ¿© CKPT process¸¦
±âµ¿½ÃŲ´Ù (Oracle7)
- db_block_checkpoint_batchÀÇ °ªÀ» Áõ°¡½ÃŲ´Ù (7.X ~ 8.0)
- db_block_size¸¦ Áõ°¡½ÃÄÑ dbwr°¡ checkpoint½Ã disk¿¡ writeÇÏ´Â ¼Óµµ¸¦
Çâ»ó½ÃŲ´Ù.
ÀÌ°ÍÀº database¸¦ ¿ÏÀüÈ÷ ´Ù½Ã ¸¸µå´Â ÀÛ¾÷ÀÌ¾î¼ ½±°Ô Á¶Ä¡Çϱâ´Â ¾î·Á¿ì³ª ÀÌ ¹®Á¦°¡ ÀÚÁÖ ¹ß»ýÇÏ¿© ½É°¢ÇÑ ¿µÇâÀ» ¹ÌÄ¡´Â °æ¿ì °í·ÁÇØ º¼ ¼ö ÀÖ´Ù.
|