Monday, November 23, 2015

Host Name Change on Oracle Linux6 – 64bit:




How to change Host name without starting - Oracle Linux 6
·         Login in to Unixbox with root
#login to root
$ su

·         #to view Current Hostname
$ hostname
obiee.oracle

·         View Current network
$cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=obiee.oracle
NOZEROCONF=yes

·         Edit current network with new host name
$ vi /etc/sysconfig/network
Update with new host name

·         View Current network after edit
cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=oracle.obiee
NOZEROCONF=yes

·         restart the network service for permanent update, I have two connections, its not required to have
$ service network restart
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface Auto_Ethernet:  Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/3
state: activated
Connection activated
                                                           [  OK  ]
Bringing up interface Auto_eth3:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/4
                                                           [  OK  ]
# important to update host file with new host name, if not your applications will not communicate with new hostname

·         View current host file configurations
$ cat /etc/hosts
127.0.0.1 obiee.oracle obiee
192.168.56.101           obieedb.oracledb obieedbdb
::1   localhost localhost.localdomain

·         edit host file with new host name
$ vi /etc/hosts
# update with new changes
#After changes
$cat /etc/hosts
127.0.0.1 oracle.obiee sudheer
192.168.56.101           obieedb.oracledb obieedbdb
::1   localhost localhost.localdomain

·         Restart network
          $service network restart
          $hostname
oracle.obiee

No comments: