Cisco Cisco Agent Desktop 9.0 トラブルシューティングガイド

ページ / 142
Recovering the Directory Services Database
March 13, 2015
49
Recovering the Directory Services Database
Corrupted Directory Services Database
If the Directory Services database becomes corrupted, complete the following steps.
To recover the Directory Services database (Method 1):
1. On the PC hosting the database, stop the LDAP Monitor service. 
2. Open a command window and change directories to …Cisco\Desktop\bin (the 
drive and exact location of this directory depends on where the services were 
installed).
3. Type the following command and press Enter.
db_recover -h ../database -v
4. Type 
exit
 and press Enter to close the DOS window. 
5. Restart the LDAP Monitor service.
If this procedure does not work, complete the following steps.
To recover the Directory Services database (Method 2):
1. On the PC hosting the database, stop the LDAP Monitor service. If you are 
using flat files instead of SQL Server, stop the Recording and Statistics 
service. 
2. Open a command window and change directories to …Cisco\Desktop\bin (the 
drive and exact location of this directory depends on where the services were 
installed).
3. Type the following command and press Enter.
slapcat -f slapd.conf -l backup.ldif -c
4. Rename …Cisco\Desktop\database to …Cisco\Desktop\old_database.
5. Create a new folder called …Cisco\Desktop\database.
6. Copy DB_CONFIG and all files with a *.dat extension from the old_database 
folder to the new database folder. If you are using flat files instead of SQL 
Server, copy all sub folders from the old_database folder to the new database 
folder.
7. Open a command window and change directories to …Cisco\Desktop\bin (the 
drive and exact location of this directory depends on where the services were 
installed).
8. Type the following command and press Enter.
slapadd -f slapd.conf -l backup.ldif -c