Each DB2® server instance must be registered in LDAP to publish the protocol configuration information that is used by the client applications to connect to the DB2 server instance.
nodename: TCP/IP hostname
protocol type: TCP/IP
If the TCP/IP hostname is longer
than 8 characters, it will be truncated to 8 characters. db2 register db2 server in ldap
as <ldap_node_name>
protocol tcpip
The protocol clause specifies the communication protocol to use when connecting to this database server.
When creating an instance for DB2 Enterprise Server Edition that includes multiple physical machines, the REGISTER command must be invoked once for each computer. Use the rah command to issue the REGISTER command on all computers.
rah ">DB2 REGISTER DB2 SERVER IN LDAP AS <> PROTOCOL TCPIP"
The
"<>" is substituted by the hostname on each computer where the rah command
is run. In the rare occurrence where there are multiple DB2 Enterprise
Server Edition instances, the combination of the instance and host
index can be used as the node name in the rah command. db2 register db2 server in ldap
as <ldap_node_name>
protocol tcpip
hostname <host_name>
svcename <tcpip_service_name>
remote <remote_computer_name>
instance <instance_name>
db2 register db2 server in ldap
as <ldap_node_name>
protocol tcpip
hostname n.nn.nn.nn
where n.nn.nn.nn is the cluster
IP address.To register the DB2 server in LDAP from a client application, call the db2LdapRegister API.