home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / informix / 2459 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!amgen!chriss@sam.amgen.com
  3. From: chriss@sam.amgen.com (Chris Silvester)
  4. Subject: Re: Row locks
  5. Message-ID: <1992Nov17.225728.14983@amgen.com>
  6. Sender: news@amgen.com
  7. Nntp-Posting-Host: csilvester
  8. Organization: Amgen
  9. References: <1992Nov17.041550.11286@panix.com>
  10. Distribution: usa
  11. Date: Tue, 17 Nov 1992 22:57:28 GMT
  12. Lines: 28
  13.  
  14. In article <1992Nov17.041550.11286@panix.com>, clay@panix.com (Clay Irving) writes:
  15. > We've written a program that updates several rows in a table. We assumed that
  16. > we may run into locking problems since these rows may be updated by another
  17. > program. So... We test for the lock and if we can't lock the row, we issue
  18. > an error message to inform the user that one of the rows can not be locked --
  19. > someone else has it. Now, how can we find who's locking the row? Tbmonitor
  20. > shows me users with locks, but it doesn't indicate what the lock is...
  21. > There has to be a better way?...
  22. > -- 
  23. > Clay Irving           Personal: clay@panix.com   {...uunet, cmc12}!panix!clay 
  24. > New York, New York        Work: clay@garpac.com  {...uupsi3, 4gen}!garpac!clay
  25. > --
  26.  
  27. Back in August, someone posted an article about a script that a gentlemen
  28. named Dave Schmitt wrote called "listlocks" that uses tbstat, isql, awk, sort,
  29. join, and tr to produce a listing of locks held by users.  I got a copy of it
  30. from somewhere, modified it slightly for our environment, and it works great.
  31. I believe his email address is daves@csg.gss.mot.com if you want to try to
  32. contact him about his script...
  33.  
  34. Good luck!
  35.  
  36. Chris S.
  37.  
  38.