A.14 Starting and Stopping the Oracle Stack
Note:
For an Oracle Autonomous Transaction Processing-Shared (ATP-S) database, before starting/stopping the Oracle WebLogic Administration Server, OID system components, or the Node Manager, you must set theTNS_ADMIN
property to <$DOMAIN_HOME>/config/fmwconfig/components/OID/config/
using the following command:export TNS_ADMIN=<$DOMAIN_HOME>/config/fmwconfig/components/OID/config
To update the contents of the directory pointed to by TNS_ADMIN, see Prerequisites for ATP-S.
A.14.1 Starting the Stack
This section describes the procedure to start the stack.
Start the stack components in the following order.
- 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
- In the Database
- Start the Oracle WebLogic Administration Server.
Note:
If you start the Oracle WebLogic Administration Server from the command line as shown, it runs in the foreground and prints output to the screen. You can, however, run the server in the background by usingnohup
at the beginning of the command line. This sends all output to the filenohup.out
and prevents the script from prompting you forUSER_NAME
andPASSWORD
. To pass parameters toStartWebLogic.sh
when usingnohup
, you can use a boot identity file. See Starting and Stopping Servers in Administering Server Startup and Shutdown for Oracle WebLogic Server.(UNIX) DOMAIN_HOME/bin/startWebLogic.sh (Windows) DOMAIN_HOME\bin\startWebLogic.cmd
When executing these scripts:
- The default value for
DOMAIN_NAME
isbase_domain
- You will be prompted for values for
USER_NAME
andPASSWORD
if you do not provide them as options when you execute the script.
- The default value for
- Ensure that the Node Manager is running. If, for some reason, the Node Manager is not running, start it.
(UNIX) DOMAIN_HOME/bin/startNodeManager.sh (Windows) DOMAIN_HOME\bin\startNodeManager.cmd
- Start WebLogic system components, such as Oracle Internet Directory.
(UNIX) DOMAIN_HOME/bin/startComponent.sh component_name (Windows) DOMAIN_HOME\bin\startComponent.cmd component_name
You can verify that the system components have started in a WLST shell by executing:
oid_instanceStatus(instanceName = 'instance-name')
- Start WebLogic Managed Servers, such as Oracle Directory Integration Platform.
(UNIX) DOMAIN_HOME/bin/startManagedWebLogic.sh managed_server_name admin_url (Windows) DOMAIN_HOME\bin\startManagedWebLogic.cmd managed_server_name admin_url
When prompted, enter your user name and password.
To start managed components in the background, you can use the Oracle WebLogic Administration Console. See Overview of Administration Consoles in Understanding Oracle WebLogic Server.
You can view the status of WebLogic managed components with Oracle Enterprise Manager Fusion Middleware Control. See Overview of Using Fusion Middleware Control to Manage Oracle Internet Directory.
A.14.2 Stopping the Stack
You can stop the Administration Server and all the managed servers by using Oracle WebLogic Administration Console.
See Overview of Administration Consoles in Understanding Oracle WebLogic Server.
To stop the stack components from the command line, issue the commands in the following order.
-
Stop WebLogic Managed Servers such as
WLS_ODS1
. The Oracle Directory Integration Platform (DIP) typically runs from theWLS_ODS1
Managed Server.(UNIX) DOMAIN_HOME/bin/stopManagedWebLogic.sh managed_server_name admin_url (Windows) DOMAIN_HOME\bin\stopManagedWebLogic.cmd managed_server_name admin_url
When prompted, enter your user name and password.
-
Stop WebLogic system components, such as Oracle Internet Directory.
(UNIX) DOMAIN_HOME/bin/stopComponent.sh component_name (Windows) DOMAIN_HOME\bin\stopComponent.cmd component_name
-
Stop the WebLogic Administration Server.
(UNIX) DOMAIN_HOME/bin/stopWebLogic.sh (Windows) DOMAIN_HOME\bin\stopWebLogic.cmd
-
If you want to stop the Node Manager:
(UNIX) DOMAIN_HOME/bin/stopNodeManager.sh (Windows) DOMAIN_HOME\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
-