Article ID: 269626 - Last Review: December 5, 2003 - Revision: 3.1 INFO: Permissions Needed to Create Packages Using DB2OLEDB on DB2 and DB2/400This article was previously published under Q269626 SUMMARY
The Microsoft ODBC Driver for DB2 and the Microsoft OLE DB Provider for DB2, each of which are implemented as an IBM Distributed Relational Database Architecture (DRDA) Application Requester, use packages to issue dynamic SQL statements after connecting to DB2 running on supported platforms. This article describes the minimum permissions a user must have to create these packages in an OS/390 (MVS) and AS/400 environment. MORE INFORMATION
These packages are not required for connecting to the backend, but they are necessary before any query will work. There are two ways to create these packages:
If the user does not have the appropriate authority to create packages in the specified Collection, or if the specified Collection does not exist, the provider or driver might report the following error: In the case of DB2 (on OS/390 or MVS):
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: -567.
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.
The "Collection ID" is the name of the Collection, which the user specifies in the datalink file for the Package Collection property. This Collection should be a valid Collection within the DB2. In the case of DB2/400, the user ID must have:
If the user merely has *USE authority, or if the user has *EXCLUDE authority, the Create Package process will fail. REFERENCESFor additional information on DB2 packages and other related topics, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
235631
(http://support.microsoft.com/kb/235631/EN-US/
)
Crtpkgw.exe Hangs While Trying to Create Packages in DB2 When Connected over TCP/IP
216810
(http://support.microsoft.com/kb/216810/EN-US/
)
Creating Packages for Use with ODBC Driver for DB2 and OLE DB Provider for DB2
218590
(http://support.microsoft.com/kb/218590/EN-US/
)
INF: Configuring Data Sources for the Microsoft OLE DB Provider for DB2
| Article Translations
|
Back to the top
