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"
module-data
category id="start-parameters"
data id="java-options" value=""
data id="oc4j-options" value=""
category
category id="stop-parameters"
data id="java-options" value=""
category
module-data
process-type
ias-component
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
Step 2: Deploy new component
a) FTP Ear file that you have created to the server .
b) dcmctl deployApplication - file
Step 3 : Start new component
a) dcmctl start -co
To restart component :
dcmctl restart -co
To stop component :
dcmctl stop -co
To undeploy component
dcmctl undeployApplication -a
To remove component
dcmctl removeComponent -co
2 comments:
good snippet - you can view my blog that has some details as well.
People should read this.
Post a Comment