I have package as given below:
CREATE OR REPLACE PACKAGE OT.PK_TEST IS
PROCEDURE A;
Procedure B;
Procedure C;
Procedure D;
END PK_TEST;
Body...
CREATE OR REPLACE PACKAGE BODY oT.PK_TEST IS
PROCEDURE A
IS
BEGIN
--creating all required tables
B;
c;
D;
END A;
Procedure B
IS
BEGIN
...codes
END;
Procedure C
IS
BEGIN
...codes
END;
Procedure D
IS
BEGIN
...codes
END;
END PK_TEST;
I execute Procedure A and procedure B,C,D get call from procedure.
EXEC OT.PK_TEST.A;
What happens is that A is the first procedure executed in package. All the required tables are made inside procedure A. After this, procedures B,C,D execute. But it is that Proceudre B,C,D is independent to each other. So in my package procedure B runs first, procedure C runs then after and procedure D runs at last. This took me lot of time to run the package. I want to execute the Procedure B,C,D in parallel after all tables are created in procedure A.
How can I execute all the procedures parallelly? I am learning about scheduling jobs. Is using scheduling jobs a good method or is there any other option?