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

Thread: Unable to drop a tablesapace

  1. #1
    Join Date
    Jan 2001
    Posts
    138

    Unable to drop a tablesapace

    I deleted a datafile from the server by mistake. I was deleting some unnecessary custom tablespaces. Deleted the datafile on the server prior to deleting the tablespace on the database. Now I can't drop the tablespace. I don't have a recent backup. We are just using this database to store data for a project. This is not a critical database. But I need to bounce the database after changing the optmizer to CHOOSE from RULE. This is an 8.1.7.4 database. What can I do to successfully drop this tablespace? Thanks.

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Can you take the tablespace offline, then do an offline drop?

  3. #3
    Join Date
    Jan 2001
    Posts
    138
    I tried that but unable to take it offline due to missing datafile.

  4. #4
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    well if you are shutting it down anyway

    shutdown

    startup mount

    alter database datafile 'xxx' offline drop;

    alter database open;
    drop tablespace yyy including contents and datafiles;

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