Recovery upto Certain time for Database

Hi,
For database ERSP(10.2.0.4) we usually have a hot backup everyday. It finishes off everyday @23:00. An archivelog backup everyday , every 2 hrs.
For 29th June: hot backup was successful @ 23:00. This is the latest hot backup of ERSP database availaible
We have latest archivelog backup of ERSP database till 30th June, 09:00 .
What i want to do is to recover database upto 30th june 08:00 . Can any1 tell how to have full database recovery upto this time with latest hot backup of yesterday and latest archivelog backup of today
thanks in advance
Edited by: 832812 on Jun 29, 2011 9:04 PM

832812 wrote:
Hi,
For database ERSP(10.2.0.4) we usually have a hot backup everyday. It finishes off everyday @23:00. An archivelog backup everyday , every 2 hrs.
For 29th June: hot backup was successful @ 23:00. This is the latest hot backup of ERSP database availaible
We have latest archivelog backup of ERSP database till 30th June, 09:00 .
What i want to do is to recover database upto 30th june 08:00 . Can any1 tell how to have full database recovery upto this time with latest hot backup of yesterday and latest archivelog backup of today
thanks in advance
Edited by: 832812 on Jun 29, 2011 9:04 PM
RUN
  # set time to just before data was lost.
  SET UNTIL TIME 'Jun 30 2011 08:00:00';
  RESTORE DATABASE;
  RECOVER DATABASE;
}refer the link:-
http://download.oracle.com/docs/cd/B14117_01/server.101/b10734/rcmrecov.htm
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/flashptr006.htm
Edited by: rajeysh on Jun 30, 2011 9:39 AM

Similar Messages

  • How to disable internet at a certain time for certain computers?? (kinda like a parental control)

    We have a WRT54G and we all connect to the router wirelessly. The router has to be downstairs because our modem also has to be downstairs. We have digital phone so our phone has to be connected to the modem, which is why i cannot connect physically with an ethernet cable.
    I have a little brother and a little sister and i have to control their internet because i see them awake in their rooms surfing the net. I see that i can disable "wireless internet connection" or create a policy disabling the internet at certain days and times at 192.168.blah.blah. But i just want to create a policy for my sister and brother's connection and not mine. I'm afraid if i create a policy, it may also disable my connection to.
    Help please.
    Thanks.

    You will need the IP addresses and MAC address for the computers you want to block.  You will find this information under DHCP table.
    In Access Restrictions set a policy name and set status to enable. Input your computers info in Edit lists of PCs.  Now set your days and times.
    The system works between 12 am to 11:59 pm  You can allow Internet from say 6 am to 11 pm but you cannot deny from 11 pm to 6 am.
    If you have any problems download userguide for your router.
    Greetings from Northern Ontario, Canada

  • Industry Standard TIME for database daily backup?

    We have many databases in our company for which our Database backups are forced to be run by System Administrators at 3PM since their tape backups are starting from 4PM.
    As a DBA I am suggesting to run all the tape backups late night so that I can schedule my Database bacukps at atleast 10PM daily.
    What is the industry standard for running daily database backups time? Can somebody please provide some links for such standards from a authorising body like Gartner, etc?
    Thanks in advance.

    There is no standard time as this depends on many factors (business working hours, scheduled concurrent programs, activities on the system, whether you have global offices with different timings, ..etc). For most companies, I believe the best time to take a backup is when there are less activity on the system (which is usually late at night).
    The question is, what type of backup you do? If it is an offline backup, and you are not affected by any of the above factors, then you should be OK to run it whenever it is suitable for you. If you use an online backup, you could simply keep the application/database running and take a backup.
    Thanks,
    Hussein

  • How can I set up a Macbook to wake up at a certain time for backing up?

    My wife objects strenuously to Time Capsule (wireless) backups so I finally set it to once a day, starting at 7 pm. You would think that would work but NO, runs too long and even next morning to finish. We are backing up only documents, mail, safari, etc. — no Apps.
    We also back up online to BackJack once a day.
    So I am thinking what may be a solution is to have it run at night, when she is asleep and the only time she is not using it.
    But how do I wake it up at the designated time? If we leave the lid up will just start when something is scheduled like Time Machine or Backjack? Or do I need additional software?
    Thanks,
    Richard

    Richard Pitcairn wrote:
    Basically, for my wife's settings, we exclude iTunes, movies, Apps but do back up Mail, Safari, Docs, Prefs. I have watched it and it does indeed run a long time.
    Then something is broken. Backups are only useful when done from a known good system. Then, if that system dies, is stolen, etc. you can restore from your backups. You are backing up a known bad system. If and when you need to restore (and you may, considering something is wrong), you may find your backed up data to be garbage. It is worth investigating why those backups are taking so long. You shouldn't have to exclude anything. You shouldn't be able to generate enough hourly changes to cause the backup to be so slow as to interfere with normal operation.
    Two things that could be improved are the memory on the Macbook and the available disk space on the Time Capsule. You are low on both. However, I suspect the problem is elsewhere. You might want to review her log files during a backup to see if there are any error messages.
    As for using BackJack, she is an artist and has about 40 GB of photos on her drive that if lost, might be the end of our relationship.
    Then those files need to be archived, not backed up, to one or more devices. They should probably also be verified. I have seen people dutifully run backups for months, never realizing they were backing up junk and overwriting the previous, valid backups. I discovered that only when called in to do a system restore from backup.
    Time Machine too slow, too small a capacity. I ran Mozy for a while but really slow and CPU consuming. BJ is reasonably fast, does incremental backups, does tie up CPU nearly as much.
    I think you have jumped to some invalid conclusions based on some other, underlying issue. When your system if functioning properly, Time Machine should make anything else look like a joke. Your system is sickly, and backing that up isn't doing you any favors.
    My advice is to shut down all backups, perform an archive backup, and verify that the archived data is valid. This might be an excellent occasion to use a cloning tool such as Carbon Copy Cloner. Then investigate why your backups are so slow. I suggest buying a new hard drive anyway for that 40 GB of critical data. May as well get an additional hard drive for the Time Capsule and some more RAM. Then re-partition that machine and reinstall the OS, perhaps onto yet another new drive. That is probably the quickest, easiest, and cheapest way to get your systems back up to speed and running well for the long term.

  • Change time for database server

    Hi!
    I need to change the operation system time from my database server. Is it necessary to stop database to do that or can do with the database on-line?
    Thanks,
    Augusto

    You might want to be sure you aren't conflicting with Oracle jobs, remember in some versions of Oracle there can be more than one way of submitting jobs (not to mention OS and app specific things). In general there is no problem, but those specifics get you every time.

  • Is there any tool or method to find the exact disk space/memory required for a query to execute in certain time

    Hi,
    We have SSIS Package, which in-turn executes some Stored procedures . 
    This Package runs fine at certain time, say 30 minutes which is acceptable. But sometimes, it takes around 1.5 hr. There was no modification done to the package, and the amount of data handled by the package is also same.
    I have a doubt that some other big process may be running in parallel when this package is getting executed.
    All the Databases are on D drive in the server and currently there is 140 GB free space out of 1 TB.
    Now, using sp_who2 I can check what are the big processes which are running in parallel when this package is getting executed and get their Disk I/O.   
    Now having these information, is there any way to determine, amount of space/memory required to execute a particular query in 30 minutes.
    Or to put a question in other way, I have a query and I know its acceptable execution time(30 min). Now is there any way to determine the criteria to get that execution time.
    NOTE: The query is optimized and required indexes are created. It was running fine, until 1 week back. Suddenly the execution time has increased.
    Can some one please help me in this. Please let me know if you need any further information on this.
    Also whenever these jobs are running, sometimes job activity monitor and SSMS gets frozen. Any idea what does this indicate?
    Thanks in advance,
    Raksha

    Perhaps blocking?
    Take a look at Adam's great stored procedure to see who is running on the server
    Who Is Active? v10.00 (2010-10-21)
    (C) 2007-2010, Adam Machanic
    Feedback: mailto:[email protected]
    Updates: http://sqlblog.com/blogs/adam_machanic/archive/tags/who+is+active/default.aspx
    "Beta" Builds: http://sqlblog.com/files/folders/beta/tags/who+is+active/default.aspx
    License: 
    Who is Active? is free to download and use for personal, educational, and internal 
    corporate purposes, provided that this header is preserved. Redistribution or sale 
    of Who is Active?, in whole or in part, is prohibited without the author's express 
    written consent.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • PIT recovery until time when database was in backup mode

    Hello,
    Is it possible to recover database until some point/time which is within "time window" when database tablespaces were still in online backup mode?
    I was basicaly replicatying database from source to target DB by putting DB to online backup mode, then copy all datafiles, after copy of datafiles was finished I started applying redologs generated on source DB afterwards. After I applied tens of redologs with "recover database until cancel using backup controlfile" and then typed "CANCEL" after 10-20 redologs applied I still got an error that opening DB would get an error due to inconsistent datafile. When I ended backup mode on source DB and applied few of redologs after ending backup mode on source DB datafiles were consistent.....
    Thx a lot for answer in advance.

    Hello Hemant K Chitale ,
    thats clear. I probably did not express it clearly, so I will describe it once again:
    Teoreticall scenario 1:
    I put 'source" database to backup mode and start copy datafiles to "target" db. When copy of all datafiles is succesfully finished (lets say it 5:00AM), I don't issue "end backup" on source DB but I keep tablespaces in backup mode until 7:00AM. On target DB I will start recovery and apply redologs from source system.
    Question 1:Is it possible to recover database until time 6:00AM? At this time all datafiles were already succesfully copied, BUT source db was still in backup mode. Or will I be able to get target DB to consistent state only after 7:00AM (end backup issuied on source DB) and not in window 5:00AM-7:00AM?
    Teoreticall scenario 2 (small correction comparing to scenario1):
    I will put source DB to begin backup mode at 5:00AM on 20.february and let it in this state until 7:00AM on 20.february. On target DB I will restore backup from source DB performed day before (or few days before does not matter) that means on 19.february and start to apply redologs generated after this backup.
    Question 2: Will I be able to recover DB until 6:00AM on 20.february and open database after recovery until this time? Or wont I be able to recover and open DB witin window 20.february 5:00AM-7:00AM (source db in backup mode)
    Bear in mind this is just teoreticly (don't ask me why would you do it and why you don't do it this way etc...). I just want to understand how it really works ;)
    Thx a lot!

  • Time for incomplete recovery.

    Hello everybody! )
    i have a backup of Oracle 10gR2 database using rman script:
    run{
    backup database;
    backup archivelog all;
    backup current control file;
    i need restore this database on other server over 2 months
    How can i find the time for incomplete database recovery.
    Thanks.

    Hello.
    I have full backup of database plus archivelogs;
    RMAN> list backupset summary;
    Key-TY-LV-S-Device-Type-Completion_Time--------Pieces-Copies---Compressed Tag
    1412---B--F--A DISK------26-11-2010 20:45:18 1-----1-----NO------TAG20101126T195011
    1413---B--F--A DISK------26-11-2010 20:46:45 1-----1-----NO------TAG20101126T195011
    1414---B--F--A DISK------26-11-2010 21:01:43 1-----1-----NO------TAG20101126T195011
    1415---B--F--A DISK------26-11-2010 22:01:14 1-----1-----NO------TAG20101126T195011
    1416---B--F--A DISK------27-11-2010 01:17:52 1-----1-----NO------TAG20101126T195011
    1417---B--A--A DISK----- *27-11-2010 01:20:48* 1-----1-----NO------TAG20101127T011822
    1418---B--A--A DISK------27-11-2010 01:20:49 1-----1-----NO------TAG20101127T011822
    1419---B--A--A DISK------27-11-2010 01:20:51 1-----1-----NO------TAG20101127T011822
    1420---B--A--A DISK------27-11-2010 01:20:59 1-----1-----NO------TAG20101127T011822
    1421---B--A--A DISK------27-11-2010 01:21:08 1-----1-----NO------TAG20101127T011822
    1422---B--A--A DISK------27-11-2010 01:21:42 1-----1-----NO------TAG20101127T011822
    and i set until time to
    set until time '27-11-2010 01:18:00';
    restore database;
    recover database;
    but rman show error:
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Edited by: OraUser on Nov 29, 2010 6:33 AM

  • Does commit work (commiting the changess to database take same time for ..

    Does commit work (commiting the changess to database )take same time for one record and 1000 records

    Hi ,
    There is some micro seconds differences in updating the recors . If you have huge records ,split the data into parts and insert it .
    To avoid errors  or warnings ,you can use 'WAIT UPTO 5 SECONDS ' .
    Thanks
    Jagadeesh.G

  • How can I set a passcode that is only required at certain times of the day. Ie: my child needs access for school use, but don't want her playing iPad in the middle of the night. I cannot identify a way to have the iPad turn off or require a password

    I cannot find a way to enable my child's iPad to require a passcode only at certain times of the day.
    Yes I have used the clock/timer/ countdown - great to restrict how many minutes of iPad usage they get a day.
    But as my child requires the iPad in school for class lessons the usage at school varies maybe 30 mins 1 day and a few hrs on other days
    I want the ability to say set the iPad to not work between say 7pm and 7am, ( unless a passcode is entered) so my child isn't playing games on it in the middle of the night...
    Apple I cannot see anything in the settings that performs this function
    Help

    You can Remote Lock his iPad with Find My iPad using a computer at whatever time you like.
    http://support.apple.com/kb/PH2700
    Note: The iPad may be disabled if he tries the passcode too many times.

  • Need some help in making a label disappear for certain time

    hi
    i need to make a program for my java class
    this is the question
    Design and implement a memory game. In this game you show the user a sequence of
    random integer numbers in the range of 0 to 99, and then ask him to type these
    numbers. Display how many he has remembered as a score. The level of game depends
    on how many numbers are there in the sequence. The duration of the display for the
    sequence is the speed. The user can adjust the level and the speed.
    my question is how to view the numbers for the game and make them disappear after certain time
    in need help with the syntax for it
    this is what i made so far
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.FlowLayout;
    import java.awt.Color;
    import javax.swing.JButton;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    class game extends JFrame implements ActionListener {
    public static final int WIDTH = 500;
    public static final int HEIGHT = 300;
    public static final int x = 3;
    public static final int y = 3000;
    public static void main(String[] args) {
    game gui = new game( );
    gui.setVisible(true);
    public game( )
    super("MEMORY GAME");
    setSize(WIDTH, HEIGHT);
    setDefaultCloseOperation(JFrame.EXIT_ON_…
    setLayout(new BorderLayout( ));
    JPanel buttonPanel = new JPanel( );
    buttonPanel.setBackground(Color.LIGHT_GR…
    buttonPanel.setLayout(new FlowLayout( ));
    JButton b1 = new JButton("MAKE IT HAREDER!!!");
    b1.addActionListener(this);
    buttonPanel.add(b1);
    JButton b2 = new JButton("MAKE IT FASTER!!!");
    b2.addActionListener(this);
    buttonPanel.add(b2);
    add(buttonPanel, BorderLayout.SOUTH);
    public void actionPerformed(ActionEvent e)
    String buttonString = e.getActionCommand( );
    if (buttonString.equals("MAKE IT HAREDER!!!"))
    else if (buttonString.equals("MAKE IT FASTER!!!"))
    }

    To post code, use the code tags -- [code]Your Code[/code] will display asYour CodeOr use the code button above the editing area and paste your code between the {code}{code} tags it generates.
    I strongly suggest you forget about the GUI part and first make a console application that fulfils the game specifications. If you have problems with this, you can post your questions in the New to Java section of these forums.
    db

  • Significant difference in response times for same query running on Windows client vs database server

    I have a query which is taking a long time to return the results using the Oracle client.
    When I run this query on our database server (Unix/Solaris) it completes in 80 seconds.
    When I run the same query on a Windows client it completes in 47 minutes.
    Ideally I would like to get a response time equivalent on the Windows client to what I get when running this on the database server.
    In both cases the query plans are the same.
    The query and plan is shown below :
    {code}
    SQL> explain plan
      2  set statement_id = 'SLOW'
      3  for
      4  SELECT DISTINCT /*+ FIRST_ROWS(503) */ objecttype.id_object
      5  FROM documents objecttype WHERE objecttype.id_type_definition = 'duotA9'
      6  ;
    Explained.
    SQL> select * from table(dbms_xplan.display('PLAN_TABLE','SLOW','TYPICAL'));
    PLAN_TABLE_OUTPUT
    | Id  | Operation          | Name      | Rows  | Bytes |TempSpc| Cost (%CPU)|
    |   0 | SELECT STATEMENT   |           |  2852K|    46M|       | 69851   (1)|
    |   1 |  HASH UNIQUE       |           |  2852K|    46M|   153M| 69851   (1)|
    |*  2 |   TABLE ACCESS FULL| DOCUMENTS |  2852K|    46M|       | 54063   (1)|
    {code}
    Are there are configuration changes that can be done on the Oracle client or database to improve the response times for the query when it is running from the client?
    The version on the database server is 10.2.0.1.0
    The version of the oracle client is also 10.2.0.1.0
    I am happy to provide any further information if required.
    Thank you in advance.

    I have a query which is taking a long time to return the results using the Oracle client.
    When I run this query on our database server (Unix/Solaris) it completes in 80 seconds.
    When I run the same query on a Windows client it completes in 47 minutes.
    There are NO queries that 'run' on a client. Queries ALWAYS run within the database server.
    A client can choose when to FETCH query results. In sql developer (or toad) I can choose to get 10 rows at a time. Until I choose to get the next set of 10 rows NO rows will be returned from the server to the client; That query might NEVER complete.
    You may get the same results depending on the client you are using. Post your question in a forum for whatever client you are using.

  • Identify/expire Pages that have not been accessed for certain time

    Hi,
    I would like to create a publishing portal. Many users are able to create pages. I have the requirement that if a page does not get accessed for a certain time-period - it should be flagged for deletion and the creator should be notified by email.
    Expiration policies depend on creation/modification date. Does this work for the last-accessed time (whereever I get this information from) aswell?
    Sven 

    Use below powershell
    $outputPath = Read-Host “Outputpath (e.g. C:\output\UnusedSites.txt)”
    $lastDate=Read-Host “Last Accessed Date (in format mm/dd/yyyy)”
    $gc = Start-SPAssignment
    $site=$gc | get-spsite -Identity https://sitecollectionUrl
    foreach($web in $site.AllWebs)
    if ($web.LastItemModifiedDate -lt $lastDate)
    Write-Host -f Red “Site is old…” + $Web.Title
    Add-Content -Path $outputPath -Value “$($web.Title),$($web.ServerRelativeUrl),
    $($web.LastItemModifiedDate),$($web.Author)”
    else
    Write-Host -f Green “Site: [" + $web.Title + "] Last Modified Date: ” + $web.LastItemModifiedDate
    Stop-SPAssignment $gc
    Or
    plan to use this tool
    http://www.harepoint.com/Products/HarePointAnalyticsForSharepoint/FindOutdatedContentInSharePoint.aspx

  • Can't get access in Time Machine to certain folders for any date earlier than current date/time.

    Can't get access in Time Machine to certain folders for any date earlier than current date/time, even when entering as Admin. Why do certain folders have small red "-" badge in lower right corner of folder icon?  Here's a picture of the dilemma:
    I've tried monkeying with priveleges using Command I, and changing users, but to no avail.  Can anyone help?

    Right.  Here's what the permissions look like from the Finder Command I:
    I'm not sure what "Custom" means, but when I then try to change it to "Read & Write", it doesn't take.... just comes back as Custom. Interesting to note that not only am I logged into Joan's account where the data folder and file lives) to do this, but when I do it from my own account  as Admin (dunc...mpster) I get the same result.

  • Export tables for certain time frame

    Hi All,
    Can I export tables for certain time frame? Or from last time I exported those tables? All I want is to have all the changs of the tables from last time I did export, then I can import this delta portion into another instance, thus complete the data replication.
    Thanks,
    Mike

    user550903 wrote:
    Hi All,
    Can I export tables for certain time frame? Or from last time I exported those tables? All I want is to have all the changs of the tables from last time I did export, then I can import this delta portion into another instance, thus complete the data replication.
    Thanks,
    Mikehow would export determine which are the new rows?
    how would export determine which rows have been updated?

Maybe you are looking for

  • HT4111 Does apple sell a wireless keyboard that would be compatible with the smart cover?

    I don't want to buy another cover just a wireless keyboard

  • My logic studio 8 wont instal because of /

    i try  to instal my logic studio 8 and it starts to instal but 15 minutes in it says it wont instal because of / help me

  • AT END OF in ALV display.

    Hi gurus, I want to print a different line after end of Each PO details. Like No                          Date                        Qty                           Amount 4500001                 01.01.2009                 12 EA                      1

  • Random Kyocera Shut Downs.

    I have a Kyocera Hydro.  Nice phone and very little that I find wrong with it except one thing. I have had this phone randomly shut down on me 2 times now.  Once it was in the middle of the night when it was plugged in and charged fully. The second t

  • Gmail does not work under Chrome and iSO6. WHY?

    Just loaded iOS6. Pad2. Chrome browser. Gmail running on Chrome returns no email. Google Calendar on Chrome works, as well as Google Drive. Gmail running on Safari does work.