Tuesday, January 30, 2007

Oracle Application Server Administration Made Easy

Opmnctl utility:
Opmnctl is a command line utility provided for starting, stopping,restarting and getting status of various ias components.

options available :

1) opmnctl start : Starts the opmn daemon without starting opmn managed instances

2) opmnctl startall : Starts both the daemon and managed server processes

3) opmnctl stopall : stops all the managed instances

4) To start a specific component
opmnctl startproc ias-component=OC4J process-type=

5) To stop a specific component
opmnctl stopproc ias-component=OC4J process-type=

6) To validate opmn.xml : opmnctl validate opmn.xml

7) To shutdown forcefully opmn managed processes and daemon :
opmnctl shutdown

All ias-components will have an entry in opmn.xml . This is located in $ORACLE_HOME/opmn/conf/opmn.xml

for a OC4J component entry will be like :

ias-component id="OC4J"
process-type id="" module-id="OC4J"
category id="start-parameters"
data id="java-options" value=""
data id="oc4j-options" value=""

category id="stop-parameters"
data id="java-options" value=""


All ias-component specific logs are located in $ORACLE_HOME/oasmt/opmn/logs/ directory . If any component refuses to start or shuts down abnormally, go to that directory and have a look.

Deploying J2EE Application using OC4J in 10gAS

Step 1 : Create OC4J Component
a) cd $ORACLE_HOME/oasmt/dcm/bin
b) dcmctl createComponent -ct -co

Step 2: Deploy new component
a) FTP Ear file that you have created to the server .
b) dcmctl deployApplication - file -a -co

Step 3 : Start new component
a) dcmctl start -co -d -v

To restart component :

dcmctl restart -co -d -v

To stop component :

dcmctl stop -co -d -v

To undeploy component

dcmctl undeployApplication -a -co

To remove component
dcmctl removeComponent -co


Vidya Balasubramanian said...

good snippet - you can view my blog that has some details as well.

Mrena said...

People should read this.