Privileges required for handling plans and packages
An ID, or a role that runs in a trusted context, needs specific privileges to perform actions on plans and packages.
The following table lists the IDs and describes the
privileges that they need for performing each type of plan or package
operation. A user-defined function, stored procedure, or trigger package
does not need to be included in a package list. A trigger package
cannot be deleted by FREE PACKAGE or DROP PACKAGE. The DROP TRIGGER
statement must be used to delete the trigger package.
| Operation | ID or role | Required privileges |
|---|---|---|
| Execute a plan | Primary ID, any secondary ID, or role | Any of the following
privileges:
|
| Bind embedded SQL statements, for any bind operation | Package owner | Any of the following
privileges:
|
| BIND EXPLAIN without generating a package | Plan or package owner | Any of the following privileges:
|
| Include package in PKLIST1 | Plan owner | Any of the following
privileges:
|
| BIND a new plan using the default owner or primary authorization ID | Primary ID or role | Any of the following
privileges:
|
| BIND a new package using the default owner or primary authorization ID | Primary ID or role | If the value of the
field BIND NEW PACKAGE on installation panel DSNTIPP is BIND, any
of the following privileges:
|
| BIND REPLACE or REBIND for a plan or package using the default owner or primary authorization ID | Primary ID, any secondary ID, or role | Any of the following
privileges:
|
| BIND a new version of a package, with default owner | Primary ID or role | If BIND NEW PACKAGE
is BIND, any of the following privileges:
|
| FREE or DROP a package2 | Primary ID, any secondary ID, or role | Any of the following
privileges:
|
| COPY a package | Primary ID, any secondary ID, or role | Any of the following:
|
| FREE a plan | Primary ID, any secondary ID, or role | Any of the following
privileges:
|
| Name a new OWNER other than the primary authorization ID for any bind operation | Primary ID, any secondary ID, or role | Any of the following
privileges:
|
|
Notes:
|
||