[Installing Oracle DataBase Server 11.2.0.3 on Oracle Linux 6.3]: Configuring Network Interfaces
It is necessary to choose a suitable name for the server that reflects its role and purpose on the network.
To do this, use an editor (e.g., vi) to edit the /etc/sysconfig/network file
Set the parameters according to the characteristics of your network.
It is not recommended to use underscores (_) in the hostname. (Enterprise Manager and other web applications will not be able to connect to the database via http/https)
# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=oracle112.localdomain
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
# vi /etc/resolv.conf
nameserver 192.168.1.1
nameserver 127.0.0.1
search localdomain
options attempts: 2
options timeout: 1
# vi /etc/hosts
## Localdomain and Localhost (hosts file, DNS)
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
## IPs Public Network (hosts file, DNS)
192.168.1.10 oracle112.localdomain oracle112
Network interfaces can be restarted with the following command:
# service network restart