Flashback database in Dataguard environment

On primary if i flashback database to a restore point, do I need to rebuild standby environment. Is there any other option. Can I flashback standby to restore point also. Can you please detail me the steps.
These I think are the steps.
1) Create Flashback database Guarantee restore point on Standby.
2) Create Flashback database Guarantee restore point on primary.
Backout
1) Flashback Database to restore point on primary.
2) Flashback Database to restore point on standby
Is it possible if we follow the above steps we dont need to rebuild the standby after flashing back the primary database.

If I flashback database to a restore point, do I need to rebuild standby environment?
No, since the standby database should be synchronized to the primary (assumes no delay) it should come along for the ride.
Can I flashback standby to restore point also?
Yes, but the retention period must be greater or equal than the Primary database retention period.
There are very few cases where you would want to do this on the standby.
For example you might use it if a RESETLOGS was used on the Primary.
Setup
Guaranteed restore points provide a complementary capability to Flashback Database.
You might set them up during an upgrade.
Ex.
CREATE RESTORE POINT before_upgrade GUARANTEE FLASHBACK DATABASE;
FLASHBACK DATABASE TO RESTORE POINT before_upgrade;
Section 5 of B14192-03 has some good information on this.
This is worth a look too:
www.oracle.com/us/solutions/sap/wp-ora4sap-flashback11g-1-303814.pdf
Queries
SELECT
  NAME,
  SCN,
  TIME,
  DATABASE_INCARNATION#,
  GUARANTEE_FLASHBACK_DATABASE,
  STORAGE_SIZE
FROM
  V$RESTORE_POINT;
SELECT
  NAME,
  SCN,
  STORAGE_SIZE
FROM
  V$RESTORE_POINT
WHERE
  GUARANTEE_FLASHBACK_DATABASE = 'YES';Best Regards
mseberg

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.

  • Flashback in dataguard environment

    Hi,
    We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
    -- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
    -- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
    -- Is there any space requirement ratio for flashback recovery partition?
    Thanks,
    Amit.

    If you only enabled flashback on your Primary, your Standby is not affected. If you did actually a flashback database on your Primary, you need to address that on the Standby. See an example here:
    http://uhesse.wordpress.com/oracle-database-ha-architecture/2010/08/06/using-flashback-in-a-data-guard-environment/
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Configuring rman for dataguard environment.

    Hi all,
    Here we have a dataguard environment with db1 as primary and db2 as physical standby database. We configured dataguard in 10g environments and we are not using grid control. Can anyone provide the steps for configuring rman for incremental backups in this environment? We want to schedule the backups to be taken in standby db, (that is applicable in case of swithover too). In the case of swithover to db2 what all do we need to do in rman manually to resume backups in db1?
    Thanks

    Hello;
    A Standby database is a copy of the Primary so if you try to register it RMAN will probably tell you its already registered. I would start with this :
    Standby based backup
    1. Enable auto backup of the control file and server parameter file. CONFIGURE CONTROLFILE AUTOBACKUP ON.
    2. Skip backups on datafiles already backup. CONFIGURE BACKUP OPTIMIZATION.
    3. Set the archive deletion policy. CONFIGURE DELETION POLICY TO NONE.
    You have to decide on the exact RMAN script you want to use, but since the database is registered you can perform backup on either the Primary or the Standby as the need arises.
    See "Using RMAN to Back Up and Restore Files" in "Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05"
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/rman.htm
    Example in this post
    How to manage primary and standby database backups using rman catalog
    How to use standby backup to restore primary db
    http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
    Best Regards
    mseberg

  • Shutdown Oracle Database in MSCS Environment

    Dear All,
    We are facing problem regarding shutdown the oracle database in Cluster Environment. We have installed SAP HA on windows 2003 server and backend database is Oracle.
    In order to configure the dataguard we have to create the control file from Primary Database for this purpose we have to shutdown and then startup the database in mount state.
    But whenever i shutdown the database from SQL prompt by "shutdown immediate" command and see the status of
    database it always remains in open state.
    I have tried the following options as well but no success:-
    Stop all the instances of SAP and then shutdown the database.
    Shutdown the second node and then shutdown the database.
    Brought offline the ORACLE<SID> group and then shutdown the database.
    Kind Regards

    Hi,
    ORA-12560: TNS:protocol adapter error"
    The above error message comes if Oracle Listener service is not running. Start Oracle TNS Listener service, if it is not running.
    You can create control file while your Primary Database is ONLINE. Use the below mentioned command to create standby control file and use it for recovery at Standby database.
    ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/path/to/controlfile.ctl';
    If you want to Start/Stop SAP/ORACLE in MCSC environment then refer the steps mentioned in these threads, [thread1|Re: how to start/stop a  MSCS clustered SAP system?; and [thread2|Stop sap and oracle on MSCS;.
    Regards,
    Bhavik G. Shroff

  • Alternatives to FLASHBACK database

    We're getting ready to upgrade to 11gR2, and so I thought I'd ask the question just in case there was something new ...
    Are there alternatives to FLASHBACK DATABASE in order to rollback DDL? I was hoping that there was a new feature that I'm just not aware of, which allows for the same functionality at a smaller level, like at the schema level. I'm assuming we're not there yet based on the searches I've been performing this morning, but I thought I'd ask.
    Thanks,
    --=Chuck

    Chuck, since you asked this question in relation to an upgrade I will mention that Oracle does provide a downgrade procedure; however 11.2 is a well tested environment and any problems you encounter you should be able either tune, patch, or otherwise workaround.
    I have never consider flashback database a useful feature.  There is no way we could ever flash back production because the DML often reflects real world actions such as shipping material out of the plant.  If it was shipped we need to bill for it.  If someone messes up that area of the applicaiton has to be fixed and the data corrected without any direct changes being made to the data in the uneffected portions of the system.  Someone might mention flashing the database back, extracting what you need, flashing back forward but if the database is up there are users and data is being changed.  We could never do it and I do not know too many other DBA's who could realistically use the feature except in test.
    HTH -- Mark D Powell --

  • How to test failover of dataguard environment?

    I would like to test failover (not switchover ) in dataguard environment.
    How to achieve that?
    Thanks.

    Hello;
    Happy to share my test notes :
    http://www.visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.pdf
    These oracle notes may also help :
    Can We Use Manual SQL*PLUS Steps For (switchover,Failover,etc....), If DataGuard Broker Has Already Activated And GridControl Is Also Used? [ID 744396.1]     
    Oracle10g: Data Guard Switchover and Failover Best Practices [ID 387266.1]
    Step by Step Guide on How To Reinstate Failed Primary Database into Physical Standby [ID 738642.1]
    Best Regards
    mseberg

  • Standby redologfile -Dataguard environment

    Hi,
    I have had a small confusion regarding an oracle Dataguard environment(standby database).
    If i add a redo log group in my production db say "PRODDB",is the same log file will be replicate to the standby db say "STDBYDB"?
    If so, based on which parameter settings/functions the redo log group switches may happen?
    Kindly suggest
    Regards,
    mafaiz

    Hello;
    No , it wont create.
    If you want to add Standby Redo you have to use a different method.
    1. On primary defer log shipping (dynamic change)
    alter system set log_archive_dest_state_2 = defer
    2. On standby database cancel managed recovery
    alter database recover managed standby database cancel;
    3 Create the new Standby logs
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 '/u01/app/oracle/oradata/PRIMARY/redo04.log' SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 5 '/u01/app/oracle/oradata/PRIMARY/redo05.log' SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 6 '/u01/app/oracle/oradata/PRIMARY/redo06.log' SIZE 50M;
    4. Enable log shipping on the Primary database
    alter system set log_archive_dest_state_2 = enable scope = memory;
    5. Enable managed recovery on standby database
    alter database recover managed standby database using current logfile disconnect;
    Test of ONLINE addition
    set linesize 200
    select type,member from v$logfile;
    ONLINE /u01/app/oracle/oradata/PRIMARY/redo01.log
    ONLINE /u01/app/oracle/oradata/PRIMARY/redo02.log
    ONLINE /u01/app/oracle/oradata/PRIMARY/redo03.log
    STANDBY /u01/app/oracle/oradata/PRIMARY/redo04.log
    STANDBY /u01/app/oracle/oradata/PRIMARY/redo05.log
    STANDBY /u01/app/oracle/oradata/PRIMARY/redo06.log
    -- add ONLINE group 7
    /u01/app/oracle/oradata/PRIMARY/redo07.log
    alter system switch logfile;
    Check of Standby system, no group 7 exists
    Summary
    So neither ONLINE or STANDBY logs gets added despite STANDBY_FILE_MANAGEMENT=AUTO on both systems.
    Best Regards
    mseberg

  • Applying oracle patchset in oracle-dataguard environment

    Hello There,
    I wish to apply oracle patchset in oracle dataguard environment.
    can you please let me know the steps that has to be taken on Primary & standby database?
    is there any specific document for this?
    DB - oracle 10.2.0.4
    OS - Linxu x86_64
    Best Regards
    Sachin Bhatt

    Hi Sachinn,
    To patch primary site, you can find the detailed infirmation in readme.html, in the patch zip file. Additionally, at the standby site, In order to apply the patch;
    1) stop the log shipment
    2) stop the oracle related services
    3) patch the Oracle
    4) Startup migrate
    5) execute the SQL scripts
    6) start the log shipment
    Check the link below;
    http://dbaforums.org/oracle/index.php?showtopic=17398
    Best regards,
    Orkun Gedik

  • How can I get a list of database names from environment

    Hi,
    How can I get a list of database names from environment.
    I had found a method in JE API Docs named Environment.getDatabaseNames(), and i couldn't found the same method in Berkeley DB.
    I use java interface, is it supported?
    Thanks.

    Hello,
    I don't know if it would work for you, but have you checked the db_archive utility at:
    http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/db_archive.html
    Check the -s option.
    Thanks,
    Sandra

  • Can I use flashback database to flashback a pluggable database?

    Hi All,
    I created a container database and then created a pluggable database.
    In the pluggable 12.1 datbase, I loaded the user data.
    I performed the below
    sqlplus / as sysdba;
    create restore point CLEAN_DB guarantee flashback database;
    And I performed the transactions on the pdb.
    Now my intention is to restore to the restore point CLEAN_DB as created from the above step.
    If I perform the below, will it restore my pdb to the initial state?
    flashback database to restore point CLEAN_DB;
    Regards,
    Kamal.

    Hi,
    You cannot use FLASHBACK DATABASE for pluggable database.
    Flashback query/versions queryis UNDO based and work in PDB’s
    Flashback transaction query/flashback transactionis UNDO and REDO based and work in PDB’s
    Flashback data archiveUNDO gernerated archives
    Flashback table
    before drop –> Rename segment name of recylebin, which is based on UNDO, work in PDB’s
    flashback table to –> is UNDO based, work in PDB’s
    Flashback databasedoesn’t work in PDB’s:
    RMAN> flashback pluggable database prmdb01 to time "to_date('23:00 20-11-2013','hh24:mi dd-mm-yyyy')";
    Starting flashback at 25-NOV-13
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of flashback command at 11/20/2013 23:00:00
    RMAN-05108: Command is not supported for pluggable database
    Regards
    Mahir M. Quluzade
    p.s. Command exists but not supporting, may be next release come support.

  • Can I use flashback database to recover it?-----QNo.115

    I have dropped a tablespace through RESETLOGS.
    Can I use flashback database to recover it?-----

    5.3.1 Limitations of Flashback Database
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/rpfbdb003.htm

  • Client or module information in oracle database in citrix environment

    We have oracle 10g database in citrix environment . We are enable to get client information when he is logon in oracle database or application through citrix. How can we get client information in oracle. we want to stop sqlplus or any other tools except our application. How it would be possible.
    Thanks
    Edited by: Wason Naveen on Feb 19, 2010 6:39 AM

    Sorry I wasn't sure.... But let me try to give you another idea.
    So if you want to protect your schema I suggest to use roles.
    I mean collect all schema privileges into two roles.
    Set default role for your schema user an almost empty role. (create session)
    Plus create a full featured role which is password protected.
    So you can implement in your application that when it connects it "SET ROLE" to the full featured one with password of course...
    This way only your application can use/see objects in schema...
    HTH, Zoltan

  • Set User preferences in oracle portal’s database in portal environment

    Hi All,
    I need to set User preferences in oracle portal’s database in portal environment.
    I need to get some oracle PL/SQL API for the said purpose.
    In user preferences I need to save Preference name and preference value.
    Can any one have idea?
    Regards
    Amit Tiwari

    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/index.html
    and http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwpre_api_name.html
    Patrick.

  • Enabling flashback database adds unsupported spfile parameter

    After enabling the flashback database I saw a new policy violation upon restart.
    awrflush_threshold_metrics was set to true and added to the spfile. When I look that up, I get various dire warnings about using it.
    If it's not supported, why does Oracle do this by default upon enabling the flashback database? And, is it necessary for the flashback database to work, or can I remove it?

    What's your OS and DB versions?
    Since 10g R2 this parameter Enables/Disables Flushing AWR Workload Metrics.
    You should not set this hidden parameter unless directed by Oracle Support. All parameters that start with underscore (_) are considered internal and unsupported, which means that only Oracle is authorized to set them.
    ~ Madrid

Maybe you are looking for

  • Case sensitive disks?

    All my disks are case sensitive on my Mac. Why don't your products install? I failed with both Acrobat Pro and PS Elements 12. I have lots of case sensitive file names. I can't change them. So do I have to plug in an external disk just to run your pr

  • Trying to find ResultSet empty or not - Error - please help

    Purpose of the code : I am trying to see if the customer or user is in the database. Error : Cannote convert boolean to resultset <%@ page language="java" contentType="text/html; charset=ISO-8859-1"      pageEncoding="ISO-8859-1"%> <%@page import="ja

  • Cover Flow showing wrong artwork, Now Playing showing right!

    I am going to lose my mind if I don't get this figured out. I have several files in my iTunes that show the wrong artwork in the Cover Flow. They show the correct artwork in Now Playing, as well as when I go to Get Info. The correct artwork is there,

  • Table for maintenance plan and maintenance cycle and Unit

    Hello, I need to know the table where the values are stored for maintenance plan, maintenance cycle and Unit. I know that we can get the maintenance cycle and unit from MMPT table. Question 1 If the maintenance plan has only a single cycle then the d

  • Wish List error / connection time out

    I updated iTunes and have tried to access my *wish list* several times. I keep getting an error message that the +connection has timed out+ or that the +request could not be completed+. Everything else is updated and the network is working just fine.