Need to restore database to last week

Hi,
I am running 10g on Linux, and last week someone messed up a database and it needs to be restored to 27 December.
I am not a DBA, out regular DBA is on vacation till mid January, I have been tasked with this because I am the next most knowledgeable person (which is not much!).
I know we have archivelog on (I can see .arc files for the database), and I also have a backup of the actual data files and control files from when the database was first created. So in other words, I have all archive files and the initial data files.
What i do not know is how to set the restore till December 27. If someone could help, that would be appreciated.
PS, I know the DBA uses RMAN too, so maybe that can be used for this?
Thanks.

user8973806 wrote:
So would I need to use RMAN then, and I cannot do it using just sqlplus?
Do you know of an example in some blog or something where something similar is done?
Please note, I am not using any tape drives, I will be copying the original datafiles to the box and so how will RMAN know where the original files are?
Sorry, I am not a DBA, and I have never used RMAN, and so I just need some assistance that is a bit more concise - reading all the manuals is not really feasible, I need some example that is similar to the problem I am encountering.
Thanks.Probably your best course of action would be to open an SR with Oracle Support and get them to help walk you through the process. There are a lot of details to be worked out and you don't want to dig your hole any deeper. The very first thing you want to do is shut down the database and copy all data files, all control files, all init and spfile to a safe location. To get a list of data files and control files
sql> select file_name from dba_data_files;
sql> show parameter controlThis will at least allow you to get back to where you are now if something should go wrong.

Similar Messages

  • HT4910 I try to restore my iPhone last week but I find out that I had lost/missing a lots of photos and messages that I perviously took and send. can iCloud help mr on this?

    I try to restore my iPhone last week but I find out that I had lost/missing a lots of photos and messages that I perviously took and send. can iCloud help mr on this?

    me too

  • Database restore; database recover; Last step?

    Ok, this is my first try with rman to restore and recover from tape.
    My restore database finished successfully...no errors.
    My recover database finished successfully...no errors.
    Now...what is my last step?
    Do I shut down and open back up normally, or, do I need to do something like shut down, then open with reset logs?
    I'm guessing a full database backup after this re-opening would be a good idea too, no?
    Thank you,
    cayenne

    sybrand_b wrote:
    I wonder: why do you specialize in asking so called 'doc questions'?
    Can't be bothered to read documentation?
    Boss doesn't pay you for reading documentation?
    Think this is a chat room?
    Kindly stop posting doc questions. It violates the Forums Etiquette.
    Sybrand Bakker
    Senior Oracle DBABecause I didn't see anything that specifically addressed what I've had to go through in recovering this database in the document or examples I've seen or could find.
    And was wanting to just make sure since I was so close, didn't want to mess anything up at the last moment.
    No need to be snippy about it...everyone else is happy to give some advice and help to someone who is obviously a noob at much of this and learning as he goes.
    Hoping as I learn things better...that I can helps someone else, not to mention, that searching the forums, someone might run into a weird set of circumstances like I have on this and a couple other things.
    You know the old saying..."if you don't have something nice to say, then...."?
    Thanks to all for all the help, I think I'm up and going again now.
    C

  • Need to restore database....

    Hi,
    I am seriously stuck with my oracle database.
    My oracle database has completly crashed but I have the physical file available in oradata folder, can I restore my database using this file in any ways.
    Please reply ASAP.
    Thanks In Adavance...

    well you know that by now but it wont work ...:)
    you can try and recreate the control file.
    create (or delete the new database ) a new service using the oradim util
    in windows
    copy back the backup files from backup directory to the original ( or other)
    copy the below into a scripts (*.sql file) - adjust all the path and names according to you database ( those in < > ) and try to run it form sqlplus.
    any way keep the backup files.
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE <your database name> RESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 2726
    LOGFILE
    GROUP 1 < log file full path between ' ' > SIZE 10M,
    GROUP 2 < log file> SIZE 10M,
    GROUP 3 <log file> SIZE 10M
    -- STANDBY LOGFILE
    DATAFILE
    < all your data files, tablespaces goes here with full path each >
    CHARACTER SET <your required character set >;
    hope will help you
    Cheers
    S.

  • If I have everything backed up to iCloud and restore my iPhone from a backup made on iTunes last week, can I get back everything I saved on iCloud this week?

    I have just started using iCloud as I have always backed up everything on my iPhone to iTunes on my computer. So now I have everything backed up to my iCloud account as well. What I'm trying to ask is: Let's say I made a back up on iTunes on my computer last week. Then this week something happened to my phone and it starts to act weird or not work as well and I want to restore my phone to last week's back up. But let's say I have new things (texts, calendar, contacts, notes) added to my iPhone this week. If I just simply restore it to last week's backup, I'll obviously lose everything I did this week. However if today I save everything (my texts, contacts, calendar, and notes) on my iCloud, then restore to last week's backup, can I get everything I saved today on iCloud back? (Meaning everything I did this week)

    iCloud should overwrite your phone with the data stored in your account, preserving your newer data.  However, to be sure I would go to Settings>iCloud and turn data syncing to Off before restoring the backup.  Then, after restoring the backup, turn the data syncing back to on, and when prompted about Merging with iCloud, choose Don't Merge.  This will ensure that the data in your iCloud account overwrites the data on your phone (which is your goal).
    Also, you don't sync text messages with iCloud so you will end up losing your more recent messages when they are overwritten by the backup.

  • Need to copy archive log file "arch1_601.dbf" when restore database?

    Hi all,
    I have the following case:
    1) Full hot backup today (Feb-12-2009) in directory /u03/db/backup
    2) But ongoing archive log are generated in directory /u02/oracle/uat/uatdb/9.2.0/dbs
    3) I need to restore database becuase some data files are missing.
    4) Use today ful backup to restore
    5) Am I need to copy all archive log files in /u02/oracle/uat/uatdb/9.2.0/dbs to /u03/db/backup because "/u03/db/backup/RMAN" is restore directory?
    FAN

    Here is backup scripts:
    Run
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/db/backup/RMAN/%F.bck';
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    allocate channel ch1 type disk format '/u02/db/backup/RMAN/backup_%d_%t_%s_%p_%U.bck';
    backup incremental level 1 cumulative database plus archivelog delete all input;
    backup current controlfile;
    backup spfile;
    release channel ch1;
    allocate channel for maintenance type disk;
    delete noprompt obsolete;
    delete noprompt archivelog all backed up 2 times to disk;

  • Calculate Dates for Last week and next three weeks

    Hi,
    I have a report where I need to calculate dates between last week and the next three weeks (not counting current week). I'm familar with the first part, it could be done by using the LastFullweek function but not sure how I can avoid the current week and calculate the next three weeks.
    Any help is greatly appreciated.
    Thanks!

    ... and here are a few more...
    Last Week...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate), #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -1, #1/7/1900#)
    THEN TRUE ELSE FALSE
    The week before...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -1, #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -2, #1/7/1900#)
    THEN TRUE ELSE FALSE
    And the week before that...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -2, #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -3, #1/7/1900#)
    THEN TRUE ELSE FALSE
    and of course all 3 weeks together...
    IF {TableName.Date} IN
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate), #1/7/1900#)
    To
    DateAdd("ww", DateDiff("ww", #1/7/1900#, CurrentDate) -3, #1/7/1900#)
    THEN TRUE ELSE FALSE
    If you want the 1st day of the week to be Monday instead of Sunday just change the date of #1/7/190# to #1/1/1900#
    HTH,
    Jason

  • HT1766 can you restore from a older\previous backup? My last restore point is today at 12:31 and I need to restore a backup done last week. Can i do this?

    can you restore from a older\previous backup? My last restore point is today at 12:31 and I need to restore a backup done last week. Can i do this?

    Hi Xkandrux
    Do you mean if I go to edit-preference-device and delete all the recent backup except the older backup I want then it will appear when I select "Restore backup " ?

  • [Solved] Full NTbackup of Exchange 2003 restores but fails to remount on last week's SBS2003 disk image

    Edit - solved - needed to remove present mdbdata folder contents before starting a restore.
    Bit of a long post, sorry - trying to tell the whole story.
    I run SBS2003 in a virtual machine. I stop the VM and copy the virtual disk file to another drive once a week as part of the backup routine. I also take full ("Normal") online NTbackup of Exchange each night. There is only one storage group, containing
    a mailbox store and a public folder store. At one time I tested the restore process for exchange and it worked as I recollect, but it isn't now.
    I took one of my backups from last week and restored last night's full Exchange backup from the active server. I dismounted the stores in Exchange System Manager (ESM), marked the databases as able to be replaced by a backup, and ran the bkf file in NTbackup.
    I was able to watch the files being replaced and rebuilding in the explorer window while the NTbackup was running. I had marked the NTbackup as "Last Restore" and "Mount after Restoring". The NTbackup restore process completes successfully.
    When I go to ESM I find that the stores are not mounted. I try to mount them manually and get an error c1041724 from ESM on each store, saying restart ESM or the Information Store Service. Restarting both still gives me the c1041724 in ESM when I try to mount
    the stores. restarting the server vm completely leaves me with the stores still unmounted, same errors from ESM.
    I check the application events after I try to mount the stores, and I get these events:
    1. ESE event 100 database engine started.
    2. ESE event 102 database engine started a new instance.
    3. ESE event 619 database from backup set on which hard recovery was not started or did not complete successfully
    4. MSExchangeS event 9519 error 0xfffffde0 starting database
    5. MSExchangeS event 9518 error 0xfffffde0 starting Storage Group.....MDB failed to start
    then two ESE events saying database engine stopped.
    RE event 619, http://support.microsoft.com/kb/810199, case 1, says "This issue may occur if you do not select the Last Backup Set check box."
    http://support.microsoft.com/kb/253931 says the same thing, Last Backup Set not checked during the restore. But I did select that box. (FYI, NTbackup calls it "Last Restore Set" - same thing?)
    RE event 9519 error 0xfffffde0,
    http://support.microsoft.com/kb/258529 says "the Storage Group attempted to restart after a crash, and that the database was restored (but not hard-recovered). In other words, the hard recovery log file replay process was not successfully completed,
    or was possibly interrupted."
    RE event 619, http://support.microsoft.com/kb/810199, case 1, says to run eseutil /cc on the temporary path where restore.env is located. I do so and get error -939523485. I am directed to
    http://support.microsoft.com/kb/328639/EN-US and I see the four events on the KB article are in my event viewer. The article says "old log files are out of sequence with the log that is mentioned
    in Restore.env" Event 458 says "The logfiles E0005C75.log and E0005C9D.log are not in a valid sequence". Log file E0005C75.log is in the temporary folder with the Restore.env file. There is no E0005C9D.log in either the temporary folder or the
    mdbdata folder. The mdbdata folder has only an E00.log and an E00.chk, and res1.log and res2.log. I do find in the working server that there is a E0005C9D.log.
    It sounds like I'm missing some logs from the backup. But it's supposed to be a full Normal backup. I find no mention anywhere that one needs to go back into the running server to copy logs out. What am I missing?

    OK, so here's something interesting. Noting that the errors implied I was missing logs (from my "full" backup-?) I said why not also back up the whole exchange database folder too? Then I might get those missing logs. So I set NTbackup
    to do an online backup of the Information Store, and the exchange mdbdata folder's contents, in the same bkf.
    I try to restore the bkf first to my test server, doing just the information store first and leaving the extra mdbdata folder unchecked. Also, the "Last Restore" box is UNchecked so the logs won't be replayed when the restore is done. After that
    restore runs, I then uncheck the information store backup and check the mdbdata folder, and run the restore again. The new logs come in now. (I can't run them both in the same restore, information store has to be first, then mdbdata folder.)
    After NTbackup is finished with both restores I go to ESM, right-click the stores and Mount them - no eseutil commands. The databases mount just fine, no errors, and I can log in with remote exchange on a test client's IE, no issues; all emails and
    calendar posts from the previous day, up to 5PM when the backup runs, are present. The only problem, besides no Microsoft or other websites that I can find saying a full backup needs a supplemental backup to be full, is that my backups are twice
    as big as they were before, from copying the databases twice.
    So a "full" backup from NTbackup isn't full enough, and a non-documented shot in the dark gets the restore to work.
    Is my server issue-matic, or is something not right here with NTbackup?

  • Restore last week Rman backup

    Hi guys
    i need to restore last week rman backup from .. we are not using catalog database.
    i need to restore it on same machine with diff mount point ..
    i know i can use tag option of restore specifically last week backup but its production restore so thought if anybody can give me list of steps i need to follow .. anybody who has done this before.
    do i have to fire resetlogs at the end as its incomplete recovery .. i need last saturday backup .. don't want monday backup on top of it.
    please help me in this.
    Regards

    hi guys
    thanks for update
    i think logseq number is tag number correct me if i am wrong.
    so my command should be like below as my last week backup tag number is TAG20100420T123703 .. i am sorry if i am asking stupid question but just to be confirm.about what i am doing.
    RUN
    ALLOCATE CHANNEL CH1 DEVICE TYPE 'SBT_TAPE';
    SET UNTIL LOGSEQ TAG20100420T123703;
    SET NEWNAME FOR DATAFILE 1 TO '<newpath>/<filename>.dbf';
    SET NEWNAME FOR DATAFILE 2 TO '<newpath>/<filename>.dbf';
    SET NEWNAME FOR DATAFILE 3 TO '<newpath>/<filename>.dbf';
    RESTORE DATABASE ;
    SWITCH DATAFILE ALL;
    RECOVER DATABASE;
    sql 'alter database open resetlogs';
    RELEASE CHANNEL CH1;
    }

  • Rman restore from last week backup

    Hi guys
    i need to restore last week rman backup from .. we are not using catalog database.
    i need to restore it on same machine with diff mount point ..
    i know i can use tag option of restore specifically last week backup but its production restore so thought if anybody can give me list of steps i need to follow .. anybody who has done this before.
    do i have to fire resetlogs at the end as its incomplete recovery .. i need last saturday backup .. don't want monday backup on top of it.
    please help me in this.
    Regards

    You have to ensure that your controlfile, redo log file and database file locations are different from your production database.
    Ensure that your instance parameter file specifies a different location for control_files
    Use db_file_name_convert -- however, I prefer to explicitly name a new location for each datafile, in case your database files are spread across multiple directories and you miss one or more in db_file_name_convert. (you don't want RMAN to restore datafiles from the backup to the current locations and overwrite your production database files !)
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Apr 22, 2010 6:06 PM

  • Have an iPhone 3GS, and it will not restore.  It says (-1) error and won't restore.  I updated to iOS 5.0.1, and have the latest version of iTunes.  Every time I plugged my phone in last week it would crash and I would have to connect it to iTunes.  Help!

    Last week I updated my iTunes, updated to iOS 5.0 and ever since I did this my phone has been going nuts.  Any time I plug it into a charger I get a screen that tells me I need to connect to iTunes.  I have had to restore it multiple times in order for it to work.
    I've tried doing resets, restoring to factory-everything that I can find online to do.  I've spoken with ATT tech support and done everything they've said to do regarding my greyed out wifi, my phone only working on 3G, and other issues. 
    The first iPhone 3GS I got had a defective camera, so ATT replaced it free of charge.  I've had this one for a year, and quite frankly cannot afford a new one. 
    If anyone knows anything I can do to fix it, I would really appreciate it. 

    11.1 is now the most recent  iTunes. Downloading it may take a bit since everyone got hit today with the need to update their iTunes on the very same day the iOS update came out and you have to update iTunes to update the iOS.
    YOu should still be able to charge it without updating iTunes.

  • My MacPro crashed last week. Can I restore my old necessary calendar events that I lost but saved my data on an external HD?

    My MacPro crashed last week The Mac repairman transferred all my data to an external HD before deleting and reconfiguring the  MacPro.
    Can I restore my old necessary calendar events that I lost but saved to an external HD? Where would I find my old  calendar info on the external HD? I've tried search, but nothing revealed. I really need this calendar info for my business. Many thanks for any suggestions / advice.

    You can try a file recovery application like File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • HT1766 I am trying to restore a new replacement phone from an icloud backup but it is telling me there is a problem with backup data. The backup was done under 7.1 and I think the new phone still just has 7.04. My itunes backup was lost last week...sugges

    I am trying to restore from icloud but it appears the 7.1 it was backed up in and the 7.04 on the new phone won't allow it. My itunes library was lost last week due to computer crashing and having to be restored. I have a clean very current icloud back up done on March 21st but I cant seem to get it there. Suggestions please?

    You will have to update the iPhone to iOS 7.1 if that is the iOS the backup was done in. You cannot restore a newer iOS update to a phone with older iOS. Once you update the phone, you will be able to restore the backup.

  • Randomly when I plug my Iphone 4s into Itunes it will tell me that it can't detect my phone and that I need to restore it. It doesn't happen every time, but maybe every two weeks.

    Randomly when I plug my Iphone 4s into Itunes it will tell me that it can't detect my phone and that I need to restore it. It doesn't happen every time, but maybe every two weeks.I restore it and then it works for a while, but then a couple weeks later I'll plug it in and I get the same message again. It's very frustrating because even though I have all the settings to save to cloud, my apps and data don't all come back.

    Thank you both. I suppose I should have prefaced my question with the concern that I've read a number of other posts from people who have had a similar issue and when they tried to follow the directions, they ran into a multitude of other problems. As you might imagine, I'm hoping to avoid the creation of new problems as I try to solve this one. Thanks again.

Maybe you are looking for

  • Stock details of a material with batch details

    Hi. I am developing a PP report for which i require the available material (un restricted stock) details and their batch details which are being displayed in MMBE (tcode). Is there any function module or BAPI or else what is the table name for findin

  • Transaction and Process Keys in MM

    Hi BW Experts, Can any one please tell me what are Transaction and Process Keys in MM. What is the use of these keys and how it is implemented in BW. Thanks in Advance. Tony

  • How to Slice a Watermark to a CSS layer?

    Hi, I've been provided a PSD that contains a background image, a photo for the masthead, and a watermark that overlays the background color but underlays the photo.  I need to create a valid HTML5/CSS3 layout.  How do I go about slicing the photo, an

  • How to force readObejct query with PK value to go to DB?

    The default behaviour for read-object queries with a PK value is to use the cache and not go to the database. How can we change this behaviour? We have cases that a row was deleted by some other process not through toplink, but the corresponding obje

  • How do I make a dashboard web clip widget inactive and then delete it?

    How do I delete a widget if I cannot access my dashboard because of that widget? Each time I open the dashboard it jumps automatically to a web page that wants to be the page I tried to web clip, but is just a blank page. I cannot use any functions o