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!

Unable to create a table through stored procedure

480997Jan 25 2006 — edited Jan 25 2006
Hi,

I am able to create a table through anonymous PlSQL block or through command line, but when I try to do the same with a stored procedure with dynamic SQL it says "insufficient Priv".
When I enable AuthID Current_User in my Procedure Or I provide the grant "Create Table" explicitly to the User, I am able to create the Table through same procedure.

Can someone tell me Why Its happening, When the same user is able to create the table from SQL prompt and Anonymous Block but can't perform thew same from Stored Procedure? Where the roles are conflicting or where the Invoke/Definer Rights are violating?

Thanks in Advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2006
Added on Jan 25 2006
4 comments
198 views