DB2 Connect使用正确的用户名/密码失败

时间:2014-01-20 10:49:11

标签: linux db2

这是我正在运行的命令列表......这将解释我的问题......

$ su user
Password:
[user@localhost]$ db2 list database directory

System Database Directory
Number of entries in the directory = 1
Database 1 entry:

 Database alias                       = MYDB
 Database name                        = MYDB
 Local database directory             = /scratch/db2inst2
 Database release level               = f.00
 Comment                              =
 Directory entry type                 = Indirect
 Catalog database partition number    = 0
 Alternate server hostname            =
 Alternate server port number         =


[user@localhost]$ db2 connect to MYDB
SQL30082N  Security processing failed with reason "24" ("USERNAME AND/OR PASSWORD INVALID").  SQLSTATE=08001

我不确定为什么会这样。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

您尝试连接数据库的用户出现问题。

  • 用户没有连接数据库的必要权限。
  • 你做了su用户,但环境没有完全改变。确保使用哪个用户连接到数据库,即当前实例$ DB2INSTANCE。
  • 您已更新DB2,但实例尚未更新db2iupdt。
  • 尝试通过指定所有参数
  • 连接到数据库

例如

 db2 connect to MYDB user user using mypasswd

有关错误的详细信息,请参阅有关SQL30082的信息中心

db2 ? sql30082

原因24

相关问题