You must bind the database utilities (import, export, reorg, the command line processor, and DB2 CLI) to each database before they can be used with that database. In a network environment, if you are using multiple clients that run on different operating systems or are at different versions of DB2, you must bind the utilities once for each operating system/DB2-version combination.
Binding a utility creates a package, which is an object that includes all of the information that is needed to process specific SQL statements from a single source file.
The bind files are grouped together in different .lst files in the bnd directory under the installation directory (typically sqllib ). Each file is specific to a server.
To bind the utilities and applications to the DRDA server, connect to the DRDA server and use commands similar to the following:
connect to dbalias user userid using password bind path@ddcsmvs.lst blocking all sqlerror continue messages mvs.msg grant public connect reset
These commands are described in detail in the DB2 Connect User's Guide.
How you bind the database utilities to a database depends on your workstation's operating system:
connect to database_alias
where database_alias is the name of the database to which you want to connect.
"bind @db2ubind.lst messages bind.msg grant public" "bind @db2cli.lst messages clibind.msg grant public"
In this example, bind.msg and clibind.msg are the output message files, and EXECUTE and BIND privileges are granted to public.
connect reset
For more information on the bind command, refer to the Command Reference.
Notes:
![]() |
If the applications that you are using require binding to the database, you
can use the Client Configuration Assistant's Bind facility, or the
command line processor, to perform the bind action.
|