Init.bat Does Not Correctly Reinitialize the Database (279692)



The information in this article applies to:

  • Microsoft Metadirectory Services 2.1
  • Microsoft Metadirectory Services 2.2

This article was previously published under Q279692

SYMPTOMS

When you run the Init.bat utility (located in the \Zoomserv\Bin\Init folder), the database is not reinitialized.

CAUSE

This issue can occur if the Microsoft Metadirectory Services (MMS) database is on more than one drive. The Init.bat command requires that you specify a drive letter, for example, init.bat c:. When you use this command, only the database files on the C drive are reinitialized.

When you run Init.bat, the batch file deletes the old database, and then regenerate a new clean database. However, Init.bat does not consult the path information in the Zoomserv\Data\Config\Db5cfg file to determine where the databases are located. As a result, Init.bat only deletes the databases on the drive that you specify with the command line switch. When the databases are deleted, Init.bat starts Importt.exe, and a new database is built. The Importt.exe tool correctly consults the Zoomserv\Data\Config\Db5cfg file.

RESOLUTION

WARNING: When you run Init.bat or delete any MMS database files, you may experience a loss of data. Run the MMS Backup utility before you follow this procedure.

Manually delete any database files that you have installed on another drive before you run Init.bat (do not delete files on the MMS install drive). After Init.bat runs, it correctly regenerates the databases on all drives.

In this example, MMS was installed on the C drive. The following data is from the C:\Zoomserv\Data\Config\Db5cfg file.

db5_hash_db_dir     		D:\zoomserv\data\db
#db5_tran_db_dir     		path_to_directory
					

In this sample file, the Hash database has been uncommented and redirected to the D drive. The path has been configured to the folder which contains the files. For Init.bat to correctly regenerate the Hash database, it must be manually deleted. Use the following procedure to regenerate this database:
  1. Open a command prompt.
  2. Type D: and press ENTER.
  3. Type cd \zoomserv\data\db and press ENTER.
  4. Type del hash.db and press ENTER.
  5. Type C: and press ENTER.
  6. Type cd \zoomserv\bin\init and press ENTER.
  7. Type init.bat C: and press ENTER.
The database is now correctly reinitialized on the C drive, and the Hash database is reinitialized on the D drive.

MORE INFORMATION

For additional information about the Init.bat utility, click the article number below to view the article in the Microsoft Knowledge Base:

255809 Using the Init.bat Utility in Microsoft Metadirectory Services


Modification Type:MinorLast Reviewed:1/25/2006
Keywords:kbprb KB279692