Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SYS_CONTEXT/ userenv('client_info')

511922Sep 28 2006 — edited Sep 28 2006
hi,

i saw on asktom.oracle.com an example in which a procedure was compiled and run successfuilly.. then Tom ran the following query to get no. of total calls by the procedure:

select userenv('client_info') from dual;

when i ran a procedure whcih outputs refcursor and ran the above query to get calls made by my proc.. it does not return any rows.. what I am missing?

I have oracle 9iR2...

Also, userenv('client_info') is deprecated in favour of SYS_CONTEXT..? can u give me example to achieve the same thing i tried above using SYS_CONTEXT?

thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2006
Added on Sep 28 2006
5 comments
1,144 views