How to get the space available in a table space. [message #61984] |
Tue, 15 June 2004 22:54 |
Sanjay
Messages: 236 Registered: July 2000
|
Senior Member |
|
|
I want to know how much of space is left in my table space. when i query dba_extents it gives the space allocated not the space actully used.
The dba_free_space gives the free space but it is not the total free space available because allocated extents may also have some unused space.
Could you please tell me how can I get the actuall free space in my tablespace.
|
|
|
Re: How to get the space available in a table space. [message #61986 is a reply to message #61984] |
Wed, 16 June 2004 00:26 |
Daljit Singh
Messages: 290 Registered: October 2003 Location: Texas
|
Senior Member |
|
|
Hi,
It is true that DBA_FREE_SPACE will show u only that space which is not allocated by any of the segment. And if you want to reclaim the unused but allocated space from table than u can use:
ALTER TABLE TB_NAME DEALLOCATE UNSED;
This command will deallocate all the space above HWM from the table.
Daljit Singh
|
|
|
|