|
IOTN :: Field Book :: ORACLE
|
dblink ORA-02068 ORA-03113 ORA-02080 [ ALTER SESSION CLOSE DATABASE LINK RDBNM; ]
|
ÃÖ±æÈ£
[LIST]
|
2010-07-10 22:14:02, Á¶È¸ : 99,115 |
Ãß°¡
JDBC ÀÇ ¹öÀüÀÌ ¸ÂÁö ¾Ê¾Æ¼ »ý±â´Â °æ¿ìµµ ÀÖ´Ù°í ÇÑ´Ù.
JDBC°¡ ÇÏÀ§¹öÀüÀÏ °æ¿ì¿¡ ³ª¿À´Â ¹ö±×·Î ¼¼¼ÇÀÌ Á¦´ë·Î ³¡±âÁö ¾Ê´Â´Ù°í ÇÑ´Ù.
Ãâó: http://uiandwe.tistory.com/685
ISSUE CLARIFICATION
====================
À¥·ÎÁ÷¼¹ö¿¡¼ ¾Æ·¡¿Í °°Àº ¿¡·¯ ¸Þ¼¼Áö°¡ ¹ß»ýÇÕ´Ï´Ù.
¿øÀΰú ÇØ°áÃ¥À» ¾Ë·ÁÁÖ¼¼¿ä
EXOUtil:getCbName: java.sql.SQLException: ORA-02068: PMOMP_TO_PROD·Î ºÎÅÍÀÇ ´ÙÀ½ÀÇ
Ä¡¸íÀûÀÎ ¿À·ù°¡ ÀÖ½À´Ï´Ù
ORA-03113: Åë½Å ä³Î¿¡ EOF °¡ ÀÖ½À´Ï´Ù
ISSUE VERIFICATION
===================
¿Ã·ÁÁֽŠalert.log³»¿ªÀº ´ÙÀ½°ú °°½À´Ï´Ù.
Thu Dec 21 08:32:24 2006
Error 2068 trapped in 2PC on transaction 39.21.409. Cleaning up.
Error stack returned to user:
ORA-02050: Æ®·£Àè¼Ç 39.21.409°¡ ·Ñ¹éµÇ°í, ´Ù¸¥ ¿ø°Ý DB´Â ºÒ¸í·áÇÑ »óÅÂÀÔ´Ï´Ù
ORA-02068: PMP_BC_TO_ERP·Î ºÎÅÍÀÇ ´ÙÀ½ÀÇ Ä¡¸íÀûÀÎ ¿À·ù°¡ ÀÖ½À´Ï´Ù
ORA-03113: Åë½Å ä³Î¿¡ EOF °¡ ÀÖ½À´Ï´Ù
Thu Dec 21 08:32:24 2006
DISTRIB TRAN PMOMP.a0a63b74.39.21.409
is local tran 39.21.409 (hex=27.15.199)
insert pending collecting tran, scn=7270308742325 (hex=69c.c02b84b5)
Thu Dec 21 08:32:25 2006
DISTRIB TRAN PMOMP.a0a63b74.39.21.409
is local tran 39.21.409 (hex=27.15.199))
delete pending collecting tran, scn=7270308742325 (hex=69c.c02b84b5)
Thu Dec 21 08:42:11 2006
Error 2068 trapped in 2PC on transaction 27.25.4319. Cleaning up.
Error stack returned to user:
ORA-02068: PMOMP_TO_PROD·Î ºÎÅÍÀÇ ´ÙÀ½ÀÇ Ä¡¸íÀûÀÎ ¿À·ù°¡ ÀÖ½À´Ï´Ù
ORA-03113: Åë½Å ä³Î¿¡ EOF °¡ ÀÖ½À´Ï´Ù
RESEARCH
=========
¿Ã·ÁÁֽŠalert.log¹× web logic log¿¡ µû¸£¸é dblink PMOMP_TO_PROD¸¦ ÅëÇؼ ÀÛ¾÷ÇÏ´ø ºÐ»ê transaction
ÀÌ ¿À·ù·Î ÀÎÇÏ¿© ora-2068 , ora-3113 error°¡ ¹ß»ýµÇ¾ú½À´Ï´Ù.
¹®Á¦ ¿øÀÎÀº remote server·Î ºÎÅÍ ÀÏ°¡´É¼ºÀÌ Å®´Ï´Ù. ȤÀº network´ÜÀ̳ª Á¦´ë·Î Àü´ÞÇ߾ ¹ÞÁö ¸øÇÑ °æ¿ìµµ
¹®Á¦°¡ µÉ ¼ö ÀÖ½À´Ï´Ù.
alert.log¿£ ¶Ç´Ù¸¥ dblinkÀÎ PMP_BC_TO_ERP ¿À·ùµµ Àֳ׿ä.
´ÙÀ½ÀÇ Á¤º¸µéÀ» ÃëÇÔÇØ Áֽñ⠹ٶø´Ï´Ù.
ACTION PLAN
============
1. dblink PMOMP_TO_PROD¸¦ ÅëÇؼ accessÇÏ´Â remote serverÀÇ Á¤º¸¸¦ ¿Ã·Á Áֽñ⠹ٶø´Ï´Ù.
SQL>select * from dba_db_links where db_link='PMOMP_TO_PROD';
remote serverÀÇ oracle versionÀ» ¾Ë·Á Áֽñ⠹ٶø´Ï´Ù.
2. °¢ ¿À·ù¿¡ ´ëÇÑ »ó¼¼ ºÐ¼®À» À§Çؼ± local server¹× remote server¿¡ ´ÙÀ½°ú °°ÀÌ errorstackÀ» °É¾î Áֽñ⠹ٶø´Ï´Ù.
°á°ú »ý¼ºµÇ´Â trace fileÀ» upload¹Ù¶ø´Ï´Ù.
SQL>alter system set events '3113 trace name ERRORSTACK level 3';
SQL>alter system set events '2068 trace name ERRORSTACK level 3';
À§¿Í °°ÀÌ ¼³Á¤Çϸé, ¼³Á¤ÀÌÈÄ Á¢¼ÓÇÏ´Â process¿¡ ´ëÇؼ ora-3113, ora-2068 ¿À·ù°¡ ¹ß»ýÇÏ´Â ½ÃÁ¡¿¡ »ó¼¼ Á¤º¸¸¦ trace file·Î ³²±é´Ï´Ù.
user process¿¡ ÀÇÇÑ ¿À·ù´Â user_dump_dest¿¡ ³²±â¸ç path È®ÀÎÀº ´ÙÀ½°ú °°½À´Ï´Ù.
SQL>show parameter user_dump_dest
°áÁ¤ÇÑ °ªÀ» disableÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
SQL>alter system set events '3113 trace name ERRORSTACK off';
SQL>alter system set events '2068 trace name ERRORSTACK off';
3. (optional) ÀÌ´Â À§ÀÇ 2ÀÇ °á°úµµ ºÐ¼®ÀÌ ºÎÁ·ÇÑ °æ¿ì¿¡ ÇÊ¿äÇϸç, sqlnet trace¸¦ ÅëÇؼ tracingÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.
sqlnet trace¸¦ °Å´Â ¹æ¹ýÀº ´ÙÀ½°ú °°½À´Ï´Ù.
1) Client tracing
SQL*NetÀÌ ¼³Ä¡µÈ client ÂÊ $ORACLE_HOME/network/admin/sqlnet.ora
ÆÄÀÏ¿¡ ´ÙÀ½À» Ãß°¡ÇØ ÁֽʽÿÀ.
trace_level_client = 16 /* Á¦ÀÏ ³ôÀº LEVELÀÓ */
trace_file_client = client
trace_directory_client = c:\temp /* trace ÆÄÀÏÀÌ »ý¼ºµÉ µð·ºÅ丮 */
TRACE_UNIQUE_client=YES
TRACE_TIMESTAMP_client=ON
2) Server side tracing
DB ¼¹ö ÂÊÀÇ sqlnet.ora fileÀ» ÆíÁýÇϽöó´Â ¶æÀÔ´Ï´Ù.
To enable this trace you will have to add the following line to your
$ORACLE_HOME/network/admin/sqlnet.ora
trace_level_server = 16
trace_directory_server = /oracle/temp /* trace ÆÄÀÏÀÌ »ý¼ºµÉ µð·ºÅ丮 */
trace_file_server = srv.trc
3¹ø°ú °°ÀÌ ¼ÂÆÃÇϽøé, Server ÂÊÀ¸·Î µé¾î¿À´Â Client·ÎºÎÅÍÀÇ ¸ðµç
SQL*Net trafficÀ» º¼ ¼ö ÀÖ½À´Ï´Ù.
RESEARCH
=========
¿Ã·ÁÁֽŠ¿À·ù´Â ora-2050, ora-2068 error¿Í ÇÔ²² ora-3135 error°¡ ÇÔ²² ¹ß»ýµÇ°í ÀÖ½À´Ï´Ù.
1. Á¢¼Ó½Ã ¹ß»ýÇÏ´Â ¿À·ù¶ó¸é AUDSES$ ÀÇ cache size¸¦ default°ªÀÎ 20->10000À¸·Î Áõ°¡¸¦ °í·Á¹Ù¶ø´Ï´Ù.
ÀÌ´Â ´ÙÀ½ÀÇ note¸¦ ÅëÇؼ Á¦°øµÇ°í ÀÖ½À´Ï´Ù.
Note 404724.1 ORA-03135 when connecting to Database
SQL>alter sequence AUDSES$ cache 10000;
2. local°ú remote serverÀÇ $ORACLE_HOME/network/admin/sqlnet.ora³ª listener.ora¿¡ timeout°ú °ü·ÃµÈ ¼³Á¤ÀÌ ÀÖ´ÂÁö
È®Àιٶø´Ï´Ù.
3. ´Ù½Ã Çѹø´õ local°ú remote server¿¡ ´ëÇؼ ´ÙÀ½°ú °°ÀÌ event¸¦ °É¾î Áֽñ⠹ٶø´Ï´Ù.
SQL>alter system set events '2050 trace name ERRORSTACK level 3';
SQL>alter system set events '2068 trace name ERRORSTACK level 3';
SQL>alter system set events '3135 trace name ERRORSTACK level 3';
RESEARCH
=========
Note 404724.1 ORA-03135 when connecting to DatabaseÀÇ ³»¿ëÀº ´ÙÀ½°ú °°½À´Ï´Ù.
external ¹®¼¶ó metalink¿¡¼ Á¶È¸°¡ °¡´ÉÇÒ°Å °°Àºµ¥, ã¾ÆÁö½ÃÁö ¾ÊÀº½Å°Å °°³×¿ä.
SymptomsOn 10.2.0.2 in Production:
When attempting to connect to the primary database,
the following error occurs.
ERROR
ORA-03135 connection lost contact
CauseThe issue is caused by the following setup: AUDSES$ cache size is set to 20 (default).
Bug.5621770 ORA-3135 CONNECTING TO PRIMARY DATABASE WHEN SHUTDOWN STANDBY HOST.
AUDSES$ is cached for 20 values so only every 20th connection or increment to au
dses$ will cause an update. If there is a problem to update the seq$, then the c
lient connection will receive ORA-3135.
SolutionTo implement the solution, please execute the following steps:
1. login to database
2. increase the cache size of AUDSES$ from 20 (default) to 10000
Âü°í¸¸ ¹Ù¶ø´Ï´Ù. °©ÀÚ±â Á¢¼Ó¼ö°¡ ¸¹¾ÆÁö´Â °æ¿ì¿¡ ¹ß»ýµÉ ¿©Áö°¡ ÀÖ´Â issue¶ó Àû¾î µå·È½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
sqlnet trace¸¦ °Å´Â ¹æ¹ýÀº ´ÙÀ½°ú °°½À´Ï´Ù.
1) Client tracing
SQL*NetÀÌ ¼³Ä¡µÈ client ÂÊ $ORACLE_HOME/network/admin/sqlnet.ora ÆÄÀÏ¿¡ ´ÙÀ½À» Ãß°¡ÇØ ÁֽʽÿÀ.
TRACE_LEVEL_client=16
TRACE_FILE_client=client
TRACE_DIRECTORY_client=/data/oracle/JUWORA1P/system_02/client_trace
TRACE_UNIQUE_client=YES
TRACE_TIMESTAMP_client=ON
ÀÌ´Â ¼±¾ðÈĺÎÅÍ sqlnetÀ» ÅëÇؼ accessµÇ´Â ¸ðµç Á¤º¸°¡ trace·Î ³²½À´Ï´Ù.
ÇÊ¿äÇÑ trace°¡ È®º¸µÇ¸é Áï½Ã ¼³Á¤ÇÑ °ªÀº Áö¿öÁֽñ⠹ٶø´Ï´Ù.
Ãâó: http://blog.naver.com/kcufl/60095815731 | 18.97.9.172
|
|
|
|
|
9.2.0.4
+ server-side$ $ORACLE_HOME/network/admin/sqlnet.ora [ sqlnet.expire_time=10 ]
+ server-side$ $ORACLE_HOME/dbs/init$ORACLE_SID.ora [ *.open_links=200 ]
10g ¹®Á¦ ¾øÀ½, 9i ¿¡·¯ ¹ß»ý ( 9.2.0.8 fixed ) |
2010-07-12 18:34:30
|
|
|
DB 8i
½Å±Ô 11gR2
11gR2> conn 8iusr/pwd@8idb
ORA-03113 |
2012-11-02 08:24:49
|
|
|
JDBC ÀÇ ¹öÀüÀÌ ¸ÂÁö ¾Ê¾Æ¼ »ý±â´Â °æ¿ìµµ ÀÖ´Ù°í ÇÑ´Ù.
JDBC°¡ ÇÏÀ§¹öÀüÀÏ °æ¿ì¿¡ ³ª¿À´Â ¹ö±×·Î ¼¼¼ÇÀÌ Á¦´ë·Î ³¡±âÁö ¾Ê´Â´Ù°í ÇÑ´Ù.
Ãâó: http://uiandwe.tistory.com/685 |
2015-04-20 10:49:17
|
Copyright 1999-2024 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
|
|
|