Update the Oracle WebLogic Server Domain on the Target Instance

Run the Oracle WebLogic Deploy Tool (WDT) on your target Oracle Java Cloud Service instance to update its domain configuration and to deploy your applications.

  1. Use a Secure Shell (SSH) client to connect to the Administration Server node on the target instance as the opc user.
    ssh -i <privatekey> opc@<target_admin_IP>
    If you are using a private subnet, use the following command to connect to the Administration Server node in your target instance:
    ssh -i <path_to_privatekey> -o ProxyCommand="ssh -W %h:%p -i <path_to_privatekey> opc@<Public_IP>" opc@<target_admin_IP>
  2. Change the owner of the archive, model, and properties files to the oracle user.
    sudo chown oracle:oracle /tmp/<source_domain>.*
    sudo chown oracle:oracle /tmp/wdt.properties
  3. Switch to the oracle user.
    sudo su - oracle
  4. Navigate to the /u01/weblogic-deploy directory.
    cd /u01/weblogic-deploy
  5. Copy the input files to the current directory.
    cp /tmp/<source_domain>.* .
    cp /tmp/wdt.properties .
  6. Run the validateModel.sh command and specify the following parameters:
    • The location of your MIDDLEWARE_HOME directory
    • The names of the model, archive and properties files
    • The JRF domain type

    Format:

    /u01/weblogic-deploy/bin/validateModel.sh -oracle_home $MIDDLEWARE_HOME -model_file <source_domain>.yaml -archive_file <source_domain>.zip -variable_file wdt.properties -domain_type JRF

    Example:

    /u01/weblogic-deploy/bin/validateModel.sh -oracle_home $MIDDLEWARE_HOME -model_file MyInstan_domain.yaml -archive_file MyInstan_domain.zip -variable_file wdt.properties -domain_type JRF
  7. Verify that the validateModel.sh command completed successfully. Correct any errors.
    ####<timestamp> <INFO> <validate> <__perform_model_file_validation> <WLSDPLY-05403>
    <Validation of /u01/weblogic-deploy/<source_domain>.yaml completed with 0 error(s), 0 warning(s) and 0 info(s) items>
    validateModel.sh completed successfully (exit code = 0)
  8. Run the updateDomain.sh command and specify the following parameters:
    • The locations of your DOMAIN_HOME and MIDDLEWARE_HOME directories
    • The names of the model, archive, and properties files
    • The JRF domain type

    Format:

    /u01/weblogic-deploy/bin/updateDomain.sh -domain_home /u01/data/domains/<target_domain> -oracle_home /u01/app/oracle/middleware/ -model_file <source_domain>.yaml -archive_file <source_domain>.zip -variable_file wdt.properties -domain_type JRF

    Example:

    /u01/weblogic-deploy/bin/updateDomain.sh -domain_home /u01/data/domains/MyInstan_domain -oracle_home /u01/app/oracle/middleware/ -model_file MyInstan_domain.yaml -archive_file MyInstan_domain.zip -variable_file wdt.properties -domain_type JRF
  9. Verify that the updateDomain.sh command completed successfully with no errors.
    updateDomain.sh completed successfully (exit code = 0)

    Log files are in the /u01/weblogic-deploy/logs directory.

  10. Disconnect from the Administration Server node.