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

Similar Messages

  • 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

  • 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

  • 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

  • Oracle patching on Dataguard Environment

    Hi,
    I have to do oracle patching on my customer system having Dataguard environment.
    Can someone please guide me, if i have to run installer on both primary and standby server or not ?
    Is someone has done it in past, please share your experience.
    Thanks,
    Kanchan

    In Readme they have just mentioned to refer oracle note 278641.1. When i checked that note, it says
    1. In the primary disable log shipping to the standby site.
    2. Shutdown the standby site and apply interim patchsets to the RDBMS binaries as per the README. This includes Patchset/Patchset Update (PSU)/Critical Patch Update (CPU). You will not be able to and do not need to run the scripts (catpatch.sql etc) against the standby rdbms itself.
    3. Shutdown the primary site, apply the Patchset/PSU/CPU patch to the RDBMS binaries and patch the RDBMS itself using the instructions in the README (run catpatch/catbundle/catcpu etc).
    4. Start the primary site, re-enable log shipping to the standby.
    5. At the standby site restart redo apply/managed recovery and the RDBMS changes implemented in the Primary Site through catpatch/catbundle/catcpu will also be applied to the standby.
    Information about Bundle patch is clear. But Applying patchset is not clear.
    Do we need to run catupgrd.sql script on standby after patchset installtion ? or that will also be shipped through logs ?
    and if below command is right for disabling the Log shipping from primary ?
    SQL> alter system set log_archive_dest_state_2=defer scope=both sid='*'

  • RMAN catalog resync in Dataguard environment

    Hello,
    I have a quick question regarding the resync of the recovery Catalog in a 10g Dataguard environment...
    I plan to perform the backups from the physical standby side. (Backups of DB and archives).
    If I want to restore/recover a datafile on the primary side, do I automatically see the backup information once i am connected to the catalog DB, or do I have to perform a "resync catalog;" statement to resync the control file of the primary side with the actual backup information from the catalog?
    Thanks in advance,
    Boris...

    But what is the effect, if I perform this statement on the primary side? Do I loose backup information if I perform a resync of the catalog because the backups were made from standby side? If I perform all backups from standby side the control file on the primary side does not know about the backups.
    I am asking because I want to know if I have to adjust the backupscripts. They perform a resync of catalog per default.
    Thx, Boris..

  • Standby without DataGuard

    Hi,
    I've successfully created a standby for a single node Primary Database in 10g on Redhat Enterprise Linux 4.0 Update 4.0. I'm planning to add one more standby site to the same primary database. Now, my question is...
    1. Is it possible to setup more than one standby without the help of DataGuard.
    2. If possible, please guide me how to do it(step-by-step).
    Thanks in advance...
    Mahesh

    If you've already configured one Standby without DataGuard, you'd use the same method for the second standby.
    Since we do not know your scripts and how you are propagating archive logs and putting the standby in recovery mode -- all of which would be "custom" methods in the absence of DataGuard -- we can't really advice you . Because it is difficult to advice on extensions to a customisation without looking at a customisation.
    Many sites have implemented a scripted Standby without DataGuard using methods available since Oracle7. However, the frequency and method of archivelog propagation and how and when the standby database "wakes up" to apply the archivelogs etc are all site specific.
    Let's say that you DO use the ARCH process on the primary database to propagate archivelogs to the Standby destination site. Since Oracle 10g allows multiple log_archive_dest_n sites, you can just add one more site and have the archivelogs propagate to the additonal site. However, there are other parameters (eg MANDATORY/OPTIONAL, REOPEN, DELAY etc) that you would set based on your requirements.
    The two standby instances would be independent {unaware} of each other -- you can script delays between the archivelogs so that the two standby aren't always at the same level (this allows "fallback" to an "older version of the database" when necessary). You could have one standby stop recovery and open read only for some time.
    Short Answer : Yes, it is possible to have multiple "standby"s without DataGuard.
    Correct Answer : How you do it depends on how you want to extend your current implementation.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • 9i Standby without dataguard

    Hi all.
    Oracle 9i ( SE )
    I'm trying to figure out how to create a standby database without dataguard. I've read that its possible, but I can't find any documentation on exactly how to do it. From what I've gathered I should be able to
    Create a duplicate database from primary backups
    Put standby database into "some recovery mode" - this is the bit I'm stumped at
    Copy archive logs from primary to standby, where they will magically be applied?
    I need to migration lots of datafiles to new disks, and cannot afford the downtime to just move them, so I'm thinking the best way to do it is to create a standby and keep it as close to synced to the primary as possible, then shutdown primary, apply file logs, point primary to the new datafile location..
    Can anyone either point me to a good article on doing standby with dataguard, or if there is a better way to move large ( move procedure will take about 4-5 hours) tablespaces/databases with minimum downtime.
    Thanks.

    Hrmm, maybe? so is "Data Guard" by itself available for SE?
    When I startup the database it reports
    "Oracle Data Guard is not available in this edition of Oracle."
    I'll go poke around that document too.
    btw. the document I read which suggests this is possible is, http://www.dba-oracle.com/oracle_tips_failover.htm
    Thanks
    Message was edited by:
    nib000

  • Physical standby without dataguard

    Naive question.
    I am going thru metalink note (374069.1) on how to create a physical standby. In that note, they didn't mention data guard stuff. Am I to assume that physical standby without dataguard can be created?
    Thanks.

    It might appears to be easy to create psuedo standy but you will have hardtime to simulate the automatic archive log apply and gap resolve.
    Plus the level of data availability provided by self-managed standby can't come close to Data Guard can offer.
    With Data Guard you can almost get zero data loss between Primary and Standy, depends on your redo logfile size there could be many data in online redo logs.

  • Standby and Dataguard

    I'm new to DBA tasks.....and i supposed to setup Datagurad on oracle 9i
    Bit confused with standby and dataguard, Could any one please expalin what is standby and what is dataguard, and the difference between two

    http://download.oracle.com/docs/cd/B10501_01/server.920/a96653/concepts.htm#1027493

  • Refresh primary db in a dataguard environment using datapump

    I just built a dataguard 10.2.0.3 environment(primary/physical standby)...we need to refresh the primary database using a datapump export. Can i just go ahead and refresh it just as i would refresh a normal database?
    For e.g., i would drop the users, create users, and run the datapump import. This will automatically get run on the standby as well, if i understand it properly. Has anyone done this and can confirm?
    Thanks.

    Thanks for the reply.

  • Patch application in a DataGuard environment!

    Just curious if anyone out there has any patch application best practices in a DG environment.
    Our environment is:
    - Oracle v 10.2.0.3
    - Solaris 10
    - DG in Physical Standby
    We are in the process of applying July CPU patch and just want to check if anyone out there has any recommendations.
    Appreciate all your help.

    Hi, the July Patch can be from Metalink site into Note:432865.1 and the link is
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:1963896718475765486::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,278641.1,1,0,1,helvetica
    Good luck.
    Regards.

  • STARTING STANDBY IN DATAGUARD CONFIGURATION

    Hi,
    IN DATAGUARD CONFIGURATION, should we start STANDBY database by :
    1-STARTUP MOUNT
    or
    2-STARTUP
    or
    3-STARTUP MOUNT
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
    Many thanks before.

    Thank you sybrandb.
    Please always include your version (four digits) and the O/SPROD 10.2.0. on WIN 2003 SERVER
    STANDBY 10.2.0. on WIN XP PRO.
    The correct procedure is (documented)Thank to give the name or number or URL of document. I have already seen :
    Oracle® Data Guard
    Concepts and Administration
    10g Release 2 (10.2)
    B14239-04
    note 374069.1
    note 248382.1
    Regards

  • 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

Maybe you are looking for