Table storing Oracle Home [message #334396] |
Wed, 16 July 2008 06:36  |
mruravner
Messages: 5 Registered: July 2008
|
Junior Member |
|
|
Hi All,
We normally have Oracle_home in /etc/oratab file.
In which table we can get value of ORACLE_HOME if we don't want to use /etc/oratab?
Mrunal
|
|
|
|
|
|
|
|
|
Re: Table storing Oracle Home [message #334587 is a reply to message #334396] |
Thu, 17 July 2008 04:24   |
mruravner
Messages: 5 Registered: July 2008
|
Junior Member |
|
|
Thanks all for your help
I have found a command which gives the oracle home value
select NVL(substr(file_spec, 1, instr(file_spec, '\', -1, 2) -1) , substr(file_spec, 1, instr(file_spec, '/', -1, 2) -1)) folder from dba_libraries where library_name = 'DBMS_SUMADV_LIB';
This works on all the Oracle versions
|
|
|
|
|
|