- 最后登录
- 2015-3-25
- 在线时间
- 14 小时
- 威望
- 0
- 金钱
- 94
- 注册时间
- 2013-12-30
- 阅读权限
- 10
- 帖子
- 31
- 精华
- 0
- 积分
- 0
- UID
- 1613
|
1#
发表于 2015-1-23 15:19:55
|
查看: 4554 |
回复: 5
oracle 10.2.0.5 on centos 5.9
有一存储过程,用job定时执行,但是job一调用就会报权限不足的错,可是我手动执行procedure就会成功,存储过程大概如下,执行create table ipxx.....就会报错
create or replace procedure proc_save_quality Authid Current_User is
begin
execute immediate('truncate table static_ip_quality');
execute immediate('drop table ipxx');
execute immediate('CREATE TABLE ipxx as select id, ip, count(*) as ct from t_ip group by id, ip');
........
end proc_save_quality;
执行的用户有以下权限
CREATE TABLE
CREATE TYPE
CREATE JOB
CREATE SYNONYM
CREATE SESSION
CREATE VIEW
CREATE PROCEDURE
DEBUG ANY PROCEDURE
CREATE SEQUENCE
CREATE MATERIALIZED VIEW
CREATE DATABASE LINK
SELECT ANY DICTIONARY
DEBUG CONNECT SESSION
CREATE TRIGGER
|
|