Changing Hostname/Domain/IP of Oracle Application Server

If you are planning to migrate your application server to different machine or changing existing machine’s hostname, domainname or IP address here is list of things you should know in advance.

Discussion on this post if for 10.1.2.X and lower (Changing hostname on 10.1.3 and higher coming soon..)

Oracle Application Server components

Middle Tier– J2EE, Webcache, Portal, Wireless, BI, Forms
Infrastructure Tier– Identity Management(OID/SSO) & Metadata Repository



Things you should know before changing hostname, domainname, IP

1. Changing hostname, domainname of Metadata Repository is not supported (MR holds product data as well as OID/SSO data).

2. Use chgiphost.sh (unix) or chgiphost.bat (windows) in $OH/chgip/scripts directory to change hostname, domainname, IP address. 3. For changing middle tier hostname/domainname use option “-mid” with chgiphost.sh|.bat command

4. For changing Identity Management tier hostname/domainname use option “-idm” with chgiphost.sh|.bat command

5. You need orcladmin password for infra tier and any middle tier registered with OID/Infra Tier

6. If you change hostanme/domainname of instance hosting portal/sso, you need to reconfigure portal (using ptlconfig) and reregister with SSO (ssoreg)

7. Instance name doesn’t change by changing hostname or domainname. (When instance is initially created during installation name of instance is configured as <instance_name_you_provide> . <hostname>.<domainname> If instance name before host/domain name change was myinstance.oldhost.olddomain then it will remain same)

8. If instance (for which you wish to change hostname/domainname/ip) is part of OarcleAs cluster, you first have to remove it from cluster and add it later to cluster using “dcmctl” command

9. If instance (for which you wish to change hostname/domainname/ip) is part of OarcleAs Web Cache cluster, you first have to remove it from Web Cache cluster and add it later to cluster using “webcacheadmin” screen

10. If you are changing hostname/domainname for instance hosting OID, then change ldap.ora on all middle tier using this OID

11. Finally if anything goes wrong check logs in $OH/chgip/log

Related
http://download.oracle.com/docs

Changing hostname, domainname, ip address of machine SOA Suite (BPEL, ESB, OWSM) coming soon !!!

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Oracle Gold Partner specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

46 comments
abrahar says June 16, 2008

Has anyone changed the domain name for 11i AS? I’m new to Apps DBA area and need help.

Thanks
Reny

Reply
Amit says November 11, 2008

Hi,

Is there any script in $OH/chgip/scripts directory for changing source instance_name to target instance_name after clone is done??

Any reply would be appreciated..

Thanks for your time!

Regards,
Amit

Reply
Atul Kumar says November 11, 2008

Amit,
If this is clone of middle tier then follow

this doc

else if this involves Infra Tier as well you need chapter 11 i.e. staging test instance from prod here

Above docs are for 10g r2

Do let me know if you need doc for 10g R3 apps tier

Reply
Karthiram says December 10, 2008

hi all,
while installing oracle i gave the hostname int he ip 127.0.0.1. my host name is server.oracle.com. now i have a problem. when i switch on the modem the oracle database connectivity is terminated. why is this happening. is there any ways to overcome this problem.

Reply
Atul Kumar says December 10, 2008

Karthiram,
Find out what IP your modem assign to your machine and then add below line in /etc/hosts (I hope you are on unix) file

127.0.0.1 localhost

server.oracle.com

Restart oracle database and listener and try.

Reply
ravi says April 29, 2009

Can you please how to achive similar functionality for BPEL?

Thanks,
Ravi.M

Reply
kh says July 15, 2009

hi..do u happen that when u change the hostname for IDM, then when u try to login to the OIDDAS website, it still point back to hostname before change?

Reply
Atul Kumar says July 16, 2009

@ KH

To change DAS URL

Login to Oracle Directory manager (OIDMON) in OID

Entry Management -> Oracle Context -> Products -> DAS -> OperationURLs

or dn=cn=OperationURLs,cn=DAS,cn=Products,cn=OracleContext

and look for value in attribute name orcldasurlbase and change it to new hostname

Reply
Cristian says September 1, 2009

Hi,

I have an instance oracle portal 10G with name: http://server01.domain.com/ but I want to change to http://www.domain.com.
Can you help me please?

Thanks
Regards
Cristian

Reply
Atul Kumar says September 2, 2009

@ Cristian,
Your requirement is similar to configuring virtual host. Use these steps to change portal to virtual hostname here

Reply
Padmanaban says October 8, 2009

————– ————–
Web_Tier-1 Web_Tier-2
————– ————–
X
————– ————–
Portal-1 Portal-2
SSO-1 SSO-2
————– ————–
X
————– ————–
OID-1 OID-2
RAC-1 RAC-2
————– ————–

SAN
In above architecture, OID and RAC is in Sun Solaris X86 (64 bit) box. Is it possible to move/migrate OID&RAC to new box with Sun SPARC64?

Reply
Atul Kumar says October 8, 2009

@Padmanaban,
As your MR is sitting on OID/RAC node so you can’t change hostname. You can migrate from X64 to Spac 64. Check with Oracle Support if these two are binary compatible (I doubt) then simply copy + paste for OID (ensure hostname,IP remains same) else go for migration.

For RAC , check RAC Docs on how to migrate from one system to another.

Reply
mehrab says October 21, 2009

Hi,

I have a oracle portal configured on windows 2003 server with dhcp assigned ip. What steps should i take when ip changes? my host name is currently set to the current ip 192.168.0.168.

Thanks,
Mehrab

Reply
Padma says March 24, 2010

Hi Atul,

Changing hostname, domainname, ip address of machine SOA Suite (BPEL, ESB, OWSM) coming soon !!!
I’m expecting this topic. Else, Could you please suggest me oracle doc or note for this?

Reply
Atul Kumar says March 24, 2010

@ Padma,
Is this for 10g or 11g SOA ?

Reply
dasariapps says July 30, 2010

Hi I have Oracle Apps installed on Windows Server 2003. Recently i hav installed IIS and SQL SErver, and i changed DOmain name and Computer name. Later realized that Oracle is not connected Error 12225, 12224 Etc .. Please help me fix the Problem. When i right click My Computer >> properties, i see Orafin1 as computer name and Domain applmgr.local

Reply
abrahar says August 12, 2010

Atul,

Scenario: Windows NT server hosting metadata respository of Oracle Apps – 10g is getting de-commissioned. Our plan is to move the repository to a unix server and upgrade it to 11g while middle-tier and Infra remains on windows NT server. Is it achievable?
Higly appreciatae your response.

Thanks Reny.

Reply
Atul Kumar says August 12, 2010

@ Abrahar,
Yes it is possible but check certification first with Oracle Support.

There are two parts here

1. Migrate repository from Windows to Unix
2. Upgrade both middle tier and repository to 11g .

You can do upgrade first and then migrate or migrate first and then upgrade.

What all components you are running in 10g AS ?

Reply
abrahar says August 12, 2010

Thanks Atul for the input.

We’re migrating only the metadata to 11g. Middle Tier and Infra will remain on Windows server. We don’t have plans to upgrade Oracle Apps.

I was able to change the LDAP definition for metadata with new unix server. But couldn’t get Oracle App services started.

We have under identity management:
HTTP_Server
Internet Directory
OC4J_SECURITY
oca

under middle tier we have
Business Intelligence and Forms

Thanks
Reny

Reply
sanjeev kumar nanda says October 19, 2010

Hi Atul,
Can you tell me the steps
How to configur virtual host for E-Business
suit.

Regards
Sanjeev

Reply
Atul Kumar says October 20, 2010

@ Sanjeev,
Virtual Host is very wide context, is this for EBS database or application tier.

If application tier do you have multiple middle tiers ?

Reply
chandrakanth says October 20, 2010

I have installed the Oracle App r12 in my system and ofter that my friend change the IP address and now i am not able to connect to Oracle App login page. Please help in this regards

Reply
Sanjeev Nanda says October 21, 2010

Atual,
we are having Singe node E-Business.(Both database tair and Applications tair are in same server)
Please let me know what changes we have to make in xml file and other places for configuring virtual host.
Higly appreciatae your response.

Regards
Sanjeev

Reply
Atul Kumar says October 21, 2010

@ Sanjeev,
Are you looking for VIP so that you can access EBS from VIP name ?

If this is the case then check http://onlineappsdba.com/index.php/2006/09/11/hardware-load-balancing-at-http-layer-in-apps-contd/

also check metalink note # 380489.1 Using Load-Balancers with Oracle E-Business Suite Release 12

Change Load Balancer URL to VIP address

Reply
Sanjeev Nanda says October 22, 2010

hi Atul,
I want to know how to configur virtual host(when we are having cluster confugrations) for Singe node E-Business.(Both database tair and Applications tair are in same server).Hear Virtual host for server level failover.
We are not looking for for VIP.
Regards
Sanjeev

Reply
apkumar says October 24, 2010

Hi atul,
I installed apps 11.5.10 on 0el 4.8. i want to access sql*plus from client machine. Client machine os will be win xp/win 7. Can u tell me steps/configuration how to access sql*plus from client machine?

Reply
Jishar says December 13, 2010

Hi Atul,
I have installed Oracle Application Server in Windows 2003 Enterprise Edition which is not connected to the Domain.
Now there is a requirement to move this system to domain. Inorder to proceed with this what all changes required.

Not changing hostname and IP.

Regards,
Jishar

Reply
Atul Kumar says December 13, 2010

@ Jishar,
Just to confirm , all you are doing is promoting this server to be part of domain.

Do you have database for OAS also on same machine ? (If yes then check database docs for changes required at database level on windows machine when machine is added in to domain )

For OAS make sure user who installed OAS is administrator on this machine (once user is migrated to domain) still retains admin right on server.

Reply
sanjay says March 11, 2011

why “Changing hostname, domainname of Metadata Repository is not supported” ?
What is internal process ? Is it not supported but people do it anyway or it does not work at all if you change hostname/domainname of MR. Please explain ?

Reply
Deeksha says June 7, 2011

Hi Atul,

We are facing some issues with the servers ip on which we have the SOA 10G and AIA 2.5 installed. So, could you please suggest me some documents where I can get information about what steps are need to be taken for the IP change.
We will also require to change the IP of the server on which we have the Siebel CRM installed.
Could you please list me what will be the impact if I change the IP of these two servers.

Regards,
Deeksha

Reply
Deeksha says June 7, 2011

To add to my previous post I have the Oracle DB also installed on the same server as the SOA and AIA

Regards,
Deeksha

Reply
Atul Kumar says June 8, 2011

@ Deeksha,
I am assuming SOA and AIA are using hostname to connect to DB and DB listener is listening on hostname (not IP) so no change is required for DB (change in /etc/hosts should be enough)

For SOA 10g – check http://download.oracle.com/docs/cd/B32110_01/core.1013/b32196/host.htm#CHDGHFGE (I hope SOA 10g is on 10g AS)

For AIA, I don’t think any change is required as this is also deployed on same SOA. On safe side raise an SR with Oracle.

Reply
Deeksha says June 9, 2011

Hi Atul,

Thanks a lot for the info. Iam getting in touch with the oracle support team as well to look into this.

Regards,
Deeksha

Reply
Arvind says June 27, 2011

Hi,

We are running Oracle Application server 10g(9.0.4.1)portal.Middle,infra and database all are running on the different server.

Recently we changed our mid tier host IP address to different network zone i.e DMZ.

we have followed the above steps “Changing Hostname/Domain/IP of Oracle Application Server” .After changeing the ip address the performance of the portal pages are taking lot of time to open.Even sometimes the pages are not opening at all.

The performance and page loading was very fast before changing the IP address.We could not point out the cause of this issue.

For your information,when we checked dcm.conf,the old IP address exists.

Please suggest us to fix this issue since this is our production environment.

Regards,
Arvindkumar

Reply
Atul Kumar says June 27, 2011

@ Arvind,
You can change dcm.conf to point to new IP but I don’t think that is root cause of your perfromance issue.

Issue seems because of network change from internal network to DMZ.

Where is your database server, infra, and middle tier hosted (are they in diffrent networks – I can see they are). Ask network team to monitor network traffic and see how is latency ?

Reply
ashokjadav says September 6, 2011

We are in a process to change only the domain for our portal 10.1.2 to a new domain name.
what are the detail steps required to do ?? can any one send me the steps. My portal and sso are on one server and OId is on a seperate server.
What all should i modify to the change only the DOMAIN name. ?? pls reply

Reply
sadiq says November 16, 2011

Hi Atul,

We are replicating the IDM 10.1.4.3.0 from one machine to other .
1)we have cloned the IDM db from source to destination.
2)we are moving the oracle home directory from source to destination.

could you please let us know what are the steps to reconfigure IDM on destination machine ,please provide any helpful document.

Regards,
Sadiq

Reply
sadiq says November 16, 2011

Hi Atul,

we are Inprocess to clone oracle portal IDM from one machine to another machine.

1) we have cloned the oracle DB from one machine to another .

2) kindly suggest us the steps or the process to follow with IDM clone from one m/c to another.

Regards,
sadiq

Reply
Atul Kumar says November 16, 2011

@ Sadiq,
Which version of IDM is this ? Is there portal too with this ?

Reply
Atul Kumar says November 16, 2011

@ Sadiq,
Are you behind clone or replication ?

Reply
Sanjay says November 17, 2011

@Sadiq
If you want to clone then you need to follow Staging Test Envionment from production” There is full documentation on this.

If you are just moving to new hardware and keeping same hostname then you can use chgiphost script to change IP address.

Unfortunately Oracle does not support change of HostName for IDM so unless you follow document to state test envionment from production environment. I am talking with Portal 10.1.4.2 and OID 10.1.4.3. Not sure if things are changed in 11g version.

Reply
sadiq says November 17, 2011

Hello Atul,

Please provide the full documentation for clone of prod environment .our oid version is 10.1.4.3

Reply
raaza says August 22, 2012

Hi Atul,

I want to change only ip address not the hostname. Is any changes to be done in application? please help me.

Regards,
Raaza

Reply
shashidhar says July 3, 2013

Hi Atul,

I am using your blog from past many months and its a very good for Oracle folks. you have a solutions for all the issues.

Need your help to achieve 10gAS 9.0.4 high availability.

First thing is how to clone 9.0.4 application server and how to make single node to multi node for high availability.

Can you please help me on this.

Regards,
Shashi

Reply
Ashish says March 25, 2014

Hi Atul,

I have some oracle application in different server.But we need to change the the server.let say.
Rapid –e -suite–server A to server B
OAM/OBA—server C to server D
12.2 EBS—server E to server F
Endeca and EBS 12.1.3—server G to server H.

What are the configuration changes we need to do now in each case.

Thanks In Advance,
Ashish

Reply
Add Your Reply