DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Removing Data File

  1. #1
    Join Date
    Jan 2003
    Location
    Bahrain
    Posts
    109

    Removing Data File

    Hi all,

    Can anyone tell me the way to drop the datafile?

    Seelan

  2. #2
    Join Date
    Sep 2000
    Location
    Chennai, India
    Posts
    865
    You cannot drop the datafile alone, you have to size it very less (say 6k) if you don't want it to be used.

    HTH.

  3. #3
    Join Date
    Jan 2003
    Location
    Bahrain
    Posts
    109
    Hi ggnanaraj,
    Thanks for ur reply

    Seelan

  4. #4
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    Hi,
    If the datafile already contain data,and if we try to resize it say 6k,it gives an error saying that the datafile contains data more than the specified size,so how do i drop it in this case.

    regards
    anandkl
    anandkl

  5. #5
    Join Date
    Sep 2000
    Location
    Chennai, India
    Posts
    865
    Originally posted by anandkl
    If the datafile already contain data,and if we try to resize it say 6k,it gives an error saying that the datafile contains data more than the specified size,so how do i drop it in this case.
    1. Identify the objects in that datafile.
    2. Export the objects.
    3. Resize datafile. (cannot drop datafile)
    4. Import the objects.

    HTH.

  6. #6
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    If the tablespace contains only one datafile,
    then we can use

    alter database datafile 'file_name' offline drop;

    then drop the tablespace.

    regards
    anandkl
    anandkl

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