My Oracle Support Banner

WLS: Logging Last Resource Transaction Optimization Does Not Guarantee ACID (Doc ID 1347613.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.


WebLogic Server is not throwing an expected transaction exception when there are two datasources in a transaction and one involved table with DEFERRED constraint, thus ACID is not guaranted.

The first datasource is Oracle XA and second one is a non-XA with Global Transactions and Logging Last Resource enable.

Two tables (one with DEFERRED constraint) are updated with these two different datasources then a complete rollback is not executed by the driver (as expected) then it is not ACID complaint.

The expected exception should be something similar to:

weblogic.transaction.RollbackException: ORA-02091: transaction rolled back
ORA-02290: check constraint (TEST1.D1) violated

at weblogic.transaction.internal.TransactionImpl.throwRollbackException(
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(
at weblogic.transaction.internal.ServerTransactionImpl.commit(
at weblogic.transaction.internal.TransactionManagerImpl.commit(
at weblogic.transaction.internal.TransactionManagerImpl.commit(
at org.example.llrtest.LLRTestServlet.doTransaction(
at org.example.llrtest.LLRTestServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
at weblogic.servlet.internal.WebAppServletContext.execute(
Caused by: weblogic.transaction.nonxa.NonXAException: ORA-02091: transaction rolled back
ORA-02290: check constraint (TEST1.D1) violated

at weblogic.jdbc.wrapper.JTSLoggableResourceImpl.commit(
at weblogic.transaction.internal.NonXAServerResourceInfo.commit(
at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(

However it is necessary to check the data in the tables if the rollback was successfully done.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.