home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / informix / 2788 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.0 KB

  1. Path: sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!aland
  2. From: aland@informix.com (Colonel Panic)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: SQL 2.10.03 problem:  cannot UPDATE table
  5. Message-ID: <1992Dec15.032744.7745@informix.com>
  6. Date: 15 Dec 92 03:27:44 GMT
  7. References: <Dec.10.18.05.40.1992.25678@net.bio.net>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Enterprise Technology Center, Informix Software, Inc.
  10. Lines: 47
  11.  
  12. In article <Dec.10.18.05.40.1992.25678@net.bio.net> charleen@net.bio.net (Charleen Bunjiovianna) writes:
  13. |A user wants to delete a row from a table.  The query:
  14. |
  15. |delete from ft
  16. |where entry_name = "P90589";
  17. |
  18. |dies with:
  19. |
  20. |  263: Could not lock row for UPDATE.
  21. |
  22. |There is no possibility the table or row is being used by anyone
  23. |else.  A number of other rows have been deleted from the same table
  24. |without incident.  We've tried emptying the lock file.  No luck.
  25. |
  26. |Just for kicks, I created a new table, ft_new (using ft's dbschema output)
  27. |and got this when I tried to fill it:
  28. |
  29. |insert into ft_new
  30. |select * from ft;
  31. |
  32. |  534: Could not insert new row into the table, table is locked.
  33. |
  34. |  107: C-ISAM error:  record is locked.
  35. |
  36. |(BTW, the manual says to "see C-ISAM error", but there's no explanation
  37. | of C-ISAM error messages.  Do we need to buy a C-ISAM manual?)
  38. |
  39. |I can select * from ft with no problem.
  40. |
  41. |Now it gets fun.  I run bcheck by doing a CHECK TABLE: (bcheck -n)
  42. |
  43. |BCHECK  C-ISAM B-tree Checker version 1.07
  44. |Copyright (C) 1981-1988 Informix Software, Inc.
  45. |Software Serial Number RDS#R537699
  46.  
  47. MAJOR red flag.  1.07 is terribly old -- I'd guess that you have some old
  48. product based on an old version of C-ISAM (e.g. MF COBOL, among others)
  49. that has you running the wrong bcheck for 2.10.03 databases.  That
  50. bcheck could be corrupting your indexes.  Try that first.  Otherwise,
  51. specify your platform details in your next post.
  52.  
  53. |Charleen
  54.  
  55. --
  56. Alan Denney      aland@informix.com      {pyramid|uunet}!infmx!aland
  57.  
  58. "What does not kill me, makes me stronger."     - Nietzsche
  59.