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!

Dynamic SQL and GRANT CREATE ANY TABLE

573141Aug 18 2009 — edited Aug 18 2009
hi gurus,

i have a dynamic SQL in a procedure where a table will be created from an existing table without data.

strSQL:='create table ' || strTemp || ' as select * from ' || strArc || ' where 1=2';
execute immediate strSQL;


without GRANT CREATE ANY TABLE for the user, *"ORA-01031: insufficient privileges"* error during execution.

Is there a way to tackle this issue without providing GRANT CREATE ANY TABLE privilige?


many thanks,
Charles
This post has been answered by JustinCave on Aug 18 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2009
Added on Aug 18 2009
11 comments
3,150 views