DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: WHAT HAPPEN WHEN WE DROP TABLESPACE

  1. #1
    Join Date
    Aug 2002
    Posts
    5

    Thumbs up


    hi,

    If we drop tablespace, then the data or datafile in the tablespace remains there, or dropped too.

    I mean if we drop tablespace, will the datafiles in the tablespace are also dropped.
    Riz

  2. #2
    Join Date
    Mar 2002
    Posts
    301
    Hi,

    When you drop a tablespace, Oracle removes the datafiles from it's data dictionary views and updates the controlfiles. So the files associated with the dropped tablespace is not required.

    Prior to Oracle9i we have to manually delete the files from the OS. From Oracle9i you have an option of creating Oracle Managed Files where in Oracle takes care of creating a file, maintaining a file and deleting a file(when the tablespace is dropped).

    HTH.

    Thanks.
    Vijay.
    Say No To Plastics

  3. #3
    Join Date
    Aug 2002
    Posts
    5
    U mean the data in that tablespace is also removed.

    Thanks u very much, if u have further informaton please let me know.

    Riz

  4. #4
    Join Date
    Oct 2002
    Posts
    391
    i am on sap. and drop a tablespace through sapdba.

    SAPDBA: ORACLE has obviously not released the filesystem space of 17811928 K(Before: 5453816 K, Now: 5453828 K, 100 K reserve for log info, ...).This sluggish behavior is well known. It will take a few minutes or a DB reboot to release all the space!

    and i checked my vg, lv... the space did not increase.

    i must restart my oracle?

  5. #5
    Join Date
    Apr 2002
    Location
    France
    Posts
    118
    Originally posted by oravijay
    Oracle Managed Files where in Oracle takes care of creating a file, maintaining a file and deleting a file(when the tablespace is dropped).
    Thought even if they are not OMF, Oracle can still delete the file for you.
    You would use "drop tablespace XXX including contents and datafiles".
    If there is no solution, it is because there is no problem - Shadok -

  6. #6
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    did you delete the physical file?

  7. #7
    Join Date
    Oct 2002
    Posts
    391
    Originally posted by yls177
    i am on sap. and drop a tablespace through sapdba.

    SAPDBA: ORACLE has obviously not released the filesystem space of 17811928 K(Before: 5453816 K, Now: 5453828 K, 100 K reserve for log info, ...).This sluggish behavior is well known. It will take a few minutes or a DB reboot to release all the space!

    and i checked my vg, lv... the space did not increase.

    i must restart my oracle?
    sapdba will delete the files at the os level

  8. #8
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    AFIAK HP-UX takes a while to free the space (if you are not using HP-UX then ignore this)

  9. #9
    Join Date
    Oct 2002
    Posts
    391
    i have seen RTFM and have gather what it means..

    but this "AFIAK".. i really dont know.. can tell me?

  10. #10
    Join Date
    Oct 2002
    Posts
    391
    i am on aix. so upon dropping the tablespace, and deleting the physical space, i should be able to see the space increased?

Posting Permissions

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


Click Here to Expand Forum to Full Width