DBA Tips Archive for Oracle


Undeploying Applications

by Jeff Hunter, Sr. Database Administrator


You can remove a J2EE Web application from the OC4J Web server using either the -undeploy option with the admin.jar command line tool or by manually deleting the appropriate directories.

Undeploying Application Using admin.jar -undeploy

  % java -jar admin.jar ormi://<oc4j_host>:<oc4j_ormi_port>
    admin <adminpassword>
    -undeploy <applicationName> -keepFiles
  % cd $OC4J_HOME/j2ee/home
  % java -jar admin.jar ormi://localhost admin manager -undeploy chapter5 

This command removes the deployed J2EE application known as <applicationName> and results in the following:

Undeploying Application by Manually Deleting Directories

If you want a clean deployment of an application deployed to OC4J, you can perform the following tasks. In this example, I will delete an application title chapter5. The EAR file was deployed to $OC4J_HOME/j2ee/home/applications/chapter05.

Copyright (c) 1998-2018 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at jhunter@idevelopment.info.

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Friday, 01-Nov-2002 00:00:00 EST
Page Count: 8651