Saving access path information for static SQL statements
You can use package copies to automatically save pertinent catalog table and directory records for static SQL statements when you bind a package or rebind an existing package.
About this task
Procedure
To save access path information for static SQL statements:
- EXTENDED
-
Db2 saves the active copy, and two older copies, which are known as the previous and original copies. Db2 replaces the previous copy with the former active copy and saves the newest copy as the active copy. Db2 saves the original copy at the first rebind that EXTENDED is specified and retains the original copy unchanged at subsequent rebinds.
FL 505 Multiple phased-out copies can also be saved for phase-in of package rebinds. For more information, see Phase-in of package rebinds.
EXTENDED is the default value.
- BASIC
- Db2 saves the active copy and one older copy, which is known as the previous copy. Db2 replaces the previous copy path with the former active copy and saves the newest copy the active copy.
- OFF
- No copies are saved.
When you rebind a package with the PLANMGMT (EXTENDED) or (BASIC) options, the following options must remain the same for package copies to remain usable:
- OWNER
- QUALIFIER
- ENABLE
- DISABLE
- PATH
- PATHDEFAULT
- IMMEDWRITE