Very Quick and Clear Response
Raju, December 21, 2015 - 6:35 pm UTC
Hi Tom,
Thanks your reply. However, can you please let me know how I can create multiple sessions to call different procedures.
As per our current code implementation, we are calling a single procedure (Proc1) from Java and this procedure subsequently calling few other procedures (innProc1, innProc2 ...) sequentially which are independent of each other (perform different tasks).
Now I want to implement the code like below:
From Java -> Proc1 -> (1) innProc1, (2) innProc2 ..
Also once when all the inner procedures gets completed, then I will call another final procedure e.g., finalProc to perform some task based on the out come of innProc1, innProc2 ....
Also please note that, I don't want to commit any DML operation in these procedure as I am using a transaction model (java implementation) to commit the task at the end.
Please let me know, is there anyway I can perform parallel different tasks simultaneously in oracle.
December 22, 2015 - 9:06 am UTC
You control how many session there are from the client. For each procedure you want to call in a separate DB session, you'll need a new Java thread.
You'll need to take the procedures out of the one you're currently calling. Then call these directly from your code. So you have something like:
Java -> Proc1
Java Thread 1 -> innProc1
Java Thread 2 -> innProc2
...
Java -> finalProc
How you do this is a Java programming question and beyond my expertise. If you need further help with this try the Java forums.