What DB priveleges are needed by Arjuna Recovery Manager in JBOSS7.1.1
ion_mayank Aug 20, 2012 1:59 AMI am constantly getting following error by recovery manager in JBOSS 7.1.1
11:24:30,821 INFO [com.arjuna.ats.jta] ARJUNA016013: Rolling back < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffffc0a82dca:22c9bd23:502e2834:2472, node_name=1, branch_uid=0:ffffc0a82dca:22c9bd23:502e2834:247a, subordinatenodename=null, eis_name=java:/com/xyz/datasources/XADataSource >
11:24:30,825 ERROR [stderr] oracle.jdbc.xa.OracleXAException
11:24:30,827 ERROR [stderr] at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1050)
11:24:30,829 ERROR [stderr] at oracle.jdbc.xa.client.OracleXAResource.rollback(OracleXAResource.java:937)
11:24:30,831 ERROR [stderr] at org.jboss.jca.adapters.jdbc.xa.XAManagedConnection.rollback(XAManagedConnection.java:342)
11:24:30,832 ERROR [stderr] at org.jboss.jca.core.tx.jbossts.XAResourceWrapperImpl.rollback(XAResourceWrapperImpl.java:171)
11:24:30,834 ERROR [stderr] at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.handleOrphan(XARecoveryModule.java:706)
11:24:30,836 ERROR [stderr] at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:612)
11:24:30,837 ERROR [stderr] at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471)
11:24:30,839 ERROR [stderr] at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385)
11:24:30,841 ERROR [stderr] at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:166)
11:24:30,843 ERROR [stderr] at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:789)
11:24:30,845 ERROR [stderr] at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:371)
11:24:30,846 ERROR [stderr] Caused by: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
11:24:30,848 ERROR [stderr]
11:24:30,849 ERROR [stderr] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
11:24:30,850 ERROR [stderr] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:388)
11:24:30,851 ERROR [stderr] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:381)
11:24:30,852 ERROR [stderr] at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:564)
11:24:30,853 ERROR [stderr] at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
11:24:30,854 ERROR [stderr] at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
11:24:30,856 ERROR [stderr] at oracle.jdbc.driver.T4CTTIOtxen.doOTXEN(T4CTTIOtxen.java:168)
11:24:30,857 ERROR [stderr] at oracle.jdbc.driver.T4CXAResource.doTransaction(T4CXAResource.java:746)
11:24:30,858 ERROR [stderr] at oracle.jdbc.driver.T4CXAResource.kputxrec(T4CXAResource.java:809)
11:24:30,859 ERROR [stderr] at oracle.jdbc.driver.T4CXAResource.doRollback(T4CXAResource.java:645)
11:24:30,860 ERROR [stderr] at oracle.jdbc.xa.client.OracleXAResource.rollback(OracleXAResource.java:932)
11:24:30,861 ERROR [stderr] ... 9 more
I have given the following DB priveleges to my Oracle user to enable XARecovery in Oracle 10g.
GRANT SELECT ON sys.dba_pending_transactions TO db_user;
GRANT SELECT ON sys.pending_trans$ TO db_user;
GRANT SELECT ON sys.dba_2pc_pending TO db_user;
GRANT EXECUTE ON sys.dbms_xa TO db_user;
GRANT EXECUTE ON sys.dbms_system TO db_user;
GRANT EXECUTE ON dbms_system TO db_user;
Still I am getting insufficient priveleges error from Oracle when Recovery Manager is trying to rollback.