Standby database failover flashback restart as standby gap 1-100

Hi,
I have setup a physical standby database for a 3 node RAC primary database and configured the database to run in MAXIMUM AVAILABILITY mode. Both the primary and standby databases use ASM for managing the IO. I have enabled FLASHBACK ON on both the databases.
I did failover to standby database with primary db SHUTDOWN for doing some testing. After testing is done, I flashbacked the (standby, currently primary)database to the point when it became primary and start it as standby again and the old primary as primary.
Following are the steps:
Failover steps
.Shutdown the primary database
To finisish the recovery at standby
SQL>alter database recover managed standby database finish;
To start as primary
SQL>alter database commit to switchover to primary;
do some DML on the new primary
SQL>flashback database to scn <standby_became_primary_scn>;
SQL>alter database create standby controlfile as '/backup/standby.ctl';
Changed the spfile to point control_files to '/backup/standby.ctl';
Restarted the standby db in mount mode and
created the required stanbdy logs on it.
Then issued
SQL>alter database recover managed standby database using current logfile disconnect;
I have the following message in v$dataguard_status at standby db;
Fetching gap sequence in thread 1 branch(resetlogs_id) 653234404, gap seq 1-100
DBID 2651011616 branch 653234404
GAP - thread 1 sequence 1-100
FAL[client]: Failed to request gap sequence
FAL[client]: All defined FAL servers have been attempted.
The same error is found in alert log file also.
The status of the varioud managed standby db are as follows.
SQL> select process, status from v$managed_standby;
PROCESS STATUS
ARCH CLOSING
ARCH CLOSING
ARCH CLOSING
MRP0 WAIT_FOR_GAP
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
PROCESS STATUS
RFS IDLE
RFS IDLE
RFS IDLE
RFS IDLE
15 rows selected.
SQL>
Could you please help me how to resolve the above error.
Thanks,
Sreekanth

Sreekanth,
I think your steps are right on for your requirement, except instead of
alter database create standby controlfile as '/backup/standby.ctl';
you can do this:
ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
(although perhaps it achieves the same thing internally but you don't need to repoint to new controlfile).
So far as the GAP - thread 1 sequence 1-100
Let me guess, your current sequences are probably well ahead of this reported gap?
If so, this is a bogus gap in a sense that your standby has long ago applied them, but for some reason standby controlfile gets a little confused and starts asking for them again.
I have had this issue and opened multiple TAR's with Oracle since 10.2.0.1, got a few patches and advises to upgrade, but still occasionally get it now in 10.2.0.3
I strongly believe this is related to combination of RAC (i.e. multiple threads of redo) and dataguard.
It is also pretty hard to reproduce (I have not figured out how to reproduce this reliably, if you have, let me know), so I can understand why Oracle has so far been unable to fix this.
Anyway, the workaround is to re-create standby controlfile with a copy generated on primary, and move it in place of the existing (and confused) controlfiles on standby.

Similar Messages

  • "WARNING! Closed connections to peer [standby IP] database! Please restart peer node to bring databases in sync!!"

    i have a two appliances of NAC Manager, i want to make a failover, but i only connect them with a crossover cable on eth1,
    is it neccesary conect a serial cable?, because when i try to verify a failover  they appear  this:
    “WARNING! Closed connections to peer [192.168.0.254] database! Please restart peer node to bring databases in sync!!” in each one

    Hi. I had a lot of those messages. In my scenario the failover bundle works OK during certain time but ocassionally the hearbeat fails (never knew why) and the warning messages appeared. Since there's no sync anymore the config in both manager will be different, so the very first thing to do is to backup the configuration. Please notice if the current active NAM is the primary or the secondary NAM (it's necessary to know this information for the later steps).
    Then you will have to stop both NAM (service perfigo stop)
    Now there's an extra step only if the last active NAM was the secondary : you will have to restore the backup into the primary NAM (since this NAM will have an outdated configuration).
    Now back to the regular steps. You must start both NAM . The primary NAM will be the new active , synchronization will take some minutes, after that the "warning" will be cleared.
    Please rate if it helps.

  • Want to Buy SQL 2008/2012 standard edition to achieve Database failover

    Hi Team,
    We want to know exact part code details to procure 2 nos Sql 2008/2012 standard edition server to installed on "Window 2012 R2 Standard Edition, Factory installed, no media, 2 socket,2 VMs, No client" Server.
    I have Access control system application (Main-Standby) on which we need Automatic database failover by using SQL Standard server. Application vendor has suggested us to procure 2 nos of Microsoft Sql 2008/2012 standard edition server.
    If possible then please let me know exact part code details of Sql 2008 and 2012 standard edition server which doesn't have any issue to installed on above said server edition.
    Thanks,
    Vishal

    Hi Vishal,
    Unfortunately, we do not deal with part codes, I request you to check the below link as this is not the correct forum.
    http://www.microsoft.com/en-in/server-cloud/products/sql-server/Support.aspx
    Perhaps you could post you question on the SQL forum :
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    Regards,
    Mekh.

  • Messages Stuck in Submission Queue after Database failover to DR site

    Hi Everyone,
    Yesterday Night we had a Database failover to DR site but emails were stuck in the submission queue to resolve we failed back the Database. We have Exchange 2010 SP3 Ru4 with Active-Active DAG across 2 AD sites.
    After checking the connectivity logs on the Transport server i found out that the Transport server was trying to connect to the mailbox server where this database was residing directly instead of using the Transport servers in the 2nd site.
    We have 4 more databases on the same server but for those databases there was no issues and the mail flow was working fine.
    Only thing i checked is that we have about 700 GB of log files for this database. Could that can cause this issue.

    Hi,
    Thanks for your response.
    I did not restart transport service. I assume restarting transport service might have resolved the issue.
    But, i want to know the reason why this happened as we have stretch DAG so this can cause major outage in case more mailbox database fails over.
    Removing the logs files is what i am thinking to do maybe within this week.

  • 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.

  • The installation of my CS5 Design Premium has "Inconsistency in the installer database. Please restart your computer and install again."

    I am having problems installing the CS5 Creative Suite on to my MAC. After the install, a message comes up that reads, "Inconsistency in the installer database. Please restart your computer and install again." I then restart my computer and still cannot install it. Please help.

    even though this is for cs3, go through the suggestions,
    Error "...Installer Database is Corrupt..." when you install Adobe Creative Suite 3 products

  • I'm trying to install Creatice Suite 5.5 on a new Mac but I get the error message "Inconsistency in the installer database. Please restart your computer and install again."

    I'm trying to install Creatice Suite 5.5 on a new Mac but I get the error message "Inconsistency in the installer database. Please restart your computer and install again."
    I have restarted but that doesn't help.

    Jonkpirateboy did you migrate/transfer/copy your CS5.5 application to this new Mac?
    If so then please utilize the uninstallers located in the Applications/Utilities/Adobe Installers folder.  You will then want to run the CC Cleaner Tool located at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.
    Finally if you need a fresh copy of the installation files they are available for download at Download CS5.5 products.

  • Write behind with Coherence, What happens if database failover?

    When write-behind with coherence tries to delete, update or insert into database but the Oracle database is shutdown, when I start again the database, So when i try insert again in the database show me this error in the cache server:
    2009-11-23 23:55:07.926/255.935 Oracle Coherence GE 3.5.2/463 <Error> (thread=WriteBehindThread:CacheStoreWrapper(com.oracle.coherence.handson.DBCacheStore), member=1): (Wrapped: Load failed: key=catalog50) java.sql.SQLException: Closed Connection
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.oracle.coherence.handson.DBCacheStore.load(DBCacheStore.java:64)
         at com.oracle.coherence.handson.DBCacheStore.store(DBCacheStore.java:77)
         at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.store(ReadWriteBackingMap.java:4338)
         at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.storeInternal(ReadWriteBackingMap.java:4064)
         at com.tangosol.net.cache.ReadWriteBackingMap$WriteThread.run(ReadWriteBackingMap.java:3731)
         at com.tangosol.util.Daemon$DaemonWorker.run(Daemon.java:714)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.sql.SQLException: Closed Connection
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3127)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3042)
         at com.oracle.coherence.handson.DBCacheStore.load(DBCacheStore.java:50)
         ... 6 more
    How i can reestablish the database connection without restart my cache server?
    Please Help me!!!
    Sorry for my english.

    Hi,
    It looks like you are using com.oracle.coherence.handson.DBCacheStore.
    http://download.oracle.com/docs/cd/E13924_01/coh.340/e14135/cohjdev.htm
    If so, then I think that you could simply change the following method in the DBCacheStore ...
    public Connection getConnection()
            if (m_con == null || m_con.isClosed())
                configureConnection(); 
            return m_con;
            }Thanks,
    Tom

  • I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries)

    I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries) & is up to 1.36 GB in size. I have tried reducing file size in preview but the images are unreadable. Any ideas? 

    WHen I want to reduce the file size, I either use "Optimize Scanned PDF", or more often use "Reduce File Size". Both are on the Document menu. The Reduce File Size selection has some limited customization that is used, when selected.

  • 9i Standby Database - Failover Question - REF 227196.1

    Hi ,
    Im researching the use of a Standby DB for out Production DB....
    The Metalink DOC 227196.1 mentions that in failover , the Production going down , Standby becomes Primary and cannot be come Standby again , whereas with Switchover , they can be swapped as many times as you need for upgrades etc...
    "The Difference between a Switchover and a Failover is, that after a Failover, the Standby Database becoming a Primary now, cannot switchback to become a Standby Database again. In Opposition a Switchover exchanges the Database Roles (The Primary becomes a Standby and the Standby becomes a Primary). Switchovers can be performed arbitrarily, a Failover only once."
    If failover happens can someone tell me or point me in the right direction:
    a) Can you config Failover to happen automatically?
    b) If failover occurs , do you need to reconfig all the Primary/Standby DB again in the event that failover happens again?
    c) Any clear step by step guide to config of standby... The Oracle docs whilst very good are robust and some "summary" steps would be great
    thanks in advance
    Stephen

    HI,
    Please check this link:
    Physical Standby Database SWITCHOVER &amp;amp; FAILOVER Operations | Talip Hakan Ozturk&amp;#039;s ORACLE BLOG
    Thank you

  • How Auto starting Physical Standby Database ( when Server Restart)

    Dear All(s)
    I have configure oracle (10.2.0) dataguard on production database, some time server restart due to power disconnectivity, i want to restard dataguard when server restart. i am using Server 2003 32bit. Guide me how i can run following commands when server restart.
    SQL> connect/as sysdba
    SQL> Startup mount;
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Thanks in Advance

    i want to run these command each time when server restart.Yes, I did understand that... but what's the problem ? can't you schedule a task when the server starts ?

  • Recovered standby database, still it is looking for gap sequence

    I have lost archive logs in both primary and standby database(deleted due to low space).
    So folloed the below steps.
    1.Identified minimum SCN from standby database.
    2.Took inremental backup from primary database according this SCN(nnnnn)
    3.Transfer this backup file to standby side
    4. Cataloged database backups and recovered the database.
    But medial recovery is searching for missing archived logs. Please advice.

    957905 wrote:
    I have lost archive logs in both primary and standby database(deleted due to low space).
    So folloed the below steps.
    1.Identified minimum SCN from standby database.
    2.Took inremental backup from primary database according this SCN(nnnnn)
    3.Transfer this backup file to standby side
    4. Cataloged database backups and recovered the database.
    But medial recovery is searching for missing archived logs. Please advice.Probably you have not restored new standby controlfile before performing recovery.

  • Standby database failover

    Hi Guys,
    I don't have much 'real time' experience with Oracle db failovers and setting up standby databases etc. But I have a scenario here and was wondering how would one go about it. I know there could be many ways for this. I have done reading stuff online but there are so many different approaches, different scenarios etc..
    I have a primary site with a primary db and a standby db in a different site.
    If the primary db has been

    I should have mentioned that the Oracle version in question is: 9.2.0.x and the OSs involved are Windows based.
    Amit,
    This was only a scenario and it did not actually happen. I was considering a situation where the systems are in a state where the primary db cannot be brought back up and I'd have to run from the standby db.
    So what you are saying is, the 'current' redo log file relating to the primary db (but located on a separate disk) will be of NO USE to 'apply' to the standby db to keep it in sync with primary db before it went down. Is this correct?
    Can I not use Oracle 'real time apply' to use the above 'current redo log' file on the standby db would you know such as : -
    alter database recover managed standby database using current log file;
    TIA

  • Standby Gaps after changing sys password

    Hi all,
    11.2.0.1
    aix6.1
    I changed our sys password at primary db and copy the "orapwdprod" from source dbs  to "orapwdproddr"  at standby dbs.
    But I noticed that the log is not sync.
      1  SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
      2  FROM
      3  (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
      4  (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
      5* WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1
    SQL> /
        Thread Last Sequence Received Last Sequence Applied Difference
             1                   2635                  2594         41
    Where can I check the error why is it not applying acrhive logs
    Thanks,
    zxy

    For example:
    In primary run again transfer orapwd (command scp)
    bash-3.2$ scp /u01/app/oracle/product/11.2.0/db_1/dbs/orapwXXXXX1 Standby_ip:/u01/app/oracle/product/11.2.0/db_1/dbs/orapwXXXXX
    Password:
    orapwKBAZER1         100% |**************************************************************************************************************************************************|  2048       00:00  
    And please run sql query again:
    SELECT status, error
    FROM V$ARCHIVE_DEST_STATUS
    WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE';
    I have done this carefully and Im sure I did it correctly.
    How can I test connectivity to standby database?
    Can I run  at primary server > sqlplus sys/passwd@standby as sysdba ? to test if I can connect using the password file?

  • Database failover

    Hai All,
    we have 2 databases running in 2 windows machines. is there anyway, we can
    configure Transparent failover for this oracle databases, such that if one node fails, other node comes in to action.. note. that this 2 databases are not the same. but the O/S are the same. please let me have your valuable suggestions and any metalink doc id's if possible..
    Thanks
    Yusuf

    What do you understand by failover here? Neither connection nor application failover can work, if the database are not the same. In the context of Dataguard you can define failover, but you need a physical or logical standby database in place.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm
    Werner

Maybe you are looking for

  • How to fix permission denied for home folder with Apache in Mavericks?

    I recently activated the apache that ships with OS X Mavericks. I followed some tutorial to set up the web-server, however. When I browse to my home-filter at http://localhost/~nazeem, I get the following error: You don't have permission to access /~

  • Canon FS19

    Hello, I have a Canon Legria FS19 Camcorder with a full 8GB internal memory. I'm trying to capture the footage (.MOD and .MOI files) in iMovie to later edit in Final Cut Pro. When I select "Import from Camera" iMovie tells me it is searching for my c

  • Is facetime broken???

    No one from Apple seems to be listening to the people on this forum.  Facetime does not seem to be working properly, WHY?? NannyMoo

  • Two different spanish languages?

    Hi, I've installed Oracle Portal 10g and i've selected English and Spanish as Supported Languages. But Spanish is installed together with Latin American Spanish, and they are installed as DIFFERENT languages. The problem is that the content contribut

  • How to Call Scapscript program in bapi

    Hi All there, wanted to call a sap-script program in a bapi  my coding is line FUNCTION ZBAPI_ZDIPNB. ""Local interface: *"  EXPORTING *"     VALUE(HTML_STRING) TYPE  STRING *"  TABLES *"      SELTAB STRUCTURE  RSPARAMS *"      HTML_REPORT STRUCTURE