• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Remove or delete a Weblogic Server (WLS) Domain

by admin

Question: What are the steps that need to be performed to delete or remove a WebLogic Server (WLS) domain?

Step 1

To delete a WLS domain, the only requirement is to remove the domain directory DOMAIN_HOME. DOMAIN_HOME by default would be at ORACLE_HOME/user_projects/domains/DOMAIN_NAME (where ORACLE_HOME is the WLS installation directory and DOMAIN_NAME is the name of the domain).

NOTE: 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 to delete a domain, uninstall packages are not needed. All the information related to the domain will be maintained within the domain itself. So when the domain root folder is removed, all the details of the domain are completely cleaned up.

If Node Manager, the admin server, or one or more managed servers is running as a Windows service, remove the Windows service before removing the domain. The scripts to do this are at WL_HOME\server\bin\uninstallNodeMgrSvc.cmd and WL_HOME\server\bin\uninstallSvc.cmd (where WL_HOME is the wlserver_xx directory under ORACLE_HOME). To remove the per-domain Node Manager service in 12c, run the script at DOMAIN_HOME\bin\uninstallNodeMgrSvc.cmd instead.

Step 2

In an Oracle Fusion Middleware (FMw) installation, remove the entry for the domain from the domain-registry.xml file at ORACLE_HOME. It is not required to change the Metadata Service (MDS).

NOTE: Always back up files like domain-registry.xml before manually changing them.

Step 3

If a per-installation Node Manager is used, then edit the “nodemanager.domains” file under WL_HOME/common/nodemanager to remove domain information from that file.

NOTE:
– This does not apply to a per-domain Node Manager (the default in 12c and higher).
– 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.
– Take a backup of the “nodemanager.domains” file before editing it.
– When creating a domain through the Configuration Wizard, the domain name should be automatically added to the nodemanager.domains file. If in any scenario the domain name needs to be added manually, add the line “domain-name=domain-directory” to the same (nodemanager.domains) file.

Filed Under: CentOS/RHEL, oracle, WebLogic

Some more articles you might also be interested in …

  1. How To Shrink A Temporary Tablespace in Oracle Database
  2. Monitor HDD and SSD with smartd and smartctl
  3. How to check the status of OMS and Agent in OEM 13cR2
  4. Dynamic Oracle Net Server Tracing
  5. How do stubs work in a WebLogic Server cluster?
  6. How to Log dropped packets using firewalld in CentOS/RHEL 7
  7. Oracle RMAN Pluggable Database Point in Time Recovery
  8. How to Check if any of the RPM files were tampered with
  9. How to block a specific IP Connecting to a server with firewall-cmd
  10. Script to monitor RMAN Backup and Restore Operations

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright