oracle job为何不能执行?

[复制链接]
查看11 | 回复4 | 2009-10-9 08:28:00 | 显示全部楼层 |阅读模式
job用run可以成功执行,但是设置为每分钟执行一次却不成功。oracle为9i。我看了网上关于job不执行的文章,那个什么计时器溢出的解释我不太懂。我这个是不是那样的原因我也不清楚。
回复

使用道具 举报

千问 | 2009-10-9 08:28:00 | 显示全部楼层
Jnnn processes execute jobs. To execute a job, the process creates a session to run the job. When a Jnnn process runs a job, the job is run in the same environment in which it was submitted and with the owner's default privileges. The owner must be explicitly granted the necessary object privileges for all objects referenced within the job definition.
When you force a job to run using the procedure DBMS_JOB.RUN, the job is run by your user process and with your default privileges only. You must be explicitly granted the necessary object privileges for all objects referenced within the job definition.
很有可能是权限问题
job并没有继承dba之类权限
Privileges granted to you through roles are unavailable
回复

使用道具 举报

千问 | 2009-10-9 08:28:00 | 显示全部楼层
查看alert.log文件,就可以看到错误具体在哪里。
回复

使用道具 举报

千问 | 2009-10-9 08:28:00 | 显示全部楼层
job_queue_ processes设成>0了么?
回复

使用道具 举报

千问 | 2009-10-9 08:28:00 | 显示全部楼层
每分钟一次? 要这么密吗? 你的JOB 每次运行得花多少时间?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行