Home » RDBMS Server » Server Administration » Shrink tablespace
Shrink tablespace [message #459590] Mon, 07 June 2010 06:14 Go to next message
Riyasbasha
Messages: 25
Registered: March 2010
Junior Member
Hi all

I have a tablespace with 5GB size, data in the tablespace is 4.8GB
if i want to shrink the tablespace then much size could be shrinked.

can anyone let me know plz.
Re: Shrink tablespace [message #459592 is a reply to message #459590] Mon, 07 June 2010 06:20 Go to previous messageGo to next message
Michel Cadot
Messages: 68653
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
With or without reorganizing objects?

Regards
Michel
Re: Shrink tablespace [message #459595 is a reply to message #459592] Mon, 07 June 2010 06:25 Go to previous messageGo to next message
Riyasbasha
Messages: 25
Registered: March 2010
Junior Member
Without reorganizing the objects.
and tel me for other also(with object) please
Re: Shrink tablespace [message #459596 is a reply to message #459595] Mon, 07 June 2010 06:35 Go to previous messageGo to next message
Michel Cadot
Messages: 68653
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
1/ without, check last extent in each file (dba_extents) and you will know how much you can shrink these ones (files)
2/ with, sum the extents in each file (or sum the free space in each file) then you will how much space you can get back after moving the objects (export/import for instance). This is a lower limit has with export/import you compact the space in the objects and so can more likely retrieve more

Regards
Michel
Re: Shrink tablespace [message #459601 is a reply to message #459596] Mon, 07 June 2010 06:43 Go to previous message
Riyasbasha
Messages: 25
Registered: March 2010
Junior Member
thank you michel
Previous Topic: I've got error ORA-01422 with gather_stats_job
Next Topic: flashback table
Goto Forum:
  


Current Time: Sun May 19 21:07:30 CDT 2024