Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2012
    Posts
    4

    Unanswered: Want to delete datafile

    I have many datafiles created as we were short of tablespace memory. When unix mount point (that was created for oracle files ) is filled to 98% i have dropped many schemas which are no longer required. I gained space in tablespace but not freed any space on unix disk.

    I know as I did create datafiles the space remain in same tablespace which consumes disk space. I want to know how to free the memory on disk.Better tell me the way to remove datafile.

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >Better tell me the way to remove datafile.
    You might be able to SHRINK data files; then again might not.
    The only way to actually remove/delete data files is to
    1) CREATE TABLESPACE
    2) move all objects from old tablespace to new tablespace
    3) DROP TABLESPACE including contents
    4) rm datafile1, datafile2
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jun 2012
    Posts
    4
    I did the same, thanks for your reply.

  4. #4
    Join Date
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    Next time simply expand the datafile instead of adding new datafiles. Its easy to shrink a single datafile especially in the newer versions of the database.
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

  5. #5
    Join Date
    Jun 2012
    Posts
    4
    That's right beilstwh, Thanks for your advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •