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!

Truncate table from stored procedure

tech_usrMay 4 2006 — edited May 4 2006
If user A tries to truncate a table owned by user B, oracle throws the error "ORA-01031: insufficient privileges". this truncate happens inside a stored procedure and the stored proc is owned by user A.

but note that, user A can successfully truncate the table using an explicit truncate command outside stored procedure.

does anyone know why am i getting this error message when i try to truncate inside the stored procedure.

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2006
Added on May 4 2006
2 comments
432 views