Hi,
We have designed an application to pull some profit and loss reports which help business analysts in analysing company's business across various countries on different industries (like Shop industry, restaurant industry etc.)
We have provided seperate login ID to each and every user.
When user pulls report from .NET front end, it accesses DB2 version 9.1 databases.
Now the situation is, when 1 user tries inserting some data into the database it is not possible for other user to delete data from database.
I am not able to understand why it is throwing SQLCODE -913 (i.e. deadlock) in this case.
In database, we have maintained a USER_ID column to distinguish data for one user from another. So, one user's data is completely isolated from other user's data and each user has access to only their data not to other user's data.
In fact the purpose of maintaining USER_ID was to avoid deadlocks in the application.
As per our requirement:
1) We do not need to lock rows
2) It should be possible to perform simultaneous operations on data base for many users, i.e. user1 should be able to insert/update/delete/select when user2 is performing insert/delete/update/select operation.
We use DB2 version 9.1
Regards,
Upendra