| Tags: Free Log Space , |
|
Determining Free Log Space in Sybase ASE
|
|
12-04-2009, 09:47 PM
Post: #1
|
|||
|
|||
|
Determining Free Log Space in Sybase ASE
Determining Unused Log Space
Use dbcc checktable(syslogs) for an accurate check of free space in Sybase Adaptive Server Enterprise. - A bit old though Contents When you need to check free space in the server logs, users typically use the stored procedure sp_helpdb. While sp_helpdb is useful for a general estimation of free space, for a precise figure use one of the following methods: * dbcc checktable (syslogs) * Determine the number of data pages in the transaction log via isql script, for example: select data_pgs (8, doampg) from sysindexes where id=8 go Each method has advantages. Sybase recommends sp_helpdb for most situations because it reports quickly. sp_helpdb uses the unreserved page count in sysusages. However, unreserved page count is updated intermittently and therefore may not accurately reflect the actual state of the database. Thus, when sp_helpdb reports free space, when you perform an insert you may run out of space, resulting in error message 1105, which reads in part: Can't allocate space for object ... because log segment full If this error occurs, follow the instructions in Runtime 1105 Errors: State 3 in the "Error Message Writeups" chapter of the Adaptive Server Enterprise Troubleshooting and Error Messages Guide. The dbcc checktable (syslogs) command also checks for possible corruption as well as the size of the log. However, it can take a long time to run, depending on the size of the log. For more information about dbcc checktable, see the chapter, "Checking Database Consistency" in the Adaptive Server Enterprise System Administration Guide. The isql script is more accurate than sp_helpdb. It is described in the Error 1105 section in "Error Message Writeups" chapter of the Adaptive Server Enterprise Troubleshooting and Error Messages Guide. |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| SQL script to calculate sybase database size ,data free,data used,log free,log used | sybaseteam | 2 | 2,233 |
02-23-2010 01:59 PM Last Post: sybanva |
|
| Sybase Database dump failed for a database with no space left on device error | padalav | 0 | 174 |
01-28-2010 10:37 AM Last Post: padalav |
|
| log space requirements for reorg rebuild | ishu.cs | 0 | 196 |
05-27-2009 01:29 PM Last Post: ishu.cs |
|
| monitor sybase tempdb log space | albert | 0 | 789 |
04-22-2009 01:58 AM Last Post: albert |
|
| Sybase Tempdb space management and addressing tempdb log full issues | zaadmin | 0 | 2,754 |
11-10-2008 10:25 PM Last Post: zaadmin |
|

Chat Support
Search
Disclamier & Rules
Help


