While working with Weblogic, there are times
where I need to create Weblogic domains for applications. I used to delete some
too.
Here is a way of deleting a Weblogic domain.
1. Make sure that all services / Servers
from that domain are stopped
2. Take Back up of the below files before
performing any operations.
3. Delete the entries regarding the
domain in the domain-registry.xml file.We are trying to delete a domain named, “myDomain”
.The File is available at /soa/wls10/Middleware/domain- registry.xml
The Contents of the file will be ,
<?xml version="1.0" encoding="UTF-8"?>
<domain-registry xmlns="http://xmlns.oracle. com/weblogic/domain-registry">
<domain location="/soa/wls10/ Middleware/wlserver_10.3/ samples/domains/wl_server"/>
<domain location="/soa/wls10/ Middleware/wlserver_10.3/ samples/domains/medrec"/>
<domain location="/soa/wls10/ Middleware/wlserver_10.3/ samples/domains/medrec-spring" />
<domain location="/soa/wls10/ Middleware/user_projects/ domains/myDomain"/>
</domain-registry>
Delete the line ,
The Contents of the file will be ,
<?xml version="1.0" encoding="UTF-8"?>
<domain-registry xmlns="http://xmlns.oracle.
<domain location="/soa/wls10/
<domain location="/soa/wls10/
<domain location="/soa/wls10/
<domain location="/soa/wls10/
</domain-registry>
Delete the line ,
<domain
location="/soa/wls10/ Middleware/user_projects/ domains/myDomain"/>
Next we need
to delete the information regarding this domain in the node manager files.The
location of the file is
/soa/wls10/Middleware/ wlserver_10.3/common/ nodemanager
Delete any
information regarding the myDomain in this file , The contents of the file will
be
#Domains and directories created by Configuration Wizard
#Thu Jul 05 13:55:46 IST 2012
wl_server=/soa/wls10/
medrec-spring=/soa/wls10/
myDomain=/soa/wls10/
medrec=/soa/wls10/Middleware/
The nodemanager.domains file specifies the domains that a Node Manager instance controls, and should contain an entry specifying the domain directory for each domain the Node Manager instance controls, in this form:
Domain-name=domain-directory
4. Delete the domain directory from /soa/wls10/Middleware/user_
Happy learning J