 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Oliver Zeigermann Guest
|
Posted: Thu Nov 13, 2003 5:53 pm Post subject: MS SQLServer hangs on single threaded application with isola |
|
|
Experts out there, I need your help!
When setting high isolation levels in a single threaded application MS
SQLServer deterministicly blocks when accessing certain tables.
This might be a stupid question, but are those DB locks reentrant, i.e.
can I acquire them twice from the same connection?
Thanks for any hints in advance,
Oliver
|
|
| Back to top |
|
 |
Joe Weinstein Guest
|
Posted: Thu Nov 13, 2003 7:05 pm Post subject: Re: MS SQLServer hangs on single threaded application with i |
|
|
Oliver Zeigermann wrote:
| Quote: | Experts out there, I need your help!
When setting high isolation levels in a single threaded application MS
SQLServer deterministicly blocks when accessing certain tables.
This might be a stupid question, but are those DB locks reentrant, i.e.
can I acquire them twice from the same connection?
Thanks for any hints in advance
Hi. This sounds very unlikely. A single connection cannot be blocked |
accessing locks it already has. (yes, locks are re-entrant). Are you
sure you're using only one real connection? If you are using the
MS-provided JDBC driver, add this property for the connection:
selectMethod=cursor
What does the DBMS say about sessions, and who is holding what locks?
Joe
|
|
| Back to top |
|
 |
Oliver Zeigermann Guest
|
Posted: Fri Nov 14, 2003 10:36 am Post subject: Re: MS SQLServer hangs on single threaded application with i |
|
|
Joe Weinstein wrote:
| Quote: |
Oliver Zeigermann wrote:
Experts out there, I need your help!
When setting high isolation levels in a single threaded application MS
SQLServer deterministicly blocks when accessing certain tables.
This might be a stupid question, but are those DB locks reentrant,
i.e. can I acquire them twice from the same connection?
Thanks for any hints in advance
Hi. This sounds very unlikely. A single connection cannot be blocked
accessing locks it already has. (yes, locks are re-entrant).
|
Thought so, but things seem to be so weird, I wanted to be sure...
| Quote: | Are you
sure you're using only one real connection?
|
Having ruled out almost all other possibilities this becomes more and
more likely. But wherer? Hmmmm.
| Quote: | If you are using the
MS-provided JDBC driver, add this property for the connection:
selectMethod=cursor
|
Already done...
| Quote: | What does the DBMS say about sessions, and who is holding what locks?
Joe
|
Will inversitage this further.
Thanks for helping,
Oliver
|
|
| Back to top |
|
 |
Oliver Zeigermann Guest
|
Posted: Wed Nov 19, 2003 11:25 am Post subject: Re: MS SQLServer hangs on single threaded application with i |
|
|
Joe! Thanks a lot for your help! There was a second connection I could
identify when examining locks and processes.
Oliver
Oliver Zeigermann wrote:
| Quote: |
Joe Weinstein wrote:
Oliver Zeigermann wrote:
Experts out there, I need your help!
When setting high isolation levels in a single threaded application
MS SQLServer deterministicly blocks when accessing certain tables.
This might be a stupid question, but are those DB locks reentrant,
i.e. can I acquire them twice from the same connection?
Thanks for any hints in advance
Hi. This sounds very unlikely. A single connection cannot be blocked
accessing locks it already has. (yes, locks are re-entrant).
Thought so, but things seem to be so weird, I wanted to be sure...
Are you
sure you're using only one real connection?
Having ruled out almost all other possibilities this becomes more and
more likely. But wherer? Hmmmm.
If you are using the
MS-provided JDBC driver, add this property for the connection:
selectMethod=cursor
Already done...
What does the DBMS say about sessions, and who is holding what locks?
Joe
Will inversitage this further.
Thanks for helping,
Oliver
|
|
|
| Back to top |
|
 |
Joe Weinstein Guest
|
Posted: Wed Nov 19, 2003 5:10 pm Post subject: Re: MS SQLServer hangs on single threaded application with i |
|
|
Oliver Zeigermann wrote:
| Quote: | Joe! Thanks a lot for your help! There was a second connection I could
identify when examining locks and processes.
Oliver
|
Glad to help. We want you successful.
Joe Weinstein at BEA
| Quote: |
Oliver Zeigermann wrote:
Joe Weinstein wrote:
Oliver Zeigermann wrote:
Experts out there, I need your help!
When setting high isolation levels in a single threaded application
MS SQLServer deterministicly blocks when accessing certain tables.
This might be a stupid question, but are those DB locks reentrant,
i.e. can I acquire them twice from the same connection?
Thanks for any hints in advance
Hi. This sounds very unlikely. A single connection cannot be blocked
accessing locks it already has. (yes, locks are re-entrant).
Thought so, but things seem to be so weird, I wanted to be sure...
Are you
sure you're using only one real connection?
Having ruled out almost all other possibilities this becomes more and
more likely. But wherer? Hmmmm.
If you are using the
MS-provided JDBC driver, add this property for the connection:
selectMethod=cursor
Already done...
What does the DBMS say about sessions, and who is holding what locks?
Joe
Will inversitage this further.
Thanks for helping,
Oliver
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|