|
SQL script to calculate sybase database size ,data free,data used,log free,log used
|
|
03-29-2009, 04:08 PM
Post: #1
|
|||
|
|||
|
SQL script to calculate sybase database size ,data free,data used,log free,log used
SQL script to calculate sybase database size ,data free,data used,Total log space,log space free,log space used.
This is one of the useful and frequently used sql scripts by any sybase DBA. Code: select "Database," = convert(char(20),db_name(dbid))+',', |
|||
|
02-22-2010, 09:58 PM
Post: #2
|
|||
|
|||
|
RE: SQL script to calculate sybase database size ,data free,data used,log free,log used
I am getting back into support Sybase for some new projects. They are running 15.0.2 and when I run this code I see 2 issues.
1. A divide by zero error msg. It causes the sql to stop after the 1st 5 or so databases. If I added an order by 1 clause it processes all databases, but still spits out the error. 2. The device sizes are off by a factor or 4. Any suggestions as how I should approach adjusting the code would be appreciated. Thanks Joe (03-29-2009 04:08 PM)sybaseteam Wrote: SQL script to calculate sybase database size ,data free,data used,Total log space,log space free,log space used. |
|||
|
02-23-2010, 01:59 PM
Post: #3
|
|||
|
|||
|
RE: SQL script to calculate sybase database size ,data free,data used,log free,log used
Hi Joe,
As compare to ASE 12.5 to 15.x Sybase has only removed the vdev no from the sysusages table as this query is using only sysusages table. This script is only for the 2k page size server. I am modifying it for all page size(2k,4k..16k) and will let you know the final script, in the mean while can you please paste the excat error message? Thanks. Regards, AnVa http://sybaseblog.com TechSupport-SeniorMember Synergy Project (SybaseTeam.Com) |
|||
|
03-15-2010, 04:47 AM
Post: #4
|
|||
|
|||
|
RE: SQL script to calculate sybase database size ,data free,data used,log free,log used
if i want to include some other devices like seg_index ??
|
|||
|
« Next Oldest | Next Newest »
|


Chat Support
Search
Disclaimer & Rules
Help


