Command Line Management Utilities

Utilities / Tools

Oracle Process Management and Notification

opmnctl - Oracle Process Management and Notification control

For management of Application Server in specific OHS (Oracle HTTP Server) and OC4j

$ORACLE_HOME/opmn/bin/opmnctl startall

Note : Set the Environment variables for the specific instance

ORACLE_HOME = To your specific installatin

PATH = To point to the opmnctl utility

ORACLE_SID = To the repository database

LD_LIBRARY_PATH = To include the $ORACLE_HOME/lib

$opmnctl startall

Distributed Configuration Management

To list all the features of dcmctl

$dcmctl help

~\OraHome_1\dcm\bin>dcmctl help

DCMCTL Command Help

addopmnlink

applyarchiveto

applyclusterto

applyinstanceto

configrepositoryssl

createarchive

createcluster

createcomponent

deployapplication

destroyinstance

echo

exit

exportarchive

exportrepository

filecleanup

getcomponenttype

geterror

getopmnport

getrepositoryid

getreturnstatus

getstate

help

importarchive

importrepository

isclusterable

iscompatible

joincluster

joinfarm

leavecluster

leavefarm

listapplications

listarchives

listclusters

listcomponents

listcomponenttypes

listinstances

listopmnlinks

quit

redeployapplication

removearchive

removecluster

removecomponent

removeopmnlink

repositoryrelocated

resetdcmcacheport

resetfiletransaction

resethostinformation

restart

restoreinstance

resyncinstance

saveinstance

set

setloglevel

shell

shutdown

start

stop

undeployapplication

updateconfig

validateearfile

whichcluster

whichfarm

whichinstance

Lets look at some arguments

Short Form Description

-a Application Name

-cl Cluster Name

-co Component Name

-ct Component Type

-i Instance Name i.e refers to the Applictaion server Instance

-d Debug, print stack trace

-l Location of log.xml

-o Print Oracle_home for the command

-t Max time to complete command (default 45 secs)

-v Verbose listing of status and error messages.

Examples

Create new OC4J Instance

$dcmctl createcomponent -ct OC4J -co TEST_OC4J

To Remove Component

$dcmctl removecomponent -co TEST_OC4J

To list application installed in an specific OC4J instance

$dcmctl listapplication -co APP_OC4J

Now we will deploy new application to a new OC4J instance i.e TEST_OC4J

$dcmctl deployapplication -file sample.ear -a sample -co TEST_OC4J

Again to view installed application in and OC4J instance

$dcmctl listapplication -co TEST_OC4J