Managing Your 10g Application Server
After having discussed about installation and configuration of Oracle Applications Server, in today’s post I will talk about managing the application server primarily the startup and shutdown procedures. I am sure this would have been already well documented by oracle but the post aims summing up the process. 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.
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.
# su - saminf
$ 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.
# su - sammid
$ 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
#su - saminf
$emctl start iasconsole
You can logon top the enterprise manager using the ias_admin username and password given at the time of installatiuon. You can get the URL of the EM from the setupinfo.txt file located at the $ORACLE_HOME/install directory location.
Similarly you can start the EM of the middle Tier using the emctl command and start the middle tier services using the EM console.
However you must start your Meta Data Repository instance and Listener manually before starting and using the EM console.
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
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.
# su - saminf
$ 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
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.
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.
No comments:
Post a Comment