tnfh.net
当前位置:首页 >> orAClE DBms joB >>

orAClE DBms joB

请参考: DECLARE X NUMBER; BEGIN SYS.DBMS_JOB.SUBMIT ( job => X ,what => 'PRC_KPI_FLTKPIMONITOR;' ,next_date => to_date('24-06-2009 12:00:00','dd/mm/yyyy hh24:mi:ss') ,interval => 'TRUNC(sysdate,''mi'') + 1/48' ,no_parse => FAL...

declare job1 number(4); begin sys.dbms_job.submit(job => job1, what => 'declare s1 varchar2(200); s2 varchar2(200); begin if to_number(to_char(sysdate,''hh24'') between 8 and 22) then p_test.usp_test_jobincs(s1,s2); end if; end...

begin sys.dbms_job.submit(job => :job, what => 'myProc;myProcs;myProcss(''测试'');',//用分号将多个存储过程分开,有参数的话直接写就可以了 next_date => to_date('07-04-2011 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), interval => 'sysdate...

dbms_job.submit(test_job_really,'test_jobproce("zhangsan");',sysdate,'sysdate+1/1440'); 改为: dbms_job.submit(test_job_really,'test_jobproce(''zhangsan'');',sysdate,'sysdate+1/1440'); 注意:zhangsan的两边,不是双引号,是两个单...

把submit变成isubmit,其他都一样,这样如果301被占用,仍然是要报错的,但是如果没有被占用,那么就建立了一个301编号的job,如下: Begin sys.dbms_job.isubmit(job => 301, what => 'RPT_Del_Revise;', next_date => to_date('2010-06-01', '...

先查看你job的jobid select * from dba_jobs ; 然后根据jobid来启动job exec dbms_job.run(job => &JOBID) ;

jobs是oracle数据库的对象, dbms_jobs只是jobs对象的一个实例, 就像对于tables, emp和dept都是表的实例 创建物化视图的时候,如果有next参数,系统也会自动创建相应的job PL/SQL DEVELOPER中dbms_jobs中的JOB可以通过dbms_jobs.submit创建,...

1. 首先确定要停止的JOB号 SQL>select sid from dba_jobs_running; 2.查找到正在运行的JOB的spid: SQL>select a.spid from v$process a ,v$session b where a.addr=b.paddr and b.sid in (select sid from dba_jobs_running); 3. Broken确认的JO...

正确的job创建代码如下 declare JOB2 number; BEGIN SYS.DBMS_JOB.SUBMIT(JOB2, 'pro_hos;', to_date('26-09-2015 01:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'trunc(last_day(SYSDATE))+26+1/24'); COMMIT; END; / 具体的PROCEDURE的名字请自行修...

找出正在执行的JOB编号及其会话编号 SELECT SID,JOB FROM DBA_JOBS_RUNNING; 停止该JOB的执行 SELECT SID,SERIAL# FROM V$SESSION WHERE SID='&SID'; ALTER SYSTEM KILL SESSION '&SID,&SERIAL'; EXEC DBMS_JOB.BROKEN(&JOB,TRUE);实例分析:1,...

网站首页 | 网站地图
All rights reserved Powered by www.tnfh.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com