Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Why my sys_context('USERENV','CURRENT_SQL') is null?
I am studying the use of sys_context.(Oracle 9206)
I created a function
result :=sys_context('USERENV','CURRENT_SQL'); return result;
According to the ducument, sys_context('USERENV','CURRENT_SQL') "Returns the first 4K bytes of the current SQL that triggered the fine-grained auditing event.", but in my case, sys_context('USERENV','CURRENT_SQL') always returns null. I am expecting it returns "select test_function(ssn) from test".
Why is that? Can somebody help?
Thanks very much for your help. Received on Wed Nov 09 2005 - 21:21:18 CST
![]() |
![]() |