Tuesday, August 25, 2020

Weblogic Hostname change

 CHANGING THE HOSTNAME IN WEBLOGIC

++++++++++++++++++++++++++++++++++

How to Change the Hostname and/or IP Address for Oracle Fusion Middleware 12c (12.2.1.x) (Doc ID 2446265.1)


15 Changing Oracle Fusion Middleware Network Configurations

https://docs.oracle.com/en/middleware/lifecycle/12.2.1.3/asadm/changing-network-configurations.html#GUID-EA5612E8-A1E8-4022-821E-44C15559914D


To change the host name for the Administration Server from cgecpcp4vn056.ae.ge.com to avwcappprod1.ae.ge.com:


1)Change the hostname, domain name, or IP address of your host.

2)Stop the Administration Server and all Managed Servers if they are running.

3)Create an input file that contains the following:


[ARGUMENTS]


[SERVER_HOST_MAPPING]

#pattern source_host_name=target_host_name

host1.com=host2.com



4)Create a wallet directory, specifying the file specification, including the name of the directory and passing the administration user name to the command. 


For example:

ORACLE_HOME/oracle_common/common/bin/configWallet.sh -walletDir /scratch/myWalletDir admin_username


$ORACLE_HOME/oracle_common/common/bin/configWallet.sh -walletDir <path>/myWalletDir Admin


The command will prompt you to enter the password and to confirm the password. It creates the wallet directory if it does not exist and populates it with a cwallet.sso file.


5) Execute the following command on Host host1.com:  (keep this in .sh file and execute as below ) $ORACLE_HOME/oracle_common/bin/chghost.sh

./chghost.sh -chgHostInputFile /avwcp1/wcapp/input_file -javaHome <path>/jdk -domainLoc "<$DOMAIN_HOME>" -domainAdminUserName Admin -walletDir "<path>/myWalletDir" -logPriority log_level -logDir /tmp/changehost.log

it will change hostname and restart all services


ERRORS : 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 SEVERE:

 [CHGHOST-20218-ERROR]  Server ports validation failed.

 [CHGHOST-20218-CAUSE]  The port 16601 was used for multiple servers.

 [CHGHOST-20218-ACTION]  Provide different free ports for servers.

Aug 24, 2020 11:26:02 PM oracle.glcm.fmw.chghost.framework.execute.ChangeHostExecute willIgnoreValidation

INFO: [CHGHOST-23048-INFO] Ignoring port validation errors. Either ignore "all" or ignore "port" flag is set.

Aug 24, 2020 11:26:02 PM oracle.glcm.fmw.chghost.framework.execute.ChangeHostExecute backupConfigDir

INFO: Taking backup of config directory /avwcp1/wcapp/domain_home/user_projects/domains/fmw_domain/config of size 4 MB , at /tmp/CHGHOST2130218294/config_dir_backup_bf_any_update_458560564.jar

java.lang.Exception: Temporary port range is invalid. It is either not in proper format like a-b or port range is not within range 1-65535 , or lower port is greater than higher port.

        at oracle.glcm.fmw.chghost.util.PortUtil.validateTemporaryPortRange(PortUtil.java:192)

        at oracle.glcm.fmw.chghost.framework.plugin.impl.t2p.helper.T2PConfigHelper.assignTemporaryPort(T2PConfigHelper.java:254)

        at oracle.glcm.fmw.chghost.framework.execute.ChangeHostExecute.assignManagedServersTemporaryPort(ChangeHostExecute.java:333)

        at oracle.glcm.fmw.chghost.framework.execute.ChangeHostExecute.execute(ChangeHostExecute.java:110)

        at oracle.glcm.fmw.chghost.Chghost.executeChghostCommand(Chghost.java:277)

        at oracle.glcm.fmw.chghost.Chghost.main(Chghost.java:301)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Solution : 

CHGHOST-20218-ERROR Server Ports Validation Failed When Changing Hostnames in SOA 12.2.1.3.0 (Doc ID 2531175.1)

or

Check the config.xml and ensure no duplicate ports exists , if you have any such values try to backup config.xml and change duplicate values with different temporary port values and follow the process of steps which discussed above


No comments:

Post a Comment