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.
RESOLUTIONWARNING: 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:
- Open a command prompt.
- Type D: and press ENTER.
- Type cd \zoomserv\data\db and press ENTER.
- Type del hash.db and press ENTER.
- Type C: and press ENTER.
- Type cd \zoomserv\bin\init and press ENTER.
- 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.
Modification Type: | Minor | Last Reviewed: | 1/25/2006 |
---|
Keywords: | kbprb KB279692 |
---|
|