在linux环境下启动db2,
我切换到db2inst1用户下,启动不了db2,而且db2jstrt不能使用,
db2cc命令出现Error: Can not open display
在Linux环境下到底怎么来启动db2呢?db2start肯定是不行了,请大家帮个忙。
在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.