Error while starting dhcp Server (dhcpd service) in Oracle Linux 6

can’t open /var/lib/dhcpd/dhcpd.leases

[root@oel6-server1 dhcpd]# service dhcpd restart
Starting dhcpd: [FAILED]

[root@oel6-server1 dhcpd]# tail -20 /var/log/messages
Jul 9 16:50:06 oel6-server1 dhcpd: Configuration file errors encountered — exiting
Jul 9 16:50:06 oel6-server1 dhcpd:
Jul 9 16:50:06 oel6-server1 dhcpd: This version of ISC DHCP is based on the release available
Jul 9 16:50:06 oel6-server1 dhcpd: on ftp.isc.org. Features have been added and other changes
Jul 9 16:50:06 oel6-server1 dhcpd: have been made to the base software release in order to make
Jul 9 16:50:06 oel6-server1 dhcpd: it work better with this distribution.
Jul 9 16:50:06 oel6-server1 dhcpd:
Jul 9 16:50:06 oel6-server1 dhcpd: Please report for this software via the Oracle Bugzilla site:
Jul 9 16:50:06 oel6-server1 dhcpd: http://bugzilla.oracle.com
Jul 9 16:50:06 oel6-server1 dhcpd:
Jul 9 16:50:06 oel6-server1 dhcpd: exiting.
Jul 9 16:50:57 oel6-server1 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Jul 9 16:50:57 oel6-server1 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Jul 9 16:50:57 oel6-server1 dhcpd: All rights reserved.
Jul 9 16:50:57 oel6-server1 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Jul 9 16:50:57 oel6-server1 dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Jul 9 16:50:57 oel6-server1 dhcpd: Can’t open lease database /var/lib/dhcpd/dhcp.leases: No such file or directory —

SOLUTION
When I checked the file as below the owner of dhcpd.lease file was dhcpd

[root@oel6-server1 dhcpd]# ls -ltr
total 0
-rw-r–r–. 1 dhcpd dhcpd 0 Dec 20 2012 dhcpd.leases
-rw-r–r–. 1 dhcpd dhcpd 0 Dec 20 2012 dhcpd6.leases

So I changed the permission to root and restarted the service

[root@oel6-server1 dhcpd]# chown root dhcpd.leases
[root@oel6-server1 dhcpd]# ls -ltr
total 0
-rw-r–r–. 1 root dhcpd 0 Dec 20 2012 dhcpd.leases
-rw-r–r–. 1 dhcpd dhcpd 0 Dec 20 2012 dhcpd6.leases
[root@oel6-server1 dhcpd]# service dhcpd restart
Starting dhcpd: [ OK ]

Transaction Check Error while installing DHCP on Oracle Linux 6.0

[root@oel6-server1 /]# yum install -y dhcp
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
No package resolvedep available.
Resolving Dependencies
–> Running transaction check
—> Package dhcp.x86_64 12:4.1.1-34.P1.0.1.el6 will be installed
–> Processing Dependency: dhcp-common = 12:4.1.1-34.P1.0.1.el6 for package: 12:dhcp-4.1.1-34.P1.0.1.el6.x86_64
–> Processing Dependency: portreserve for package: 12:dhcp-4.1.1-34.P1.0.1.el6.x86_64
–> Running transaction check
—> Package dhcp-common.x86_64 12:4.1.1-34.P1.0.1.el6 will be installed
—> Package portreserve.x86_64 0:0.0.4-9.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

Installing:
dhcp x86_64 12:4.1.1-34.P1.0.1.el6 ol6_latest 815 k
Installing for dependencies:
dhcp-common x86_64 12:4.1.1-34.P1.0.1.el6 ol6_latest 140 k
portreserve x86_64 0.0.4-9.el6 ol6_latest 22 k

Transaction Summary

Install 3 Package(s)

Total size: 978 k
Installed size: 2.1 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test

Transaction Check Error:
file /usr/share/man/man5/dhcp-eval.5.gz from install of dhcp-common-12:4.1.1-34.P1.0.1.el6.x86_64 conflicts with file from package dhclient-12:4.1.1-12.P1.el6.x86_64
file /usr/share/man/man5/dhcp-options.5.gz from install of dhcp-common-12:4.1.1-34.P1.0.1.el6.x86_64 conflicts with file from package dhclient-12:4.1.1-12.P1.el6.x86_64

Solution

[root@oel6-server1 /]# yum update dhclient
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with ULN.
ULN support will be disabled.
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package dhclient.x86_64 12:4.1.1-12.P1.el6 will be updated
—> Package dhclient.x86_64 12:4.1.1-34.P1.0.1.el6 will be an update
–> Processing Dependency: dhcp-common = 12:4.1.1-34.P1.0.1.el6 for package: 12:dhclient-4.1.1-34.P1.0.1.el6.x86_64
–> Running transaction check
—> Package dhcp-common.x86_64 12:4.1.1-34.P1.0.1.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Updating:
dhclient x86_64 12:4.1.1-34.P1.0.1.el6 ol6_latest 316 k
Installing for dependencies:
dhcp-common x86_64 12:4.1.1-34.P1.0.1.el6 ol6_latest 140 k

Transaction Summary
================================================================================================================================
Install 1 Package(s)
Upgrade 1 Package(s)

Total size: 456 k
Total download size: 316 k
Is this ok [y/N]: y
Downloading Packages:
dhclient-4.1.1-34.P1.0.1.el6.x86_64.rpm | 316 kB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 12:dhcp-common-4.1.1-34.P1.0.1.el6.x86_64 1/3
Updating : 12:dhclient-4.1.1-34.P1.0.1.el6.x86_64 2/3
Cleanup : 12:dhclient-4.1.1-12.P1.el6.x86_64 3/3
Verifying : 12:dhcp-common-4.1.1-34.P1.0.1.el6.x86_64 1/3
Verifying : 12:dhclient-4.1.1-34.P1.0.1.el6.x86_64 2/3
Verifying : 12:dhclient-4.1.1-12.P1.el6.x86_64 3/3

Dependency Installed:
dhcp-common.x86_64 12:4.1.1-34.P1.0.1.el6

Updated:
dhclient.x86_64 12:4.1.1-34.P1.0.1.el6

Complete!

[root@oel6-server1 /]# yum install -y dhcp
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package dhcp.x86_64 12:4.1.1-34.P1.0.1.el6 will be installed
–> Processing Dependency: portreserve for package: 12:dhcp-4.1.1-34.P1.0.1.el6.x86_64
–> Running transaction check
—> Package portreserve.x86_64 0:0.0.4-9.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
dhcp x86_64 12:4.1.1-34.P1.0.1.el6 ol6_latest 815 k
Installing for dependencies:
portreserve x86_64 0.0.4-9.el6 ol6_latest 22 k

Transaction Summary
================================================================================================================================
Install 2 Package(s)

Total size: 837 k
Installed size: 1.9 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : portreserve-0.0.4-9.el6.x86_64 1/2
Installing : 12:dhcp-4.1.1-34.P1.0.1.el6.x86_64 2/2
Verifying : portreserve-0.0.4-9.el6.x86_64 1/2
Verifying : 12:dhcp-4.1.1-34.P1.0.1.el6.x86_64 2/2

Installed:
dhcp.x86_64 12:4.1.1-34.P1.0.1.el6

Dependency Installed:
portreserve.x86_64 0:0.0.4-9.el6

Complete!
[root@oel6-server1 /]#