📜  oracle 异步过程 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:23.379000             🧑  作者: Mango

代码示例1
-- To call a procedure asynchronously, create a auto_drop job:
BEGIN
    DBMS_SCHEDULER.create_job(
            job_name => 'My_JOB_NAME',
            job_type => 'PLSQL_BLOCK',
            job_action => 'BEGIN my_procedure(); END;',
            start_date => systimestamp,
            auto_drop => TRUE,
            enabled => TRUE
        );
END;