zoukankan      html  css  js  c++  java
  • oracle定时调用存储过程

    http://zhidao.baidu.com/link?url=wY9qYTQHX7YksWmE9LtF4UIOkJgCDi8mXS7XkWi9u0GcD9dh0Evr7OHVzSsPDZAH6F258S4b3KAdkKvKLoPVOq

    http://blog.csdn.net/thinkscape/article/details/7411012

    :+++++++++++++++++++++++++++++

    步骤:

    -- Create table
    create table JOB_TABLE
    (
    run_time DATE
    )
    tablespace DEMO
    pctfree 10
    initrans 1
    maxtrans 255
    storage
    (
    initial 64K
    next 1M
    minextents 1
    maxextents unlimited
    );

    ++++++++++++++++++++++++++

    create or replace procedure job_proc is
    begin
    insert into job_table (run_time) values (sysdate);
    end;

    +++++++++++++++++++++++++

    declare 
    job number; --'TRUNC(SYSDATE+1)+(11*60+47)/(24*60)'
    begin 
    --dbms_job.submit(job, 'job_proc;', sysdate, 'TRUNC(SYSDATE+1)+(11*60+51)/(24*60)');
    dbms_job.submit(job, 'job_proc;', sysdate, 'TRUNC(sysdate,''mi'') + 1 / (24*60)'); 
    end;
    /
    commit

    select job,broken,what,interval,t.* from user_jobs t;

    +++++++++++++++++++++++++++

  • 相关阅读:
    Scala--基础
    maven
    Storm 运行例子
    Storm 安装部署
    Storm
    Kafka 集群部署
    Redis Twemproxy
    Redis Sentinel
    获取URL中参数的值
    浏览器滚动条样式
  • 原文地址:https://www.cnblogs.com/zshboke-2015/p/5018916.html
Copyright © 2011-2022 走看看