How to Delete a Weblogic Server (WLS) Domain

If you want to delete a WLS domain , all you need to do is remove the domain directory FMW_HOME/user_projects/domains/<domainDirectory> or <DomainDirectory>.

There is no special tool or script required to delete a domain. A domain is nothing but a configuration in WebLogic Server, not an installation. So for deleting a domain, uninstall packages are not needed. All the information related to the domain will be maintained within the domain itself. So when you remove the domain root folder, all the details of the domain are completely cleaned up. You can simply comment it.

Also you need edit the “” file under WL_HOME/common/nodemanager to remove domain information from that file .

The 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:


Take backup of the “” file before editing it
Delete the entry within domain-registry.xml file that reside under FMW_HOME.

Take backup of the xml file before editing it.

OCFS2 1.2 – FAQ

Any special flags to run Oracle RAC?

OCFS2 volumes containing the Voting diskfile (CRS), Cluster registry (OCR), Data files, Redo logs, Archive logs and Control files must be mounted with the datavolume and nointr mount options. The datavolume option ensures that the Oracle processes opens these files with the o_direct flag. The nointr option ensures that the ios are not interrupted by signals.

    	# mount -o datavolume,nointr -t ocfs2 /dev/sda1 /u01/db

For more FAQ, peep into

Weblogic Fails To Start With Error “Unable to obtain lock”

<23-Jul-2009 12:57:00 o’clock BST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

There are 1 nested errors: Unable to obtain lock on /opt/bea/user_projects/domains/ORACLE_COMMUNICATIONS/servers/AdminServer/tmp/AdminServer.lok. Server may already be running
        at weblogic.t3.srvr.ServerServicesManager.startService(
        at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(

To start the server again:

  • find -name “*.DAT” files in user_projects/domains/base_domains directory (in our case!) and move or remove them
  • remove “EmbeddedLDAP.lok” and “AdminServer.lok” (maybe some more)
  • netstat -lntp to find out which process listen to your serverport, kill this via kill -TERM
  • Start the weblogic server using the command : nohup ./ > /tmp/startWebLogic.txt &