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 -> Problem with the v$session view.

Problem with the v$session view.

From: Ric Butler <ricbutler_at_worldnet.att.net>
Date: 1997/12/11
Message-ID: <66q94v$508@bgtnsc02.worldnet.att.net>#1/1

Why is it that from SQL*Plus I can successfully do:

SELECT username,osuser,program,machine
FROM v$session
WHERE audsid = USERENV('SESSIONID')

But if I do a similar select into PL/SQL variables in a stored procedure (while
logged on as the same Oracle user) I get the following compile error:

PLS-00201: identifier 'SYS.V_$SESSION' must be declared

I'm guessing that it's some permission problem but I haven't been able to figure it out. Any ideas ?

Thanks

Ric Received on Thu Dec 11 1997 - 00:00:00 CST

Original text of this message

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