Websphere Message Broker message flow fails to connect to a DB2 datasource, failing with error 'SQL30082N'.
These errors can be seen in a user level trace of the execution group:
DatabaseException BIP2393E: Database error: ODBC return code '-1' from data source ''<DSN>'' using ODBC driver manager ''libbipodbc.a(odbc.so)''.
DatabaseException BIP2322E: Database error: SQL State ''08001''; Native Error Code '-30082'; Error Text ''[IBM][CLI Driver] SQL30082N Security processing failed with reason "19" ("USERID DISABLED or RESTRICTED"). SQLSTATE=08001 ''.
DB2 makes an internal call to the Operating System API command 'loginrestrictions()' to verify whether a particular user is allowed to access the system. If a user does not have appropriate permissions, then the connection will fail.
Diagnosing the problem
If you suspect this may be a problem, attempt to manually connect to your database via the DB2 connect command. If your user is restricted, you will see an error, such as:
db2 connect to MYDB user myuser using XXXXXX
SQL30082N Security processing failed with reason "19" ("USERID DISABLED or RESTRICTED"). SQLSTATE=08001
Resolving the problem
To allow access from your user, you will need to either speak with your system administrator to allow login permissions/attributes, or disable the login restrictions with the 'db2set' command:
db2set -g DB2LOGINRESTRICTIONS=NONE
Then, restart DB2 and attempt to connect again, to confirm.
The setting of DB2LOGINRESTRICTIONS is at the preference of the user for their environment, and can be treated as a permanent solution, as long as it adheres to company policies.
Some users prefer not to have this attribute's restrictions enforced so they can override this enforcement by setting:
The variable is documented in the DB2 Information Center.
WMB MB Message Broker MQ Integrator WBIMB WBI-MB MQSI WMQI