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

Thread: urgent : recovering the datafile

  1. #1
    Join Date
    Nov 2003
    Posts
    89

    urgent : recovering the datafile

    Hi,
    I was deleting few files in a test machine for the database 'TEST1', accidentally I deleted files of 'TEST2' in /u08/oradata/TEST2 directory. I do not have a backup for the test database.
    When i start the database I am getting an error files are missing. All the files are of one tablespace. How can I drop the tablespace by mounting ?? How can I start the database?

    I started mounting and making datafiles offline, but as the pysical file is not present I cannot make offline. Please help urgent

  2. #2
    Join Date
    Nov 2003
    Posts
    89
    HI adding to above... I dont need to have recovery of tablespace but I need to up my database. Once I can startup the database, I can go ahead and create the datafile and the tables related to that

  3. #3
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Code:
    startup mount
    alter database 'path_to_files' offline drop;
    alter database open;
    dtop tablespace xxx;
    where xxx is the tablespace the datafiles were part of

  4. #4
    Join Date
    Nov 2003
    Posts
    89
    When I am trying to make a datafile offline in mount, I am getting message as datafile is not present. Need to be in archive log mode to make a datafile offline;

  5. #5
    Join Date
    Sep 2001
    Location
    Ohio
    Posts
    334
    You have to use offline DROP

  6. #6
    Join Date
    Nov 2003
    Posts
    89
    Now I am able to drop the datafiles. I will restart the database and drop the tablespace.

    Can I create the tablespace and datafiles again with the same name?

    Thank you for the help .

  7. #7
    Join Date
    Nov 2003
    Posts
    89
    updated message. I dropped the datafiles and dropping the tablespace using incluing contents option.

    Can I create tablespace using same name and datfiles again ?

  8. #8
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    yes make sure you physically deleted the datfiles as wellif you didnt use the 'and datfiles' option

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