经局方反映在进行交易时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'.
该错误为数据库操作权限不足。
使用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"
另外在日志文件中可以看到类似的日志信息:
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"
根据以上信息可得出如下结论:
GRPITFUIF组和GRPCSCRM2组所在的部分服务进行了未经授权的数据库操作,请联系应用提供商对该这两组所在的服务的源代码进行查看并配合DBA查看是否有未经授权的操作,并赋予该权限。