I encountered some problems when I started the tds ldap server. I am used to using Oracle databases, but I am unfamiliar with DB2 databases. I still cannot understand these problems. Fortunately, I have solved them now, the problems are listed as follows:
Run the following command to start the tds ldap server:./ibmslapd-I ldapdb2:
From the preceding execution results, we can see two errors:
1. sql1032n has not issued a command to start the Database Manager. Sqlstate = 57019
2. glprdb001e error code-L from function: "sqlconnect" ldapdb2b
Problem 1:
Question 1 refer to the original article link:Http://blog.csdn.net/pursue168/article/details/6536386
Problem 1 found in the night: Because DB2 is not started, you need to execute the db2start command and encounter the following error when executing the db2start command:
Sql6048n a communication error occurred during start or stop Database Manager processing.
Sql1032n no start Database Manager Command was issued. sqlstate = 57019
We need to modify the db2nodes. cfg file or hosts file in DB2.
Let's take a look at the content of the db2nodes. cfg and hosts files?
VI db2nodes. cfg
VI/etc/hosts
Obviously, the localhost in db2nodes. cfg is not defined in the hosts file.
So we need to change the localhost in db2nodes. cfg to the linux-vm23.localdomain In the hosts file
Next, start DB2 normally!
Run the command again to start the tds ldap server:./ibmslapd-I ldapdb2. The execution result is as follows:
We found that problem 1 has been solved, and now we are trying our best to solve problem 2:
Problem 2 solution reference link:Http://www-01.ibm.com/support/docview.wss? TCSS = newsletter & uid = swg31677253
Run the command [[email protected] bin] $ DB2 list dB directory. The result is as follows:
However, if you run [[email protected] bin] $ DB2 list dB directory in the UAT environment, the execution result is as follows:
Note: (The UAT environment starts normally)
Make the following changes to the UAT environment:
Run the command again: [[email protected] bin] $ DB2 list dB directory. The result is as follows:
Restart the database:
DB2 Force applications all;
Db2stop force;
Ipclean;
Db2start;
Run the command again to start the tds ldap server:./ibmslapd-I ldapdb2. The execution result is as follows:
From the printed log, we can see that the tds ldap service has been started successfully!
Summary of problems encountered when starting the tds ldap Server