Alter Session Set SQL_TRACE fails on a trigger
Hi All:
I have a trigger where I want to execute "alter session set sql_trace = true;" sentence through an Execute Immediate PL/SQL sentence.
The compilation works succesfully and if I logon and if the "when" condition becomes true, then a user trace file is created with the following error:
ksedmp: internal or fatal error
ORA-00604: error occurred at recursive SQL level 1
ORA-01031: insufficient privileges
ORA-06512: at line 6
The user that is logging on is the same owner of the trigger. This is a Oracle 8i DB.
I'll keep investigating the documentation but if anybody has an idea how to fix it will be welcome.
My goal is to trace the sql that executes an specific user.
Thanks in advance to all.
Leonardo Brule