DB2 Version 9.7 for Linux, UNIX, and Windows

db2rbind - Rebind all packages command

Rebinds packages in a database.

Authorization

  • sysadm
  • sysctrl
  • sysmaint

Required connection

None

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-db2rbind--database-- -l--logfile--+-----+-------------------->
                                     '-all-'   

>--+----------------------------+--+-----------------------+---><
   '- -u--userid-- -p--password-'  |      .-conservative-. |   
                                   '- -r--+-any----------+-'   

Command parameters

database
Specifies an alias name for the database whose packages are to be revalidated.
-l logfile
Specifies the (optional) path and the (mandatory) file name to be used for recording the package revalidation process.
Example:
cat <logfile>
Starting time .... Thu Jun 18 02:47:11 2009
Succeeded to rebind = 0
Failed to rebind = 0
Ending time .... Thu Jun 18 02:47:11 2009
all
Specifies that rebinding of all valid and invalid packages is to be done. If this option is not specified, all packages in the database are examined, but only those packages that are marked as invalid are rebound, so that they are not rebound implicitly during application execution.
-u userid
User ID. This parameter must be specified if a password is specified.
-p password
Password. This parameter must be specified if a user ID is specified.
-r
Resolve. Specifies whether rebinding of the package is to be performed with or without conservative binding semantics. This affects whether new objects that use the SQL path for resolution are considered during resolution on static DML statements in the package. This option is not supported by DRDA®. Valid values are:
conservative
Only those objects in the SQL path that were defined before the last explicit bind time stamp are considered for resolving references to any objects that use the SQL path for object resolution. Conservative binding semantics are used. This is the default. This option is not supported for an inoperative package.
any
All possible matches in the SQL path are considered for resolving references to any objects that use the SQL path for object resolution. Conservative binding semantics are not used.

Usage notes