Discover the Oracle WebLogic Server Domain on the Source Instance

Run the Oracle WebLogic Deploy Tool (WDT) on your source Oracle Java Cloud Service instance to capture its domain configuration, applications and other supporting files.

  1. Use a Secure Shell (SSH) client to connect to the Administration Server node on the source instance as the opc user.
    ssh -i <privatekey> opc@<source_admin_IP>
  2. Switch to the oracle user.
    sudo su - oracle
  3. Determine the locations of the DOMAIN_HOME and MIDDLEWARE_HOME directories on the file system.
    echo $DOMAIN_HOME
    echo $MIDDLEWARE_HOME
  4. Navigate to the /u01/weblogic-deploy directory.
    cd /u01/weblogic-deploy
  5. Run the discoverDomain.sh command and specify the following parameters:
    • The locations of your DOMAIN_HOME and MIDDLEWARE_HOME directories
    • The names of the two output files (model and archive)
    • The JRF domain type

    Caution:

    You must specify the JRF domain type, so that the tool ignores standard resources and applications that are found in all service instances.

    Format:

    /u01/weblogic-deploy/bin/discoverDomain.sh -domain_home $DOMAIN_HOME -oracle_home $MIDDLEWARE_HOME -model_file <source_domain>.yaml -archive_file <source_domain>.zip -domain_type JRF

    Example:

    /u01/weblogic-deploy/bin/discoverDomain.sh -domain_home $DOMAIN_HOME -oracle_home $MIDDLEWARE_HOME -model_file MyInstan_domain.yaml -archive_file MyInstan_domain.zip -domain_type JRF
  6. Verify that the discoverDomain.sh command completed successfully with no errors.

    Total: WARNING: 1 SEVERE: 0

    Ignore any warnings related to these resources, which you will address later:

    • Trust Service Identity Asserter
    • Oracle Identity Cloud Service (IDCS) Integrator Authentication Provider
    • WebLogic Diagnostic Framework (WLDF) script actions
  7. Copy the output files to /tmp.
    cp <source_domain>* /tmp
  8. Change the owner of the output files to the opc user.
    exit
    sudo chown opc:opc /tmp/<source_domain>*
  9. Disconnect from the node.