Unix Technical Forum

Session table

This is a discussion on Session table within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I try on my Procedure the select the id of my session.... --------------- SELECT sid INTO var_DBsessionId FROM ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 09:29 AM
Alen Cappelletti
 
Posts: n/a
Default Session table

Hi,
I try on my Procedure the select the id of my session....

---------------
SELECT
sid
INTO
var_DBsessionId
FROM sys.V$SESSION
WHERE audsid = SYS_CONTEXT('userenv','sessionid');
---------------
but always have the same error..."table or view not exist".


If I try this simple select from my SQL software (I log-in in this as
the same user of the procedure) I have the rigth result.

I don't have undestand where is the problem.
My user have DBA permission and PROCEDURE EXECUTE.

I hope someone can hel me.
Alen

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 09:29 AM
Maxim Demenko
 
Posts: n/a
Default Re: Session table

Alen Cappelletti schrieb:
> Hi,
> I try on my Procedure the select the id of my session....
>
> ---------------
> SELECT
> sid
> INTO
> var_DBsessionId
> FROM sys.V$SESSION
> WHERE audsid = SYS_CONTEXT('userenv','sessionid');
> ---------------
> but always have the same error..."table or view not exist".
>
>
> If I try this simple select from my SQL software (I log-in in this as
> the same user of the procedure) I have the rigth result.
>
> I don't have undestand where is the problem.
> My user have DBA permission and PROCEDURE EXECUTE.
>
> I hope someone can hel me.
> Alen
>


This is FAQ. Try search this newsgroup before posting (in this
particular case on "plsql role grant") or look at
http://www.orafaq.com/faq/i_can_sele...ha t_is_wrong

Best regards

Maxim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 09:29 AM
Alen Cappelletti
 
Posts: n/a
Default Re: Session table

OK Thanks...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com