advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Download the Code for this Article
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
Average Rating: 4.1/5 | Rate this item | 53 users have rated this item.
 

Run Oracle Stored Procedures in Parallel—Inside the Database

If you need a solution for running Oracle stored procedures in parallel, don't reinvent the wheel with solutions that run outside the database. Execute stored procedures in parallel inside the database using Oracle's native APIs and PL/SQL. 


advertisement
common misconception among Oracle developers is they can run stored procedures in parallel only from outside the database. For example, many use Java-based code that spawns multiple Java threads and runs each procedure on a separate thread (using the java.sql.CallableStatement object), or UNIX shell scripts using cron to enable this function. But there's no need to reinvent the wheel this way—you can execute stored procedures in parallel inside an Oracle database using PL/SQL code. This 10-Minute Solution describes how, and it explains which types of tasks are suitable for this technique.




How do I run stored procedures in parallel from inside an Oracle database?



Use one of Oracle's prepackaged APIs, the DBMS_JOB package, to submit multiple jobs to a job queue and then run them in parallel.

  Next Page: Using Oracle Native APIs


Page 1: IntroductionPage 3: Using DBMS_ALERT to Signal Job's Completion
Page 2: Using Oracle Native APIsPage 4: JobsPkg Demonstration
Please rate this item (5=best)
 1  2  3  4  5
advertisement