文章詳情頁
Oracle數(shù)據(jù)庫的JOB操作
瀏覽:74日期:2023-11-11 18:24:03
1、創(chuàng)建
begin
sys.dbms_job.submit(job => :job,
what => ‘proc_staticSub;’,
next_date => to_date(‘21-01-2010 06:10:11′, ‘dd-mm-yyyy hh24:mi:ss’),
interval => ’sysdate+24*60/1440′);
commit;
end;
‘proc_staticSub 存儲過程名
24*60/1440,表示間隔時(shí)間,其中1440=24*60分鐘
2、查詢
select job,next_date,next_sec,failures,broken from user_jobs;
3、停止
begin
sys.dbms_job.broken(job=> 21, broken => true);
commit;
end;
21為數(shù)據(jù)庫系統(tǒng)產(chǎn)生的job號
4、啟動
begin
sys.dbms_job.broken(job=> 21, broken => false);
commit;
end;
標(biāo)簽:
Oracle
數(shù)據(jù)庫
相關(guān)文章:
1. [Oracle]Data Guard數(shù)據(jù)庫災(zāi)難防護(hù)2. 使用VB調(diào)用Oracle程序包內(nèi)的存儲過程返回結(jié)果集3. 我的oracle筆記六(oracle優(yōu)化方面)4. Oracle容災(zāi)復(fù)制解決方案SharePlex5. 單機(jī)創(chuàng)建物理Oracle9istandby數(shù)據(jù)庫6. Oracle 9i的isqlplus你用過了嗎?7. Oracle Spatial時(shí)態(tài)空間數(shù)據(jù)庫設(shè)計(jì)8. 一些oracle的論壇和網(wǎng)站9. Oracle Spatial 簡介10. 官方消息:Oracle 10g OCP DBA的考試科目減少到兩門
排行榜
![[Oracle]Data Guard數(shù)據(jù)庫災(zāi)難防護(hù)](http://www.piao2010.com/attached/image/8.jpg)