Usage Note 41870: Unable to register DB2 tables to the metadata server without SELECT permissions on the DB2 tables
The following error message can be issued when attempting to register a DB2 table in SAS Management Console and the user does not have the proper DB2 SELECT permissions.
ERROR: CLI error trying to establish connection: [IBM][CLI Driver]
SQL30082N Security processing failed with reason "24" ("USERNAME AND/OR
PASSWORD INVALID"). SQLSTATE=08001
ERROR: Error in the LIBNAME statement.
Testing outside of SAS using the DB2 Command Line Processor issues this error:
ERROR: CLI describe error: IBM CLI Driver DB@ SQL0551N Z521 does not
have privilege to perform operation SELECT on object
The problem is that the query being sent to the database requires SELECT permissions. The user/SAS Administrator who is registering the DB2 tables does NOT have DB2 SELECT permissions on that table or tables, which generates these errors both inside and outside of SAS.
SAS does not import the SAS metadata from the DB2 catalog tables (SYSIBM.SYSTABLES and others). Instead it queries the actual table, similar to this code:
SELECT * FROM TABLE READ ONLY
To resolve the error, the user registering DB2 tables to the metadata server MUST have SELECT permissions for the table.
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to DB2 | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M3 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS2M3 | |
| Microsoft® Windows® for x64 | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M3 | |
| Microsoft Windows Server 2003 for x64 | 9.2 TS2M3 | |
| Microsoft Windows Server 2008 | 9.2 TS2M3 | |
| Microsoft Windows Server 2008 for x64 | 9.2 TS2M3 | |
| Microsoft Windows XP Professional | 9.2 TS2M3 | |
| Windows 7 Enterprise 32 bit | 9.2 TS2M3 | |
| Windows 7 Enterprise x64 | 9.2 TS2M3 | |
| Windows 7 Home Premium 32 bit | 9.2 TS2M3 | |
| Windows 7 Home Premium x64 | 9.2 TS2M3 | |
| Windows 7 Professional 32 bit | 9.2 TS2M3 | |
| Windows 7 Professional x64 | 9.2 TS2M3 | |
| Windows 7 Ultimate 32 bit | 9.2 TS2M3 | |
| Windows 7 Ultimate x64 | 9.2 TS2M3 | |
| Windows Vista | 9.2 TS2M3 | |
| Windows Vista for x64 | 9.2 TS2M3 | |
| 64-bit Enabled AIX | 9.2 TS2M3 | |
| 64-bit Enabled HP-UX | 9.2 TS2M3 | |
| 64-bit Enabled Solaris | 9.2 TS2M3 | |
| HP-UX IPF | 9.2 TS2M3 | |
| Linux | 9.2 TS2M3 | |
| Linux for x64 | 9.2 TS2M3 | |
| Solaris for x64 | 9.2 TS2M3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | |
| Topic: | Data Management ==> Data Sources ==> External Databases ==> DB2
|
| Date Modified: | 2011-01-10 17:02:13 |
| Date Created: | 2010-12-15 13:56:03 |