Skip to Main Content

Oracle Database Discussions

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','CURRENT_SQL')

440902Dec 19 2006 — edited Dec 20 2006
I am trying to select above function from dual to capture the user issued sql text but it always returns blank/spaces.

I basically have a DDL trigger that captures other info in sys_context and they come out OK.

Is there some specific way I should use this or different way to capture the user issed sql statements?

Thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2007
Added on Dec 19 2006
6 comments
652 views