Home » RDBMS Server » Server Administration » reducing tablespace size ??? (oracle 11.2.0.1 ,,solaris10)
reducing tablespace size ??? [message #540588] Tue, 24 January 2012 12:32 Go to next message
janakors
Messages: 232
Registered: September 2009
Senior Member
hi,
we have a tablespace of size 900 GB where 90% of space is occupied by two tables having BLOB data and now i need to drop these two tables and then to recover the space, i need to resize the tablespace (datafiles).

kindly suggest some readings and tips for the said activity as it is to be done staright away on production db.

Regards

janakors

Re: reducing tablespace size ??? [message #540590 is a reply to message #540588] Tue, 24 January 2012 12:37 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
http://www.lmgtfy.com/?q=oracle+shrink+datafile
Re: reducing tablespace size ??? [message #540635 is a reply to message #540590] Wed, 25 January 2012 00:23 Go to previous messageGo to next message
abhi_sri
Messages: 20
Registered: September 2010
Location: India
Junior Member
For deletion.. use truncate or drop command. If you do delete table, the free blocks will go to freelist of tablespace for further use. But as these are still with tablespace, not count as free space in disk. While shrinking the datafile you can shrink it upto the last free extent. You can find the free space in a file using dba_extents, dba_free_space & dba_data_files. Use ALTER DATABASE DATAFILE '-------.dbf' RESIZE ---M;
Re: reducing tablespace size ??? [message #540637 is a reply to message #540635] Wed, 25 January 2012 01:13 Go to previous message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Quote:
the free blocks will go to freelist of tablespace

No, free list of table (at large, in ASSM there is no free list).

Quote:
But as these are still with tablespace, not count as free space in disk

There are still in table and not count as free space in tablepace (and then in disk).

Regards
Michel
Previous Topic: One-off patch
Next Topic: ORA-01555
Goto Forum:
  


Current Time: Fri Nov 29 04:46:13 CST 2024