咖啡仔

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
我在存储过程动态执行创建表的方法时
begin
execute immediate 'create table temp_a as select * from b';
end;
 
编译时出现
ora-01031:权限不足

解决方法:
create or replace procedure sp_java_temp
authid current_user
as
……

 

 

增加authid current_user 赋以当前使用用户的权限。
posted on 2011-12-15 11:32  咖啡仔  阅读(440)  评论(0编辑  收藏  举报