Anda di halaman 1dari 1

I usually run into the problem where a database need more space.

Today I had a
challenging one.

At Pemex web server CCPWEB, one segment run out of space also did the hard drive
(raid). There it is no way to assign more space to the segment as there are no room
available.

The solution, I just tested on the eng box worked fine. I decide to shrink one
database that was oversized and has a low percentage of use and free some space to
be used for the segment that need it.

Example

efmBalDatSeg has 20 MB I want to decreased to 15 MB

From the query analyzer

use EFM
go
DBCC SHRINKFILE (efmBalDatSeg,15)
go

After this 5 more MB were available on the harddrive. Then I can go into Enterprise
manager and increase the size of the database that I need.

I tried to shrinkdatabase from the "All task" , this command free space within the
database but does not modified the file size of the segment, the database keep the
same physical size.

Cheers,

Juan Carlos Mazzocato

Anda mungkin juga menyukai