We had a requirement to change the network configurations like host name and domain name of the SOA infrastrucutre and startup the servers with new names.This is a SOA 12C environment with Admin server and seperate managed servers for SOA,OSB,ESS,BAM running on this machine.
Login to the admin console and perform the following steps.
1.Create a new machine pointing to the new host.Alternately you can clone the existing machine and rename to the new one and delete the old machine if its no more required.Add all the servers including the admin server to the newly created machine.(In the Domain Structure section click on Machines > MyMachine >Servers >Add >Select an existing server).
2.If the managed servers are running with different Virtual hostnames the listen address needs to be changed for each and every server.(In the Domain Structure section click Servers > server1 > General > Listen Address and change the host names )
Change the MDS datasources if required.
If the admin server is not running on local host and running with a different host name which also got changed you will not be able to start the admin server. In that case the host name should be changed before the server is shut down. If its a clone from existing server, the admin server will need to be brought up with old host name to access the console and change the host names.
Login to the admin console and perform the following steps.
1.Create a new machine pointing to the new host.Alternately you can clone the existing machine and rename to the new one and delete the old machine if its no more required.Add all the servers including the admin server to the newly created machine.(In the Domain Structure section click on Machines > MyMachine >Servers >Add >Select an existing server).
2.If the managed servers are running with different Virtual hostnames the listen address needs to be changed for each and every server.(In the Domain Structure section click Servers > server1 > General > Listen Address and change the host names )
Change the MDS datasources if required.
- In the Change Center, click Lock & Edit.
- In the Domain Structure section, expand Services, then JDBC, and select Data Sources.The Summary of JDBC Data Sources page is displayed.
- Select the data source you want to change.The Settings page is displayed.
- Select the Connection Pool tab.
- To change the IP address, modify the URL field. For example:
jdbc:oracle:thin:@hostname.domainname.com:1521/orcl
- Click Save.
Repeat the steps for all the MDS related datasources and a server restart is required for the update.
Below files had some references to the old host names which needed for a find and replace.Take a backup of the files and do a search and replace.
$ vi filename
$%s/oldhost/newhost
- config.xml($DOMAIN_HOME/config)
- wsm-ccw-config.xml($DOMAIN_HOME/config/fmwconfig)
- jps-config.xml($DOMAIN_HOME/config/fmwconfig)
- jps-config-jse.xml($DOMAIN_HOME/config/fmwconfig)
- stopWeblogic.sh($DOMAIN_HOME/bin)
- stopManagedWeblogic.sh($DOMAIN_HOME/bin)
- startManagedWeblogic.sh($DOMAIN_HOME/bin)
Search through the directories for any left over references as below and replace them.
$grep -inr /directory -e "oldhost" --exclude *.log*
Before starting the node manager change the hostname in the node manager.properties file.
ListenAddress=newHost
In SOA 12C the location of the property file is $DOMAIN_HOME/nodemanager by default or the custom path if changed during installation.
If the admin server is not running on local host and running with a different host name which also got changed you will not be able to start the admin server. In that case the host name should be changed before the server is shut down. If its a clone from existing server, the admin server will need to be brought up with old host name to access the console and change the host names.
No comments:
Post a Comment