How to Restore a Corrupted DHCP Database FileLast reviewed: February 25, 1998Article ID: Q173396 |
The information in this article applies to:
SUMMARYThis article discusses methods that may be used to recover a corrupted Dynamic Host Configuration Protocol (DHCP) database.
MORE INFORMATIONThe following event log messages appear on a computer running Windows NT Server version 3.51 when the DHCP database has been corrupted:
Event ID: 1014 Source: DhcpServer Description: The JET database returned the following Error: -510.-or-
Event ID: 1014 Source: DhcpServer Description: The JET database returned the following Error: -1022.-or-
Event ID: 1014 Source: DhcpServer Description: The JET database returned the following Error: -1850.Using Jet.exe to compact the DHCP database does not resolve the issue. For additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q153476 TITLE : DHCP Stops Assigning IP Addresses to ClientsThe DHCP database is contained in the Dhcp.mdb file located in the %SystemRoot%\System32\Dhcp folder. The DHCP server uses this file to record and store information concerning active leases and reservations. Most of this information is also contained in the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services \DHCPServer\ConfigurationNOTE: The above registry key is one path; it has been wrapped for readability. Whenever the DHCP service shuts down correctly, it makes a backup copy of both the database file (Dhcp.mdb) and the registry key. The backup information from the registry is contained in the file Dhcpcfg. For Windows NT 3.51, the file Dhcp.mdb is located in the %SystemRoot%\System32\Dhcp\Backup\Jet folder. In Windows NT 4.0, the file Dhcp.mdb is located in the %SystemRoot%\System32\Dhcp\Backup\Jet\New folder. Both versions of Windows NT store the Dhcpcfg file in the %SystemRoot%\System32\Dhcp\Backup folder. WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows 95. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the Changing Keys and Values online Help topic in Registry Editor (Regedit.exe). Note that you should make a backup copy of the registry files (System.dat and User.dat) before you edit the registry. To recover a corrupted DHCP database, use one of the following methods:
After you recover your database file using one of the methods above, you will need to reconcile the information between the database file and the registry information. NOTE: The following steps assume that your DHCP server will not start because of a corrupted DHCP database. If your DHCP server starts, but the database is corrupted, you will then need to begin by stopping the service. To stop the DHCP server service, type the following at a command prompt:
net stop dhcpserver Restoring a Backup Copy of the Database
Because you are using an existing database file, whether you restore it from backup media or the backup folder, you should compress it using the Jetpack utility. For additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q145881 TITLE : How to Use Jetpack.exe to Compact a WINS or DHCP DatabaseThe procedure above should allow the service to start, but if your scope information is missing it may be necessary to use a backup copy of the Dhcpcfg registry file to restore your scope and reservation information. Refer to steps 5 through 11 in the "From the New DHCP Server" section of the following article:
Article-ID: Q130642 Title : How to Move a DHCP Database to Another Windows NT Server Generating a New Database File
ARTICLE-ID: Q130642 TITLE : How to Move a DHCP Database to Another Windows NT Server Reconciling DHCP InformationAfter you generate a new database file, you may notice that the scope information is present, but no active leases are displayed. To regain the active leases, you need to reconcile the database with the information in the registry using the following steps:
Repeat the above procedure for each scope for which you need to reconcile leases. If your DHCP server is Windows NT Server 4.0 SP2 or later, you should enable IP Conflict Detection as described in the following article:
ARTICLE-ID: Q161430 TITLE : Detecting and Flagging Duplicate IP Addresses Keywords : nthowto ntnetserv NTSrv kbnetwork Version : WinNT:3.51,4.0 Platform : winnt Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |