Thursday, February 21, 2008

Changing IP and hostname in Application Server 10g

Because we moved our new OEM10gr2 server to the datacenter, the IP address and the hostname changed. When added to the datacenter I had to start all the services again, but first I had to change the opmn configuration. Instead of changing all the config files by hand, I noticed a shell script in the $OMS_HOME/chgip/scripts, called chgiphost.sh

This script changes all the config files and replaces the ip and hostname. It will ask you for the source and target ip/hostname...

Saved me some time...

7 comments:

Patrick said...

Good one

Marco Gralike said...

Mis je - Snik...

;-)

Patrick said...

./chgip/scripts/chgiphost.sh
echo -infra : To change the IP of Infrastructure Home
echo -mid : To change the Hostname/IP of the Mid-tier Home
echo -idm : To change hostname/IP of IM-only Home
echo -silent : To run in silent mode

--
Does the above imply that it doesn't work when you have an infra structure database you want to run on a different server? Because it only mentions that you can change the IP of the infrastructure...

Bas Klaassen said...

For the database, you change the listener configuration and the database spfile/init.ora

As far as I know, this is done manually. Also, you manually have to chance the hosts file. Make sure the new hosts file is used, otherwise the listener won't start :)

Mumonzan said...

I suppose that script exist from 10.1.1 or 10.1.2 ?
I have 10.1.0.2.0 and it doesn't exist both on RedHat and Win platform.

Robacle said...

Beware of chgiphost: it may make a few changes too many. On an infrastructure server the em-control will not find the LDAP server after chgiphost. This can be repaired by editing the targets.xml file in sysman/emd

On a Discoverer midtier similar problems may occur.

Microsoft Office 2007 said...

NEVERTHELESS, THE CIVIL LAW is and must be neutral about who has a more noble or rewarding faith. The breakaway parishes ought to win every Office 2010facet of the lawsuit not becauseMicrosoft Office 2010 their beliefs or their politics are better, Microsoft wordbut because both lawOffice 2007and equity, along with common sense, are on Microsoft Officetheir side.Microsoft Office 2007 Not only does Virginia state law (the Division Statute)Office 2007 keyexplicitly apply to just such a Office 2007 downloadsituation as now exists, but the history Office 2007 Professionalespecially of The Falls Church argues against the claims of Outlook 2010the Virginia Diocese with which theyMicrosoft outlookhave disassociated.Microsoft outlook 2010First, The Falls Church wasWindows 7 founded, formed, and developed long before the diocese, or the national Episcopal Church, even existed.