Creating Packages for Use with ODBC Driver for DB2 and OLE DB Provider for DB2ID: Q216810
|
The Microsoft ODBC Driver for DB2 and the Microsoft OLE DB Provider for DB2, which are implemented as an IBM Distributed Relational Database Architecture (DRDA) Application Requester, use packages to issue dynamic SQL statements.
The driver and the provider will create packages dynamically in the location to which the user points using the Package Collection attribute. If either the user doesn't have the appropriate authority to create packages in designated "location" or the designated location does not exist, the provider
or the driver might report the following error:
By default, the provider will automatically create one package in the target collection, if one does not exist, at the time the user issues the first SQL statement. The package is created with GRANT EXECUTE authority to a single AUTH_ID only, where AUTH_ID is based on the User ID value configured in the data source. The package is created for use by SQL statements issued under the same isolation level based on the Isolation Level value configured in the data source.A SQL error has occurred. Please consult the documentation for your specific DB2 version for a description of the associated Native Error and SQL State. SQLSTATE: 51002, SQLCODE: -805.
C:\>crtpkg
SNA or IP connection?SNA
SNA configuration
Local LU Alias?LOCAL
Remote LU Name?OLYMPIA
Mode Name?QPCSUPP
User ID? <user_id>
Password?
RDB Name? OLYMPIA
Package Collection? WNWBASE
Default Schema? WNWBASE
Replace existing packages? [Y/N(default)]y
Connecting to the host...
Connection established.
Start package creation process...
Creating AUTOCOMMITTED package...
AUTOCOMMIT package created.
Package creation succeeded.
EXECUTE privilege on SNANC001 granted to PUBLIC
Creating READ_UNCOMMITTED package...
READ_UNCOMMITTED package created.
Package creation succeeded.
EXECUTE privilege on SNACH001 granted to PUBLIC
Creating REPEATABLE_READ package...
REPEATABLE_READ package created.
Package creation succeeded.
EXECUTE privilege on SNARR001 granted to PUBLIC
Creating READ_COMMITTED package...
READ_COMMITTED package created.
Package creation succeeded.
EXECUTE privilege on SNACS001 granted to PUBLIC
Package creation succeeded.
Creating SERIALIZABLE package...
REPEATABLE_READ package created.
Package creation succeeded.
EXECUTE privilege on SNAAL001 granted to PUBLIC
Free statement handles...
Disconnect...
...complete.
End of package creation.
The GUI-based tool, Crtpkgw.exe, will read a Microsoft Data Link (UDL) file for connection configuration information. After selecting the appropriate Data Link file, select Create Package from the menu to create the five packages and grant rights to PUBLIC.
Additional query words: AS/400 OS/390 MVS
Keywords : kbinterop
Version : WINDOWS:4.0 SP2
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: May 10, 1999