C 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.
Topics:
C.1 Starting the Stack
Use the steps in the following order to start the stack components.
-
Start the Oracle Database
-
In the Database
ORACLE_HOME
, set theORACLE_SID
,ORACLE_HOME
andPATH
environment variables to the appropriate values. -
Start the listener.
ORACLE_HOME/bin/lsnrctl start
-
Start the database.
ORACLE_HOME/bin/sqlplus "/as sysdba" startup
-
-
Start the Oracle WebLogic Administration Server.
(Unix)DOMAIN_NAME/bin/startWebLogic.sh
(Windows)DOMAIN_NAME\bin\startWebLogic.cmd
Note:
WhereDOMAIN_NAME
is the root directory of the domain. (The name of this directory is the name of the domain.). By default, this directory isORACLE_HOME\user_projects\domains\DOMAIN_NAME
. -
Ensure that the Node Manager is running. Normally, the Oracle WebLogic Administration Server starts the Node Manager. If, for some reason, the Node Manager is not running, start it.
(Unix)DOMAIN_NAME/bin/startNodeManager.sh
(Windows)DOMAIN_NAME\bin\startNodeManager.cmd
-
Start the Oracle WebLogic managed components, such as Oracle Directory Integration Platform and Oracle Directory Services Manager.
(Unix)DOMAIN_NAME/bin/startManagedWebLogic.sh managed_server_name admin_url
(Windows)DOMAIN_NAME\bin\startManagedWebLogic.cmd managed_server_name admin_url
Where
managed_server_name
specifies the name of the Managed Server (The default value iswls_ods1
.) andadmin_url
specifies the listen address (host name, IP address, or DNS name) and port number of the domain's Administration Server.Example
c:\Oracle\Middleware\user_projects\domains\base_domain\bin\startManagedWebLogic.cmd wls_ods1 http://AdminHost:7001
To start managed components in the background, you can use the Oracle WebLogic Administration Console. See Using the WebLogic Server Administration Console in Understanding Oracle WebLogic Server.
You can view the status of Oracle WebLogic managed components with Fusion Middleware Control. See Using Fusion Middleware Control in Understanding Oracle WebLogic Server.
C.2 Stopping the Stack
Use the steps in the following order to stop the stack components from the command line.
You can stop the Administration Server and all the managed servers by using Oracle WebLogic Administration Console. See Using the WebLogic Server Administration Console in Understanding Oracle WebLogic Server..
-
Stop the Oracle WebLogic managed components, such as Oracle Directory Integration Platform and Oracle Directory Services Manager.
(Unix)DOMAIN_NAME/bin/stopManagedWebLogic.sh managed_server_name admin_url
(Windows)DOMAIN_NAME\bin\stoptManagedWebLogic.cmd managed_server_name admin_url
Where
DOMAIN_NAME
is the root directory of the domain,managed_server_name
specifies the name of the Managed Server (The default value iswls_ods1
.), andadmin_url
specifies the listen address (host name, IP address, or DNS name) and port number of the domain's Administration Server.Example
c:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopManagedWebLogic.cmd wls_ods1 http://AdminHost:7001
-
Stop the WebLogic Administration Server.
(Unix)DOMAIN_NAME/bin/stopWebLogic.sh
(Windows)DOMAIN_NAME\bin\stopWebLogic.cmd
Note:
WhereDOMAIN_NAME
is the directory in which you located the domain. By default, this directory isORACLE_HOME\user_projects\domains\DOMAIN_NAME
. -
If you want to stop the Node Manager, you can use the
stopNodeManager.sh
command.(Unix)DOMAIN_NAME/bin/stopNodeManager.sh
(Windows)DOMAIN_NAME\bin\stopNodeManager.cmd
-
Stop the Oracle Database.
-
In the Database
ORACLE_HOME
, set theORACLE_SID
,ORACLE_HOME
, andPATH
environment variables to the appropriate values. -
Stop the database.
ORACLE_HOME/bin/sqlplus "/as sysdba" shutdown immediate
-
Stop the listener.
ORACLE_HOME/bin/lsnrctl stop
-
C.3 About How to Start or Stop the Oracle Unified Directory Server
Use the start-ds
or stop-ds
commands to start or stop the Oracle Unified Directory Server.
See Starting and Stopping the Server in Administering Oracle Unified Directory.
C.4 About How to Start or Stop the Oracle Internet Directory Server
Use the start()
or shutdown()
commands to start or stop the Oracle Internet Directory Server.
See Starting the Oracle Internet Directory Server by Using WLST Command — start() or Stopping the Oracle Internet Directory Server by Using WLST Command — shutdown() in Oracle Fusion Middleware Administering Oracle Internet Directory.
C.5 About How to Start, Stop, or Restart a Oracle Directory Server Enterprise Edition Instance
Use the dsadm
command to start, stop, or restart a Oracle Directory Server Enterprise Edition Instance.
See Starting, Stopping, and Restarting a Directory Server Instance in Administrator's Guide for Oracle Directory Server Enterprise Edition.