简体   繁体   中英

How to just call Stored Procedure and exit in Oracle

I developing an RPA process using UiPath. I'm facing an issue where in process I need to execute 2 SP in Oracle which each can take hour's to complete. I tried with uipath inbuilt activity to execute SP then kill that activity but that kills the SP execution to, I wanted to know whether is there way in VBnet to just call the SP and not wait for it to complete?

Please for help

If we conside only Oracle, you can run procedure in background by using DBMS_JOB or newer DBMS_SCHEDULER.

Just submit a job for a single run like this:

DECLARE
    job_no NUMBER;
BEGIN
    DBMS_JOB.SUBMIT(job_no, ‘your_proc;’, SYSDATE);
    COMMIT;
END;
/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM