on 04-03-2013 4:08 PM
Hi All,
We have issues with commit to lock and unlock. There many people in the organization who are new to sybase IQ .
So while running any queries they forget to issue commit at the end of each statement. Due to this if some one tries to access the table then it says table is locked. It's blocking others work.
I know we can see the table lock in Sybase central but some are shared usernames. So it was problem to contact them.
Is there a way to run the queries with out COMMIT and it should not get locked. Even block others work. ????
set Autocommit to true in odbc Administrator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saroj,
Please let me know where can I find that option, Please find the attachment , I see an option called "Delay AutoCommit until Statement close". Is this option you are discussing about. Do I need check this option.
Also I want makes again, So any developers don't need to issue a commit at end of the statement right.
You can handle it in couple of ways:
Can you explain more about what the issue is? If a user is reading a table and only has a READ lock on the table it is impossible for that user to block any other queries (READ locks). It is also impossible for a READ lock to block any WRITE locks. It is just as impossible for a WRITE lock to block READ locks. Your comment about a query blocking other users is quite confusing since this condition cannot happen in IQ with READ and WRITE locks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.