A Weblogic installation can have multiple domains, working between multiple service I regularly find myself where I have to know the number of domains in a single server.
The solution of this problem is quite easy actually, all the weblogic installation/binaries have a unique file called “domain-registry.xml” which is located under the <ORACLE_HOME>. This file contains the location path of all the domains created under that specific Weblogic server.
Easy way to find
% find / -iname domain-registry.xml 2>/dev/null
Open or view the file you will get your domain name and path.
Here is a demo of a domain-registry.xml file I am currently working on, this Weblogic server has 36 domains registered under it.
% cat /weblogic/oracle/domain-registry.xml <?xml version="1.0" encoding="UTF-8"?> <domain-registry xmlns="//xmlns.oracle.com/weblogic/domain-registry"> <domain location="/weblogic/oracle/domains/YBSDev12cDomain"/> <domain location="/weblogic/oracle/domains/YU2LC"/> <domain location="/weblogic/oracle/domains/CU2LC"/> <domain location="/weblogic/oracle/domains/AU2LC"/> <domain location="/weblogic/oracle/domains/SMSTST02"/> <domain location="/weblogic/oracle/domains/SMSSIT"/> <domain location="/weblogic/oracle/domains/Utilities"/> <domain location="/weblogic/oracle/domains/AABLC"/> <domain location="/weblogic/oracle/domains/CABLC"/> <domain location="/weblogic/oracle/domains/YABLC"/> <domain location="/weblogic/oracle/domains/AAVLC"/> <domain location="/weblogic/oracle/domains/CAVLC"/> <domain location="/weblogic/oracle/domains/YAVLC"/> <domain location="/weblogic/oracle/domains/ACLLC"/> <domain location="/weblogic/oracle/domains/CCLLC"/> <domain location="/weblogic/oracle/domains/YCLLC"/> <domain location="/weblogic/oracle/domains/AU3LC"/> <domain location="/weblogic/oracle/domains/CU3LC"/> <domain location="/weblogic/oracle/domains/YU3LC"/> <domain location="/weblogic/oracle/domains/ARFLC"/> <domain location="/weblogic/oracle/domains/CRFLC"/> <domain location="/weblogic/oracle/domains/YRFLC"/> <domain location="/weblogic/oracle/domains/AAALC"/> <domain location="/weblogic/oracle/domains/ASRLC"/> <domain location="/weblogic/oracle/domains/CSRLC"/> <domain location="/weblogic/oracle/domains/YSRLC"/> <domain location="/weblogic/oracle/domains/CAALC"/> <domain location="/weblogic/oracle/domains/YAALC"/> <domain location="/weblogic/oracle/domains/AU1LC"/> <domain location="/weblogic/oracle/domains/CU1LC"/> <domain location="/weblogic/oracle/domains/YU1LC"/> <domain location="/weblogic/oracle/domains/YU4LC"/> <domain location="/weblogic/oracle/domains/AAJLC"/> <domain location="/weblogic/oracle/domains/CAJLC"/> <domain location="/weblogic/oracle/domains/YAJLC"/> <domain location="/weblogic/oracle/domains/YU3LC2"/> </domain-registry>
I hope this helps!
