Update the Domain Content

To update the domain content by using the cloning scripts, complete the following steps:
  1. As a oracle user, run the following commands on each VM in the Oracle WebLogic Server for OCI instance:
    sudo su - oracle
    python3 /opt/scripts/cloning/update_service_config.py metadata 1
    This ensures that the metadata used by restart and scaling scripts on Oracle WebLogic Server for OCI has the correct information.

    Note:

    Oracle Java Cloud Service limits the domain objects to 8 characters. However, Oracle WebLogic Server for OCI does not have this limitation.
  2. Change the host names in the domain configuration files to the host name of the VMs in the Oracle WebLogic Server for OCI instance.
    As a oracle user, run the following command on each VM in the Oracle WebLogic Server for OCI instance:
    sudo su - oracle
    python3 /opt/scripts/cloning/update_service_config.py hostname 1
  3. If the Demo Identity certificates have the incorrect host name, then, as a oracle user, run the following command on each VM in the Oracle WebLogic Server for OCI instance
    sudo su - oracle
    /opt/scripts/cloning/generate_demo_certs.sh
  4. Ensure that there is a marker file present so Compute instance reboot restarts the servers:
    touch /u01/data/domains/<jcs_domain_name>/provCompletedMarker
    where <jcs domain name> can be found by running:
    ls /u01/data/domains/ | grep _domain