db2问题请教

[复制链接]
查看11 | 回复9 | 2016-2-2 09:36:33 | 显示全部楼层 |阅读模式
操作系统suseLinux的openSUSE 10.2 (i586),db2数据库版本 为32位的v8.1.用db2_install安装一切挺正常,然后用实例用户linuxfe(没用db2inst1)建立实例,然后建立数据库db2sampl后测试,发现一个奇怪问题..
db2=>connect to sample 没问题,而
db2=>connect to sample user linuxfe using linuxfe就报SQL30082NAttempt to establish connection failed with security reason "24"
("USERNAME AND/OR PASSWORD INVALID&quot

.SQLSTATE=08001
对于linuxfe的用户和密码登陆系统是没有问题的,也反复测试过了.
我用重新建立个系统用户test
用linuxfe进入,db2=>connect to sample也只能这样连接进去了,然后
db2=>grant connect, createtab, bindadd on database to user test;
可是问题依然是这样. db2=>connect to sample 没问题, db2=>connect to sample user test using test就不行了.
真是百思不得其解.....难道是suseLinux的认证有问题?
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
清空了db2diag.log后,再执行一次上面的全过程......下面为新的db2diag.log下的日志.........

2007-09-04-18.24.22.232944 Instance:linuxfe Node:000
PID:9611(db2stop2) TID:3036100288 Appid:none
base sys utilitiesstopdbm Probe:911
ADM7514WDatabase manager has stopped.
2007-09-04-18.24.28.133553 Instance:linuxfe Node:000
PID:9622(db2star2) TID:3035301568 Appid:none
base sys utilitiesLicCheckProcessors Probe:20
SQL8017WThe number of processors on this machine exceeds the defined
entitlement of "1" for the product "DB2 Enterprise Server Edition".The
number of processors on this machine is "2".You should purchase additional
processor based entitlements from your IBM representative or authorized dealer
and update your license using the License Center or the db2licm command line
utility. For more information on updating processor based licenses, refer to
the Quick Beginnings manual for your platform.For more information on the
db2licm utility, refer to the DB2 Command Reference.
2007-09-04-18.24.29.846467 Instance:linuxfe Node:000
PID:9622(db2star2) TID:3035301568 Appid:none
base sys utilitiesstartdbm Probe:911
ADM7513WDatabase manager has started.
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
你贴connect报错后的日志阿。兄弟。
不过,建议你db2stop,su - root, db2iupdt linuxfe
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
最初由 diablo2 发布
[B]你贴connect报错后的日志阿。兄弟。
不过,建议你db2stop,su - root, db2iupdt linuxfe [/B]

不好意思,刚开始表达错了,上面的日志就是connect to 的报错日志啊,我更新了这个事例,不过也没起作用,不知道是不是suse要装什么包遗漏了...
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
db2iupdt may help
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
still not work after db2iupdt? maybe should do db2trc and call 800 for help ^_^
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
最初由 wangzhonnew 发布
[B]db2iupdt may help [/B]

也试过了啊, db2iupdt linuxfe.不过都没起作用....
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
是不是大小写的问题啊?
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
重新建实例吧
回复

使用道具 举报

千问 | 2016-2-2 09:36:33 | 显示全部楼层
最初由 diablo2 发布
[B]重新建实例吧 [/B]

1)
确认和下面问题无关:
24(用户名和/或密码无效)
指定的用户名和/或指定的密码无效。一些特殊
原因是:
1.如果您最近更改了对一些 DB2
关键文件(例如,db2ckpw)的许可权,或者已将这
些文件包含在新的修订包中,则可能是尚未运
行用来更新实例的 db2iupdt 命令。
2.正在使用的用户名的格式可能无效。例如,在
UNIX 和 Linux
平台上,用户名必须全部都采用小写。
3.在指定目录信息时可能产生了错误。例如,可
能未指定正确的认证类型,或者,如果可能的
话,在本地系统上可能尚未编目远程服务器。
有关认证
的更多信息,请使用诸如“认证”之类的术语
来在 DB2信息中心(
http://publib.boulder.ibm.com/infocenter/db2luw/v9)
中执行搜索。
2)之后做 trace, format 成 flw 格式,
看sqlockpw_daemon_main function 之后的内容。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行