Ora9i physical stby db failover-recover to the last committed transaction

Example: The primary db is not accessible. But we can still access the archived and online redo log files (physically in OS).
How to recover to the last committed transaction (on primary db) while we do failover on standby?
I just able to recover to the last transaction in the last archived redo log.

912030 wrote:
The database is not available, but I can still copy all archived redo log & online redo log files from primary db to standby db physically by OS command.
I register and apply all archived log files to my standby db before perform failover.
SQL> ALTER DATABASE REGISTER PHYSICAL LOGFILE 'filespec1';
But I just able to recover to the last transaction in the last archived redo log, not the last commited transaction in (current) online redo logs in primary db before it breaks down.You can copy & apply all the archive log files, If you want to apply even current redo log file use below command
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE;
Check in detail http://docs.oracle.com/cd/B28359_01/server.111/b28294/log_apply.htm
Hope that file is not corrupted, But before that create a restore point for safe side if any recover issues you can flashback to that point.
Until you have archive logs if you applied safely you can open database by performing failover.
If you apply using Redo log files, it may cause some consistency.
Or perform until TIME based recover as
SQL> recover automatic standby database until time '2011-11-17 14:00:00';
Check this link as well
http://laurentschneider.com/wordpress/2011/11/failover-to-standby-with-a-delay-until-time.html
HTH.

Similar Messages

  • Trying to find the last committed SCN

    My developers have told me that schema refreshes (export/import) done via DataPump (without using either of the FLASHBACK_* parameters) have caused some sequences to be out of sync with the data in their associated tables. My research into the DataPump documentation directs me to the FLASHBACK_SCN parameter, but the only method I find in documentation to find an SCN is to use DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER to get the current SCN. However, to ensure we resolve the aforementioned issue of out-of-sync objects, I would prefer to use the last committed SCN. Unfortunately, I can find no documentation to suggest how I might derive that value. Can anyone here point me in the right direction for this, or perhaps even provide a solution?
    Thank you in advance for your attention, consideration, and enlightened feedback!
    Mark C (a.k.a. user621573)

    Sequences are database objects but are not really protected by transactions: if you rollback your transaction that doesn't rollbacks sequence numbers. I'm not sure that using some SCN parameters is the solution for Data Pump.
    There are known limitations when using old export/import.
    I cannot find documentation about Data Pump limitations when dealing with sequences.

  • Help to find WorkID before the last touch transaction

    Hi,
    May I ask your help on how to find the transaction (WorkID) or touched before the last transaction.
    The last touched or transaction for per Itemcode should be "FJ_CBDEF". I have a sample data and DDL as your reference. In my Sample data the 2 result item will be "FJ_LMDADS" and "FJ_CBVFI2"
    sample:
    FJ_ENTRY
    FJ_LMDADS--retrieve this workid
    FJ_CBDEF--last touched
    Create table #maintable
    (Item nvarchar(35), Itemcode nvarchar(35))
    Insert into #maintable(item,itemcode) values ('AAAAA','RPT00000001')
    Insert into #maintable(item,itemcode) values ('BBBBB','RPT00000002')
    Create table #Table1
    (Itemcode nvarchar(35), RankNum int, WorkID nvarchar(35), CreatedDatetime datetime)
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000001','5','FJ_Pentry','2015-01-12 23:50:48.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000001','15','FJ_CBDEF','2015-01-14 05:23:10.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000001','10','FJ_LMDADS','2015-01-13 15:03:56.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000002','0','FJ_Pentry','2015-01-12 23:53:47.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000002','10','FJ_LMDADS','2015-01-13 14:52:15.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000002','15','FJ_DiAss','2015-01-13 16:24:35.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000002','20','FJ_CBVFI2','2015-01-13 19:47:36.000')
    Insert into #table1(itemcode, RankNum, WorkID,CreatedDatetime) values ('RPT00000002','25','FJ_CBDEF','2015-01-14 05:22:52.000')
    Create table #Table2
    (Itemcode nvarchar(35), RankNum int, WorkID nvarchar(35), CreatedDatetime datetime, FCode nvarchar(5))
    Insert into #table2(itemcode, RankNum, WorkID, CreatedDatetime, FCode) values ('RPT00000001','10','FJ_LMDAD','2015-01-12 23:50:48.000','FJ001')
    Insert into #table2(itemcode, RankNum, WorkID, CreatedDatetime, FCode) values ('RPT00000002','20','FJ_CBVFI2','2015-01-13 19:47:36.000','FJ004')
    Select m.Item, m.Itemcode, t1.RankNum, t1.WorkID, t1.CreatedDatetime, t2.FCode,
    rn=ROW_NUMBER() OVER (partition by m.Itemcode order by m.Itemcode , t1.CreatedDatetime desc )
    From #maintable m
    Left join #Table1 t1
    On t1.Itemcode = m.Itemcode
    Left Join #Table2 t2
    On t2.Itemcode = t1.Itemcode and t2.RankNum = t1.RankNum
    Order by m.Itemcode, t1.RankNum

    select * from (
    Select m.Item, m.Itemcode, t1.RankNum, t1.WorkID, t1.CreatedDatetime, t2.FCode,
    rn=ROW_NUMBER() OVER (partition by m.Itemcode order by t1.CreatedDatetime desc )
    From #maintable m
    Left join #Table1 t1
    On t1.Itemcode = m.Itemcode
    Left Join #Table2 t2
    On t2.Itemcode = t1.Itemcode and t2.RankNum = t1.RankNum )
    t
    WHERE rn=2
    Order by Itemcode, RankNum

  • How can I get the last year transactions in iTunes?

    I Need a full report about my transactions in iTunes. All my buying has been on an ipad2. But I can't open and/or find the correct place for that info...

    You need to go to iTunes on a computer and sign in with the Apple ID you made the purchases under. Then click on your ID, then on Account Info. You will see a Purchase History section. Click on "See All" to go to the detail page where you can put in a date range to view all iTunes and App Store purchases as well as Gift Cards or other purchases made with that Apple ID.
    Cheers,
    GB

  • After a recover database, how can I find the time of the last transaction?

    After doing a restore and recovery. Is there something in the data dictionary that I can query to find the time of the last applied transaction that took place during the recover process?
    restore database ;
    recover database ;
    For example, if I restored from a full backup on 8/3/2008 with archive redologs, I know my last restored transaction is from sometime on that day, but I'd like a way to know the hour:minute:second of the last transaction included in the backup and redologs that was applied to my restore. Is that possible?
    The recover database applies all available redo logs for that day, but I want to know if that includes transaction up to 6PM, or 11:50PM, etc?
    Thanks,
    Jason

    If you did only a "recover database" that would have been a Complete Recovery to the last transaction -- ie the point when the database was shutdown.
    For an Incomplete Recovery, you would have to note the Sequence#, SCN or Timestamp of the recovery point.

  • Close tab groups actually closes tabs rather than just the grouping. How do I recover all tabs, not just the last 10? Pages and tabs are not in recent history.

    I had a problem with tab groups - if I mistakenly close tab groups, I can only recover the last 10 tabs.
    I had a window with many more than 10 tabs which I reopened each session by going to History > Recently Closed Windows. I knew this was risky - I could lose this if I did not keep it in an open window or recently closed window. So I was looking for a way to save this window with all the tabs. I looked into tab groups and, not knowing what I was doing, I closed the groups of tabs. There seems to be no recovery for other than the last 10 tabs. And open tabs are not necessarily in recent history if I have not accessed the tab and refreshed.

    I don't use tab groups myself, but I know of a way to increase the number of closed tabs that Firefox remembers. Unfortunately, it's not retroactive...
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered
    (3) Double-click the following preferences and enter the preferred new value:
    (A) '''browser.sessionstore.max_tabs_undo''' (default: 10)
    (B) '''browser.sessionstore.max_windows_undo''' (default: 3)
    Regarding what is in history, by default, Firefox will load tabs on demand when you restore a session, rather than loading every single tab immediately. If you turned off that setting, or if you visited all the tabs, then those pages should be in history, but finding them amidst all the others would be quite a challenge...

  • My iphone was stolen. If i buy a new one and to register with the same Apple ID, my photos will be recovered in the new device?

    My iphone was stolen. If i buy a new one and to register with the same Apple ID, my photos will be recovered in the new device?

    If you have a backup of the old phone that backup contains camera roll photos.  Restore from that backup to get your camera roll photos back

  • Is there a way to recover my tabs after using the Firefox "Forget the last" feature?

    Hi,
    So I'm a big dummy and used the "Forget the last" button on Firefox (I'm using version 34.0.5) without fully understanding what it does (note: I only selected it to forget the last five minutes, if that helps anything). It exited my session and restarted with a clean Firefox window, but now I can't access my tabs anymore. I've been reading some of the similar questions about recovering tabs and tried their solutions but this case seems to be different and so I am lost.
    Here's what I did:
    *Made sure that all file types were now visible
    *Went to my Firefox profile folder and made a copy of everything as soon as I could
    *Tried looking through the files that were there (the only relevant ones that seem to be there are recovery.bak and recovery.js)
    *Couldn't find any useful information in these files. There was certainly no list of tabs for me to use
    *Still haven't exited the Firefox session since it restarted and wiped away everything. I see that in some support tickets here that closing Firefox is necessary, but honestly right now I'm too nervous to try that
    *Become increasingly frustrated, open a Mozilla support account and post this
    I'm quite reliant on my tabs. Have I done something wrong here? Is there any way to restore them, or am I just screwed in this particular case? I made certain to look at this forum and do everything the solutions to similar problems said to do.
    For what it's worth, Firefox has crashed a few times over the last week and had to start up again, so maybe that backed up a version somewhere? I would even be alright with a somewhat older version of tabs (I have some dating back to months ago and that contain information I would very much like to access again).
    Any help would be very much appreciated, and I would be happy to provide more information if it's needed.

    The sessionstore.js file only exists while Firefox is closed. During shutdown, Firefox writes out that file based (I think) on recovery.js as of that point. When Firefox starts back up again, it reads sessionstore.js and deletes it. So if Firefox is running, it's normal not to see sessionstore.js. Anyway, sessionstore.js is going to be empty now.
    Shadow Explorer might already have done this for you, but just in case...
    You could try the previous versions feature. This is harder to get to on Windows 8 and 8.1, but I have read about a roundabout way. I can't test this myself, but here's what you do:
    Let's say you have a Windows Explorer window open to your current Firefox profile folder. This is something like (with your username and semi-random profile folder name):
    C:\Users\''username''\AppData\Roaming\Mozilla\Firefox\Profiles\blahblah
    Click in the address bar and change the C: to
    \\localhost\c$
    to yield (with your username and semi-random profile folder name)
    \\localhost\c$\Users\''username''\AppData\Roaming\Mozilla\Firefox\Profiles\blahblah
    Press Enter to reload the folder contents that way.
    Now when you right-click recovery.js, recovery.bak, backup.js or sessionstore.js and choose Properties, there should be a Previous Versions tab. Usually the most recent previous version dates back to the last time Windows created a restore point (e.g., system update or possibly scheduled on a more frequent basis).

  • How to recover only the C drive on a Satellite P200-1FJ

    Hi, I have a Satellite P200-1FJ and I want to recover Vista but only on my first partition.
    My HDD is divided in 3 partitions and I don't want to loose data. How can I recover only the C partition using the Product Recovery CD that came with my laptop ?

    Hi,
    There's a specific order in which the downloads will need to be installed. When the flash cards are installed they interact with the Toshiba Product Information tool that is present on the machine; should this not be installed then it will return an error as it thinks the machine is not a Toshiba.
    The downloads you need to install (in order) are:
    TOSHIBA Value Added Package
    TOSHIBA Flash Cards Support Utility
    TOSHIBA Hardware Setup Utility
    TOSHIBA Supervisor Password
    TOSHIBA SD Memory Utilities
    TOSHIBA ConfigFree
    TOSHIBA Assist
    What I would recommend is removing whatever Toshiba software you have installed first and then try it in that order and see what happens :)
    Let me know how you get on,
    Regards,
    Nukey

  • After the last update of Firefox, my toolbar menu became blank but the bookmarks are still available from a pulldown menu. I want the on the toolbar like they used to be. How do I recover this?

    After the last update of Firefox, my toolbar menu became blank but the bookmarks are still available from a pulldown menu. I want the on the toolbar like they used to be. How do I recover this?

    ''Attaboyslim wrote:''
    I am locked into firefox.
    If nothing happens when you press the F11 key, check if you have the same problem in Safe Mode.
    * [[Troubleshoot Firefox issues using Safe Mode]]
    ''Attaboyslim wrote:''
    I'd like the old browser please.
    * [[How to make the new Firefox look like the old Firefox]]

  • HT3775 can a .mov file be recovered if the record was accidentally shut down from loss of power? i was recording from the AJA Pro Ki when we lost power, the file is there but it wont play and comes up with the message, "The document "SC1ATK63.mov" could n

    Can a .mov file be recovered if the record was accidentally shut down from loss of power? i was recording from the AJA Pro Ki when we lost power, the file is there but it wont play and comes up with the message, "The document “SC1ATK63.mov” could not be opened. The movie is not in a format that QuickTime Player understands."

    Hi,
    Troubleshooting a start up script can be difficult. There are some third party programs that also keep logs of start up programs, however for Firefox this may be different.
    Is Firefox a startup program? [http://www.winxptutor.com/msinfo32.htm]
    Its also possible to check the Web developer tools for any scripts in a page: [https://developer.mozilla.org/en-US/docs/Tools/Debugger]
    In the control panel there is also Administrative tools to view event logs, but this may be something a local technician can walk you through.

  • After the last update I lost a lot of documents I had edited and saved in my tablet. Any option to recover them? Now I can only access the documents of the cloud.

    After the last update I lost a lot of documents I had edited and saved in my tablet. Any option to recover them? Now I can only access the documents of the cloud.

    Hi,
    Please take a look at one of the following documents to see if it answers your question about finding the files that are locally stored on your device.
    For iPads & iPhones
    How to manage files in Acrobat DC for iOS
    For Android devices
    How to open PDFs on Adobe Acrobat DC on Android
    Please let us know if you have additional questions.

  • Over the last few wks, i have lost several important file. Even the support team has not been able to recover them. Pls offer advice. I use microsoft office on my macbook pro, which is less than a year old.ce.

    Over the last few wks, i have lost several important file. Even the support team has not been able to recover them. Pls offer advice. I use microsoft office on my macbook pro, which is less than a year old.

    pklfromarlington wrote:
    Bob, Hate to steal your thunder but am hooked to an external hard drive using Time Machine and er information is where it shoudl be. Yes, I have combed the files, used Finder and any other tools I know.
    You did not steal my thunder. You asked for advice, I provided advice. I assumed that since you nor the "support team" could find your files that you did not have any backup. You should have told us you do regular backups. We have no way to know otherwise unless you tell us.

  • Windows 2008 R2 Failover Clustering Issue - The operation returned because the timeout period expired.

    I am trying to get a new Windows 2008 R2 cluster to work on two VMware servers (VMware ESXi 5.0.3) and am experiencing some form of timeout issue during the creation of the cluster according to the logs.
    All validation checks pass successfully, whether trying to create a single node or dual node cluster, but the same error message is seen when creating the cluster. I have tried various suggestions found but none of them have made a difference. In an effort
    to further diagnose the issue I enabled the following diagnostic logs:
     - FailoverClustering
     - FailoverClustering-Manager
     - FailoverClustering-Client
    The only useful error I can find is in the FailoverClustering-Client log which reports an error 'Couldn't resolve tcp binding to cluster' for each physical node to be part of the cluster.
    In order to further diagnose the cause of the issue, I am looking for any options for increasing logging when attempting to create the cluster. Is there a way to increase the logging to see what the actual timeout is occurring with?
    Alex.

    Sorry, I should have been more clear ...The servers I am attempting to create a cluster with are Virtual Servers running on a VMware ESXi (5.0.3). They have access to two shared disks (connected to each VM using a separate SCSI Controller from that for the
    disk used to install the OS) with Virtual SCSI Bus Sharing set within VMware.
    Each Virtual Server has two NICs configured (with static IPs) - one for internal (domain connectivity) and the other for heartbeat connectivity. The servers can ping each other via both interfaces, as expected, but only domain connectivity works via the
    internal NIC.
    I have tried creating a single node or dual node cluster and get the same error each time. When the cluster is attempting to be created I can see the new computer object is created in Active Directory (which is then deleted when the cluster creation fails)
    and I have also tried pre-creating the computer object and specifically setting permissions on it.
    When creating the cluster I have tried via the GUI and via PowerShell (both with and without the option to attach the shared storage) but always get the same type of timeout error message. I am hoping there are further debugging options that can be used
    to provide a better output as to what the timeout is occurring with.

  • Checking  Whether Physical Standby is in Sync with the Primary

    I writing script to alert dba if primary and standby database are not in sync. I use article - How To Check Whether Physical Standby is in Sync with the Primary? ID 861595.1      
    It suggests comparing Last Sequence Generated on primary and Last Sequence Received on standby for each thread. And if they are not equal - NOT in sync.
    My assumption is that if there are multiple threads we running RAC. Is it correct ?
    And if we running RAC as far as I am aware it's sufficient to have one thread in sync.
    Please comment on this
    Thanks in advance
    Edited by: user613441 on Jan 6, 2010 9:16 PM
    Edited by: user613441 on Jan 6, 2010 9:17 PM

    deleted

Maybe you are looking for