Someone deleted my datafile...

On windows
oracle 10.2
I just created the database. It is for development purposes. Ther eis nothing in it I can't afford to lose. I don't have a backup.
I just want to drop the tablespace with the datafile in it.
1. I can mount the database, but can't open it because oracle can't find the datafile
2. i cant drop the tablespace in mounted mode.
I know there is a way to fix this. what do I do? I know I need to somehow drop the tablespace.

Do alter database backup controlfile to trace;
Then recreate you controlfile using the file created by the command above. Remove reference for your missing datafile from this create controlfile script. The script in a form of trace file willl be in your .../udump directory. You will need to remove your control files (you may save them someplace).
Let me know if you have further questions. Good luck.
Greg

Similar Messages

  • Deleting a datafile

    In Oracle8i, how does one delete or drop a datafile? The file does not physically exist on disk. When I try to "create tablespace datafile 'foo' size 100m", it reports that it cannot process the statement because the "datafile already exists". It seems that I need to tell Oracle to delete the datafile before I can recreate it.

    The "and datafiles" is not supported in 8i. Believe it or not, I think the prescribed method of deleting datafiles is to do so at the OS prompt (gulp!). Seems strange since Oracle creates the datafile via an SQL command (create tablespace <foo> datafile <fname>).

  • Delete a datafile in 11gR2 ASM

    Here is the current datafiles of the database 11gR2, 11.2.0.1 on the ASM file system.
    SQL> select FILE_NAME,TABLESPACE_NAME from dba_data_files;
    FILE_NAME TABLESPACE_NAME
    +DATA01/heat/datafile/testtbs.274.807968419             TESTTBS
    +DATA01/heat/datafile/testtbs.266.807968493             TESTTBS
    +DATA01/heat/datafile/testtbs.258.807968511             TESTTBS
    1/ Use RMAN to backup the whole db onto the disk
    2/ In RMAN, check the backup: List backup; See all the backup including the above data files;
    3/ Run this cmd to drop 1 datafile, In SQL> ALTER TABLESPACE TESTTBS drop datafile '+DATA01/heat/datafile/testtbs.258.807968511';
    4/ Verify it, whether that data file deleted, yes it was deleted.
    SQL> select FILE_NAME,TABLESPACE_NAME from dba_data_files;
    FILE_NAME TABLESPACE_NAME
    +DATA01/heat/datafile/testtbs.274.807968419             TESTTBS
    +DATA01/heat/datafile/testtbs.266.807968493             TESTTBS
    5/ In RMAN, check the backup again: List backup; It's not there in the backup. Why's that ?????????????????????
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    6 Full 935.09M DISK 00:01:15 21-FEB-2013 11:43:44
    BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20130221T114228
    Piece Name: +FRA01/heat/backupset/2013_02_21/nnndf0_tag20130221t114228_0.344.807968549
    List of Datafiles in backup set 6
    File LV Type Ckp SCN Ckp Time Name
    1 Full 999944 21-FEB-2013 11:42:29 +DATA01/heat/datafile/system.256.807898985
    2 Full 999944 21-FEB-2013 11:42:29 +DATA01/heat/datafile/sysaux.261.807898985
    3 Full 999944 21-FEB-2013 11:42:29 +DATA01/heat/datafile/undotbs1.260.807898985
    4 Full 999944 21-FEB-2013 11:42:29 +DATA01/heat/datafile/users.268.807898985
    5 Full 999944 21-FEB-2013 11:42:29 +DATA01/heat/datafile/testtbs.274.807968419
    6 Full 999944 21-FEB-2013 11:42:29 +DATA01/heat/datafile/testtbs.266.807968493
    7 Full 999944 21-FEB-2013 11:42:29
    6/ Try restore the deleted data file, it's not available in the backup ????? I do not understand this ? Really appreciate someone could explain this ?????

    When you drop a datafile, the database instance updates controlfiles, redologs and SCN numbers. The datafile you have in your backup will no longer match the the rest of the database environment, so it cannot be restored without restoring the complete database prior to the time the datafile was dropped. Similarly you cannot mount or restore the datafile of a different database. The database does not maintain recovery information for a datafile that does not exist. If you loose the datafile, e.g. delete it from the filesystem, you can restore the datafile and recover the information using the existing controlfile and redologs. That is all normal and is not influenced by ASM.

  • Deleted undo datafile before dropping the tablespace.

    i had accidently deleted a undo datafile which was no more needed before dropping the tablespace.
    i started up the database in mount stage by making that datafile offline.
    now while dropping the database it is giving an error.
    SQL> drop tablespace UNDOTBS1 ;
    drop tablespace UNDOTBS1
    ERROR at line 1:
    ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace
    Do someone have a resolution. I dnt need this tablespace anymore.

    http://www.my-whiteboard.com/oracle-dba/how-to-drop-and-recreate-oracle-undo-tablespace-and-its-data-files.html may be helpful to you.

  • Someone Deleted my Recently Added Playlist, How do I get it back?

    Someone else who was using my computer accidently deleted my recently added playlist. How do I get it back? I've already updated to the newest version of ITunes, but I still don't have it.

    File -> New smart playlist.
    Match rule;
    Date added is in last 2 weeks (or whatever you want).

  • Delete the datafile

    Hi all,
    I want to delete Datafile from my ASM instance. I gave a bad name to my data file and i want to remove it now.
    SQL> select file_name,TABLESPACE_NAME,ONLINE_STATUS from dba_data_files where TABLESPACE_NAME ='USERS';
    FILE_NAME TABLESPACE_NAME ONLINE_STATUS
    +DATA/orcl/datafile/users2           USERS                RECOVER
    Please help me to resolve this issue.
    Thanks,
    krish

    user2281943 wrote:
    Hi all,
    I want to delete Datafile from my ASM instance. I gave a bad name to my data file and i want to remove it now.
    SQL> select file_name,TABLESPACE_NAME,ONLINE_STATUS from dba_data_files where TABLESPACE_NAME ='USERS';
    FILE_NAME TABLESPACE_NAME ONLINE_STATUS
    +DATA/orcl/datafile/users2           USERS                RECOVER
    You can NOT delete datafiles once they are part of the database.There is a command to drop the datafile but that works only when the file is completely empty. For your "bad name" issue of te file, all what you needed to do was to use the Rename command and to rename the file. But what appears is that the file is either offlined or is not available. Do you have archivelog mode enabled and have all the archivelogs with you? What appears is that you need to recover the said file before you can do anything else over it.
    HTH
    Aman....

  • Automatic deleting of datafiles after DROP TABLESPACE

    Lazy junior dba question. How can i order oracle to delete files automaticly after deleting them from control file (like drop tablespace command)?
    What technology/approach should I use? Can ASM help me?
    Thnaks.

    Well, ideally after issuing
    DROP TABLESPACE <TBS_NAME> INCLUDING CONTENTS AND DATAFILES; the datafiles corresponding to that tablespace should get deleted automatically. Although, in my case, sometimes it gets deleted automatically, but sometimes it doesn't(Windows Server).
    Comments from others will be useful.
    Regards,
    Anand

  • RAC - DBCA -silent deleteDatabase not deleting underlying datafiles

    Hello All,
    I have a small question. I recently deleted a RAC database on 11GR2 (Grid Infrastructure) using the following command as the database owner (oracle)
    dbca -silent -deleteDatabase -sourcdDB mydb -sysDBAPassword mypassword -sysDBAUserName sysThe command execute properly. But I see the datafile structure is still under ASM. I'm wondering if the command should have been run as grid rather then oracle, because the documentaiton states:
    http://docs.oracle.com/cd/E11882_01/install.112/e10813/dbcacrea.htm#BABIGJAH
    "At this point, you have accomplished the following:"
    Deleted the selected database from the cluster
    Deleted high availability services that were assigned to the database
    Deleted the Oracle Net configuration for the database
    Deconfigured Database Control for that database
    Deleted the OFA directory structure for that database from the cluster
    Deleted the data files if the data files were not on raw devices
    Thanks in advance for your advise and assistance.
    Jan S.

    Check with this doc
    Removing a Node from a 10gR1 RAC Cluster [ID 269320.1]
    regards,
    Shaan

  • I lost my ipod touch- if someone deletes and resets it will I still be able to use that tracker app?

    I lost my ipod yesterday
    and my friend told me that if they go to settings and delete and reset my ipod that i wont be able to find it- is that true?
    and if it is how does the report your lost device thing work? like if someone opens a new account on your ipod does Apple send something to them or what? Do they send the police? I'm just curious. Thanks

    No.
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                                        
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Delete Temp Datafiles

    Hi all,
    The temporary tablespace datafiles were old and occupy lot of space. Can I safely remove them or shall I backup them to disk.
    Thanks.

    786923 wrote:
    Hi all,
    The temporary tablespace datafiles were old and occupy lot of space. Can I safely remove them or shall I backup them to disk.
    Thanks.Do not need backup of temp tablespace,but you can create new temporary tablespace and delete old ts as
    create temporary tablespace new_tempts tempfile 'tempfile_full_path'  size <size> autoextend on next 30M;
    alter database default temporary tablespace  new_tempts;
    drop tablespace old_ts_name;

  • Someone deleted a video that wasn't backed up on my computer. How to I get it back?

    A friend of mine deleted a video that I took on my iPod. It wasn't backed up on the computer and I'm not sure how to get it back. Help?

    No

  • Someone deleted iTunes from my computer!

    i have all the songs and videos and my iPod but sum1 deleted them off of my iTunes library!!!!! is there any way to put the songs back on using my iPod?

    Copying from iPod to Computer thread...
    http://discussions.apple.com/message.jspa?messageID=3536077#3536077
    http://discussions.apple.com/thread.jspa?messageID=797432

  • How can i prevent history deletion or save history in another file even if someone delets the history

    ''locking - duplicate - https://support.mozilla.com/en-US/questions/852041''
    I just want to keep my history or record it so i can review it after one of the kids delete it.

    Bookmarks and browsing history are stored by firefox in this file the you can try in the [[Profiles - Where Firefox stores your bookmarks, passwords and other user data]] :
    bookmarks.html (Firefox 2) - Bookmarks
    history.dat (Firefox 2) - Browsing history of previously visited websites
    places.sqlite (Firefox 3) - Bookmarks and browsing history. Note that Firefox 3 stores both bookmarks and browsing history in the places.sqlite file.
    You can alternately import a bookmarks HTML file if you wish to add those bookmarks to your current Firefox bookmarks. In Firefox 3, you can also use the Firefox Library "Restore" feature to replace your current bookmarks with a bookmark backup file (such as a dated JSON backup from the bookmarkbackups folder of another Firefox 3 profile) but this will not transfer your browsing history.

  • Someone deleted my Messages.app from my mac. Is there a way to reinstall it without resinstalling the whole OS?

    I work at a company and I inherited a newish macbook pro from a former employee. When I got it Messages.app and Calendar.app were missing. I copied Calendar from a coworker's computer and it works fine but when I tried it with messages the app is totally broken. Is there a place where I can install the application from?
    Thanks in advance!

    HI,
    As you may know an app's icon can be removed from the DOCK by simply clicking and dragging it off the DOCK and then letting go.
    You may also know that this does not delete the app and that it remains in Applications.
    At this point you don't know if the previous user was used to sticking similar app in folders of their own making.
    For instance creating a Messaging App Folder and sticking in MSN, Yahoo for Mac and Messages and even FaceTime.
    For Apple Apps and Updates this can be a problem as the apps such as Messages are not found as they as in the "wrong" place.
    At this point it is possible to have such a Folder and have iChat in it  (which still will not work as all the ancillary apps and Frameworks will not match) and this will not have been upgraded at the Lion to Mountain Lion Upgrade.
    Only a Restore will sort this.
    If however the computer has only had Mountain Lion then moving the Messages app out of any containing folder in to the Applications Folder an then running the Combo version of OS X 10.8.4 may restore it's full function.
    This is a long shot as Messages was actually updated to version 7.0.1 in the OS X 10.8.2 update but there were behind the scenes changes at OS X 10.8.4 that were supposed to address the Out of Order iMessages Issue.
    Realistically a Restore is much more likely to sort this.
    9:19 pm      Saturday; August 10, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can someone delete my post/question for me?

    I just recently generated my first question and accidentally, I posted the question twice creating a duplicate. When I posted, the next page didn't load and I went back in my browser and posted again. I should have checked that it was posted, but I didn't, so it got posted twice.
    Here is the URL for my post:
    http://discussions.apple.com/message.jspa?messageID=7537115#7537115
    Please don't delete it if there are replies, though! Thank you!

    *Hi ...test, Welcome* to Apple's Users Help Users Forums.
    In particular it looks like you have changed alias name as ...test does not show up in those links. I doubt the mods are going to bother hunting down who you were etc.
    Yes, starting a *new thread* is frowned upon. In some forums, Macfixit for eg, the mod will quickly pick the best one and quit the other one—maybe transfer over any responses. Mods = Hosts are not so quick on that in these Apple Forums.
    Reposts in a *given thread* happen all the time. Sometimes it's Apple's fault through a server glitch. Sometimes it's the poster's ISP's fault. If Poster sees it within 15 minutes they can edit it to "Oops double post. " and let it go at that. I recall recently seeing 3 in a row. Reader just scrolls past and goes on w life. No big thang. Don't loose any sleep.
    Good Luck, JP

Maybe you are looking for

  • Non-numeric character error

    This is my error: javax.servlet.ServletException: ORA-01858: a non-numeric character was found where a numeric was expected This is my code: ResultSet myRs = myStmt.executeQuery("select count(*) dexCount from cs_dexia where userid = '" + vUserid + "'

  • 1 xml file to multiple xml files with 200 records in each

    Hello Experts, I have below scenario. Please suggest me which might be the best approch to work on. 1) XML file to XML file I will have 1 pretty huge XML file which i need to break in multiple XML files with 200 records each.   1) first approch i can

  • HT5953 How can I move my books from the ibook store to my Android device? I bought the book, so I have every right to move it as I see fit!

    The new Ibooks on Mac computers is about the worst thing to happen to Apple in a long time. I bought a book from the Ibook store, and I want to move it to my adnroid device. The thing is refusing to let me move my purchase. I mean, I used my money to

  • Front Row doesn't work with my Intel iMac

    I've had my ICD iMac for about 2 months. It used to work, but now when I push the 'Menu' button nothing happens. I've rebuilt permissions and restarted. If I'm running iTunes I CAN move forward and back tracks. Any ideas?

  • PR LINE ITEM DELETION

    Dear Experts, I m tryinng to delete the line item for PR but system is giving the message that This PR cannot be changed Messge No SU000. PR has the status as PO created, PO line item alerady deleted. Please guide