Creating Db2 packages using connection properties
- Last Updated: May 8, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
Note: The user ID creating the Db2 packages must have BINDADD
privileges on the database. Consult with your database administrator to ensure that you have
the correct privileges.
The following table lists the connection properties you can use to explicitly create Db2 packages.
| Property | Database |
|---|---|
PackageCollection=
collection_name (where collection_name is the name of the collection or library to which Db2
packages are bound) |
Db2 for z/OS and i |
CreateDefaultPackage=true
|
Db2 for Linux/UNIX/Windows, z/OS, and i |
ReplacePackage=true
|
Db2 for Linux/UNIX/Windows |
DynamicSections=
x (where x is a positive integer) |
Db2 for Linux/UNIX/Windows, z/OS, and i |
Note: To create new Db2 packages on Db2 for Linux/UNIX/Windows,
you must use
ReplacePackage=true in conjunction with
CreateDefaultPackage=true. If a Db2 package already
exists, it will be replaced when ReplacePackage=true.