1

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.

  • 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
2

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...)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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