home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / sybase / 515 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.3 KB  |  69 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!newsfeed.rice.edu!nb.rockwell.com!rincon!dave
  3. From: dave@ema.rockwell.com (Dave Emde)
  4. Subject: Re: Recovering from a log segment full condition
  5. Message-ID: <dave.724703604@rincon>
  6. Sender: news@nb.rockwell.com
  7. Organization: Rockwell International
  8. References: <1992Dec16.205611.19776@spectrum.xerox.com>
  9. Date: Fri, 18 Dec 1992 18:33:24 GMT
  10. Lines: 57
  11.  
  12. In <1992Dec16.205611.19776@spectrum.xerox.com> sauvain@fandango.wrc.xerox.com (Richard Sauvain) writes:
  13.  
  14. >I have run into the following catch-22:
  15.  
  16. >My transaction log fills up (even though I allowed more than 2X data size for
  17. >the transaction log), and when I try to dump the transaction log, I get an
  18. >error message saying that the log segment is full and I should dump the
  19. >transaction log.  Using ALTER DATABASE to increase the size of the segment
  20. >allows the dump to proceed for a while, but we eventually get to the same
  21. >state.
  22.  
  23. >Does anyone understand what is going on here?  Could it be that deleting the
  24. >transaction log is itself a logged operation?
  25.  
  26. [stuff deleted]
  27.  
  28. Richard,
  29.  
  30. I've had the same problem myself.  Using dump tran database with no_log
  31. works will but there have been several instances where I dumped my transaction
  32. log only to find that I still received the "out of space in syslogs" message.
  33.  
  34. In this case you need to shutdown and restart the server and then issue
  35. another dump with no_log.  This fixed my problem. If you have the Sybase
  36. Troubleshooting Guide they have a good writeup about this type of problem. 
  37.  
  38. It recommends breaking up large deletes into smaller parts by adding a where 
  39. clause.
  40.  
  41. For example, if:
  42.  
  43.     delete y
  44.     where  y.date = '10/1/92'
  45.  
  46. results in a full transaction log then use:
  47.  
  48.     delete y
  49.     where  y.date = '10/1/92' and
  50.            y.col1 < x
  51.  
  52.     delete y
  53.     where  y.date = '10/1/92' and
  54.            y.col1 >= x
  55.  
  56. Either that or allocate more space to the transaction log.
  57.  
  58. Hope this helps,
  59. Dave Emde
  60. -- 
  61. -------------------------------------------------------------------------
  62. Dave Emde
  63. Rockwell Intl. (Space Systems Div.)
  64. Downey, Ca.
  65. dave.emde@rockwell.com
  66. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. Bush, Clinton, Perot .... I'll just vote for my Sun.
  68. -------------------------------------------------------------------------
  69.