Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to find out concrete ORACLE_HOME via SQL?
Mladen Gogala wrote:
> On Mon, 14 Aug 2006 00:18:54 +0000, Bob Jones wrote:
>
>> Actually it is quite common for the spfile to be placed outside of >> $ORACLE_HOME directory, such as /u01/admin.
I don't think this is about different people having different ideas of their job. It is just a fact of life that there are a lot of installs where internal rules, or bad DBAs, or outside vendors, move stuff all over the place.
If someone wants to find the home directories I posted the answer. For those that didn't see it the method is documented in Morgan's Library (www.psoug.org) under Environment Variables. The first heading, Product Homes has the solution and it can not be fooled by someone using a non-standard install.
It should be noted that if the server contains multiple Oracle home directories ... this catches them all: Though I don't know how.
SQL> set linesize 131 SQL> set pagesize 20 SQL> col host_name format a30 SQL> col home_name format a20 SQL> col home_location format a50 SQL> SELECT *
2 FROM sysman.mgmt$software_homes;
HOST_NAME HOME_NAME HOME_TYPE HOME_LOCATION
-------------- -------------------- ----------- ------------------------- 192.168.1.100 OraDb10g_home1 ORACLE_HOME C:\oracle\product\ora102 192.168.1.100 OraComp ORACLE_HOME C:\oracle\product\oraHTTP 192.168.1.100 XMLPubHome ORACLE_HOME C:\oracle\product\xmlpub 192.168.1.100 Independent Products INDEPENDENT N/A 192.168.1.100 OraDev ORACLE_HOME c:\oracle\product\oradev
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Mon Aug 14 2006 - 10:47:16 CDT
![]() |
![]() |