job调用的程序出现分布式事务错误ora-02050 ora-02056 ora-020563错误
狂浪 2012-10-09 02:58:57 实际我的过程就是从4个CURSOR中取数据并赋值给变量,CURSOR是从远程数据库取数据(其中一个是副库 DG),然后通过邮件函数发出来,没有INSERT UPDATE DELETE 语句
但还是偶尔出现下面的错误,商业数据,不方便公布程序
[b]----- mon_smon_2580.trc
Dump file d:\oracle\product\10.2.0\admin\mon\bdump\mon_smon_2580.trc
Tue Oct 09 14:06:56 2012
ORACLE V10.2.0.1.0 - 64bit Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Windows NT Version V5.2 Service Pack 2
CPU : 8 - type 8664, 2 Physical Cores
Process Affinity : 0x0000000000000000
Memory (Avail/Total): Ph:5756M/8189M, Ph+PgF:5224M/9795M
Instance name: mon
Redo thread mounted by this instance: 1
Oracle process number: 8
Windows thread id: 2580, image: ORACLE.EXE (SMON)
*** 2012-10-09 14:06:56.981
*** SERVICE NAMESYS$BACKGROUND) 2012-10-09 14:06:56.981
*** SESSION ID549.1) 2012-10-09 14:06:56.981
*** 2012-10-09 14:06:56.981
DISTRIB TRAN MON.WORLD.cc696d0c.3.45.31475
is local tran 3.45.31475 (hex=03.2d.7af3)
insert pending collecting tran, scn=10901277435461 (hex=9ea.26c4e645)
-------------mon_reco_2584.trc
Dump file d:\oracle\product\10.2.0\admin\mon\bdump\mon_reco_2584.trc
Tue Oct 09 14:08:17 2012
ORACLE V10.2.0.1.0 - 64bit Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Windows NT Version V5.2 Service Pack 2
CPU : 8 - type 8664, 2 Physical Cores
Process Affinity : 0x0000000000000000
Memory (Avail/Total): Ph:5764M/8189M, Ph+PgF:5236M/9795M
Instance name: mon
Redo thread mounted by this instance: 1
Oracle process number: 9
Windows thread id: 2584, image: ORACLE.EXE (RECO)
*** 2012-10-09 14:08:17.610
*** SERVICE NAMESYS$BACKGROUND) 2012-10-09 14:08:17.610
*** SESSION ID548.1) 2012-10-09 14:08:17.610
*** 2012-10-09 14:08:17.610
DISTRIB TRAN MON.WORLD.cc696d0c.3.45.31475
is local tran 3.45.31475 (hex=03.2d.7af3))
delete pending collecting tran, scn=10901277435461 (hex=9ea.26c4e645)
-------------------这下面是alter里面从10.6号到现在的
Sat Oct 06 15:20:36 2012
Error 2050 trapped in 2PC on transaction 10.26.38865. Cleaning up.
Sat Oct 06 15:20:36 2012
DISTRIB TRAN MON.WORLD.cc696d0c.10.26.38865
is local tran 10.26.38865 (hex=0a.1a.97d1)
insert pending collecting tran, scn=10897031741658 (hex=9e9.29b4c0da)
Sat Oct 06 15:20:36 2012
Error stack returned to user:
ORA-02050: transaction 10.26.38865 rolled back, some remote DBs may be in-doubt
ORA-02050: transaction 1731.34.164587 rolled back, some remote DBs may be in-doubt
ORA-02056: 2PC: k2lcom: bad two-phase command number rdonly from coord
ORA-02063: preceding line from oracle1
ORA-02063: preceding 3 lines from oracle2
Sat Oct 06 15:20:36 2012
Errors in file d:\oracle\product\10.2.0\admin\mon\bdump\mon_j000_3516.trc:
ORA-12012: error on auto execute of job 319
ORA-02050: transaction 10.26.38865 rolled back, some remote DBs may be in-doubt
ORA-02050: transaction 1731.34.164587 rolled back, some remote DBs may be in-doubt
ORA-02056: 2PC: k2lcom: bad two-phase command number rdonly from coord
ORA-02063: preceding line from oracle1
ORA-02063: preceding 3 lines from oracle2
Sat Oct 06 15:21:37 2012
DISTRIB TRAN MON.WORLD.cc696d0c.10.26.38865
is local tran 10.26.38865 (hex=0a.1a.97d1))
delete pending collecting tran, scn=10897031741658 (hex=9e9.29b4c0da)
Sat Oct 06 15:22:41 2012
Error 2050 trapped in 2PC on transaction 2.7.31446. Cleaning up.
Sat Oct 06 15:22:41 2012
DISTRIB TRAN MON.WORLD.cc696d0c.2.7.31446
is local tran 2.7.31446 (hex=02.07.7ad6)
insert pending collecting tran, scn=10897032617153 (hex=9e9.29c21cc1)
Sat Oct 06 15:22:41 2012
Error stack returned to user:
ORA-02050: transaction 2.7.31446 rolled back, some remote DBs may be in-doubt
ORA-02050: transaction 1944.29.62024 rolled back, some remote DBs may be in-doubt
ORA-02056: 2PC: k2lcom: bad two-phase command number rdonly from coord
ORA-02063: preceding line from oracle1
ORA-02063: preceding 3 lines from oracle2
Sat Oct 06 15:22:41 2012
Errors in file d:\oracle\product\10.2.0\admin\mon\bdump\mon_j000_2436.trc:
ORA-12012: error on auto execute of job 319
ORA-02050: transaction 2.7.31446 rolled back, some remote DBs may be in-doubt
ORA-02050: transaction 1944.29.62024 rolled back, some remote DBs may be in-doubt
ORA-02056: 2PC: k2lcom: bad two-phase command number rdonly from coord
ORA-02063: preceding line from oracle1
ORA-02063: preceding 3 lines from oracle2
Sat Oct 06 15:23:41 2012
DISTRIB TRAN MON.WORLD.cc696d0c.2.7.31446
is local tran 2.7.31446 (hex=02.07.7ad6))
delete pending collecting tran, scn=10897032617153 (hex=9e9.29c21cc1)
Sat Oct 06 15:26:47 2012
Error 2050 trapped in 2PC on transaction 4.46.32640. Cleaning up.
Sat Oct 06 15:26:47 2012
DISTRIB TRAN MON.WORLD.cc696d0c.4.46.32640
is local tran 4.46.32640 (hex=04.2e.7f80)
insert pending collecting tran, scn=10897034256941 (hex=9e9.29db222d)
Sat Oct 06 15:26:47 2012
Error stack returned to user:
ORA-02050: transaction 4.46.32640 rolled back, some remote DBs may be in-doubt
ORA-02050: transaction 496.35.1771052 rolled back, some remote DBs may be in-doubt
ORA-02056: 2PC: k2lcom: bad two-phase command number rdonly from coord
ORA-02063: preceding line from oracle1
ORA-02063: preceding 3 lines from oracle2
Sat Oct 06 15:26:47 2012
Errors in file d:\oracle\product\10.2.0\admin\mon\bdump\mon_j000_3904.trc:
ORA-12012: error on auto execute of job 319
ORA-02050: transaction 4.46.32640 rolled back, some remote DBs may be in-doubt
ORA-02050: transaction 496.35.1771052 rolled back, some remote DBs may be in-doubt
ORA-02056: 2PC: k2lcom: bad two-phase command number rdonly from coord
ORA-02063: preceding line from oracle1
ORA-02063: preceding 3 lines from oracle2