# DB2Entry and DB2Tran for Programs That Access DB2

If your CICS program requires a `DB2ENTRY` object, do one of the following:

- If the DB2 program runs in SOR under `SXEX`, define a `DB2TRAN` object in SOR for `SXEX`.
- If the DB2 program runs in SOR under Mirror Trans, define a `DB2TRAN` object in SOR for the Mirror Tran transaction ID in the recipe.
- If the DB2 program runs in AOR under `SXEX`, define a `DB2TRAN` object in AOR for `SXEX`.
- If the DB2 program runs in AOR under Mirror Trans, define a `DB2TRAN` object in AOR for the Mirror Tran transaction ID in the recipe.

Copyright © TIBCO Software Inc. All rights reserved.