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!

insufficient privileges using execute immediate in after logon trigger

wtlshiersJun 21 2012 — edited Jun 21 2012
I have an after logon trigger that executes a package/procedure in the schema it was created in.

One of the procedures runs the following:

EXECUTE IMMEDIATE 'AUDIT INSERT TABLE, UPDATE TABLE, DELETE TABLE, EXECUTE PROCEDURE BY ' || USER;

The procedure is throwing an insufficient privileges error when executing this.

However - the schema owner has audit any and audit system privileges and - the statement works fine independently.

When I login as another user this issue arises. The package/procedure are created with definers rights... So - i'm not sure why this is happenening.

Any help is appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2012
Added on Jun 21 2012
18 comments
2,322 views