Monday, February 15, 2016

Remove Domain from Weblogic Server


As of now there is no out of the box feature with Weblogic Configuration wizard to remove or delete a domain.

These are basically manual steps.
For example if I want to delete a domain named geo_domain below are the steps you need to remove the domain.

1. Open domain-registry.xml under $Middleware_HOME .Remove the corresponding entry referring to geo_domain.
CodeSnippet :: 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\soa_domain"/>
<domain location="C:\Oracle\Middleware\user_projects\domains\geo_domain"/>
</domain-registry>

2. Open nodemanager.domains file under $Middleware_HOME \wlserver_10.3\common\nodemanager\ folder. Remove the corresponding entry referring to geo_domain.
CodeSnippet :: nodemanager.domains
#Domains and directories created by Configuration Wizard
geo_domain=C\:\\Oracle\\Middleware\\user_projects\\domains\\geo_domain

3. Delete the domain folder under domains folder manually.
        $Middleware_HOME\user_projects\domains\geo_domain

4. Delete the domain folder under applications folder manually.
        $Middleware_HOME\user_projects\ applications\geo_domain

No comments:

AWS EC2 - SSH locked with UFW

Need to update the instance's user data: 1. Stop the instance 2. Right click (windows) or ctrl + click (Mac) on the instance to open a c...