Stop or Start WebLogic Servers

You can stop or start the WebLogic Servers using WebLogic Scripting Tool (WLST) commands and the WebLogic Server Administration Console.

Oracle SOA Cloud Service is built on top of Oracle Java Cloud Service, which in turn is built on top of Oracle WebLogic Server. When you create an Oracle SOA Cloud Service instance, an Oracle WebLogic domain is provisioned across all machines that are part of that Oracle SOA Cloud Service instance.

An Oracle WebLogic domain is made up of a set of WebLogic Server instances that work together to host and operate your Java EE applications. Within the domain only one WebLogic Server instance is responsible for administrative operations, such as creating new server instances or deploying applications. That privileged server is referred to as the Administration Server, whereas all the rest are Managed Servers.

The Administration Server also hosts the WebLogic Server Administration Console.

To stop the WebLogic servers:

To start the WebLogic servers, reverse the order in which you stopped the servers:

Stop or Start Managed Servers

You can stop or start the Managed Servers through the WebLogic Server Administration Console.

To stop or start Managed Servers:
  1. In the Oracle SOA Cloud Service Console, click menu icon for the desired service instance and select Open WebLogic Server Console. Log in using the credentials you provided when you created the service instance.
  2. Under Domain Structure, expand Environment.
  3. Select Servers.
  4. On the Configuration page, note the state of the Administration Server state and the Managed Servers.
  5. Select the Control tab.
  6. Click the check box to the left of each Managed Server name.
  7. Click Stop or Start.
  8. On the Server Life Cycle Assistant, click Yes.
    If stopping, the server state changes to SHUTTING DOWN; if starting, the server state changes to STARTING.
  9. Click the Refresh icon.
    The server state changes to SHUTDOWN (if stopping) or RUNNING (if starting).

Stop or Start the Administration Server

You can stop or start the Administration Server through the Node Manager by using WLST commands.

To stop or start the Administration Server:
  1. Use the ssh command to connect to the Administration Server VM:
    ssh -i private_key opc@AdminServerVM_IP_address
  2. Change to the oracle user:
    sudo su - oracle
  3. Check to see that the Node Manager is running:
    ps -ef | grep NodeManager
    You should receive messages showing that the Node Manager is running.
  4. Change the directory to where environment setup is located:
    cd /u01/data/domains/domain_name/bin

    For example:

    cd /u01/data/domains/OurServi_domain/bin
  5. Set up the environment.
    . ./setDomainEnv.sh
  6. Start WLST:
    /u01/app/oracle/middleware/oracle_common/common/bin/wlst.sh
  7. To connect to the Node Manager, use the WLST nmConnect command:
    nmConnect ('username','password','host','nmPort','domainName','domainDir','nmType')
    Parameter Description Example
    username WebLogic Server username you specified when you created the service instance.  
    password WebLogic Server password you specified when you created the service instance.  
    host The host name of the Node Manager. This is typically of the format instanceName-wls-1. ourserviceinstance-wls-1
    nmPort Port number of the node manager. 5556
    domainName Name of the domain. You can find the domain name on the Oracle SOA Cloud Service Instance Overview page. OurServi_domain
    domainDir Path to the domain. In Oracle SOA Cloud Service, the domain directory is /u01/data/domains/domainName. /u01/data/domains/OurServi_domain
    nmType Use SSL for Java-based SSL implementation. SSL

    For example:

    nmConnect ('weblogic','welcome','ourserviceinstance-wls-1','5556','OurServi_domain','/u01/data/domains/OurServi_domain','SSL')
    For more information about nmConnect parameters, see WLST Command Reference for WebLogic Server (12.2.1.4 | 12.2.1.3 | 12.2.1.2 | 12.1.3).
  8. Stop or start the Administration Server:
    • To stop the Administration Server, follow the steps in Stop or Start Managed Servers, selecting and shutting down the Administration Server. When you shut down the Administration Server, a message warns you that the browser session will end.
    • To start the Administration Server, use nmStart:
      nmStart ('server_name')

      For example:

      nmStart ('OurServi_adminserver')
  9. Exit WLST:
    exit()