The dcmctl tool of Fusion Middleware can be used to change the configuration of the components of Fusion Middleware and to deploy / undeploy a Java Web application.
For changing the configuration of components, dcmctl can modify XML configuration files or configuration data located in the metadata.
Here are the tasks that you can accomplish using the tool :
List managed components
dcmctl listComponents
Refresh configuration from the repository
dcmctl resyncInstance -i <instance name>
ex.: dcmctl resyncInstance -i oracleas
Update repository information from local configuration
dcmctl updateConfig -ct <component type>
ex.: dcmctl updateConfig -ct oc4j
Create a new OC4J instance
dcmctl createComponent -ct oc4j -co <component name>
ex.: dcmctl createComponent -ct oc4j -co FONC
Deploy a J2EE application
dcmctl deployApplication -f <EAR or WAR file> -a <application name> -co <component name>
ex.: dcmctl deployApplication -f webApplication.ear -a webApplication -co FONC
Undeploy a J2EE application
dcmctl undeployApplication -a <application name> -co <component name>
ex.: dcmctl undeployApplication -a webApplication -co FONC
If you don't specify the -co option, the default OC4J instance will be used.
Launch taks in batch mode
dcmctl shell -f <filename&t;
ex.: dcmctl shell -f deployWebAppTasks.txt