I am working on Oracle 10gR2.
And here is my problem -
I have a procedure, let's call it * proc_parent * (inside the package), which should call another procedure, lets call it * user_creation * . I have to call * user_creation * inside a loop that reads some columns from the table, and these column values ββare passed as parameters of the * user_creation * procedure.
The code is as follows:
FOR i IN (SELECT community_id, password, username FROM customer WHERE community_id IS NOT NULL AND created_by = 'SRC_GLOB' ) LOOP user_creation (i.community_id,i.password,i.username); END LOOP; COMMIT;
The user_Creation procedure calls the web service for some business logic, and then updates the table based on the response.
I need to find a way by which I can use multithreading here so that I can run multiple instances of this procedure to speed things up. I know that I can use * DBMS_SCHEDULER * and possibly * DBMS_ALERT * , but I cannot figure out how to use them inside a loop.
Can someone lead me in the right direction?
Thanks Ankur
source share