home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / sybase / 504 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  3.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!biosci!parc!rocksanne!sauvain
  2. From: sauvain@fandango.wrc.xerox.com (Richard Sauvain)
  3. Newsgroups: comp.databases.sybase
  4. Subject: Recovering from a log segment full condition
  5. Message-ID: <1992Dec16.205611.19776@spectrum.xerox.com>
  6. Date: 16 Dec 92 20:56:11 GMT
  7. Sender: news@spectrum.xerox.com
  8. Reply-To: sauvain@wrc.xerox.com
  9. Organization: Xerox Corp.
  10. Lines: 73
  11.  
  12. I have run into the following catch-22:
  13.  
  14. My transaction log fills up (even though I allowed more than 2X data size for
  15. the transaction log), and when I try to dump the transaction log, I get an
  16. error message saying that the log segment is full and I should dump the
  17. transaction log.  Using ALTER DATABASE to increase the size of the segment
  18. allows the dump to proceed for a while, but we eventually get to the same
  19. state.
  20.  
  21. Does anyone understand what is going on here?  Could it be that deleting the
  22. transaction log is itself a logged operation?
  23.  
  24. ---
  25. Name:  Richard Sauvain               | Xerox Webster Research Center
  26. Email: Sauvain@wrc.xerox.com         | Mail Stop 128-27E
  27. Phone: (716) 422-3379                | 800 Phillips Road
  28. Fax:   (716) 422-2126                | Webster, NY 14580  USA
  29.  
  30. --------
  31. The gory details:
  32.  
  33. 1> delete document where accession = "x9000031"
  34. 2> go
  35. Cascading delete from doc level.
  36. Cascading delete from page level.
  37. Msg 1105, Level 17, State 3:
  38. Procedure 'delpage', Line 7:
  39. Can't allocate space for object 'syslogs' in database 'ticdsf' because
  40. the 'logsegment' segment is full. If you ran out of space in Syslogs,
  41. dump the transaction log. Otherwise, use ALTER DATABASE or
  42. sp_extendsegment to increase the size of the segment.
  43. 1> dump transaction ticdsf with truncate_only
  44. 2> go
  45. Msg 1105, Level 17, State 3:
  46. Line 1:
  47. Can't allocate space for object 'syslogs' in database 'ticdsf' because
  48. the 'logsegment' segment is full. If you ran out of space in Syslogs,
  49. dump the transaction log. Otherwise, use ALTER DATABASE or
  50. sp_extendsegment to increase the size of the segment.
  51. 1> alter database ticdsf on logs = 1
  52. 2> go
  53. Extending database by 512 pages on disk logs
  54. 1> dump transaction ticdsf with truncate_only
  55. 2> go
  56. Msg 1105, Level 17, State 3:
  57. Line 1:
  58. Can't allocate space for object 'syslogs' in database 'ticdsf' because
  59. the 'logsegment' segment is full. If you ran out of space in Syslogs,
  60. dump the transaction log. Otherwise, use ALTER DATABASE or
  61. sp_extendsegment to increase the size of the segment.
  62. 1> sp_helpdb ticdsf
  63. 2> go
  64.  name                     db_size  owner                    dbid   created    
  65.          status                                                                                                 
  66.  ------------------------ -------- ------------------------ ------ ----------- 
  67.         ------------------------------------------------------------------------------------------------------ 
  68.  ticdsf                   100 MB   sauvain                       8 Nov 30 1992
  69.          select into/bulkcopy                                                                                   
  70.  
  71.  device_fragments               size          usage                
  72.  ------------------------------ ------------- -------------------- 
  73.  logs                           70 MB         log only             
  74.  userdbs                        4 MB          data only            
  75.  userdbs                        10 MB         data only            
  76.  userdbs                        16 MB         data only            
  77.  
  78.  device                         segment                        
  79.  ------------------------------ ------------------------------ 
  80.  logs                           logsegment                     
  81.  userdbs                        default                        
  82.  userdbs                        system                         
  83.  
  84. (return status = 0)
  85.