I have two application.
One of those should write data to database, and another should read data.
But “reader” throw exception “database locked”.
What ways can be found out of this situation.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
it seems that the database isolation level is set to the serializable, which is the highest one among four. since two applications can access the database simultaneously, the read-only one can read some uncommitted data while write-only one is updating data but not commit yet.
So, if you are sure you want to read data while another one is updating, you can change the isolation level of the database. hope it helps.