Reputation: 364
I am using python cx_Oracle and multiprocessing. I am spinning 8 processes to delete data from chain of tables. Delete statements in all 8 processes are same. But the data they are deleting is mutually exclusive. Each process creates its own db connection runs and commits the delete statements. With this setup currently I am getting below error
ORA-00060: deadlock detected while waiting for resource
Is there any way to avoid this error?
Upvotes: 0
Views: 190
Reputation: 7096
Without providing additional information about the code you are using to perform the deletes and the table definition I can only provide general advice:
Upvotes: 2