SQL30082N while connecting to DB2

Technote (troubleshooting)

Problem(Abstract)

Websphere Message Broker message flow fails to connect to a DB2 datasource, failing with error ‘SQL30082N‘.

Symptom

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 ‘‘.

Cause

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: 
DB2LOGINRESTRICTIONS=NONE.

The variable is documented in the DB2 Information Center.

Related information

DB2 System Environment Variables
DB2 technote regarding Error SQL30082N

Product Alias/Synonym

WMB MB Message Broker MQ Integrator WBIMB WBI-MB MQSI WMQI

Rate this page:

(2 users)Average rating

Did the information help you achieve your goal?

YesNoDon‘t know

Comments:*

Rate this page:

(2 users)Average rating

Add comments

Document information

More support for:

WebSphere Message Broker
DB Connectivity / ODBC / JDBC

Software version:

6.0, 6.1, 7.0, 8.0

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1590562

Modified date:

2013-04-29

Translate my page

时间: 2024-11-06 20:01:16

SQL30082N while connecting to DB2的相关文章

Aix db2 经user a using b连接时报SQL30082N Security processing failed with reason &amp;quot;42&amp;quot;

db2inst1登录 输入实例文件夹:/opt/ibm/db2/V9.7/instance 关闭实例:db2stop 更新示例:./db2iupdt db2inst1 启动实例:db2start 再次登录,OK,克! ! 版权声明:本文博主原创文章,博客,未经同意不得转载.

LINUX下Db2安装

LINUX下Db2安装 1.解压db2_v101_linuxx64_expc.tar.gz 2.执行./db2_install 3.创建用户组和用户 DB2没有独立的用户管理系统,必须借用OS用户来提供安全性认证,所以这里需要创建 LINUX用户和组.一共创建了3个组,每个组一个用户.其作用和含义分别是: 数据库管理服务器DAS用户 dasusr1 组名: dasadm1 管理实例的用户 db2inst1 组名:db2iadm1 受防护用户 db2fenc1 组名: db2fadm1 [[ema

db2导入表结构

SQL0752N  Connecting to a database is not permitted within a logical unit ofwork when the CONNECT type 1 setting is in use.  SQLSTATE=0A001 解释:发出 COMMIT 或 ROLLBACK语句之前,尝试连接另一个数据库或同一个数据库.在 CONNECT 1类环境内不能处理该请求.退出执行reset重新执行就可以了, [[email protected] ~]$

DB2 安装教程

db2 linux 安装部署 1 解压文件 tar -zxvf db2_v101_linuxx64_expc.tar.gz 2 切换路径 cd expc/ 3 启动安装程序 ./db2_install 然后它会询问用户是否将软件安装在 /opt/ibm/db2/V10.1 目录,选择 yes 4 创建用户名和用户组 groupadd db2iadm1 groupadd db2fadm1 useradd -m -g db2iadm1 db2inst1 useradd -m -g db2fadm1

db2表的导入与导出

DB2表的导入导出我了解的有下面两种方法: 1) db2move dbname export -tn tabname1 这种导出可以选定某个schema,或者选定多个表,如果需要导出多个表的话,就用逗号将表分隔开就可,如下: db2move dbname export -tn tabname1,tabname2,tabname3 导出来的文件会有一个.ixf文件和一个.msg文件 .ixf文件是文本格式的文件 导入方法: db2move dbname import db2move dbname

Linux下DB2数据库安装教程

最近因为工作需要在学习DB2数据库,本教程讲解DB2数据库在inux下的安装步骤. 安装前请查看 DB2版本和许可证 说明来增加了解,先弄明白改安装什么版本,这里我用的是最新的Express-C版本,这个版本是提供给个人学习用的版本. 管理客户端从v9.7版本之后就不再带有控制中心了,而是使用 Data Studio Client. Linux版本: Linux版本下的DB2数据库采用的官方免费版本,操作系统用的CentOS6.2. 安装过程: 1.下载:db2_v101_linuxia32_e

DB2 bind on z/os

BIND and REBIND options for packages and plans There are several options you can use for binding or rebinding plans and packages. Some of the options are common for both bind and rebind and for both plans and packages. Defaults: The default for an op

Centos7下安装DB2

环境:centos7虚拟机 DB2版本:11.1 最近项目要用到DB2数据库,也没弄过DB2的,下载的dokcer的,有些访问受限制,所以只好自己手动搭一个了. 还好,网上有现成的关于11.1版本的DB2安装. 这篇安装的参考文章:http://www.qingpingshan.com/pc/fwq/235168.html 在官网下载的11.1的版本的. v11.1_linuxx64_expc.tar.gz 我的软件存放位置在/home/setup下 一.解压: [[email protecte

db2锁

1.首先把数据库监控开关打开: db2 update dbm cfg using DFT_MON_LOCK on DFT_MON_STMT on db2  update monitor switches using lock ON sort ON bufferpool ON uow ON table ON statement ON 2.利用DB2表函数编写一个监控SQL脚本. select AGENT_ID , substr(STMT_TEXT,1,100) as statement, STMT