P Starting and Stopping the Oracle Stack

You must start and stop the components of the Oracle stack in a specific order, which is described in this appendix.

P.1 Starting the Stack

Start the stack components in the following order.

  1. Start the Oracle Database

    1. In the Database ORACLE_HOME, set the ORACLE_SID, ORACLE_HOME and PATH environment variables to the appropriate values.

    2. Start the listener.

      ORACLE_HOME/bin/lsnrctl start 
      
    3. Start the database.

      ORACLE_HOME/bin/sqlplus "/as sysdba"
      startup
      
  2. Start the Oracle WebLogic Administration Server.

    MW_HOME/user_projects/domains/DOMAIN_NAME/bin/startWebLogic.sh
    
  3. Start system components, such as Oracle Internet Directory and Oracle Virtual Directory.

    ORACLE_INSTANCE/bin/opmnctl startall
    

    You can verify that the system components have started by executing:

    ORACLE_INSTANCE/bin/opmnctl status -l
    
  4. Start WebLogic managed components, such as Oracle Directory Integration Platform and Oracle Directory Services Manager.

    MW_HOME/user_projects/domains/DOMAIN_NAME/bin/startManagedWebLogic.sh \
      SERVER_NAME {ADMIN_URL}
    

    You can view the status of WebLogic managed components with Oracle Enterprise Manager Fusion Middleware Control. See "Using Oracle Enterprise Manager Fusion Middleware Control to Manage Oracle Internet Directory".

P.2 Stopping the Stack

Stop the stack components in the following order.

  1. Stop WebLogic managed components, such as Oracle Directory Integration Platform and Oracle Directory Services Manager.

    MW_HOME/user_projects/domains/DOMAIN_NAME/bin/stopManagedWebLogic.sh \
    {SERVER_NAME} {ADMIN_URL} {USER_NAME} {PASSWORD}
    
  2. Stop system components, such as Oracle Internet Directory and Oracle Virtual Directory.

    ORACLE_INSTANCE/bin/opmnctl stopall 
    
  3. Stop the WebLogic Administration Server.

    MW_HOME/user_projects/domains/DOMAIN_NAME/bin/stopWebLogic.sh
    
  4. Stop the Oracle Database.

    1. In the Database ORACLE_HOME, set the ORACLE_SID, ORACLE_HOME, and PATH environment variables to the appropriate values.

    2. Stop the database.

      ORACLE_HOME/bin/sqlplus "/as sysdba"
      shutdown immediate 
      
    3. Stop the listener.

      ORACLE_HOME/bin/lsnrctl stop