Managing Your 10g Application Server
Managing the application server primarily the startup and shutdown procedures.
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
10g AS Startup Process
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.
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.
# su - oraas
$ cd $ORACLE_HOME/bin
This command will startup
The AS Meta Data Repository Instance
The Enterprise Manager Console
Infrastructure Process Such as OID,OC4J_security,SSO etc.
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.
This command will start up your opmn process
This will start up the opmn process and all process managed by opmn
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
10AS Shutdown Process
Your Middle tier Services must be shutdown before you shutdown your infrastructure services.
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.
# su - oeaas
$ cd $ORACLE_HOME/bin
This command will stop
All infrastructure tier services
The 10g EM console
The meta data repository instance
For middle Tier services you must run this command for the middle tier ORACLE_HOME.
Using opmnctl you can shutdown your middle tier services and infrastructure services.
This shutdown the opmn process and along with it all the managed opmn processes
This command stops all opmn managed process for a particular tier.
You can also stop a specify OPMN managed component using
opmnctl stopproc ias-component=component
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.