Standby switch over

Hi,
I have set up a data guard configuration with one primary database and one physical standby.
log apply services and log transfer services work correctly.but when i want to do as switchover operation,
the output of the following query is always ((session active))
select switchover_status from v$database.
i have only one session (/ as sysdba) on primary and one in standby.
where is the problem?
thanks.

Why do you expect the switch over status to change after these two ALTER SYSTEM commands ?
Are you following some (Incomplete) Instructions / Note / Document ?
What is it that you are trying to do ?
What are the steps in the instructions that you are referring to ?

Similar Messages

  • Standby switch over problem

    Hi,
    after giving statements on primary DB
    alter system set aq_tm_processes=0;
    alter system set job_queue_processes=0;
    the primary DB switch_over status not turn to to-standby.

    Why do you expect the switch over status to change after these two ALTER SYSTEM commands ?
    Are you following some (Incomplete) Instructions / Note / Document ?
    What is it that you are trying to do ?
    What are the steps in the instructions that you are referring to ?

  • Physical/Logical Switch Over

    Hi Champions,
    I just want to know what is the diffrence in logical and physical standby switch Over.
    DGMGRL's process how internal process works.
    any suggesion is appriciated.
    Regards,
    Shitesh Shukla

    Here you go....
    http://ayyudba.blogspot.com/2007/10/performing-switchover-in-data-guard.html
    Hope this helps,
    Regards
    Duplicate RAC Database using RMAN
    http://www.oracleracexpert.com/2009/12/duplicate-rac-database-using-rman.html
    Send EMAIL using UTL_MAIL in Oracle
    http://www.oracleracexpert.com/2009/11/send-email-using-utlmail-in-oracle-10g.html

  • Switch over in an environment with multiple standby

    i currently have one primary and one physical standby, I am due to create standby no2 on a different server and then use the new standby as primary ( migrate current primary to a new system) .
    I like to know
    1. if i can create new standby using backup copy of current standby? how about creating it over network? Is it possible? ( I want to avoid load on production)
    2. what happens after I switch over to new standby ? will my current standby become invalid? what are the options and best practices?
    thanks in advance

    emre baransel wrote:
    Hi,
    Yes you can create a second standby with your standby database RMAN backups, also you can copy database files with ftp.
    If you setup log_archive_dest_x parameters properly, after switchover, new primary will continue to ship archivelogs to second standby.
    You should set something like this on the standby:
    LOG_ARCHIVE_DEST_2 = SERVICE=XXX LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=XXX
    Regardsthanks for the reply, how would the other standby know that primary has changed and it should recieve its data from a diffrent primary ?
    am I correct syaing standby tries any of the db names specified in LOG_ARCHIVE_CONFIG and accepts logs from whichever is primary at the time ?
    also i am not using rman catalog , can i still use backup of standby to create a new standby ?
    thanks

  • Standby DB switch over error

    Hi,
    while switching primary to standby,switchover_status on primary is to standby,
    then I given ALTER DATABASE COMMIT TO SWITCHOVER TO STANDBY WITH SESSION SHUTDOWN;
    command and getting below error
    ERROR at line 1:
    ORA-16014: log 1 sequence# 62 not archived, no available destinations
    ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\PDONDS\REDO01.LOG'
    ORA-00312: online log 1 thread 1: 'C:\ORACLE\REDOLOGGROUP1\REDOB1.LOG'

    Hi,
    after switch over roles of databases,on both ( newstandby and newprimary) DBs relogs are like below,
    SQL> select * from v$logfile;
    GROUP# STATUS TYPE MEMBER
    1 ONLINE D:\ORACLE\ORADATA\PDONDS\REDO01.LOG
    2 ONLINE D:\ORACLE\ORADATA\PDONDS\REDO02.LOG
    3 STANDBY D:\ORACLE\ORADATA\STANDBYREDOLOGS\STDREDOA1.RDO
    1 ONLINE C:\ORACLE\REDOLOGGROUP1\REDOB1.LOG
    2 ONLINE C:\ORACLE\REDOLOGGROUP2\REDOB2.LOG
    4 STANDBY D:\ORACLE\ORADATA\STANDBYREDOLOGS\STDREDOA2.RDO
    5 STANDBY D:\ORACLE\ORADATA\STANDBYREDOLOGS\STDREDOA3.RDO
    3 STANDBY C:\ORACLE\STANDBYREDOLOGS\STDREDOB1.RDO
    4 STANDBY C:\ORACLE\STANDBYREDOLOGS\STDREDOB2.RDO
    5 STANDBY C:\ORACLE\STANDBYREDOLOGS\STDREDOB3.RDO
    10 rows selected.
    in the status column it is displying blank space
    please let me know why it is showing blak space ?

  • Switch over

    Hi Experts,
    DB version: 10.2.0.4
    OS : Linux
    I need to perform Switch over, Unfortunately i have given "alter database recover managed standby database finish" on standby database now the status of standby database is "RECOVERY NEEDED"
    and the status in primary database is "NOT ALLOWED".
    When i start MRP - alter database recover managed standby database disconenct from session;
    the errors in alert log file as:
    Errors in file /u00/app/oracle/admin/OFMSREGT/bdump/ofmsregt_arc1_15597.trc:
    ORA-16143: RFS connections not allowed during or after terminal recovery
    Tue Feb 1 22:41:27 2011
    PING[ARC1]: Heartbeat failed to connect to standby 'OFMSREGT'. Error is 16143.
    Tue Feb 1 22:43:37 2011
    Incremental checkpoint up to RBA [0x80.52ee.0], current log tail at RBA [0x80.52ee.0]
    I need to perform SWITCH OVER, Tell how to perform??
    Edited by: Autoconfig on Feb 1, 2011 8:12 PM

    Hi,
    First you have to resolve the error you are getting so make sure archiving should not happen from primary to standby because you started recovery,once your recovery is completed.
    Than follow the below steps:
    IN mount stage:
    SQL> alter database commit to switchover to physical standby;
    select switchover_status from v$database;
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL> alter database commit to switchover to primary;
    Database altered.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO STANDBY
    If it is production database raise an SR.Hope it helps.
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • Post switch over in oracle dataguard 11g

    Dear Guru,
    Switch over has been completed successfully from primary database to standby database.
    new primaray database is open and accessible but its showing his satus in v$database as below.
    database_role = primary
    switchover_status = not allowed
    db_unique_name = dg1_stdby
    old primaray database which is now standby showing his satus in v$database as below.
    database_role = physical standby
    switchover_status = session active
    db_unique_name = dg1_primy
    when check status in data guard broker its
    for both the databases - dg1_primy and dg1_stdby its showing error ORA-16810: multiple errors or warnings detected for the database.
    when checked dataguard log file on new primary server its showing
    ORA-16816: incorrect database role
    ORA-16700: the standby database has diverged from the primary database
    Please guide me how to resolved issue.
    Thanks & Regards,
    Nikunj Thaker

    Hi Nikunj,
    You can find the scenario, in the "Problem : Data Guard Broker Switchover fails With ORA-16665 using Active Data Guard", on metalink.oracle.com
    First of all manually complete the Switchover, ie. restart the Databases in its new Role. Note that the final Role Change has not been recognized by the Broker, so you have to rebuild the Data Guard Broker Configuration when the Databases have been restarted:
    DGMGRL> remove configuration;
    DGMGRL> create configuration ...
    DGMGRL> add database ...
    DGMGRL> enable configuration;
    Best regards,
    Orkun Gedik

  • Manual switch over for maintenance

    Hi experts:
    Following are the steps for Manual Switch over from primary to standby
    connect /@PRIM as sysdba
    ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
    connect /@STAN as sysdba
    ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
    ON previous primary
    SHUTDOWN IMMEDIATE;
    SQL>STARTUP MOUNT;
    New Primary (previous stand by )
    ALTER DATABASE OPEN;
    I have primary & standby with protection mode maximize availability
    How can I vice versa the above process lets say my primary is down for maintenance & i want this as my primary again ?
    one more thing is that reports are generated from standby right now so it mean active dg is configured.
    Regards

    Hello;
    Try to remember if you databases are in sync its kind of like having one database in two different roles, Primary role and Standby role.
    Also if you want to do maintenance then don't issue this command after switchover, wait until the maintenance is complete and then issue it and Data Guard will catch up :
    alter system set log_archive_dest_state_2=enable;Once you have done a switchover its a good idea to do a log switch and make sure the new primary and standby are working correctly. Once you have done that the step to switch back are as follows : ( Do not use if you have Data Guard Broker setup )
    h3. Verify that it is possible to perform a switchover operation.
    SQL> select switchover_status from v$database;
    Note:All v$database switchover_status values are shown at the bottom of this page.
    If SWITCHOVER_STATUS returns SESSIONS ACTIVE then you should either
    disconnect all sessions manually or when performing step 2 you should append
    the with session shutdown clause. For example:
    SQL> alter database commit to switchover to standby with session shutdown;h3. Convert the primary database to the new standby
    SQL> alter database commit to switchover to standby with session shutdown;
    Note: This might take a few minutes.h3. Shutdown the former primary and mount as a standby database
    SQL> shutdown immediate
    Note: An ORA-01507: database not mounted is normal
    SQL> startup nomount
    SQL> alter database mount standby database;h3. Defer the remote archive destination on the old primary
    SQL> alter system set log_archive_dest_state_2=defer;h3. Verify that the physical standby can be converted to the new primary
    QL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO PRIMARY
    Note that if the status returns SESSIONS ACTIVE then you should append the with session shutdown clause to the command in step 6.h3. Convert the physical standby to the new primary ( step 6 )
    SQL> alter database commit to switchover to primary;h3. Shutdown and startup the new primary
    SQL> shutdown immediate
    ORA-01109: database not open
    SQL> startuph3. Enable remote archiving on the new primary to the new standby
    SQL> alter system set log_archive_dest_state_2=enable;h3. Start managed recover on the new standby database
    SQL> recover managed standby database disconnect;
    Media recovery complete.
    SQL>
    Note: It’s a good idea to perform a log switch on the new primary.
    SQL>alter system switch logfile;Best Regards
    mseberg

  • Dataguard switch over connection

    Hi all,
    suppose we configured dataguard in high protection mode. Now all the users are connecting to primary database.
    Primary netservice name is prim and standby netservice name is stand,
    Now if we switch over this primary database to standby and standby to primary to which database users are going to connect. how they connect to current primary database (previously it was standby).
    How application will connect to the primary database (previously it was standby). all the applications will be using prim netservice name right...? what would be stuff from dba's end.
    Please let me know.
    Thank you!

    Hi;
    There is seeded dg forum site. For your future issue i suggest close your thread here as changing thread status to answered and move it to Oracle Discussion Forums » High Availability » Data Guard which you can get more quick response
    Regard
    Helios

  • Switch over for oracle application

    Hi Guru
    By using dataguard we can achieve switch for database but i need how to configure switch over on oracle apps 11i
    Thanks
    user7300437

    Hi,
    Please see section 5 in
    Business Continuity for Oracle Applications Release 11i, Database Releases 9i and 10g [ID 216212.1]
    Section 6.1 in
    Business Continuity for Oracle E-Business Release 11i Using Oracle 11g Physical Standby Database - Single Instance and Oracle RAC [ID 1068913.1]

  • Switch over pending

    When i execute alter database commit to switch over to primary --> oracle sens recover media requiered

    It may be due to following:
    1) Any of your datafile is in recover state.
    2) Might be a control file issue.
    Please post the exact error you are getting and your standby alert.log file.

  • Data Guard Switch Over & Failure

    Dear All(s)
    I have configured, physical standby database for productional database. standby logs successfully shiping on standby databse. How i can check database gata guard against failure and how switch over will done.
    Thanks in advance.

    Hi..
    Whats the oracle version???
    For failover
    1. Select thread#,max(sequence#) from v$log_history group by thread#; -- on both primary and standby
    2. select max(sequence#) from v$archived_log where applied='YES'; -- on standby.If lagging behind alot recover it
    3. ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; -- on standby
    4. ALTER DATABASE ACTIVATE STANDBY DATABASE; -- on standby
    5. Shutdown and startup. Add a temp tablespace
    Once failover is done, you will need to create a new fresh standby database.It can't be reverted back to standby.
    For switchover switch back refer to [http://www.orafaq.com/node/2078]
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b25159/outage.htm#ABC1014482]
    HTH
    Anand
    Edited by: Anand... on Nov 19, 2008 6:16 PM

  • HT5824 I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. Please help with turning my iMessage completely off..

    I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. I have no problem sending the text messages but I'm not receivng any from iPhones at all. It has been about a week now that I'm having this problem. I've already tried fixing it myself and I also went into the sprint store, they tried everything as well. My last option was to contact Apple directly. Please help with turning my iMessage completely off so that I can receive my texts.

    If you registered your iPhone with Apple using a support profile, try going to https://supportprofile.apple.com/MySupportProfile.do and unregistering it.  Also, try changing the password associated with the Apple ID that you were using for iMessage.

  • Switch over between two SAP PI systems for downtime minimization

    Hello Colleagues,
    with our interfaces over our SAP PI 7.31 (ABAP/Java) system we assume we will run in a 7x24 h runtime scenario in the future.
    Regarding Business Continuity we have to think about solutions which help us to handle downtimes greater than 15 min. regarding Support Package upgrade, Kernel update, EHP, etc.
    The first idea is to implement a second equal SAP PI productive system in parallel to the existing one.
    On the sender side a switch over implementation like WebDispatcher, Load Balancer, etc.
    For maintenance all Interface traffic can run over PI Nr. 1 and PI Nr. 2 can be updated.
    Afterward all interfaces will switched to PI Nr. 2 and PI Nr. 1 can go in maintenance.
    Could be this as suitable solution for SAP PI Business Continuity or do you know better solutions?
    Many thanks in advance!
    Regards,
    Jochen

    Hello Bernhard, Hello Holger,
    many thanks for reply and providing these valuable information's.
    The nZDM Concept is already known to me but it doesn’t answer all our questions.
    Please let me explain a little more in detail.
    Not currently but in the near future we assume some new interface over our SAP PI System will come with the requirement max. downtime lower thank 10 to 15 min. only allowed.
    To be prepared regarding this possible scenario, we start thinking about possible different solutions.
    First step was the nZDM Concept, of course. But it didn’t meet all our requirements regarding interface downtime.
    Some points are:
    possible min. downtime is 30 min. and thus is over our requirements for interfaces
    only for Update (and planed for Upgrade) the SAP PI application
    all operating system and database related maintenance tasks are not covered by nZDM
    all Hardware (Server, Storage, etc.) as well not covered by nZDM
    Among others, because of these facts we start thinking about a second equal SAP PI system beside to existing productive one.
    Than line 1 will take over the whole interface traffic and in the meantime the line 2 can go in maintenance. After finalizing the maintenance for SAP PI Nr. 2 we can switch the interface traffic to SAP PI Nr. 2 to get SAP PI Nr. 1 free for maintenance.
    Regarding the topic “PI Federation” I found here in these documentation's several hints regarding this scenario (two SAP PI systems in an switch over scenario).
    PI Federation – An Overview
    among others  Page: 27
    Business Continuity: Central PI integration Server with redundant Integration Server to be used in controlled switch over scenarios when upgrading or patching.
    or
    How to Fast-Switch Integration Scenarios between SAP PI Runtimes Part II: Web Dispatcher
    But I didn’t found any further detail documentation's regarding this approach.
    The solution should fit as well to our existing hardware infrastructure.
    For production we use an IBM (AIX) failover-cluster switch between our both data center.
    Regarding our hardware infrastructure prerequisites and downtime requirements, which solution(s) do you recommend? Is PI Federation still an option?
    Many thanks in advance!
    Regards,
    Jochen

  • My iPod 5th gen. doesn't have a back camera. Can I trade it in for one that does have a back camera? If I can, can I keep all my pictures and have them switched over to the other one?

    My iPod 5th gen. doesn't have a back camera. Can I trade it in for one that does have a back camera? If I can, can I keep all my pictures and have them switched over to the other one?

    If you purchased it from Apple within the last 14 days then you can return it for a full refund. otherwise no. If you purchased it elsewhere you have to check with them.
    Do this to transfer info
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

Maybe you are looking for

  • In Disk 0 one of the drive is not showing in Explorer and only have "Delete Volume" option is available in Disk Management.

    Hi, In Disk 0 and I am unable access one of the drive and unable to assign a drive letter to it. I've gone through the MMC for disk management but the only option i get is Delete Volume or Help. The disk management states that the drive is Primary an

  • Organizing albums with same artist and album name

    This has bothered me for some time. I have Bob Dylan's 1973 album titled "Dylan," as well as his 2-disc greatest hits of the same name.  iTunes has merged the albums together.  I made sure the release dates on the songs are different, and even tried

  • Problems printing from iPhoto 6: Page setup & Preview

    I am having trouble printing from iPhoto v6. For starters, the miniture preview frame in the print screen does not conform to the paper size selection or image orientation. (It is always a big square.) Only part of a 4x6 image image is seen in the fr

  • Why doesnt my phone work...?

    well~ just got the s4 was happy about getting it till i actually started using it. wifi doesnt work, text wont send, and heats up around the camera area after just about 1 minute use.... =.= i have tried factory reset and any other way i can think of

  • Long running process/query

    One of my after submit processes involves a lot of processing, temp tables, sorting, aggregating, etc. When this process is invoked from a page, is there a way to put up a generic 'Processing...' page that auto refreshes and when my back-end process