Home » RDBMS Server » Server Administration » How do I reclaim unused space? (11.2.0.4, Windows 2012)
How do I reclaim unused space? [message #671972] |
Wed, 26 September 2018 09:23  |
 |
juniordbanewbie
Messages: 250 Registered: April 2014
|
Senior Member |
|
|
Dear all,
How do I reclaim unused space?
Scenario,
Initially I have a tablespace with 24 datafile each already extended up to 32767M.
through the export and import dump operation I was able to reduce from 24 datafiles to 16 datafiles.
but still not enough as my customer want it to be smaller....
SELECT owner, tablespace_name, count(0), sum(bytes)/1024/1024 FROM dba_segments GROUP BY cube(owner,tablespace_name)
2 ORDER BY owner, tablespace_name;
BIGDATA BIGDATA 293 498,742.750
BIGDATA 293 498,742.750
after next round of deletion of rows from the tables, there actually an increase in segments size
after the deletion of rows from the tables, there should be any decrease in segment size right since segment size will only decrease after truncate or drop operation?
I can only know the actual segment size used after reimporting the schema again right?
thanks a lot of your help
|
|
|
Re: How do I reclaim unused space? [message #671973 is a reply to message #671972] |
Wed, 26 September 2018 09:27   |
 |
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
juniordbanewbie wrote on Wed, 26 September 2018 07:23Dear all,
How do I reclaim unused space?
Scenario,
Initially I have a tablespace with 24 datafile each already extended up to 32767M.
through the export and import dump operation I was able to reduce from 24 datafiles to 16 datafiles.
but still not enough as my customer want it to be smaller....
SELECT owner, tablespace_name, count(0), sum(bytes)/1024/1024 FROM dba_segments GROUP BY cube(owner,tablespace_name)
2 ORDER BY owner, tablespace_name;
BIGDATA BIGDATA 293 498,742.750
BIGDATA 293 498,742.750
after next round of deletion of rows from the tables, there actually an increase in segments size
after the deletion of rows from the tables, there should be any decrease in segment size right since segment size will only decrease after truncate or drop operation?
I can only know the actual segment size used after reimporting the schema again right?
thanks a lot of your help
DELETE statement has ZERO impact on table size or tablespace size.
Correct
>I can only know the actual segment size used after reimporting the schema again right?
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Mar 08 13:45:56 CST 2025
|