Changing the logical host name of the virtual machine is not mandatory for accessing Oracle E-Business Suite applications. Our recommendation is to continue using the logical or virtual name as set when you install and front end the virtual machine with the virtual machine's public host name or any other device, such as a reverse proxy or a load-balancer, for access from external clients. Administrators can use the configwebentry.sh script shipped in the /u01/install/scripts directory for this purpose.
Please note that the instructions described in this section have been validated on the single node Vision instance virtual machine.
Perform the following steps to change the host name of the virtual machine:
- Start the virtual machine.
- Log in as the oracle user.
- Source the runtime environment:
[oracle@apps ~]$ . /u01/install/APPS/EBSapps.env run
- Execute the following command to start the Admin server:
[oracle@apps ~]$ $INST_TOP/admin/scripts/adadminsrvctl.sh start
- Execute the following command:
[oracle@apps ~]$ $INST_TOP/admin/scripts/adpreclone.pl appsTier
- Source the patch environment in the patch edition file system:
[oracle@apps ~]$ . /u01/install/APPS/EBSapps.env patch
- Execute the following command:
[oracle@apps ~]$ $INST_TOP/admin/scripts/adadminsrvctl.sh start forcepatchfs
- Execute the following command:
[oracle@apps ~]$ $INST_TOP/admin/scripts/adpreclone.pl appsTier
- Execute the following command to shut down the Oracle E-Business Suite application tier services:
[oracle@apps ~]$ /u01/install/APPS/scripts/stopapps.sh
- Execute the following command to shut down the Oracle E-Business Suite database tier services:
[oracle@apps ~]$ /u01/install/APPS/scripts/stopdb.sh
- Execute the following command as the root user and provide the same IP configuration details and the new host name:
[root@apps ~]# /u01/install/scripts/configstatic.sh
- Use the following two chkconfig commands to ensure that the boot scripts will not automatically start the database and application tiers upon boot. Use init 6 to reboot the VM.
[root@apps ~]# chkconfig apps off
[root@apps ~]# chkconfig ebsdb off
[root@apps ~]# init 6
It is important that the database and application tier processes do not start when the VM boots.
- Once the virtual machine has rebooted, log in as the root user and ensure echo $HOSTNAME returns the new host name.
- Execute the following command as the root user:
Note: Change the SID of the Database (Conditional)If you want to change the SID of the database at this stage, perform the following task before running
dbconfig.sh
:
- Edit the
db_pairs.txt
file in the /u01/install/APPS/scripts/
directory using the following commands:
[root@apps ~]# cd /u01/install/APPS/scripts/
[root@apps ~]# sed -i "s/^s_dbSid=.*$/s_dbSid=VIS1227/" db_pairs.txt
In this example, consider "VIS1227" the new SID.
[root@apps ~]# /u01/install/APPS/scripts/dbconfig.sh
When the dbconfig.sh
script completes, the database is left running with its new SID, such as "VIS1227", in this example.
- Execute the following command as the root user:
[root@apps ~]# /u01/install/APPS/scripts/appsconfig.sh
If the script returns an error while creating the patch file system, perform the following steps to re-create the patch file system:
- Stop any processes that is running from the patch file system.
- Log in as the oracle user and source the run file system.
[oracle@apps ~]$ . /u01/install/APPS/EBSapps.env run
- Execute the following command to create the patch file system:
[oracle@apps ~]$ adop phase=fs_clone force=yes
- Perform the following steps to ensure that you can run online patching cycles without any errors on the reconfigured environment:
- Bring up processes from the run file system if they are down.
- Execute two adop empty cycles using the following commands:
[oracle@apps ~]$ adop phase=prepare
[oracle@apps ~]$ adop phase=cutover
[oracle@apps ~]$ adop phase=prepare
[oracle@apps ~]$ adop phase=cutover
- Attach inventory post appsconfig by executing the following command as the oracle user:
[oracle@apps ~]$ /u01/install/APPS/12.1.0/oui/bin/attachHome.sh