home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / ingres / 2212 < prev    next >
Encoding:
Text File  |  1993-01-11  |  5.3 KB  |  113 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!mcsun!sun4nl!rivm!jwd
  3. From: jwd@rivm.nl (Jan Diesel)
  4. Subject: Re: Transaction Log File
  5. Message-ID: <C0oo00.BCA@rivm.nl>
  6. Sender: news@rivm.nl
  7. Organization: R.I.V.M.
  8. X-Newsreader: Tin 1.1 PL5
  9. References: <1993Jan8.144837.9232@tpghq.com>
  10. Date: Mon, 11 Jan 1993 09:36:00 GMT
  11. Lines: 100
  12.  
  13. Steve Caswell (sfc@tpghq.com) wrote:
  14. : In article <C0J1q9.FvG@rivm.nl> jwd@rivm.nl (Jan Diesel) writes:
  15. : >David Kaplan (djk@sei.cmu.edu) wrote:
  16. : >: 
  17. : >: I'm having some intermittent problems with the Trasaction Log File.  Or,
  18. : >: rather, it's having trouble with me?  In either case, the following error
  19. : >: occurs when running a rather long set of queries:
  20. : >: 
  21. : >: **** ERROR: E_US1262 Your transaction has been aborted due to the transaction
  22. : >:     log file having reached one of the limits set by the system administrator.
  23. : >:     These limits are log_full, force_abort, and 90 percent of force_abort
  24. : >:     when using the fast_commit option to start DBMS servers.
  25. : >:    (Thu Jan  7 12:21:39 1993)
  26. : >: 
  27. : >: What's this all about.  I mentioned intermittent because some days I get the
  28. : >: error, and other days I don't?!  There are commits after each query (all
  29. : >: creation and insertion commands), and the queries are broken up just about as
  30. : >: far as we can get them.
  31. : >
  32. : >The transaction logfile is used not only by inserts, updates and deletes but
  33. : >by selects as well. The obvious solution to your problem seems increasing the
  34. : Unless something drastic has changed, selects ARE NOT LOGGED to the log file.
  35.  
  36. I don't know where I got this information but you're right and I'm wrong:
  37. selects are not logged (unfortunately I can't find this in the manuals).
  38.  
  39. : >size of the transaction logfile or decreasing the size of your transactions.
  40. : >The latter can be done by setting autocommit on (thereby causing each statement
  41. : >to be treated as a singleton transaction). If this won't help and you don't
  42. : >want to increase the transaction logfile you'll have to split up your statements.
  43. : >
  44. : Setting autocommit on is not a good thing to do in normal application
  45. : situations.  This command is in INGRES primarily as a conversion tool to allow 
  46. : converted release 5 applications to behave under 6 as they did in 5.  Using 
  47. : set autocommit on in a production 6 application is not a good idea for three 
  48. : reasons:
  49. :    1.  It is NOT ANSI standard.  It in fact makes transaction semantics behave
  50. :        exactly opposite of ANSI standard.  If someone comes in later to
  51. :        maintain your code, and is not aware that set autocommit on has been
  52. :        executed, and is expecting ANSI transaction semantic behavior, they will
  53. :        be in for a rude surprise.
  54. :    2.  Because set autocommit on is a conversion feature, there is no guarantee
  55. :        that is will be supported in the future when Ingres decides that everyone
  56. :        has converted and they remove the command.
  57. :    3.  You lose rollback capability.  Unless EVERY statement in an application 
  58. :        is a single statement transaction, you are giving up a lot.  Even if
  59. :        every statement is a single statement, the incremental cost of putting
  60. :        in a commit statement is minor.
  61.  
  62. I agree with you on most points, but I do think that 'autocommit on' is a usefull
  63. ingres-feature. By the enforcement of singleton transactions endusers aren't
  64. bothered with the transaction mechanism anymore. Unless autocommit is set off
  65. most interference with more complex applications (not using singleton transactions)
  66. is no longer a problem.
  67. The only price that has to be paid is setting autocommit off in your applications.
  68. (this also makes sure you won't suffer from removing the autocommit command,
  69. which I hope won't happen).
  70.  
  71. : >: 
  72. : >: Could this error be an indicator that something else is wrong?  The fact that
  73. : >: it is intermittant EVEN when the data being used has not change is what really
  74. : >: has me puzzled.
  75. : >: 
  76. : >: Any clues appreciated ;-)
  77. : >: 
  78. : >: Thanks,
  79. : >: 
  80. : >: -Dave.
  81. : >: 
  82. : >: 
  83. : >: ---------------------------------------------------------------------------
  84. : >: David J. Kaplan                                             djk@sei.cmu.edu
  85. : >: Software Engineering Institute                         dk3g+@andrew.cmu.edu
  86. : >: Carnegie Mellon University                                   (412) 268-7736
  87. : >
  88. : >Regards,
  89. : >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  90. : >Jan Diesel                                       |          jwd@rivm.nl
  91. : >Informatics Service Centre                       |  tel. ++31 30 742067
  92. : >P.O.Box 1, 3720 BA  BILTHOVEN, the Netherlands   |  fax. ++31 30 282316
  93. : >RIVM - National Institute of Public Health and Environmental Protection
  94. : -- 
  95. : Steve Caswell           |   (404) 448-7727    |  "The opinions expressed are my
  96. : Principal Consultant    |   sfc@tpghq.com     |   own.  They may not be perfect,
  97. : The Palmer Group        |   uunet!tpghq!sfc   |   but they're all I've got."
  98.  
  99. --
  100. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  101. Jan Diesel                                       |          jwd@rivm.nl
  102. Informatics Service Centre                       |  tel. ++31 30 742067
  103. P.O.Box 1, 3720 BA  BILTHOVEN, the Netherlands   |  fax. ++31 30 282316
  104. RIVM - National Institute of Public Health and Environmental Protection
  105.