[原创]Tuxedo系统XA交易提交及回滚失败调查实例_MQ, Tuxedo及OLTP讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MQ, Tuxedo及OLTP讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 6499 | 回复: 0   主题: [原创]Tuxedo系统XA交易提交及回滚失败调查实例        下一篇 
funny
注册用户
等级:中校
经验:1529
发帖:111
精华:4
注册:2013-3-13
状态:离线
发送短消息息给funny 加好友    发送短消息息给funny 发消息
发表于: IP:您无权察看 2014-2-18 16:50:16 | [全部帖] [楼主帖] 楼主

1.概述

     经局方反映在进行交易时xa日志经常会出现如下错误:

110755.16698.0:
xaocommit: rtn -7
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
110755.16698.0:
OCITransCommit return code: -1
110755.16698.0:
ORA-01031: insufficient privileges
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.


       该错误为数据库操作权限不足。

2.问题分析

2.1. GRPITFUIF

     使用ps –ef | grep 16998后发现进程信息如下:

tuxapp1 16698     1  0 22:07:06 ?   0:06 TMS_ORA -C dom=ubss -g 850 -i 30001 -u crmapp1 -U /ngbss/tuxapp1/log/ulog -m 0 -A


       在日志中搜素110755关键字后发现如下信息:

110755.crmapp1!TMSYSEVT.17556.1.0:LIBTUX_CAT:5055: ERROR: .SysTransactionXAER_RMFAIL: Transaction x0 x4f63a8c8 x6d54c in group GRPITFUIF
110755.crmapp1!TMS_ORA.16698.1.0: gtrid x0 x4f63a8c8 x6d54c:    CMDTUX_CAT:447: ERROR: xa_commit returned -7 for group GRPITFUIF
110755.crmapp1!TMSYSEVT.17556.1.0:LIBTUX_CAT:5055: ERROR: .SysTransactionXAER_RMFAIL: Transaction x0 x4f63a8c8 x6d54c in group GRPITFUIF


       在配置文件中GRPITFUIF组的配置信息如下所示:

"GRPITFUIF"     LMID="ubss"     GRPNO=850
OPENINFO="Oracle_XA:Oracle_XA+acc=P/uop_uif1/QgiAnB_4+SqlNet=crmdb_i1+SesTm=120+LogDir=../log"   TMSNAME="TMS_ORA"     TMSCOUNT=2


       与进程信息中对应的组ID相同。

     属于GRPITFUIF组的SERVER如下:

"itfcchserver"  SRVGRP="GRPITFUIF"      SRVID=6510
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="qitfcch"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=20  MAX=20  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfbkhserver"  SRVGRP="GRPITFUIF"      SRVID=6530
CLOPT="-A -p 1,30:2,30 -- -T"
RQADDR="qitfbkh_1"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=20  MAX=95  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfbkhserver"  SRVGRP="GRPITFUIF"      SRVID=6630
CLOPT="-A -p 1,30:2,30 -- -T"
RQADDR="qitfbkh_2"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=20  MAX=95  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfmmhserver"  SRVGRP="GRPITFUIF"      SRVID=6730
CLOPT="-A -p 1,30:2,10 -- -T"
RQADDR="qitfmmh_1"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=16  MAX=60  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfmmhserver"  SRVGRP="GRPITFUIF"      SRVID=6830
CLOPT="-A -p 1,30:2,10 -- -T"
RQADDR="qitfmmh_2"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=16  MAX=60  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfdkhserver"  SRVGRP="GRPITFUIF"      SRVID=6930
CLOPT="-A -p 1,30:2,10 -- -T"
RQADDR="qitfdkh_1"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=12  MAX=60  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfdkhserver"  SRVGRP="GRPITFUIF"      SRVID=7030
CLOPT="-A -p 1,30:2,10 -- -T"
RQADDR="qitfdkh_2"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=12  MAX=60  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfibhserver"  SRVGRP="GRPITFUIF"      SRVID=7130
CLOPT="-A -p 1,30:2,10 -- -T"
RQADDR="qitfibh"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=16  MAX=60  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"itfsmhserver"  SRVGRP="GRPITFUIF"      SRVID=7230
CLOPT="-A -p 1,30:2,30 -- -T"
RQADDR="qitfsmh"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=12  MAX=60  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"


2.2. GRPCSCRM2

另外在日志文件中可以看到类似的日志信息:

104753.crmapp1!TMS_ORA.15565.1.0: gtrid x0 x4fd5fe10 x71ea0:    CMDTUX_CAT:447: ERROR: xa_commit returned -7 for group GRPCSCRM2
104753.crmapp1!TMSYSEVT.17556.1.0: LIBTUX_CAT:5055: ERROR: .SysTransactionXAER_RMFAIL: Transaction x0 x4fd5fe10 x71ea0 in group GRPCSCRM2


       在xa日志日志中搜索104753关键字后有如下信息:

104753.15565.0:
OCITransCommit return code: -1
104753.15565.0:
ORA-01031: insufficient privileges
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'
104753.15570.0:
OCITransCommit return code: -1
104753.15570.0:
ORA-01031: insufficient privileges
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
04753.15565.0:
xaocommit: rtn -7
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
104753.15570.0:
xaocommit: rtn -7
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
104753.15570.0:
OCITransCommit return code: -1
104753.15570.0:
ORA-01031: insufficient privileges
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
104753.15570.0:
xaocommit: rtn -7
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
104753.15565.0:
OCITransCommit return code: -1
104753.15565.0:
ORA-01031: insufficient privileges
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.
104753.15565.0:
xaocommit: rtn -7
ORACLE XA: Version 10.2.0.1.0. RM name = 'Oracle_XA'.


使用ps –ef | grep 15565,进程信息如下

tuxapp1 15565     1  0 22:06:07 ?         0:00 TMS_ORA -C dom=ubss -g 310 -i 30001 -u crmapp1 -U /ngbss/tuxapp1/log/ulog -m 0 -A


在配置文件中查看GRPCSCRM2组的配置信息如下:

GROUPS字段

"GRPCSCRM2"     LMID="ubss"     GRPNO=310
OPENINFO="Oracle_XA:Oracle_XA+acc=P/uop_crm2/JTofuq_0+SqlNet=crmdb_i2+SesTm=120+LogDir=../log"   TMSNAME="TMS_ORA"   TMSCOUNT=2


SERVERS字段

"qcscrm1l1server"       SRVGRP="GRPCSCRM2"      SRVID=4120
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="qcscrm2l1"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=5   MAX=15  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"qcscrm1l2server"       SRVGRP="GRPCSCRM2"      SRVID=4140
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="qcscrm2l2"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=5   MAX=10  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"qcscrm1l3server"       SRVGRP="GRPCSCRM2"      SRVID=4160
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="qcscrm2l3"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=1   MAX=5   CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"tcscrm1l1server"       SRVGRP="GRPCSCRM2"      SRVID=4180
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="tcscrm2l1"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=6   MAX=15  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"tcscrm1l2server"       SRVGRP="GRPCSCRM2"      SRVID=4200
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="tcscrm2l2"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=3   MAX=10  CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"
"tcscrm1l3server"       SRVGRP="GRPCSCRM2"      SRVID=4220
CLOPT="-A -p 1,30:2,30     -- -T"
RQADDR="tcscrm2l3"
RQPERM=0666     REPLYQ=Y        RPPERM=0666     MIN=1   MAX=5   CONV=N
SYSTEM_ACCESS=FASTPATH
MAXGEN=5        GRACE=3600      RESTART=Y
MINDISPATCHTHREADS=0    MAXDISPATCHTHREADS=1    THREADSTACKSIZE=0
SICACHEENTRIESMAX="500"


3.建议

     根据以上信息可得出如下结论:

     GRPITFUIF组和GRPCSCRM2组所在的部分服务进行了未经授权的数据库操作,请联系应用提供商对该这两组所在的服务的源代码进行查看并配合DBA查看是否有未经授权的操作,并赋予该权限。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论