August 11, 2005 at 5:17 am
I noticed for several days one of our db size data+log is about 4.2GB. But the backup (full) file size is only 650MB. If I shrink the file it goes down to 650MB however in DBArtisan (I use for monitoring and admin) it shows as -
TotalSpace 650MB freeDBSpace -3600MB (negetive) with a red alert.
Why this disparity?
August 12, 2005 at 9:40 am
What size is the log? The log would not be included in the DB backup.
August 12, 2005 at 9:41 am
I've never used DBArtisan but as for your question, when you do a backup it only backs up the actual data in the database, if you allocate 20GB to the data file but only fill 650MB then the backup will only be 650MB in size.
If this hasn't explained why the backup is so small as opposed to the database size then there's either some compression being done (litespeed, sql backup, etc) or it's a problem in DBArtisan.
August 12, 2005 at 1:21 pm
To check things out properly you'll need to run the following in QA:
exec your_database..sp_spaceused
go
dbcc sqlperf(loginfo)
go
This will give use space for both the database and the transaction log at that moment. At least this is concrete information you can count on.
RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."
August 12, 2005 at 3:43 pm
good point, although the first one can be a little out of date if you dont use dbcc updateusage first.
August 12, 2005 at 4:16 pm
You are correct Mike ... I made an 'assumption' that everyone does the proper maintenance ... including that !
RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."
August 13, 2005 at 7:04 pm
Sp_spaceused gave result as -
HRS 439.25MB(Database_Size) -3861.59MB(unallocated space)
4351640KB(reserved) 125696KB(data) 4216672KB(index_size) 9272KB(unused)
Log Size with dbcc sqlperf(logspace) is 51.18 used 15.39
August 13, 2005 at 7:11 pm
sp_spaceused @updateusage = 'true' actually corrected the problem. Now I can see the database size is 439.25MB and unallocated space is 117.34MB
Wondering why the unallocated space grown to the extant of 3861.59MB.
August 15, 2005 at 8:55 am
I'd attribute it to another 'un-documented feature' (bug) left over from the old Sybase code base ...
RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply