Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Querying environment variables

Re: Querying environment variables

From: Steve Howard <stevedhoward_at_gmail.com>
Date: 4 Dec 2006 07:57:49 -0800
Message-ID: <1165247869.245611.234040@16g2000cwy.googlegroups.com>

Radoulov, Dimitre wrote:
> That's your client env, not the server env:

Perhaps, but this is the case only when the client is on the server (and even then, only when the client has specifically overridden the env var value in existence when the instance was started).

...client on windows, server on linux...

O:\>sqlplus howards_at_wcasbld

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 4 10:48:21 2006

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Enter password:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> var f varchar2(40)
SQL> set autop on
SQL> exec sys.dbms_system.get_env('ORACLE_HOME',:f) ;

PL/SQL procedure successfully completed.

F


/u01/app/oracle/product/10.2.0

SQL> $echo %ORACLE_HOME%
c:\oracle\product\10.2.0\db_1

SQL> Regards,

Steve Received on Mon Dec 04 2006 - 09:57:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US