在linux环境下启动db2,
我切换到db2inst1用户下,启动不了db2,而且db2jstrt不能使用,
db2cc命令出现Error: Can not open display
在Linux环境下到底怎么来启动db2呢?db2start肯定是不行了,请大家帮个忙。
you probably did a non-root install. Unfortunately, DB2 doesn't have any DB-level users: all user management, including authentication, is delegated to the OS. On a *nix system, the routine checking the password usually requires root privileges. The problem is that the file sqllib/security/db2ckpw needs to be owned by root and needs to have its setuid bit set:
code:
chown root db2ckpw
chmod u+s db2ckpw
I first found the file sqllib/security32/db2ckpw, but that doesn't seem to be used on linux. Might be the Windows version? Afterwards, perform a
code:
db2 force applications all
db2stop
db2start
The first command breaks all connections, otherwise the db2stop probably won't work.
把db2目录下db2nodes.cfg或者hosts内的localhost配制为
和etc/hosts文件中hosts内容一致就可以了
请参考http://yezongbo.iteye.com/blog/371172
打补丁 试试
根据你的错误提示
估计你的linux是 ubuntu 或者其他linux版本而用了非Root账户安装了DB2
请参考:http://d01.dyndns.org/sharel/img/db2expc/9.7-2/server/x86_64/doc/gettingstarted/zh_TW/help/html/html-installing69.html
linux 下你的 root 权限不够