环境:IBM Security Directory Server 10.0.2
问题:LDAP服务启动失败
GLPSRV200l Initializing primary database and its connections.
GLPRDB001E Error code -1 from function:” SQLconnect ” ldapdb2b
GLPSRV064E Failed to initialize be_config.
原因:
db2nodes.cfg里没有更新主机名
[simldap@servertest sqllib]$ cat /home/simldap/sqllib/db2nodes.cfg
0 oldname.test.com o
[simldap@servertest sqllib]$ hostname
newname
[simldap@servertest sqllib]$ cp db2nodes.cfg db2nodes.cfg bak
改成新的主机名:
[simldap@servertest sqllib]$ vi db2nodes.cfg
0 newname o
验证数据库能否启动:
[simldap@servertest sqllib]$ db2start
11/26/2024 10:40:10 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
启动SIMLDAP:
/opt/ibm/ldap/V10.0.2/sbin/ibmdiradm -I simldap
/opt/ibm/ldap/V10.0.2/sbin/ibmslapd -I simldap