zoukankan      html  css  js  c++  java
  • Oracle DBMS_Jobs的创建

    begin
      timer_auto_add_newpartitions('STN_AREASKHOURSRC','AREABG');
    end;
    
    begin
      timer_auto_add_newpartitions('STN_FIVEMINUTE','AREABG');
    end;
    begin
      timer_auto_add_newpartitions('STN_ONESECONDDATA','AREABG');
      end;
    begin
      timer_auto_add_newpartitions('STN_STATEHOUR','AREABG');
      end;
    begin
      timer_auto_add_newpartitions('STN_STATIONQCHOUR','AREABG');
      end;
    begin
      timer_auto_add_newpartitions('STN_THIRTYSECONDDATA','AREABG');
      end;
    
    
    
    
    declare jobno pls_integer; 
    
    begin
      sys.dbms_job.submit(job => jobno,
                          what => 'timer_auto_add_newpartitions(''STN_AREASKHOURSRC'',''AREABG'');',
                          next_date => to_date('01-05-2021 00:00:00', 'dd-mm-yyyy hh24:mi:ss'),
                          interval => 'TRUNC(LAST_DAY(SYSDATE))+1+1/24');
      commit;
    end;
    
    
    
    
    declare jobno pls_integer; 
    begin
      sys.dbms_job.submit(job => jobno,
                          what => 'timer_auto_add_newpartitions(''STN_FIVEMINUTE'',''AREABG'');',
                          next_date => to_date('01-05-2021 00:00:00', 'dd-mm-yyyy hh24:mi:ss'),
                          interval => 'TRUNC(LAST_DAY(SYSDATE))+1+1/24');
      commit;
    end;
    
    declare jobno pls_integer; 
    begin
      sys.dbms_job.submit(job => jobno,
                          what => 'timer_auto_add_newpartitions(''STN_ONESECONDDATA'',''AREABG'');',
                          next_date => to_date('01-05-2021 00:00:00', 'dd-mm-yyyy hh24:mi:ss'),
                          interval => 'TRUNC(LAST_DAY(SYSDATE))+1+1/24');
      commit;
    end;
    
    declare jobno pls_integer; 
    begin
      sys.dbms_job.submit(job => jobno,
                          what => 'timer_auto_add_newpartitions(''STN_STATEHOUR'',''AREABG'');',
                          next_date => to_date('01-05-2021 00:00:00', 'dd-mm-yyyy hh24:mi:ss'),
                          interval => 'TRUNC(LAST_DAY(SYSDATE))+1+1/24');
      commit;
    end;
    
    
    declare jobno pls_integer; 
    begin
      sys.dbms_job.submit(job => jobno,
                          what => 'timer_auto_add_newpartitions(''STN_STATIONQCHOUR'',''AREABG'');',
                          next_date => to_date('01-05-2021 00:00:00', 'dd-mm-yyyy hh24:mi:ss'),
                          interval => 'TRUNC(LAST_DAY(SYSDATE))+1+1/24');
      commit;
    end;
    
    
    declare jobno pls_integer; 
    begin
      sys.dbms_job.submit(job => jobno,
                          what => 'timer_auto_add_newpartitions(''STN_THIRTYSECONDDATA'',''AREABG'');',
                          next_date => to_date('01-05-2021 00:00:00', 'dd-mm-yyyy hh24:mi:ss'),
                          interval => 'TRUNC(LAST_DAY(SYSDATE))+1+1/24');
      commit;
    end;
    vinson
  • 相关阅读:
    Android App Bundle 使用指南
    Homebrew国内源
    Mac下配置环境变量不生效问题
    CocosCreator1.x配置打包Android App Bundle
    Android读取Json文件的工具类
    Cocos Creator 坐标转换
    XCode真机调试不了,提示"Please reconnect the device"
    Canvas: trying to draw too large(134374464bytes) bitmap.
    Modbus主从关系几点记录
    当前时间加上几天
  • 原文地址:https://www.cnblogs.com/vinsonLu/p/14723074.html
Copyright © 2011-2022 走看看