Query regarding standby database state when primary is down or un-reachable

Hi
I want to know if there is any reflection on the standby database states when it's primary is down or not reachable? I want to use this information from standby node to determine if I can programatically execute (dgmgrl) failover operation or not? This is considering that the broker configuration has no fast-startfailover and no observer enabled/configured.
Thanks,
Yojana

989192 wrote:
Hi
I want to know if there is any reflection on the standby database states when it's primary is down or not reachable? I want to use this information from standby node to determine if I can programatically execute (dgmgrl) failover operation or not? This is considering that the broker configuration has no fast-startfailover and no observer enabled/configured.
Thanks,
YojanaYou don't have exactly such option,
But you have alternate for it. Whenever standby is unreachable to primary then from standby alert log file you can see informational messages as RFS: Possible network disconnect with primary database , So you can write a script to grep those contents and to mail alert, so that you can sense whether any issue with primary database.
HTH.

Similar Messages

  • How to sync the standby database with the primary?

    Hi..We have dataguard setup for our production databases(10.2.0.3).
    I need one clarification regarding the standby database sync with primary.We identified one of our databases is not in sync with the primary and for longtime the archives are not getting applied at the secondary.
    We decided to take the incremental (from SCN)backup from primary and use that at the standby to resolve the gap as described in the book "Oracle dataguard concepts and administration".
    But, before doing that,we observed couple of structural changes were not applied at the standby(ex:some tablespaces were not created in secondary where as they were there in primary).
    How to apply these changes at the secondary as the standby is in mount state.(Can I open this database and create those tablespaces ?? or do you suggest any other way.
    Thanks for your reply.

    This points to a setup problem. Something missing, a parameter set wrong etc.
    While your question is asking something different - How to correct, I would consider how to prevent. Unless you have a gap or logs not applied you have a deeper issue.
    If you have a gap or logs not applied then correct it and check to see if the missing object are present.
    The key parameters for Oracle 10 are :
    FAL_SERVER=STANDBY
    FAL_CLIENT=PRIMARY
    STANDBY_FILE_MANAGEMENT=AUTO
    DB_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    LOG_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    log_archive_dest_1='LOCATION=/u01/app/oracle/oradata/PRIMARY/archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY'
    log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    LOG_ARCHIVE_MAX_PROCESSES=30
    Check them on both sides for issues.
    If your standby is really trashed consider using RMAN to duplicate it. You might end up saving time. I have Oracle 11 short notes on this but it will work on Oracle 10 too.
    http://www.visi.com/~mseberg/duprman.html
    Otherwise use statements like this to resolve you gap.
    ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/oradata/STANDBY/archive/PRIMARY_1_20_716110538.arc';
    ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/oradata/STANDBY/archive/PRIMARY_1_21_716110538.arc';See Section 5.8 Managing Archive Gaps of oracle document B14239-05
    Best Regards
    mseberg
    CKPT is correct, sorry I missed the Welcome to OTN!
    Edited by: mseberg on Jul 5, 2011 10:34 AM

  • How will you find out no of standby databases configured for primary database from OS level

    How can find the number of standby databases configured for primary database from os level

    Check the alert log.
    The Alert log will always have Data Guard messages in it.
    Example
    cd /u01/app/oracle/diag/rdbms/primary/PRIMARY/trace
    tail -1700 alert_PRIMARY.log | more
    Wed Nov 13 13:35:26 2013
    ARC7: Standby redo logfile selected for thread 1 sequence 1164 for destination LOG_ARCHIVE_DEST_2
    LNS: Standby redo logfile selected for thread 1 sequence 1165 for destination LOG_ARCHIVE_DEST_2
    If you don't see messages like this it's probably not a Data Guard system.
    Or search it for :
    System parameters with non-default values:
    Which on Data Guard system will show things like:
    log_archive_dest_1 = "LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY"
    log_archive_dest_2 = "SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY"
    log_archive_dest_state_1 = "ENABLE"
    log_archive_dest_state_2 = "ENABLE"
    fal_server = "STANDBY"
    Best Regards
    mseberg

  • Addition DC can not operational when Primary DC down

    Dear All
    My system using Primary DC and Additional DC, both server runing window server 2008 R2.
    when primary DC down. I had reboot Additional DC Server after I access to Active Directory User and Computer, appears error 
    " Naming information cannot be located for the following reason:
    The server is not operational.
    If you are trying to connect to a domain controller running Windows 2000,
    verify that Windows 2000 Server Service Pack 3 or later is installed on the
    DC, or use the Windows 2000 administration tools. For more
    information about connecting to domain controllers running Windows 2000, see
    Help & Support. "
    Please help me fix it 
    Thanks so much 

    Hi 
    I have change domain controller in Active Directory User and Computer and
    I can access to Active Directory User and Computer in Additonal DC 
    Thanks so much !

  • Query Regarding Oracle Database Client

    Hello,
    I'm new to ORACLE and Intented to become Oracle Developer and DBA. I've question regarding Oracle Database Client software.
    I know that there is Oracle Database server software but what is this Oracle Database Client. Is there any need to Install it on client machine as client mostly access the database use application software mainly develope in Java or C# etc. So, what is it need.
    and one more question regarding SQL *Plus. Is it client process or server process as I learnent that it is client process and if it is. Is it can be part of Oracle Database Client. and can we seperately install the Oracle Database Client on machine on which DB server is aslo Installed.
    Looking for reply.
    Regards,
    Danish Kamran

    Certainly you are not mentioning the Oracle version, it is very important. Whenever you post a question reference the oracle version. There is a disk known as the oracle Client (10gR1, 10gR2 and 11gR1), this disk contains all required software to setup a client environment. If you are working with clients such as Java or C# you must have either the jdcb client driver (Jjava) or the ODBC software to access the database, this is included in the Oracle client disk.
    Instant Client
    There are other options for the client, you can install the instant client, this option allows you to install only the drivers without the Oracle utilities, this is particular useful if you are deploying third party applications and you don't want to install the complete client disk.
    SQLPlus
    SQL*Plus is a client application that runs on the client side, when you open a session it requests an Oracle server process to be executed on the server side. Once the session has been successfully setup then you can issue SQL commands from the client side. You should be aware that even if you launch SQL*Plus from the server side you will be working with two processes, one for the client and the second one for the oracle server. This connection mode is also known as dedicated server, but you should be aware that there is another connection mode known as shared server, I won't explain it since it already goes off topic.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Use standby-database as standby-database after creating primary database

    First I will tell what we have and what I did.
    We have a standby database on server B that was not started. We did a cold copy to server A and opened the database on server A as primary database. Now we wonder if we can use the standby database on server B to apply archives without creating a new copy to server B. The standby database on server B is waiting for sequence 2900, while the database on server A started with a new sequence.
    Is it possible somehow to start the recovery again on the standby databsae on server B without creating a new copy?
    Forgot to mention: db-version is 9.2.0.7.0, OS is SunOS 5.10

    Writing seperate code is not needed, Oracle will copy the files if the log_archive_dest is set to the right value.
    However, it is solved!
    What I did:
    - create standby controlfile on the primary
    - copy standby controlfile to standby database
    - on standby: startup nomount / alter database mount standby database
    - on primary: set log_archive_dest_2 to trigger the copying of archivelogs to the standby
    Right now the standby database is recovering.

  • FrontEnd1 reports Database state on primary and on Mirror DatabaseUnavailable

    I have a customer who have Lync Enterprise with 3 Front ends and SQL Backend and Mirror 
    On Frontend 1 the command "Get-CsDatabaseMirrorState -PoolFqdn lync.domain.com" reports that all databases state are unavailable while on Front end 2 and 3 it states normally "principal and mirror"
    I couldn't detect any errors on either Frontends or SQL Backend or Mirror. the Monitoring tool from tasks on SQL Management states that databases are syncing. 
    I have tried restarting the Frontend 1 but still the issue occurs. anyone had this problem before? 
    PS C:\Windows\system32> Get-CsDatabaseMirrorState -PoolFqdn lync.domain.com
    DatabaseName             : rtcab
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : rtcxds
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : rtcshared
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : lcscdr
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : qoemetrics
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : lcslog
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : rgsconfig
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : rgsdyn
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : cpsdyn
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : xds
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    DatabaseName             : lis
    StateOnPrimary           : DatabaseUnavailable
    StateOnMirror            : DatabaseUnavailable
    MirroringStatusOnPrimary : synchronızed
    MirroringStatusOnMirror  : synchronızed
    Mohammed JH

    Please run the command Get-CsManagementStoreReplicationStatus to check replication status for Lync Server computer.
    Check if you can telnet from FE1 to back end server via port 1433.
    Lisa Zheng
    TechNet Community Support

  • Standby database lags behind primary

    Dear All Good Day,
    Our standby db is not updated with primary and some logs were missing from primary site, to solve this issue i have taken incremental backup from primary to apply it on the standby.
    Backup taken successfully from primary and applied successfully in standby but the current_scn is not updated in standby site.
    I have done this kinda job before but never faced such situation where scn is not updated, by the way data guard broker is configured, is there any issue with the broker or anything else.
    Any idea or suggestion is most welcome.
    Centos 64 bit
    Oracle 11g r2
    Thanks in advance.
    kaysar

    On primary:
    select current_scn  from v$database;
    9741603193
    select max(Sequence#)  from  v$archvied_log;
    13293
    On Standby
    select current_scn  from v$database;
    9683951109
    select max(Sequence#)  from  v$archvied_log;
    13293
    select max(Sequence#)  from  v$archvied_log where applied ='YES';
    11662

  • Query regarding Logical Database reports

    Hi,
    I have started doing pgm on Logical Database report using VBAK,VBAP and MARA. I took VBAK as the root node and VBAP& MARA as subnodes. The actual requirement is:- I am trying to place these tables in Application server for perfromance issue using Logical database. Based on sales, the items need to be be displayed. And based on Items, the material data should be displayed.So root node here is VBAK.
    I have created these 3 nodes in SE36 tx.code. when I go back to se36 main screen and under "subobjects" ,I've selected "selections". I got a dialog box saying that "Nodes for which free selections are to be made". I have clicked on the radio buttons.And then clicked on "transfer" . I am getting a runtime error . Please let me know the solution.
    Please do send me the actual process to go on with logical database reporting.

    hi,
    look here <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm">Editing Logical Databases</a>
    pls reward usefuls answers
    thx.
    Andreas

  • Query regarding refreshing grid data when returned from  a different Task Flow

    Hi Experts,
    JDEV version used is :11.1.1.5
    Our application uses dynamic UI shell tabs.
    Whenever the user logs in he is taken to the TAB A.
    From TAB A, user navigates to TAB B.
    The TAB B has a GRID B(table with some records ).
    Column A on TAB B has a hyperlink which when clicked will open up a different task flow in a different tab.
    The click on column A's hyperlink for different rows will open different TF's (based on some conditions).
    On clicking the hyperlink the _launchActivity(String title, String taskflowId, boolean newTab) method is used which open the TF in a new tab.
    User works on the TF( on a new tab) which was opened on click of the Column A's hyperlink and clicks on SAVE.
    On click of save  some operation is performed and removeCurrentTab method is called which will close the current tab and the control goes to first  tab(TAB A) .
    The problem:
    Once the user tries to click or come back to to TAB B the GRID B is never refreshed as we are unable to get the handle to refresh the grid data.
    Any suggestions would be highly appreciated.
    Thanks,
    Vikranth

    Hi Experts,
    JDEV version used is :11.1.1.5
    Our application uses dynamic UI shell tabs.
    Whenever the user logs in he is taken to the TAB A.
    From TAB A, user navigates to TAB B.
    The TAB B has a GRID B(table with some records ).
    Column A on TAB B has a hyperlink which when clicked will open up a different task flow in a different tab.
    The click on column A's hyperlink for different rows will open different TF's (based on some conditions).
    On clicking the hyperlink the _launchActivity(String title, String taskflowId, boolean newTab) method is used which open the TF in a new tab.
    User works on the TF( on a new tab) which was opened on click of the Column A's hyperlink and clicks on SAVE.
    On click of save  some operation is performed and removeCurrentTab method is called which will close the current tab and the control goes to first  tab(TAB A) .
    The problem:
    Once the user tries to click or come back to to TAB B the GRID B is never refreshed as we are unable to get the handle to refresh the grid data.
    Any suggestions would be highly appreciated.
    Thanks,
    Vikranth

  • Can Grid Control 10gR2 create a standby database when primary db uses ASM?

    Does anyone know if Grid Control 10gR2 will be able to create a standby database when the primary database uses ASM for data files, redo log files, and archive log files but the standby database will use mounted disks? If it can, would it matter that the primary db will be a RAC cluster and the standby will be a single instance db?

    I appreciate your reply and hope you are correct. Have you had a look at the 10gR2 Grid Control to confirm this or are you only going on published statements? The reason I ask is because previous versions of Grid Control claimed to support ASM but they would only allow you to work with them AFTER you had created a standby database manually but you couldn't actually use Grid Control to create a standby database from a primary database that had its log files on ASM disks.

  • Recovering primary using standby database

    Hi all,
    Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups.After configuring we successfully took full backup in standby plus archive logs. Then as the test case we dropped one datafile from the primary and tried to recover it. It is showing the following error. Also when i tried 'crosscheck backup' from primary it is showing that all the backups taken in standby are 'expired'. But from RMAN connected to standby the same backups are showing as 'available'. Can anyone help to fix this?
    On primary:
    [oracle@db1 NIOS]$ sqlplus / as sysdba;
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Sep 6 02:58:11 2012
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> alter database datafile 4 offline; (after deleting datafile from system level)
    Database altered.
    [oracle@db1 NIOS]$ rman target sys/oracle@db1 catalog rman/oracle@appsdb
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Sep 6 02:58:58 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: NIOS (DBID=1590630518)
    connected to recovery catalog database
    RMAN> restore datafile 4;
    Starting restore at 06-SEP-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=107 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00004 to /u01/app/oracle/oradata/NIOS/users01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
    ORA-19870: error reading backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
    ORA-19505: failed to identify file "/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp"
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    failover to previous backup
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00004 to /u01/app/oracle/oradata/NIOS/users01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
    ORA-19870: error reading backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
    ORA-19505: failed to identify file "/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp"
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    failover to previous backup
    channel ORA_DISK_1: restoring datafile 00004
    input datafile copy recid=13 stamp=793208425 filename=/tmp/users01.dbf
    destination for restore of datafile 00004: /u01/app/oracle/oradata/NIOS/users01.dbf
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/06/2012 02:59:10
    ORA-19571: datafilecopy recid 13 stamp 793208425 not found in control file
    ORA-19600: input file is datafile-copy 13 ()
    ORA-19601: output file is datafile-copy 0 (/u01/app/oracle/oradata/NIOS/users01.dbf)
    RMAN> crosscheck backup;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid=18 stamp=793212040
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid=19 stamp=793212087
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid=20 stamp=793212132
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid=21 stamp=793212180
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid=22 stamp=793216080
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid=23 stamp=793216082
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid=24 stamp=793216129
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid=5 stamp=793238431
    Crosschecked 8 objects
    On Stand-by:
    [oracle@db2 NIOS]$ rman target sys/oracle@db2 catalog rman/oracle@appsdb
    Recovery Manager: Release 10.2.0.3.0 - Production on Wed Sep 5 20:11:58 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: NIOS (DBID=1590630518, not open)
    connected to recovery catalog database
    RMAN> crosscheck backup;
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=91 devtype=DISK
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid=18 stamp=793212040
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid=19 stamp=793212087
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid=20 stamp=793212132
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid=21 stamp=793212180
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid=22 stamp=793216080
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid=23 stamp=793216082
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid=24 stamp=793216129
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid=5 stamp=793238431
    Crosschecked 8 objects
    Thanks in advance.

    Hello;
    I would review one of these step by step :
    Using RMAN Backup Files from Standby Database to Recover Primary
    http://oraganism.files.wordpress.com/2009/04/backup-from-physical-standby.pdf
    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/
    Steps to recover the primary database's datafile using a copy of a standby database's datafile.
    http://dbaregistry.blogspot.com/2010/01/steps-to-recover-primary-databases.html
    RMAN in a Data Guard Environment
    http://oracle.su/docs/11g/backup.112/e10642/rcmarchi.htm#CHDIFGFH
    Performing a database clone using a Data Guard physical standby database
    http://gavinsoorma.com/2012/04/performing-a-database-clone-using-a-data-guard-physical-standby-database/
    Best Regards
    mseberg

  • When is anything written to standby redo logs on standby database?

    I am on Oracle 10.2.0.4 on HP UNIX. I have read Oracle 10.2 concepts guide on technet.oracle.com, have read may article on metalink and internet, yet I am unable to verify when anything is written to standby redo logs on stand by database.
    I have a simple database reconfiguration: a primary database and one standby database.
    I created primary database and set up log_archive_dest_2 to use LGWR SYNC AFFIRM
    I have created standby redo logs on primary.
    alter database add standby logfile GROUP
    I create standby control file on primary.
    I copied all the primary information to create standby database. I have put standby database in managed recovery.
    I did archive log switches, I created a table and inserted information in table.
    I never saw standby redo logs updated on standby database by looking at timestamp of standby redo log files.
    I then setup database in maximum availability mode by running following on primary:
    Alter database set standby database to maximize availability
    When I do insert into my tables, I do see standby redo log files on primary database being updated, but I have never seen standby redo logs on standby database updated. Why?
    I am still at loss when actually standby redo logs are updated on standby database.
    When I read Oracle 9i database documentation on data guard, it says that you do not need standby redo logs on primary instead you need them on standby. Only reason, you need them on primary is from primary changes role to standby database, so standby redo logs on standby database should be updated instead of standby redo logs on primary.

    What is the PROTECTION_MODE ,PROTECTION_LEVEL values of your database.
    As per metalink:--
    Create standby redo log files, if necessary:
    Standby redo logs are necessary for the higher protection levels such as
    Guaranteed, Instant, and Rapid. In these protection modes LGWR from the
    Primary host writes transactions directly to the standby redo logs.
    This enables no data loss solutions and reduces the amount of data loss
    in the event of failure. Standby redo logs are not necessary if you are using
    the delayed protection mode.
    If you configure standby redo on the standby then you should also configure
    standby redo logs on the primary database. Even though the standby redo logs
    are not used when the database is running in the primary role, configuring
    the standby redo logs on the primary database is recommended in preparation
    for an eventual switchover operation.
    Standby redo logs must be archived before the data can be applied to the
    standby database. The standby archival operation occurs automatically, even if
    the standby database is not in ARCHIVELOG mode. However, the archiver process
    must be started on the standby database. Note that the use of the archiver
    process (ARCn) is a requirement for selection of a standby redo log.
    METALINK ID:- Doc ID: Note:219344.1
    Edited by: Anand... on Sep 15, 2008 2:15 AM

  • Procedure to switch Primary into Standby database

    Hi group,
    I have been asked to write a document describing a procedure to put a standby database as a primary database ((1)primary -> (2)standby) to ((1)failed db - (2)primary), and after their testing switch them again to the first state ((1)primary -> (2)standby), All this as a test just in case a disaster occurs, To be honest I have never been on this kind of situation that is why I ask for your help. The procedure must contain steps for 3 databases:
    1. Oracle 10g r2 Enterprise Edition (Dataguard Real Time apply) (40GB data size) (SO: AIX)
    2. Oracle 9i r2 Standard Edition (Manual Standby) (400GB data size) (SO: AIX)
    3. Oracle 9i r2 Standard Edition (Manual Standby) (80GB data size) (SO: AIX)
    I would appreciate a lot your help.
    Thanks in advance.

    Not a valid tittle.

  • RAW primary database and ASM standby database

    Hi,
    I would like to know if it is possible to have a ASM standby database for a primary database which is on RAW files.Is there any changes in procedure for a switchover to DR site.

    Sekar_BLUE4EVER wrote:
    Hi,
    I would like to know if it is possible to have a ASM standby database for a primary database which is on RAW files.Is there any changes in procedure for a switchover to DR site.Yes, you can. and there is no change in procedure for switchover.
    for creation of standby DB, consider these parameters: db_create_file_dest,db_recovery_file_dest,control_files
    see an example here: http://pythianpang.wordpress.com/2010/02/18/data-guard-non-asm-primary-to-asm-physical-standby/
    HTH
    Tobi
    Edited by: teits on Nov 20, 2012 12:13 PM

Maybe you are looking for