这是我正在运行的命令列表...这将解释我的问题...
$ 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
我不确定为什么会这样。任何人都可以帮忙吗?
最佳答案
您尝试连接到数据库的用户有问题。
- 用户没有必要的权限连接到数据库。
- 你做了一个 su 用户,但环境并没有完全改变。确保使用哪个用户连接到数据库,当前实例 $DB2INSTANCE。
- 您已更新 DB2,但实例尚未更新 db2iupdt。
- 尝试通过指定所有参数连接到数据库
例如
db2 connect to MYDB user user using mypasswd
有关您的错误的更多信息,请参阅有关 SQL30082 的信息中心
db2 ? sql30082
理由 24
关于linux - DB2 Connect 使用正确的用户名/密码失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21231951/