Failover to standby

We are running tow database with datagurad 1. primary(node1) 2. Standby(node2). My primary(node1) get failed and not recoverable then I run this commands dgmgrl> failover to node2 now Standby(node2) becomes primary . Now after 2 days later what should i do
1. If we have Rman backup of Primary(node1) and Standby(node2) then which we have used.
2. If we have don't have backup of Standby backup what should i do.
3. What i want the crash server primary(node1) again comes in role of primary(node1) and Standby(node2) perform standby role how is this possible.
Thanks in advance
with regds
rajnish

you have to take backup of converted standby database (as primary) and create former primary database (as standby)database to this newly converted standby database (as primary).After that you have to swtich over to former primary database which is now standby database.
Khurram

Similar Messages

  • Single AIP-SSM in Cisco ASA Failover Active / Standby Mode

    Hi,
    I can add single AIP-SSM on Cisco ASA in failover active / standby mode?

    No, both units need the same hardware, that includes the installed modules.
    Sent from Cisco Technical Support iPad App

  • Failover active/standby

    Hello. There are two Cisco devices: asa5512 and asa5510. Tell me whether it is possible to organize a failover active / standby using these devices. If this is not possible, tell me if there are any other possibilities for automatic backup.

    If by Backup , you mean hardware Redundancy , it would not be possible.
    You can run the same configuration on both the devices and if one fails , you can manually replace it with the other one.
    Thanks and Regards,
    Vibhor Amrodia

  • Client failure failover/switchover standby configuration...

    I have created standby database, the standby database is synch with primary... After switchover the primary is now standby and standby is now primary, the clients are unable to connect to new primary database.
    TNSNAMES.ora file at client side...
    prim.world=
    (DESCRIPTION_LIST=
    (FAILOVER=true)
    (LOAD_BALANCE=no)
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST= test9)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVER=dedicated)
    (SERVICE_NAME=primary)
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=standby)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVER=dedicated)
    (SERVICE_NAME=standby )
    SQL> conn iq/[email protected]
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    SQL> conn sys/[email protected] as sysdba
    Connected.
    SQL> select open_mode from v$database;
    OPEN_MODE
    MOUNTED
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    SQL>
    It's Oracle 10.2.0.1.0 version....

    oracleRaj
    Handle: oracleRaj
    Status Level: Newbie
    Registered: Mar 26, 2010
    Total Posts: 370
    Total Questions:  64 (36 unresolved)
    Name Raj
    Location Karachi
    Occupation DBA

  • Consideration of DBFS when doing a switchover/failover to standby

    Can anyone let me know if i can configure the DBFS separated from the Production database with a dataguard standby to reduce the impact on my production database?

    Hello;
    Yes. To me a failover is a last resort. Ask yourself a few questions:
    Does my business require 100 percent uptime?
    How long will the Primary not be available?
    How long and how will I recover from the failover?
    Can I do a switchover instead?
    Every year we power down the main server room for a weekend. What I do is a switchover and then a switch back after the old primary comes up as the standby and catches up.
    Here are my failover test notes:
    http://www.visi.com/~mseberg/data_guard/Data_Guard_Failover_Test_using_SQL.pdf
    This may help too:
    Rolling a Standby Forward using an RMAN Incremental Backup To Fix The Nologging Changes (Doc ID 958181.1)
    Best Regards
    mseberg

  • Is applicaiton aware of oracle failover to standby?

    When you manually fail over from prod to standby, how do client application know to point to the standby database?

    Hello;
    Generally this is handled with tnsnames.ora and a trigger. So to answer your question, No, not without help.
    ernie =
    (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = primary.host)(PORT = 1521))
           (ADDRESS = (PROTOCOL = TCP)(HOST = standby.host)(PORT = 1521))
           (CONNECT_DATA =
           (SERVICE_NAME = ernie)
    )and then
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('ernie');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('ernie');
    END IF;
    END;
    /For additional information :
    see DBMS_SERVICE.CREATE_SERVICE
    http://docs.oracle.com/cd/E11882_01/appdev.112/e10577/d_serv.htm
    How to fail over a client transparently in a dataguard switchover/failover scenario
    http://www.usn-it.de/index.php/2007/06/28/how-to-fail-over-a-client-transparently-in-a-dataguard-switchoverfailover-scenario/
    Best Regards
    mseberg

  • Server 2012 R2 DHCP Failover - Hot Standby clients not renewing with standby server

    In my test network I have a pair of Server 2012 R2 DHCP servers setup for Hot Standby and they will successfully service a client request for a new request. 
    What I am seeing is that when I test failover the clients will not renew with the Standby server. I have to release first and then renew. 
    When both DHCP servers are up the state is normal and replication of configuration from the Active to Standby is working. As far as I can tell it is configured correctly. 
    MaxClientLeadTime is 10 minutes. 
    StateSwitchInterval is 10 minutes. 
    AutoStateTransition is set to True. 
    Adding that manual renews fail with a message stating that it was unable to contact the dhcp server. However if I wait for the lease to expire/auto-renew the dhcp server does indeed change to the standby. Once the primary server comes back up and the state
    returns to normal I am able to manually renew. 
    thanks in advance

    
    Hi,
    For test, we let the active DHCP down and the standby DHCP server will take place. But when we renew an IP, client send unicast to the former DHCP
    server. That’s why the first request failed.
    At 7/8 of the scope lease time, the client moves into a REBINDING state and broadcasts a lease renewal request.
    For more information please refer to:
    DHCP Failover Examples
    http://technet.microsoft.com/en-us/library/dn338973.aspx
    Hope this helps.

  • Which DHCP Server is Acitve in Failover Hot Standby Relationship

    I'm hoping this is a pretty easy question.  I was just wondering if there is anyway to tell (looking in the MMC, powershell command, etc) which server is Active and which is Standby in a DHCP failover relationship?
    Thanks!

    Hi
    Try this Get-DhcpServerV4Failover
    Cmdlet. The output object will have the ServerRole, which will be marked as Active or standby, if the mode is hotstandby.
    Thanks
    Ashu

  • Server 2012 DHCP Server Failover - Hot Standby

    Hi There
    I'm running two Windows Server 2012 R2 servers, they are configured in a Hot Standby mode for DHCP Failover. ServerA, is the local server at the site and is configured to Failover to ServerB. But I'm having an issue where after the state of ServerA changes
    from Normal to Communication_Int and then back from Communication_Int to Normal that it's no longer leasing any IP address to my Windows 7 clients until you restart the DHCP service on ServerA. I've replicated this in my lab environment as well.
    1. Disable Network Adapter on ServerA or disconnect Network - State changes from Normal to Communication_Int. ServerA and ServerB loses contact.
    2. Enable Network Adapter on ServerA or reconnect Network - State changes from Communication_Int to Normal. ServerA and ServerB re-establishes contact.
    3. Connect new computer to LAN, or release IP on client computer, and then try to obtain an IP address\renew.
    4. Client computers time out trying to communicate with DHCP server, but as soon as you Restart the DHCP service on ServerA the client machines obtain an IP address.
    Has anyone else experienced this? If so is there a fix/workaround for this?
    Thanks

    Hi
    Sorry for only replying now.....
    Disabled firewall on ServerA, ServerB and client machine. Issue still occurring.....

  • Failover from standby database to primary database

    Hi,
    Can anyone suggest me, How to do " Standby DataGuard database to primary database (dataguard)".
    Kindly Give me steps.
    Thanks,
    Shweta

    Hi
    Follow these steps
    Oracle switchover operation:
    1.     Check and verify the role parameter on the v$parameters both primary and standby
    On Primary
    Log_archive_dest_1=”this is the local archive destination”
    +Log_archive_dest_2=”This is the Service [TNS ENTRY]”+
    Log_archive_dest_state_1=Enable
    Log_archive_dest_state_2=Enable
    Fal_server=”this should have the tns entry for the standby
    Fal_Client=”this should have the tns entry for the primary
    Standby_archive_dest=”This should have the Location where the archive located”
    Standby_File_Management=AUTO
    On Standby
    Log_archive_dest_1=”this is the local archive destination”
    +Log_archive_dest_2=”This is the Service [TNS ENTRY]”+
    Log_archive_dest_state_1=Enable
    Log_archive_dest_state_2=DEfer
    Fal_server=”this should have the tns entry for the primary
    Fal_Client=”this should have the tns entry for the standby
    Standby_archive_dest=”This should have the Location where the archive located”
    Standby_File_Management=AUTO
    2.     Down all the applications connects to the database
    3.     Shutdown both primary and standby databases
    4.     For RAC Keep Only one primary and One standby up and all other nodes should be down
    5.     Check the Primary database on Open mode and the Standby database on mount stage
    6.     On Primary
    SQL>select switchover_status from v$database;Sessions Active or To standby will be appearing on the result
    SQL> alter database commit to switchover to standby with session shutdown;
    SQL> shutdown Immediate;
    SQL>startup nomount;
    SQL>alter database mount standby database;
    SQL>Alter system set log_Archive_dest_state_2=defer;7.     On Standby
    SQL>select switchover_status from  v$database;it is acceptable to have Sessions Active or To Primary
    SQL>alter database commit to switchover to primary with session shutdown;
    SQL>shutdown immediate;
    SQL>Startup;
    SQL.>Alter system set log_archive_dest_state_2=enable;8.     On Primary
    start the managed recovery
    SQL>Alter database recover managed standby database disconnect from session;9.     Check the log shipment is working from New Primary to New Standby Using
    SQL>Alter system switch logfile; ---- On New Primary.check the alert log on both Primary and Standby for the log shipment and Media recovery.
    10.     If the switch over fail issue the following statement on standby (ORACLE 9i)
    SQL> alter database recover managed standby database finish skip standby logfile ┘
    SQL> alter database commit to switchover to primary┘
    SQL> shutdown immediate;
    SQL> Startup;11.     If this don’t work please issue the below statement
    SQL> alter database activate standby database skip standby logfile;12.     If the switch over fail issue the following statement on standby (ORACLE 10g and above)
    SQL> alter database recover managed standby database finish force;
    SQL> alter database commit to switchover to primary;
    SQL> alter database open;
    SQL> shutdown Immediate;
    SQL> startup;13. Added the temp file to your temp tablespace
    If you follow the steps (10,11 & 12 ) you have to recreate the standby again. those steps are actually fail over steps. Hope this will be helpful
    Cheers
    Kanchana

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

  • 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 to manually create a standby db with SAN for hardware cluster failover

    Hi all,
    The primary db(oracle 9i r2, Sun Solaris) puts its datafile, redo logs, control files in SAN while the pfile, listener and tnsnames files are in its local hardisk. I need to create a standby db(not for dataguard) for hardware cluster failover, where if the primary db fails the hardware cluster will failover to standby db(mounting the datafile, redologs, control files in
    SAN to a mount point automatically and start the db services). But I don't know how to create the standby db, I would install the db software first then should I copy the pfile(created from primary db), listener and tnsnames files to standby db? What are the correct steps to do it? Any advice is greatly appreciated.

    Thanks ackermsb for the reponse. I think I have confused of setting standby db and creating a HA. What I trying to achieve is creating a HA with vendor clusterware and oracle e.g. Sun Cluster HA for Oracle.
    The steps involved in preparing the primary and standby oracle are:
    Oracle application files – These files include Oracle binaries, configuration files, and parameter files. Need to installed separately in two servers locally.
    The Database-related files – These files include the control file, redo logs, and data files are placed in a Cluster File System.
    What I don't how to do it is, after installing the oracle binary in standby server, should I create the listener, tnsnames and pfile or copy them from the primary db?
    Thanks in advance.

  • How to recover standby by rman

    Hello every one
    Oracle 11g2 on window server 2008
    For testing i have created standby server and shutdow it.
    I have also schedule the increamental backup daily in the morning at 5:00 am.
    Suppose if primary server has crashed at day time at 11:00 am as whole and standby database has lag of two days with respect to primary server
    I have all archive log till 11:00 am, rman backup and control at 5:00 am.
    Process that followed to recover the standby server .
    1) restore the control file to standby database
    2) copy the rman backup to standby server and catalog it.
    3) restore the database successfully
    4) recover database but it give error 
    RMAN-03002: failure of recover command at 10/31/2013 14:55:40
    ORA-19693: backup piece C:\BACKUP\STD_5TONPQ57_1_1 already included
    5) i have issued alter database open but gives following error
    ORA-10458: standby database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'C:\ORACLE\ORADATA\SLATE\SYSTEM01.DBF'
    any help how to recover the standby server by rman incremental backup

    yasirdba wrote:
    Hello every one
    Oracle 11g2 on window server 2008
    For testing i have created standby server and shutdow it.
    I have also schedule the increamental backup daily in the morning at 5:00 am.
    Suppose if primary server has crashed at day time at 11:00 am as whole and standby database has lag of two days with respect to primary server
    I have all archive log till 11:00 am, rman backup and control at 5:00 am.
    Process that followed to recover the standby server .
    1) restore the control file to standby database
    2) copy the rman backup to standby server and catalog it.
    3) restore the database successfully
    4) recover database but it give error
    RMAN-03002: failure of recover command at 10/31/2013 14:55:40
    ORA-19693: backup piece C:\BACKUP\STD_5TONPQ57_1_1 already included
    5) i have issued alter database open but gives following error
    ORA-10458: standby database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'C:\ORACLE\ORADATA\SLATE\SYSTEM01.DBF'
    any help how to recover the standby server by rman incremental backup
    Hi Yasir!
    If you  have all archived log, and control file backups.
    Then you  must follow this steps
    1. Restore Standby control file;
    2. Copy archived logs to  a folder (/tmp/arch) or FRA
    3. RMAN>alter database mount;
    RMAN> catalog start  with '/tmp/arch'; (or FRA)
    RMAN must be cataloged all  archived logs;
    4. Start redo  apply process for apply archived log;
    5. If All archived logs applied, then you  can  perform failover to standby database.
    It means Standby database role will change  to Primary.
    Do you want this?
    Regards
    Mahir M. Quluzade

  • Need to re-organize the primary/standby servers

    Our QA environment has two NODE RAC as primary(let's say on Chicago) and two node RAC as standby(on Boston).
    Now during the testing procedures, find out application connection to Chicago Primary too slow, so they want to use standby BOSTON as primary.
    How do I reverse them? This is a environment have not put in use yet.
    Do I have to use dbca to create db on Standby BOston site , then create standby on Chicago primary site?
    What is the best way?
    Thank you in advance.

    Our QA environment has two NODE RAC as primary(let's say on Chicago) and two node RAC as standby(on Boston).
    Now during the testing procedures, find out application connection to Chicago Primary too slow, so they want to use standby BOSTON as primary.
    How do I reverse them? This is a environment have not put in use yet.What is the DB version?
    Switch over is only procedure,
    you have some alternate options ( only for QA )
    1) disconnect standby from primary "log_archive_dest_state_2=defer" ,
    2) Create a snapshot/restore point on standby
    3) perform failover on standby ( only standby conversion to primary)
    4) users can able to connect to new primary,
    5) once you done with that, restore that snapshot, it will flashback to the same position where you created a restore point
    6) Then again enable "log_archive_dest_2"
    7) make sure all the archives exist in primary, whenever you disconnected.
    Do I have to use dbca to create db on Standby BOston site , then create standby on Chicago primary site?You want the same data of primary? or any new database will work for you?
    If you are clear with this, then you have answer with you. If there is no concern on data then create a dummy database and give access instead of performing operations on DR & RAC site.
    HTH.

Maybe you are looking for