home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!newsfeed.rice.edu!nb.rockwell.com!rincon!dave
- From: dave@ema.rockwell.com (Dave Emde)
- Subject: Re: Recovering from a log segment full condition
- Message-ID: <dave.724703604@rincon>
- Sender: news@nb.rockwell.com
- Organization: Rockwell International
- References: <1992Dec16.205611.19776@spectrum.xerox.com>
- Date: Fri, 18 Dec 1992 18:33:24 GMT
- Lines: 57
-
- In <1992Dec16.205611.19776@spectrum.xerox.com> sauvain@fandango.wrc.xerox.com (Richard Sauvain) writes:
-
- >I have run into the following catch-22:
-
- >My transaction log fills up (even though I allowed more than 2X data size for
- >the transaction log), and when I try to dump the transaction log, I get an
- >error message saying that the log segment is full and I should dump the
- >transaction log. Using ALTER DATABASE to increase the size of the segment
- >allows the dump to proceed for a while, but we eventually get to the same
- >state.
-
- >Does anyone understand what is going on here? Could it be that deleting the
- >transaction log is itself a logged operation?
-
- [stuff deleted]
-
- Richard,
-
- I've had the same problem myself. Using dump tran database with no_log
- works will but there have been several instances where I dumped my transaction
- log only to find that I still received the "out of space in syslogs" message.
-
- In this case you need to shutdown and restart the server and then issue
- another dump with no_log. This fixed my problem. If you have the Sybase
- Troubleshooting Guide they have a good writeup about this type of problem.
-
- It recommends breaking up large deletes into smaller parts by adding a where
- clause.
-
- For example, if:
-
- delete y
- where y.date = '10/1/92'
-
- results in a full transaction log then use:
-
- delete y
- where y.date = '10/1/92' and
- y.col1 < x
-
- delete y
- where y.date = '10/1/92' and
- y.col1 >= x
-
- Either that or allocate more space to the transaction log.
-
- Hope this helps,
- Dave Emde
- --
- -------------------------------------------------------------------------
- Dave Emde
- Rockwell Intl. (Space Systems Div.)
- Downey, Ca.
- dave.emde@rockwell.com
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Bush, Clinton, Perot .... I'll just vote for my Sun.
- -------------------------------------------------------------------------
-