Flashback Database on Data Guard setup

Hello!
Win 2003 server - 64 bit
Oracle 10.2.0.4
As i have noticed Flashback Database is popular in Data Guard setups for the reinstate reason; you dont need to rebuild.
However, im looking at Flashback for 'flashback database' reasons. Some developers has asked for a method to rollback if an release has gone bad, so my questions is;
If i flashback database primary database, will standby also change due to redo log shipment?
Thank u!

After flashing primary database check CURRENT_SCN in Standby. If flashback scn is greater then current_scn, then do nothing. Otherwise, on standby:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
FLASHBACK STANDBY DATABASE TO SCN "flashback_scn_number -1";
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

Similar Messages

  • Use of Flashback Database in Data guard environments

    11.2.0.3/RHEL 5.8
    I've come across several docs which talk about configuring FLASHBACK DATABASE in dataguard environments. We have several
    Physical standby DBs (Single Instance & RAC) running in our shop.I would like to know two or three major(common) use of FLASHBACK DATABASE in data guard environments.
    I understood one use mentioned in the below URL ie. recovering from a logical mistake
    http://uhesse.com/2010/08/06/using-flashback-in-a-data-guard-environment/
    I would like to know what are the other major/common use of Flashback Database feauture in DataGuard environment

    A couple of other uses:
    1) You can use flashback to test your DR. So you can activate your standby. Test application/network connectivity and functionality on your DR site and when done revert this database back to a physical standby. You do however have to ensure that this is allowed in your environment. In some places I have worked this would be a big no no as there were zero data loss requirements. However some companies will allow this as long as the standby is back in place within a certain time period.
    2) In the case that you have to do a failover for whatever reason, but then what was the primary site becomes available, you can flashback what was your primary to make it the standby rather than re-instatiating the database from scratch.
    Eg. You have a power outage at your primary site so you perform a failover and your standby becomes the primary. Once what was your primary site is back online, you can convert your previous primary into a standby by doing a full back/restore (or whatever method you choose) to recreate your standby again. However you also have the option of using flashback on this database and then convert it into a standby as this would potentially be quicker than re-instantiating the standby.

  • Data Guard setup with Clustered primary ?

    Hi,
    I am sure I am not in this unique requirement of setting up a Data Guard configuration where my primary database is clustered (for local server failure) and I am setting up the Data Guard (for the site level failure).
    I could do the Data Guard setup without any problem where my primary and standby are on single individual servers (not clustered) but when I do the set up with primary database as clustered and do a local failover (not using Data Guard but using the veritas cluster) the DB Broker just stops recognizing the configuration.
    I did come across a metalink note (BUG 4404952 ) which says DG Broker does not support Cold Failover Cluster.
    Has anyone found any work around to it?
    Has anyone tried using the above configuration in 10.2.0.4? Does it work in 10.2.0.4?
    The Bug is dated 2007 so I am sure I am not the first one to encounter this issue.
    Would really appreciate if someone can tell me what the workaround would be or guide me to any good link which would tell me the same.
    Thanks a lot in anticipation.
    Manoj Datar

    I read somewhere that cold failover support in 11g is also ONLY for the oracle clusterware configuration.
    Its really so hard to believe that there is NO ONE who wants to have a clustered primary (for local server failures) and a Data Guard (for the Site level failure or DR) as a combination in their HA environment.
    I am still in the testing phase, What else could I be looking for in the solution if I need to achieve both these objectives (ie Local Server failures and Site level failures or DR)? I already have the Local server failure taken care by using the Veritas cluster so what do I need to include in the mix to achieve the site level failure?

  • Oracle11gR2 data guard setup

    I am looking for a document on "Active data guard configuration and setup".
    In past I have used the following doc.....
    http://wiki.oracle.com/page/11GR2+Data+Guard+Setup+project
    But now the web link isn't available anymore (The link automatically redirects to www.oracle.com). The document was basically a workshop on how to setup Oracle 11gR2 active data guard with fast-failover option. It was an excellent document and very informative. Any idea where I can find it?
    If anyone could point me to the document or atleast let me know who the author is....that will be extremly helpful.
    Thanks,
    Sourav

    Thanks for the reply! But no, that's not the one I was looking for.
    The old URL "http://wiki.oracle.com/page/11GR2+Data+Guard+Setup+project" had step by step very detail directions on data guard setup starting from physical standby creation from scratch. Nor typical OBE style....... just step by step instructions. It was indeed a very popular document/workshop.
    Since this web link was active just 2 months back, I was wondering if there would be an archived location or someone would be able to help me locate the doc. It's hard to believe that these very helpful docs are deleted overnight.
    Thanks,
    Sourav
    Edited by: user11948852 on Aug 23, 2011 5:01 PM

  • Info on licensing issues of standby databases/Oracle Data Guard

    Hi All,
    Could anyone possibly give me some information on licensing issues of standby databases/Oracle Data Guard? Links to some electronic articles or journals might be useful. I am unable to find the appropriate info and need this quite urgently for my dissertation asap as my deadline is this approaching.
    Thanks in advance

    Paul Drake posted a reply to a similar question on the Oracle-L mailing list that pointed out that the License Agreement
    http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?media=os_local_license_agreement&section=11365&minisite=10021&respid=22372&grp=STORE&language=US
    states, in part,
    "Failover: Your license for the following programs, Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One) and Oracle Internet Application Server (Enterprise Edition, Standard Edition, Standard Edition One or Java Edition) includes the right to run the licensed program(s) on an unlicensed spare computer in a failover environment for up to a total of ten separate days in any given calendar year. Any use beyond the right granted in the previous sentence must be licensed separately and the same license metric must be used when licensing the program(s)."
    which seems to open a bit of wiggle room depending on how the term "run" is defined. This is probably also an area where your Oracle sales rep may have a little more flexibility to negotiate
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Grid Control and Data Guard Setup

    Hi,
    I have 4 PCs on which I wish to test the following:
    1. OEM Grid Control 10.2 - Console + Service + Agent
    2. Data Guard feature with Broker
    3. Standby Setup for a Primary Database.
    I will create the Primary DB on one Linux PC.
    Standby DB using Grid Control & DataGuard on second Linux PC.
    The Third PC is also Linux but the fourth PC is Windows XP.
    Please guide me in understanding the following:
    1. On which PCs should I install OEM Grid Control 10.2 - Console + Service + Agent?
    2. On which PC should I setup DB Broker?
    Please assume that I will use Oracle 10.2 Softwares and Linux x86 version.
    Regards

    well why don't you go ahead and test?!
    Test and see whether you want to put oms, console all one machine, or whether you want to separate out the componests (you'll need an agent on each box regardless). I have no idea what the specs of your machines are, so why don't read the documentation on Grid and dataguard, see what the recommended settings are and then plan what you want to do.
    Bazza

  • Data Guard Setup

    I am trying to set up data guard 10g R2 on RHEL 5.
    I was able to successfully set up one. What I did is i followed this blogger:
    Data Guard Configuration Example - (Oracle 10g, Physical Standby) by Jeff Hunter, Sr. Database Administrator on http://www.idevelopment.info/
    What I did is i installed RHEL 5 on 2 servers. Then I installed database software on both servers. Then on both servers, i used dbca to create database on each server. Am I correct? Since my data guard is working now as verified on testing. what i did is:
    -install oracle software and create database on node 1
    -install oracle software and create database on node 2
    -transformed database on node 2 into physical standby database.
    Is this also correct?
    I am hearing that i can also create data guard (with physical standby database) using the setup:
    - install oracle software and create database on node 1
    -install oracle software only on node 2
    -create physical standby database on node 2 using the database in node 1.
    Any recommendations or am i doing correctly?

    Ah, I may have explained incorrectly what I actually did .
    What I did is,
    - I created a database called test1 in node1 (general purposewith datafiles).
    - Then on my node2, I created another database named test2 in node2 (custom databaseno datafiles).
    - Node1 and Node2 has the same structures (except some paths which has .../test1/... and .../test2/...).
    - Then I used RMAN to clone the database in node1 to node2.
    These are my commands:
    node2] rman target sys/oracle@test1 auxiliary sys/oracle@test2
    RMAN> duplicate target database for standby;
    So I believe what I did is also correct since I restored my test1 database in node1 into test2 database in node2. So I believe, my test2 database is an RMAN clone of my node1 database.
    Edited by: 859640 on May 24, 2011 7:44 PM

  • New Data Guard Setup Required

    Hi,
    in my organization there is a requirement to setup a Physical Standby data guard for one of our 9i databases. Please find below for the hardware details and oracle version & etc..
    Primary Setup
    Server :
    AIX Version 5.3
    $ oslevel -r
    5300-07
    Database Verion
    9.2.0.8
    Standby Setup
    Server :
    Solaris 10 sparc (64-bit)
    Database Version :
    9.2.0.8
    I would like know this can be achieved or not. I'm not very clear on the steps to follow.
    Cheers
    Kanchana.

    No, ASM will be available from oracle 10g.
    Regard
    Asif Kabir
    -- Hope you got the answer so close the thread as marking the post correct/helpful.

  • Data guard setup using 11g R2.

    Hi,
    It is possible to setup data guard between Amazon ec2 (primary db) and standby will be on local data center- (Non Amazon) using 11g R2.

    Hi,
    When I tried to create data guard between amazon ec2 instance and local server using 11g R2 64 bit on linux server I am getting the below mention error.I Need some pointers on this issue.
    Thanks in advance
    Starting backup at 08-JUN-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00005 name=/oracle/app/oradata/abs/abs.dbf
    ORACLE error from target database:
    ORA-03114: not connected to ORACLE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-03114: not connected to ORACLE
    RMAN-03002: failure of Duplicate Db command at 06/08/2012 19:01:22
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/08/2012 19:01:22
    RMAN-10038: database session for channel ORA_DISK_1 terminated unexpectedly

  • Rman clone ? duplicate database ? data guard ? standby database?

    hey there !!
    What is the difference between Rman clone , duplicate database , data Guard , standby db?
    1 more thing , standby database and duplicate database are same??

    RMAN Clone : you take backup of a database on one server ,then take it to other server ,again use RMAN to restore the database,A lot manual intervention is needed in this method
    RMAN DUPLICATE: same as above just that manual intervention is less. With 11gR2 there active database duplication in which you can clone your test database directly from production database without taking and then transferring the backup to test server.
    Standby Database :they are of two types Physical and logical.The setup is done using RMAN with any of the above methods.Standby is the in-sync (can have some delay) version of primary database either block by block which is physical standby configuration or SQL statment wise which is logical standby.
    Data Guard:This is also a standby configuration.Here the failover and switchover are automated with the help of DGMGRL utility.In manual standby this same can be done via SQL*PLUS using sql commands

  • Cloning a database from data guard

    Hi Gurus,
    I have a situation where I am using 11g R1 11.1.0.7
    Primary database in server prodsrv and active data guard read only db in drsrv host.
    I have to clone a new dev database in drsrv database. since 11g R1 supports clone from active database, i thought we can use active data guard to clone a new database.
    is that possible? my trial didn't work out.
    released channel: s8
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 08/17/2010 01:32:36
    RMAN-05531: a mounted database cannot be duplicated while data files are fuzzy
    RMAN>
    is that possible to run Rman active clone script to clone from active data guard? any help much appreciated.
    duplicate target database to 'devdb' from active
    database ;
    thank you.

    Hi,
    Before doing any experiment.Read the concept and proceed further.Can you please go through the below link:
    http://www.databasejournal.com/features/oracle/article.php/3834931/Using-Oracle-11gs-Active-Data-Guard-and-Snapshot-Standby-Features.htm
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • Oracle 11i(11.5.0.2) Data guard setup

    Hi,
    Hi, I am currently doing a test for 11i(with10.2.0.3 db) with Data guard. Since I have only one test server. I have created the Primary,Standby and the application Tier on one server. After switching over to the standby and trying to run autconfig on the application tier, it fails with TNS-entry not found. I would like to know that if its mandatory that the Primary and Standby db should have the same listener port or not.
    Thanks

    Hi,
    Hi, I am currently doing a test for 11i(with10.2.0.3 db) with Data guard. Since I have only one test server. I have created the Primary,Standby and the application Tier on one server. After switching over to the standby and trying to run autconfig on the application tier, it fails with TNS-entry not found. I would like to know that if its mandatory that the Primary and Standby db should have the same listener port or not. Yes u need to have same sid and port number as of prod.
    Refer MOS tech note:
    *Business Continuity for Oracle Applications Release 11i, Database Releases 9i and 10g [ID 216212.1]*
    thanks,
    X A H E E R

  • Data Guard SetUp Q

    For our new project we need zero data loss incase of disaster. I am thinking to use Data Guard between 2 remote data centers. I was going thru documentation and I have 1 Q:
    In Maximum performance mode is it possible to have LGWR SYNC as a way to ship redo data?
    If yes then wouldn't it be same as Maximum Availability?
    If I use LGWR ASYNC , how much data loss can I expect?
    Any help would be much appreciate
    Thanks
    Kanwal

    You can check Oracle doc to fully understand the difference between LGWR SYNC Archival Processing
    and LGWR ASYNC Archival Processing
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_transport.htm#i1265730
    The main difference is SYNC will not commit change on primary until transaction is received on standby. ASYNC will not wait for remote confirmation.
    If your network connection between standby and primary is not reliable it will have huge impact on performance. So it depends on how remote your standby is.
    On the primary database, the LGWR process submits the redo data to one or more network server (LNSn) processes, which then initiate the network I/O in parallel to multiple remote destinations. Transactions are not committed on the primary database until the redo data necessary to recover the transaction is received by all LGWR SYNC destinations.
    When the LGWR and ASYNC attributes are specified, the log writer process writes to the local online redo log file, while the network server (LNSn) processes (one for each destination) asynchronously transmit the redo to remote destinations. The LGWR process continues processing the next request without waiting for the LNS network I/O to complete.

  • OS and DB upgrades to databases under data guard

    Hello,
    Here is the scenario. I have an OPS db and a physical standby of OPS. Platform is solaris 9 with both a 9i instance and a 10g instance. I want to be able to do a switchover of the ops to the standby and then upgrade the standby. I believe that I can upgrade the OS to solaris 10 with no problems. However, I also want to be able to upgrade the 9i instance to 10gR2. Is it possible to do an upgrade of this degree to a standby under data guard? At the point that the db upgrade has completed data guard will no longer have the same configuration. This scenario is starting to send off alarms to me. Thanks in advance for your responses.

    Hi,
    Is it possible to do an upgrade of this degree to a standby under data guard? Yes. Steve Karam does it all the time, and he has these notes:
    "Dataguard's physical backups are a GREAT DR situation for a failed upgrade. You will have an exact physical copy of your database ready to switchover to if anything goes wrong with the upgrade. Basically you switch your final archive log and shut down your primary, then begin the standard upgrade.
    If something goes wrong, you can perform a failover on your standby server and you're back up with no possibility of inconsistencies since it's a physical backup. In my opinion, the only method better than DataGuard for a backup for upgrade scenario would be to use SAN tools like NetApp's snapMirror or Sun's
    Availability Suite in order to back it up; these tools can snapshot a DB in a matter of seconds and are good for this sort of situation: if the upgrade goes wrong, simply restore the snapshot.
    If you do it right, you can set up dataguard with only 5 minutes of downtime, then perform your database upgrade with only 5 minutes of downtime. I have done this method for clients in the past and they have been very happy with the results."
    Bipul Kumar has a book devoted to using Data Guard, that you may find helpful, and he notes the steps for a Data Guard-based upgrade:
    http://www.rampant-books.com/book_2004_2_dataguard.htm
    "Upgrading to Oracle10g database software in a Data Guard environment involves the following activities:
    If the Data Guard configuration is managed by Data Guard broker, the broker configuration needs to be removed using the existing version of database software. In other words, remove the Oracle9i configuration before upgrading to Oracle10g. Execute the following command after connecting to any site in the configuration using DGMGRL to remove the configuration:
    REMOVE CONFIGURATION;
    Install Oracle10g database software. The Data Guard feature is not available with the Standard edition, so the Enterprise edition must be installed. Additionally, install Oracle Enterprise Manager (OEM) 10.1 in order to manage the configuration using Data Guard Manager GUI interface, which is tightly integrated with OEM.
    The primary and standby databases should be upgraded to Oracle10g. The log management services should be stopped during the primary database upgrade. All of the redo logs generated during the database upgrade should be applied manually on each standby database. For more information on upgrading to Oracle10g, refer to the documentation, “Oracle Database Upgrade Guide 10g Release 1(10.1)”.
    Update the initialization parameter files or server parameter files on the primary database and all the standby databases to include the parameter db_unique_name. The database unique name must be identical on all the databases in a configuration.
    Once all the databases in the Data Guard configuration are upgraded to Oracle10g, the broker configuration file will have to be created in order to manage it using Data Guard broker. Execute the following command, connecting to the primary database using DGMGRL, to recreate the broker configuration file and to add standby databases"
    Also, see the docs, with their instructions:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/upgrades.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Data guard setup for 2 node RAC primary to 2 node RAC standby

    Hi All,
    I am going to setup data guard for 2 node RAC primary to 2 node RAC standby on Oracle 10.2.0.4. in AIX5L.
    Can you please provide the document on the above setup which is having all the steps (details).
    Also, the documents on different scenarios like
    1) If one node of standby goes down, how the redo logs will be applied. IS there any problem?
    2) If both nodes of standby are failed, how to reciver them?
    3) If one node of primary fails, is there any issue?
    4) If two nodes of primary fails, is there any issue?
    Thanks in advance,
    Mahi

    Have a look at the following location, you may find some similar documents:
    http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm
    By
    http://www.oraxperts.com

Maybe you are looking for