今天重启了tsm服务,启动tsm服务进程时报错了,日志如下:
[root@tsmser bin]# ./dsmserv &
[1] 2839
[root@tsmser bin]# ./dsmserv: error while loading shared libraries: libdb2.so.1: cannot open shared object file: No such file or directory
[1]+ Exit 127 ./dsmserv
[root@tsmser bin]#
等了有十分钟左右吧,再登录就莫名的好了,之前也遇到过一次是用IBM 官网的方法,但这次什么都没有做自己就好了,很不理解。哪位大神可以给解释下,谢谢!
IBM 提供的信息
The below steps may be used to correct the situation. The below example uses /home/tsminst1 for the instance directory.
As root user:Note:
The above example used /home/tsminst1 as the instance directory name (the directory where the dsmserv.opt file is located or where the "db2 list db directory" command point to. Replace /home/tsminst1 with the correct instance directory name. Refer to the online Information Center for further details on Starting the server instance .
这个是instance user的环境没有设置,找不到db2环境。 检查的话,login as intance user, 如果是下面这样,环境就是设好的。 你从新登录变好了,可能是.profile 配置是好的,login会从新运行.profile, 就就把环境设好了。
host_name> su - tsminst1
$ db2level
DB21085I This instance or install (instance name, where applicable:
\"tsminst1\") uses \"64\" bits and DB2 code release \"SQL11010\" with level
identifier \"0201010F\".
Informational tokens are \"DB2 v11.1.0.0\", \"s1606081100\", \"DYN1606081100AIX\",
and Fix Pack \"0\".
Product is installed at \"/opt/tivoli/tsm/db2\".
$ env|grep DSMI
DSMI_CONFIG=/home/tsminst1//tsmdbmgr.opt
DSMI_LOG=/home/tsminst1/
DSMI_DIR=/opt/tivoli/tsm/server/bin/dbbkapi
收起