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?
Bob Jones wrote:
> "Mladen Gogala" <gogala_at_sbcglobal.net> wrote in message > news:pan.2006.08.13.23.29.04.865393_at_sbcglobal.net...
> > Actually it is quite common for the spfile to be placed outside of > $ORACLE_HOME directory, such as /u01/admin.
That is my experience as well. I think what you want is:
SELECT name, value
FROM gv$parameter
WHERE name = 'spfile';
But that won't give you the value for $ORACLE_HOME.
The way you get Oracle home is as follows:
set linesize 131
set pagesize 20
col host_name format a30 col home_name format a20 col home_location format a50
SELECT *
FROM sysman.mgmt$software_homes;
-- 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 Sun Aug 13 2006 - 21:51:52 CDT