|
QUESTION
=========
alert ·Î±×¿¡ ¾Æ·¡¿Í °°Àº pending °ü·Ã ¸Þ½ÃÁö°¡ ±â·ÏµÇ¾î ÀÖ¾ú°í
dba_2pc_pending Å×À̺íÀ» Á¶È¸ÇØ º» °á°ú 2159°ÇÀÌ Á¸ÀçÇÏ¿´¾ú½À´Ï´Ù.
ÇöÀç pendingÀº ¸ðµÎ ÇØ°áµÇ¾úÁö¸¸, ¿Ö pendingÀÌ ¹ß»ýÇÏ´ÂÁö ¿øÀÎÀ» ¾Ë°í ½Í½À´Ï´Ù.
Fri Jan 18 01:59:48 2008
DISTRIB TRAN 28.4249535741533200000000000000000000000000000000000000000000000000000
6E631478F4FBF00000045
is local tran 3.5.1878541 (hex=03.05.1caa0d)
insert pending prepared tran, scn=8817886848927 (hex=805.1303679f)
DISTRIB TRAN 28.4249535741533200000000000000000000000000000000000000000000000000000
6E631478F4FBF00000046
is local tran 4.21.1886262 (hex=04.15.1cc836)
ANSWER
=======
1. session timeout (sestm) : XA transactionÀº °¢ ´Ü°èº°·Î xa_open, xa_end, xa_prepare, .. µîÀÇ callÀ» ÇÏ°Ô µÇ´Âµ¥,
°¢ callÀÌ Ã³¸®µÇ´Â µ¿¾È transactionÀÌ session¿¡ attatchµÇ°í, ÀÌÈÄ´Â detatchµÇ¾î detatched branch·Î °ü¸®µË´Ï´Ù.
ÀÌ detatched »óÅ·Π¾ó¸¶¸¸Å ´ë±âÇÒ°ÍÀÎÁö¸¦ °áÁ¤ÇÏ´Â timeoutÀÔ´Ï´Ù.
2. session timeout ÀÌ»ó µ¿¾È ¾Æ¹« 󸮰¡ ¾ÈµÇ¸é ¾Æ·¡ µÎ°¡Áö Áß Çϳª·Î 󸮵˴ϴÙ.
(1) prepared ´Ü°è°¡ ¾Æ´Ñ °æ¿ì
pmonÀÌ cleanupÀ» ÇϰԵ˴ϴÙ.
(2) prepared ´Ü°è¿¡¼ detatched branch ÀÇ °æ¿ì´Â,
pmonÀÌ Á÷Á¢ cleanupÀ» ÇÏÁö ¸øÇÏ°í, smon¿¡°Ô in-doubt transactionÀÌ ÀÖÀ½À» ¾Ë¸³´Ï´Ù.
smonÀº ÀÌ indoubt transactionÀ» dba_2pc_pending¿¡ insert¸¦ ÇÏ°í, reco process°¡ ó¸®Çϵµ·Ï ÇÕ´Ï´Ù.
ÀÌ in-doubt transactionÀÌ non-XAÀÎ °æ¿ì reco°¡ cleanupÇÏ°Ô µÇÁö¸¸,
XAÀÎ °æ¿ì´Â oracleÀÌ cleanupÀ» ÇÏÁö ¸øÇÏ°í, TMÀÌ Ã³¸®Çϵµ·Ï ÇÕ´Ï´Ù.
À§ÀÇ ·ÎÁ÷À» °í°´»ç »óȲ¿¡ Àû¿ëÇϸé prepared tx µé¿¡´ëÇØ ¾îÇø®ÄÉÀ̼ǿ¡¼ commit/rollback call ÀÌ
session timeout µ¿¾È È£ÃâµÇÁö ¾Ê¾Æ¼ ¸ðµÎ timeout µÇ¾î dba_2pc_pending ¿¡ insert µÈ °ÍÀÔ´Ï´Ù.
¾îÇø®ÄÉÀÎ ·Î±× üũÇϼż session timeout µ¿¾È ¿Ö commit/rollback À» ¾ÈÇß´ÂÁö È®ÀÎÇϼžßÇÕ´Ï´Ù.
Âü°í¹®¼
Note.33293.1 Ext/Pub Common Issues When Configuring Oracle XA
|