Select the product you need help with
How to Restore a Corrupted DHCP Database FileArticle ID: 173396 - View products that this article applies to. This article was previously published under Q173396 NoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center
(http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000)
is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle
Policy
(http://support.microsoft.com/lifecycle/)
.On This PageSUMMARY
This article discusses methods that may be used to recover a corrupted
Dynamic Host Configuration Protocol (DHCP) database.
MORE INFORMATIONImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in WindowsThe following event log messages appear on a computer running Windows NT Server versions 3.51 and 4.0 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. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 153476
The 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:
(http://support.microsoft.com/kb/153476/
)
Windows NT 3.51 DHCP Server Stops Assigning IP Addresses to Clients
Windows NT 4.0:
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.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DHCPServer\Configuration Windows 2000:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DhcpServer\Configuration To recover a corrupted DHCP database, use one of the following methods:
After you recover your database file using one of the methods mentioned earlier, you must 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 have to start 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 DatabaseImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameters You may also choose to restore the Dhcp.mdb file to the %SystemRoot%\System32\Dhcp folder from a tape backup or other backup media. Because you are using an existing database file, whether you restore it from backup media or the backup folder, you must use the Jetpack utility to compress it. For additional information, click the article number below to view the article in the Microsoft Knowledge Base: 145881
The above procedure should allow the service to start, but if your scope
information is missing, you must use a backup copy of
the Dhcpcfg registry file to restore your scope and reservation
information. See steps 5 through 11 in the "From the New DHCP Server"
section of the following article:
(http://support.microsoft.com/kb/145881/EN-US/
)
How to Use Jetpack.exe to Compact a WINS or DHCP Database
For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 130642
(http://support.microsoft.com/kb/130642/
)
How to Move a DHCP Database to Another Windows Server
Generating a New Database File
For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 130642
(http://support.microsoft.com/kb/130642/
)
How to Move a DHCP Database to Another Windows 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 must reconcile the database with the information in the registry using the following steps:
Repeat the above procedure for each scope for which you must reconcile leases. If your DHCP server is Windows NT Server 4.0 SP2 or later, you must turn on IP Conflict Detection as described in the following article: 161430
(http://support.microsoft.com/kb/161430/EN-US/
)
Detecting and Flagging Duplicate IP Addresses
Properties | Article Translations
|


Back to the top








