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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SYS_CONTEXT ('USERENV', 'HOST') in a dbms_job

Re: SYS_CONTEXT ('USERENV', 'HOST') in a dbms_job

From: Edgar Chupit <chupit_at_gmail.com>
Date: Fri, 26 Nov 2004 14:35:37 +0200
Message-ID: <a8f0771c04112604351278e4e8@mail.gmail.com>


That's because job is executed in the background process on the server and this field is not populated for background processes. This is the same value as MACHINE in the v$session view. That's because background processes doe not connect to DB via LISTENER, but are directly attached to SGA.

On Fri, 26 Nov 2004 10:24:55 -0000, Hitchman, Peter <peter.hitchman_at_thomson.com> wrote:
> Hi,
> I have some code which calls SYS_CONTEXT ('USERENV', 'HOST'), that works
> fine when it runs in a procedure and the procedure is invoked via sqlplus.
> But when the same procedure is called via a database job it appears to be
> returning nothing. Does anyone know about this?
>
> Thanks
>
> Pete
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
> --
> http://www.freelists.org/webpage/oracle-l
>

-- 
  Edgar
--
http://www.freelists.org/webpage/oracle-l
Received on Fri Nov 26 2004 - 06:31:14 CST

Original text of this message

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