Oracle JOB 建立例項
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'APPS.TEST_WQ;'
,next_date => to_date('10/08/2012 11:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'null'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'declare errbuf varchar2(4000); retcode varchar2(4000); begin WF_BES_CLEANUP.CLEANUP_SUBSCRIBERS(errbuf, retcode); end;'
,next_date => to_date('10/08/2012 11:58:22','dd/mm/yyyy hh24:mi:ss')
,interval => 'sysdate + 4/24'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'declare errbuf varchar2(4000); retcode varchar2(4000); begin WF_BES_CLEANUP.CLEANUP_SUBSCRIBERS(errbuf, retcode); end;'
,next_date => to_date('10/08/2012 11:58:22','dd/mm/yyyy hh24:mi:ss')
,interval => 'sysdate + 4/24'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'FND_SVC_COMPONENT.EXECUTE_REQUEST (p_component_request_id => 10000);'
,next_date => to_date('01/01/4000 00:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'SYSDATE + (1440/(24*60))'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
SYS.DBMS_JOB.BROKEN
(job => X,
broken => TRUE);
COMMIT;
END;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-740612/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 手動建立Oracle例項Oracle
- oracle建立job並執行jobOracle
- ORACLE查詢JOB資訊及JOB建立Oracle
- oracle 11g 建立 jobOracle
- oracle手動建立另外一個例項Oracle
- Oracle10G手動建立例項Oracle
- Spark Job-Stage-Task例項理解Spark
- oracle job的建立和刪除Oracle
- Oracle透過job定時建立表Oracle
- 通過oracle dbms_job建立tableOracle
- Jersey—建立restfulwebservice—例項RESTWeb
- oracle 修改ORACLE例項Oracle
- plsql建立jobSQL
- 【RAC】rac中如何指定job的執行例項
- 2 Day DBA-管理Oracle例項-Oracle例項和例項管理概覽Oracle
- java反射方式建立例項Java反射
- js建立字典物件例項JS物件
- ASM之建立ASM例項ASM
- 【JOB】Oracle中JOB的建立方法以及一個細節的探究Oracle
- 管理ORACLE例項Oracle
- oracle建立定時任務之dbms_jobOracle
- oracle資料庫建立資料庫例項-九五小龐Oracle資料庫
- 2.4.6 Step 5: (Windows)建立例項Windows
- Laravel 2.2 建立 Application 例項LaravelAPP
- OpenStack建立Win10例項Win10
- C#利用反射建立例項C#反射
- Oracle 10g R2建立ASM例項Step By Step(一)Oracle 10gASM
- Oracle 10g R2建立ASM例項Step By Step(四)Oracle 10gASM
- Oracle 11.2.4.0 ADG 單例項安裝(COPY建立備庫)Oracle單例
- ORACLE dbms_scheduler.create_job建立job作業遭遇PLS-00306Oracle
- Oracle:建立JOB定時執行儲存過程Oracle儲存過程
- 4.1. Oracle例項Oracle
- Oracle Far Sync例項Oracle
- Oracle例項恢復Oracle
- oracle更改例項名Oracle
- 批量刪除dbms_job建立的job
- oracle jobOracle
- Oracle Job 定時執行設定例項[final]Oracle