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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Environment Variables inside Oracle Procedures?

Re: Environment Variables inside Oracle Procedures?

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 07 Sep 2007 09:42:15 -0700
Message-ID: <1189183327.944872@bubbleator.drizzle.com>


fitzjarrell_at_cox.net wrote:
> On Sep 5, 8:24 pm, Brian Peasland <d..._at_nospam.peasland.net> wrote:

>> Why not query from V$INSTANCE? That will tell you the SID and the
>> hostname. From that, you should be able to deduce whether you are on
>> prod or dev.
>>

>
> One would hope. :)
>
>
> David Fitzjarrell

Just as a point-of-view ... giving access to v$instance might be a security issue. Giving access to SYS_CONTEXT might be more acceptable.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Sep 07 2007 - 11:42:15 CDT

Original text of this message

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