Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in table locking while running the parallel jobs (deadlock?)

Former Member
0 Likes
789

Hi,

I am trying to delete the entried from a custom table. If I schedule the parallel jobs, I am getting the following dump while deleting the entries from table. This is happening for custom table ( in CRM system).

Exception : DBIF_RSQL_SQL_ERROR

And complaining that, deadlock occured. I am not sure what it is..

Could you please help me out, how can we solve this issue?

Thanks,

Sandeep

Hi,

I am trying to delete the entried from a custom table. If I schedule the parallel jobs, I am getting the following dump while deleting the entries from table. This is happening for custom table ( in CRM system).

Exception : DBIF_RSQL_SQL_ERROR

And complaining that, deadlock occured. I am not sure what it is..

Could you please help me out, how can we solve this issue?

Thanks,

Sandeep

3 REPLIES 3
Read only

JoffyJohn
Active Contributor
0 Likes
644

use Locking concept ..

Lock the table before delete.

So that if another program tries to lock again dead lock situation will not occur

Read only

anup_deshmukh4
Active Contributor
0 Likes
644

Hello Sandeep ,

I would suggest you Record based Lock Objects ,

take a look at below link...to get a general idea..!

<link removed>

Hope it helps,

Thanks and Regards,

Edited by: Suhas Saha on Aug 19, 2011 11:27 AM

Read only

Former Member
0 Likes
644

Hi,

I used ENQUE-DEQUEUE...

All the Jobs are running fine...however last two jobs just getting strucked...and running forever..Unlock of the table is also not happening.

Thanks,

Sandeep