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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Alter Session Set SQL_TRACE fails on a trigger

LeoBruleNov 9 2006 — edited Nov 9 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2006
Added on Nov 9 2006
2 comments
340 views