Managing the application server primarily the startup and shutdown procedures. I will discuss the opmn tool by Oracle and also the Enterprise Manager
The process described here also holds good for other Oracle products like Oracle Collaboration suite and Oracle SOA suite.
Any application server would necessarily consist of a infrastructure Tier, it may or may not have a middle tier associated.
Starting Application Server Services
Order of Startup
As the middle tier is dependent on your infrastructure it is important that the infrastructure should be up and running before you proceed with the middle tier services.
To start OracleAS Infrastructure:
1. If your OracleAS Infrastructure contains OracleAS Metadata Repository, start it as
follows:
a. Set the ORACLE_HOME environment variable to the OracleAS Infrastructure
Oracle home.
b. Set the ORACLE_SID environment variable to the OracleAS Metadata
Repository SID (default is orcl).
c. Start the Net Listener:
ORACLE_HOME/bin/lsnrctl start
d. Start the OracleAS Metadata Repository instance:
ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> startup
SQL> quit
e. Start the Oracle Enterprise Manager 10g Database Control:
(UNIX)ORACLE_HOME/bin/emctl start dbconsole
(Windows)ORACLE_HOME\bin\emctl start idbconsole
Using runstartupconsole.sh
You can start up the infrastructure tier services using the runstartupconsole.sh script located at your $ORACLE_HOME/bin/ on the machine which contains your infrastructure.
$ cd $ORACLE_HOME/bin
$runstartupconsole.sh start
This command will startup
The AS Meta Data Repository Instance
The Listener
The Enterprise Manager Console
Infrastructure Process Such as OID,OC4J_security,SSO etc.
To startup the middle Tier Services you log in to your middle tier OS user and run the the runstartupconsole.sh from the middle tier ORACLE_HOME.
$ cd $ORACLE_HOME/bin
$runstartupconsole.sh start
This Command will start up
The 10g Enterprise Manager
All OPMN managed process for the middle tier like portal
Using Enterprise Manager Console
You can also use the 10g Enterprise Manager console to start up the infrastructure tier and middle tier services, however you must start up the enterprise manager explicitly before you can use it. The emctl command is used to startup the enterprise manager. The location is $ORACLE_HOME/bin
Start the Application Server Control Console:
(UNIX)ORACLE_HOME/bin/emctl start iasconsole
$emctl start iasconsole
Using OPMN
OPMN stands for the Oracle Process Manager and Notification, is a tool with you can manage the OPMN managed Infrastructure and Middle Tier Porcess. The opmnctl executable is located at the $ORACLE_HOME/opmn/bin.
opmnctl start
This command will start up your opmn process
opmnctl startall
This will start up the opmn process and all process managed by opmn
Start components:
(UNIX) ORACLE_HOME/opmn/bin/opmnctl startall
(Windows) ORACLE_HOME\opmn\bin\opmnctl startall
opmnctl startporc ias-component=component
This will start a specific opmn managed process like SSO
You can also start using the sub-porcess of a component using
opmnctl startproc process-type=process
You could also restart the processs using
opmnctl restartproc ias-component=component
opmnctl restartproc process-type=process
However before using OPMNCTL you must have started your Metadata Respositery Database Instance and the Listener manually.
Shutdown of Application Tier Services
Order Of Shutdown
Your Middle tier Services must be shutdown before you shutdown your infrastructure services.
Using runstartupconsole.sh
You can shutdown the infrastructure tier services using the runstartupconsole.sh script located at your $ORACLE_HOME/bin/ on the machine which contains your infrastructure.
$ cd $ORACLE_HOME/bin
$runstartupconsole.sh stop
This command will stop
All infrastructure tier services
The 10g EM console
The meta data repository instance
The listener
For middle Tier services you must run this command for the middle tier ORACLE_HOME.
Using Enterprise Manager Console
You can also use the 10g EM console to shutdown your middle tier and infrastructure services.
After that you must shutdown your EM console manually using the emctl command
emctl stop iasconsole
Stop the Application Server Control Console:
(UNIX)ORACLE_HOME/bin/emctl stop iasconsole
(Windows)ORACLE_HOME\bin\emctl stop iasconsole
You can also shutdown the Infrastructure services using the EM Console of the infrastructure tier after which you must manually shutdown the EM console manually using emctl at the infrastructure tier.
You must also remember to bring down your Meta Data Repository and Listener manually from the infrastructure home after all the services are brought down.
Using OPMN
Using opmnctl you can shutdown your middle tier services and infrastructure services.
opmnctl shutdown
This shutdown the opmn process and along with it all the managed opmn processes
opmnctl stopall
This command stops all opmn managed process for a particular tier.
Stop components:
(UNIX) ORACLE_HOME/opmn/bin/opmnctl stopall
(Windows) ORACLE_HOME\opmn\bin\opmnctl stopall
You can also stop a specify OPMN managed component using
opmnctl stopproc ias-component=component
or
opmnctl stopproc process-type=process
The EM console on the middle tier and the infrastructure tier needs to be brought down manually using emctl stop iasconsole.
Also the Meta Data Repository Instance and Listener need to be brought down manually.
If your OracleAS Infrastructure contains OracleAS Metadata Repository, stop it as
follows:
a. Set the ORACLE_HOME environment variable to the OracleAS Infrastructure
Oracle home.
b. Set the ORACLE_SID environment variable to the OracleAS Metadata
Repository SID (default is orcl).
c. Stop the OracleAS Metadata Repository instance:
ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> shutdown
SQL> quit
d. Stop the Net Listener:
ORACLE_HOME/bin/lsnrctl stop
1 comment:
Thanks for sharing such informative post, I have found so many important point abour the opmn tool by Oracle. Thanks .
Post a Comment