Friday, May 13, 2011

Steps to remove a Domain for WL10 and onwards

As of now there is no such feature provided by either Oracle or BEA for Weblogic Config wizard or such other utility which can help you to clean remove or delete a domain. It is all manual  if you are looking for deleting a domain for WL10 and onwards.

Steps to remove a Domain for WL10 and onwards

Consider I am trying to delete a domain named base_domain. Just follow simple steps below to clean remove the domain.

Step 1. Edit domain-registry.xml under $WL_HOME to remove the corresponding entry referring to base_domain. For example delete this line<domain location="C:\oracle\Middleware\user_projects\domains\base_domain"/> from domain-registry.xml

domain-registry.xml

<?xml version="1.0" encoding="UTF-8"?>
<domain-registry xmlns="http://xmlns.oracle.com/weblogic/domain-registry">
  <domain location="C:\oracle\Middleware\user_projects\domains\base_domain"/>

</domain-registry>
 
Step 2. If you are NOT using NodeManager to stop and start the WebLogic instance then please IGNORE this step. Else edit nodemanager.domains file under $WL_HOME/wlserver_10.3/common/nodemanager directory to remove the corresponding entry referring to base_domain. For example delete this line base_domain=C\:\\Oracle\\Middleware\\user_projects\\domains\\base_domain from nodemanager.domains

nodemanager.domains

#Domains and directories created by Configuration Wizard
#Thu Apr 28 11:54:41 MDT 2011
base_domain=C\:\\Oracle\\Middleware\\user_projects\\domains\\base_domain


Step 3
. Delete the domain directory under domains folder manually.

$WL_HOME/user_projects/domains/base_domain

4 comments:

Unknown said...

That seems to be quite a clean method!!
But I'm curious to know the exact purpose of the domain_registry.xml.

Anonymous said...

Hello to all, since I am truly eager of reading this website's post to be updated regularly. It consists of fastidious material.

My homepage ... best registry cleaner

Anonymous said...

Basically Lego bricks and sets help kids to think inside and outside the
box. In 1947, together with his son Godtfred,
Kristiansen obtained samples of interlocking
plastic bricks produced by Kiddicraft. Then jot down the name of
your little kid on the smooth and flat side using a permanent marker.


Feel free to visit my web page - http://bing.am/link/166684

Unknown said...

where the domain_registery.xml file available.