Q) What is local and global transactions?
A)
A)
- In
LOCAL_TXN
mode, applications must not invokeprepare()
,commit()
,rollback()
,forget()
, orend()
on anXAResource
. Doing so causes anXAException
to be thrown. - In
GLOBAL_TXN
mode, applications must not invokecommit()
,rollback()
(both versions),setAutoCommit()
, orsetSavepoint() on a java.sql.Connection
, and must not invokeOracleSetSavepoint()
ororacleRollback()
on anoracle.jdbc.OracleConnection
. Doing so causes anSQLException
to be thrown.
No comments:
Post a Comment