If you need to create plans for an application that has already been developed
Use this technique if the applications were developed with little attention to the Db2® plan aspects. After the application is completely developed, the plans are defined to match the transaction.
About this task
In general, defining plans after the application has already been developed is not recommended, but this technique is useful for conversion projects, where the application design is unchanged but the application now uses Db2.
The advantages and disadvantages of this technique completely depend on the actual application design and the result of the steps.
Procedure
When defining the Db2 plans and the DB2ENTRY specifications, you can perform the following steps:
Example
Applied to the example in Figure 1, a possible solution would be:
- One plan, PLAN0, using the DBRMs from P0, P1, P2, P3, and PB, used by the transaction ID TRX0
- One plan, PLANA, using the DBRMs from PA, PB, PC, and PD, used by the transaction ID TRXA
- Two DB2ENTRY definitions, one for each plan