BlogJava

研究、学习Java的地方

  DonewsBlog  |  Donews首页  |  Donews社区  |  Donews邮箱  |  我的首页  |  联系作者  |  聚合   |  登录
  161篇文章 :: 3篇收藏:: 87篇评论:: 0个Trackbacks

公告



Locations of visitors to this page

文章

收藏

相册

Java

软件工程

数据库

新闻

存档


正在读取评论……


每天临晨执行的任务:
 declare 
         jobnum     integer; 
         begin 
         dbms_job.submit( 
         job=>jobnum, 
         what=>'gentTmpdate2;', 
         next_date=>trunc(sysdate)+23.9/24, 
         interval=>'trunc(sysdate+1)+23.9/24' 
        ); 
       commit; 
       end; 
每月最后一天临晨执行的任务:
declare 
         jobnum     integer; 
         begin 
         dbms_job.submit( 
         job=>jobnum, 
         what=>'sp_invoice_zz;', 
         next_date=>trunc(last_day(sysdate))+23.9/24, 
         interval=>'trunc(last_day(add_months(sysdate,1)))+23.9/24' 
        ); 
       commit; 
       end; 
       /  

Trackback: http://tb.donews.net/TrackBack.aspx?PostId=1095365


[点击此处收藏本文]  发表于2006年12月13日 9:10 AM




正在读取评论……

发表评论

大名:
网址:
验证码
评论