Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

i wanna free some disc space used by an oracle database ,

I tried deleting old data and importing smaller dump but the size of tablespace/datafile

remain unchanged.

share|improve this question

migrated from stackoverflow.com Feb 25 '13 at 3:12

This question came from our site for professional and enthusiast programmers.

    
Voted to shift this over to the db boys, but if you want to get somewhere google oracle shrink database –  Tony Hopkinson Feb 4 '13 at 9:57

1 Answer 1

up vote 2 down vote accepted

Tablespace size is not changed by creating, dropping or importing tables (if we forget autoextend option). If your tablespace has no data after droping tables, it is easy to resize datafiles or recreate tablespace. If not empty tablespace, after tables drop, you can try to resize datafiles ALTER DATABASE DATAFILE 'file1' RESIZE 20000m.


Note that resizing may not always be done if your tablespace still contain some tables/indexes. In this case you will need to do some other actions before resizing... (alter table move or drop+import or...)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.