Previous Topic: Creating an Alternate PlanNext Topic: Preparing DB2 Application Plans


Selecting an Alternate Plan at Runtime

If a program was defined with more than one plan, you can select the appropriate plan dynamically at runtime by entering the ASSIGN AUTH command before executing the program.

The format of the ASSIGN AUTH command is:

ASSIGN AUTH authid1 NEW authid2

Note: The plan identified with the specified authorization ID must exist in the current dictionary for the program to run with that plan.