VALIDATE bind option
The VALIDATE option determines whether to recheck, at run time, errors of the types "OBJECT NOT FOUND" and "NOT AUTHORIZED" that are found during bind or rebind.
VALIDATE |
|
On: BIND and REBIND PLAN and PACKAGE Not valid for REBIND of a native SQL procedure package. |
The option has no effect if all objects and needed privileges
exist.
- ( RUN )
- Indicates that if not all objects or privileges exist at bind
time, the process issues warning messages, but the bind succeeds. DB2® checks existence and authorization
again at run time for SQL statements that failed those checks during
bind. The checks use the authorization ID of the plan or package owner.
If you specify the VALIDATE(RUN) bind option, and the application to be bound contains an error with a SET host-variable assignment statement, the bind process still issues only warning messages, not error messages.
- ( BIND )
- Indicates that if not all objects or needed privileges exist at
bind time, the process issues error messages, and does not bind or
rebind the plan or package, except that:
- For BIND PACKAGE only, if you use the option SQLERROR(CONTINUE), the bind succeeds, but the SQL statements in it that have errors cannot execute.
With VALIDATE(BIND), DB2 does not check authorization for the LOCK TABLE statement and some CREATE, ALTER, and DROP statements until run time.
Defaults:
Process | Default value |
---|---|
BIND PLAN | RUN |
BIND PACKAGE | RUN |
REBIND PLAN | Existing value |
REBIND PACKAGE | Existing value |
Catalog record: Column VALIDATE of tables SYSPACKAGE and SYSPLAN.