Free space after a delete [message #54549] |
Thu, 21 November 2002 03:58 |
Rick
Messages: 49 Registered: March 2000
|
Member |
|
|
After a successfull export from a db, I've deleted the exported rows.
I should know the amount of space that got free after this operation.
Does the column bytes in the 'dba_free_space' show the
amount of space available for new insert or for update too?
How many blocks are below the PCTUSED value?
Thanks in advance,
Rick
|
|
|
|
Re: Free space after a delete [message #54560 is a reply to message #54549] |
Thu, 21 November 2002 12:05 |
Trifon Anguelov
Messages: 514 Registered: June 2002
|
Senior Member |
|
|
To find out how much space was de-allocated, run This Script before and after such operations. It will show you the byte size for user's objects before and after the DML. But you have to use :
TRUNCATE TABLE table DROP STORAGE;
for your tables to release the allocated space (DROP STORAGE is the default, so you can even omit it).
To find out the available space in each tablespace, run This script and look under DB SIZING section.
Hope that helps,
clio_usa
OCP - DBA
Visit our Web site
|
|
|
Re: Free space after a delete [message #54575 is a reply to message #54551] |
Fri, 22 November 2002 02:01 |
Rick
Messages: 49 Registered: March 2000
|
Member |
|
|
Thanks Mahesh and Trifon,
for your help.
The problem is that my export is partial, I only export 1/5 of the rows of two table so I can't run a TRUNCATE command. Maybe I should export and import table data to release the space.
What can you suggest me?
Thanks again
Rick
|
|
|
|
|
|