We have two threads(Timer) which are calling same stored procedure in oracle. How to handle from Database side to process one thread at a time. We used "Alter session disable Parallel DML" query inside the Procedure, But, still both threads are running at a same time.
Is there any locking mechanism which will take care these steps ?
Expecting Result:
- Thread should execute the same procedure one after another.
Can anyone suggest solution for this issue?