If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > default time to acquire lock

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-04, 09:52
WiccaChic WiccaChic is offline
Registered User
 
Join Date: Jan 2004
Posts: 71
default time to acquire lock

Is there a default time the database gives a local session (not distributed, not ER) to acquire a lock? I have been noticing what seems like a lot of locking issues since my upgrade to 9.4 and I am just not starting to really dig in.
Reply With Quote
  #2 (permalink)  
Old 06-23-04, 10:33
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Sorry, I do not understand its problem.
The time of a lock depends on the time of the transaccion or of the life of the sesion.

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 06-23-04, 10:55
WiccaChic WiccaChic is offline
Registered User
 
Join Date: Jan 2004
Posts: 71
No not the time for the session that has the lock, the time a second session will wait (for the first session to release) trying to acquire a lock before it gives up.
Reply With Quote
  #4 (permalink)  
Old 06-23-04, 11:30
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Ok, by default there is not time, this is handled with the "set lock mode to xxx" second or "set lock mode to wait".

Gustavo.
Reply With Quote
  #5 (permalink)  
Old 06-23-04, 11:52
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Also take a look if you are using page or row level locking
Reply With Quote
  #6 (permalink)  
Old 06-23-04, 17:17
WiccaChic WiccaChic is offline
Registered User
 
Join Date: Jan 2004
Posts: 71
Thanks guys. Our developers have NEVER used any hints to set a lock wait or mode and we have grown so much that we finally have enough people hitting the tables that we are seeing lock issues.
Reply With Quote
  #7 (permalink)  
Old 06-25-04, 12:27
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
Wicca

Have you ever really met a programmer that understood concurrency issues like record locking, deadly embrace and rollback? I never have.
__________________
Fred Prose
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On