Role transitions

hi everybody
As per oracle dataguard documents they suggest two type of role transition
1. switchover: which is reversible
for this v r using 'alter database commit to switchover to physical standby;
and 'alter database commit to switchover to primary;
2. failover: we cant go revert back ones v do failover
for this v r using 'alter database commit to switchover to primary'
3rd option which i got from net and also suggested by our former dba.. that is 'activating standby database' using sql command 'alter database activate standby database'
my doubts r
1)wat is the difference between "failover" and "activating standby database" in both case we cant go revert back
2)why oracle has not mentioned this option in their doc.'concept and admin. Oracle data guard 9.2' chapter no. 7(Role Management)
i m eagerly waiting for ur replies.....
Thanks in advance

If your primary database is down then you cannot do a switchover. As switchover is initiated by primary database. So in this case you need to do a failover only.

Similar Messages

  • Switchover role transition in a standby configuration

    Hi All,
    Oracle 10.2.0.1
    Linux RHEL 5
    Vmware server 2.1
    Host Os Windows Xp
    I have created a database and configured the standby for it.This is a virtual machine setup.
    The current primary database has 3 redologfiles and no standby redologfiles added.And the standby database has the redologfiles same as the primary and 3 standby redologfiles configured just for enabling the real time apply.
    Now i am trying to switchover the roles of both the databases.
    So i gave the below command in the primary database
    sql>alter database commit to switchover to physical standby with session shutdown;
    i am getting the below error..
    ORA-16416: Switchover target is not synchronized with the primary
    When i check the V$archive_gap in standby nothing returns..
    I tried to switch logfile in the primary and manually transfered the recent archivelog to the standby location and applied manually, still getting the same error..
    Please Advice...
    TIA,
    Edited by: ORCLDB on Aug 25, 2009 4:41 PM

    >
    The current primary database has 3 redologfiles and no standby redologfiles added.And the standby database has the redologfiles same as the primary and 3 standby redologfiles configured just for enabling the real time apply.
    Now i am trying to switchover the roles of both the databases.
    So i gave the below command in the primary database
    sql>alter database commit to switchover to physical standby with session shutdown;
    i am getting the below error..
    ORA-16416: Switchover target is not synchronized with the primary
    >
    You should create the standby logfiles on the primary as well. Also, you must point with the LOG_ARCHIVE_DEST_2 (probably) parameter from the standby to the primary with LGWR SYNC AFFIRM, in order to keep your protection level after the switchover. I would also recommend that you go with the Data Guard Broker in order to do switchover & failover, it's much easier to say
    DGMGRL> switchover to sb;And DMON will take care for all the appropriate SQL commands and LOG_ARCHIVE_DEST_n settings!
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Data guard role transition problem

    Hi,
    I am trying to do a switchover using the data guard broker cli and get the following error:
    DGMGRL> switchover to "TGDRDB01"
    Performing switchover NOW. Please wait...
    Error: ORA-16775: Target standby in switchover operation has missing redo logs.
    Failed.
    Can not proceed to switchover. Primary is still "TGDB01".
    The drc log file shows a bit more info:
    DG 2005-12-01-17:17:43 2000000 3 574466141 DMON: chief lock convert for switchover
    DG 2005-12-01-17:17:43 0 2 0 Executing SQL [ALTER SYSTEM ARCHIVE LOG CURRENT]
    DG 2005-12-01-17:17:54 0 2 0 SQL [ALTER SYSTEM ARCHIVE LOG CURRENT] Executed successfully
    DG 2005-12-01-17:18:17 0 2 0 ORA-16775 Error: the target standby database has 338 redo log(s) missing. Cannot proceed with the switchover operation.
    DG 2005-12-01-17:18:17 2000000 3 574466141 Operation CTL_SWITCH cancelled during phase 0, error = ORA-16775
    What i don't understand is the bit about 338 redo logs missing becuase the output from "archive log list" on both databases is as follows:
    Primary
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /home/oracle/admin/TGPROD/archive
    Oldest online log sequence 3091
    Next log sequence to archive 3093
    Current log sequence 3093
    Standby
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /home/oracle/admin/TGPROD/archive
    Oldest online log sequence 3091
    Next log sequence to archive 0
    Current log sequence 3093
    Any help will be gratefully recieved as I'm stumped! Found a note for the original oracle error on here that said try switching logfiles a couple of times then trying again - which suffices to say didn't work. I don't understand where it gets 338 missing redo logs from!?!?
    Oh and oracle version is 10.1.0.3....
    thanks in advance.
    regards,
    Mark

    Yes, it'll be waiting for these archive till he gets them.
    If you see the files at system level, then cancel the MRP and apply them manually. If those files are missiong, then stop MRP and propagate hot backups from your primary db to the standby db, then reactivate the MRP. This will resync the databases.
    Regards,
    Yoann.

  • DataGuard- Role Transition

    Hi,
    I have physical standby implemented on my oracle 10g database. When I create a temporary tablespace in primary database, it doesn't gets created in standby database.
    What will happen if I give a switchover or failover ?
    Version:- Oracle 10g 10.2.0.1
    OS:- Windows 2003 Server

    Hi,
    This is what in alert log:
    Media Recovery Applied until change 726999
    Resetting standby activation ID 1237360816 (0x49c0a0b0)
    Fri Jan 29 16:09:57 2010
    alter database commit to switchover to primary
    Fri Jan 29 16:09:57 2010
    If media recovery active, switchover will wait 900 seconds
    SwitchOver after complete recovery through change 726999
    Online log D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG: Thread 1 Group 1 was previously cleared
    Online log D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG: Thread 1 Group 2 was previously cleared
    Online log D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG: Thread 1 Group 3 was previously cleared
    Standby became primary SCN: 726997
    Converting standby mount to primary mount.
    Completed: alter database commit to switchover to primary
    Fri Jan 29 16:09:59 2010
    ARC6: Becoming the 'no SRL' ARCH
    Fri Jan 29 16:41:29 2010
    alter database open
    Fri Jan 29 16:41:30 2010
    Assigning activation ID 1237343835 (0x49c05e5b)
    Fri Jan 29 16:41:30 2010
    Destination LOG_ARCHIVE_DEST_2 is SYNCHRONIZED
    Fri Jan 29 16:41:30 2010
    Destination LOG_ARCHIVE_DEST_2 is UNSYNCHRONIZED
    LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
    LNSb started with pid=15, OS id=724
    Fri Jan 29 16:41:33 2010
    Destination LOG_ARCHIVE_DEST_2 is SYNCHRONIZED
    LGWR: Standby redo logfile selected for thread 1 sequence 94 for destination LOG_ARCHIVE_DEST_2
    Thread 1 advanced to log sequence 94
    Thread 1 opened at log sequence 94
    Current log# 1 seq# 94 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG
    Successful open of redo thread 1
    Fri Jan 29 16:41:33 2010
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Fri Jan 29 16:41:33 2010
    SMON: enabling cache recovery
    Fri Jan 29 16:41:33 2010
    ARC7: LGWR is actively archiving destination LOG_ARCHIVE_DEST_2
    ARC7: Standby redo logfile selected for thread 1 sequence 93 for destination LOG_ARCHIVE_DEST_2
    Fri Jan 29 16:41:34 2010
    FAL[server]: Fail to queue the whole FAL gap
    GAP - thread 1 sequence 93-93
    DBID 1237166529 branch 709385795
    Fri Jan 29 16:41:35 2010
    Successfully onlined Undo Tablespace 1.
    Dictionary check beginning
    Dictionary check complete
    Fri Jan 29 16:41:35 2010
    SMON: enabling tx recovery
    Fri Jan 29 16:41:35 2010
    WARNING: The following temporary tablespaces contain no files.
    This condition can occur when a backup controlfile has
    been restored. It may be necessary to add files to these
    tablespaces. That can be done using the SQL statement:
    ALTER TABLESPACE <tablespace_name> ADD TEMPFILE
    Alternatively, if these temporary tablespaces are no longer
    needed, then they can be dropped.
    Empty temporary tablespace: TEMPTEST
    Empty temporary tablespace: TEMPDATARCH
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=47, OS id=1888
    Fri Jan 29 16:41:41 2010
    LOGSTDBY: Validating controlfile with logical metadata
    Fri Jan 29 16:41:41 2010
    LOGSTDBY: Validation complete
    Completed: alter database open

  • NAC 4.7 "CAS unavailable" temporary role

    I have a VGW, OOB with layer 3 enabled pilot deployment right now. Everything looks fine. However, about
    30% of the time (and its increasing) when I log on using the 4.7 agent, the agent will give me the error that the cas is unavialbe on the network. When I check the CAM, the user can be viewed on the monitoring tab, in-band and placed in the temporary role. (highlighted quarantined)
    When i kick the user, more often than not , the user can log back in and it places him in the oob role that he is assigned to and all works fine.
    core switch -----------cas/cam
         |
    distribution switch
         |
    End user switch---------end user pc
    Any ideas as to why when placed in the temp role transitioning to the authenticated role it would lose contact???? and why would it be placed in the in-band section of the monitoring online users?

    the cn name on the cas was indeed wrong. the IP address was that of the CAM.
    However, that still hasnt fully fixed the problem.
    I took all the checks away from the auth role assigned and it seems to fix the problem.
    Yes, Faisal all the end points are Layer 2, no hops in between. I have a 6509E as the core switch. Each vlan on the switch, apart from the Auth vlans have a SVI.
    ie. on the core switch
    interface GigabitEthernet2/28
    description trusted
    no ip address
    switchport
    switchport trunk native vlan 997
    switchport trunk allowed vlan 5,100,110,120,130,140,150,160,250,298 >>>Access Vlans
    switchport mode trunk
    interface GigabitEthernet2/29
    description untrusted
    no ip address
    switchport
    switchport trunk native vlan 996
    switchport trunk allowed vlan 9,10,20,30,40,50,60,400 >>>> Auth Vlans
    switchport mode trunk
    Example SVI for access VLANS
    interface Vlan110
    description StaffLowerPT
    ip address 1.1.1.1 255.255.255.0
    ip helper-address 1.1.1.4
    ip pim sparse-dense-mode
    ipx network 8
    no SVI's for auth vlans.
    I remember reading somewhere that if no checks are done (ie if the agent is not running any rules on it) then it moves straight from authenitcation (phase1) to authenticated role (phase 3) without ever hitting the temp user role. Could it be that a rule would cause the CAS to become unavailable if it could not remediate?
    I have a AV check rule, and two sus/WSUS rules.

  • Can't get hold of the user.waveset.roles in my workflow

    Hey,
    I am developing a workflow process that adds a role to each user during reconsiliation if they don't already have it.
    1. It gets the user view.
    2.. It checks to see if the user has a particular role. (This is where my problem lies, as the user.wavset.roles value returns null).
    3. If the user already has the role the process ends.
    4. If the user doesnt have the role it appends it to user.waveset.roles and then checks in the user view.
    So at the moment the process always thinks the user hasnt got the role because I can't get user.wavset.roles to return a value. Although I can access it when I append!?
    Any ideas anyone why I cant access the user.waveset.roles value in the second step? It prints out that the value is null on the stack trace.
    The Activity code looks like this:
    <Activity id='5' name='Check Roles'>
    <Transition to='end'>
    <match>
    <upcase>
    <block trace='true'>
    <ref>user.waveset.roles</ref>
    </block>
    </upcase>
    <upcase>
    <rule name='Entrust GetAccess Role Name'/>
    </upcase>
    </match>
    </Transition>
    <Transition to='ProcessUser'/>
    <WorkflowEditor x='163' y='9'/>
    </Activity>

    Check once if the variable "user" is holding the user view or not.
    I'm not sure if you have already tried this....
    If we are getting the user view using a workflow service then by default the fetched user view is placed in a variable called "view". So we may have to use 'view.waveset.roles'.
    If we want to store the fetched user view in the variable "user", then in the Action that gets the user view, we may have to return the value from "view" to "user", wherein "user" is a global variable defined at the workflow level.Then we can refer "user" in all the activities throughout the workflow.

  • Logical Standby Database in NOARCHIVE Mode

    Hi,
    I have configured a Logical Standby Database for Reporting purposes. A Physical Standby Database is running for MAA. i.e. in case of Role Transition (switch/Failover) the Physical Stdby Db will get the role of the Primary.
    The logical standby database is creating a lot of Archive Redologs files, nearly every minute. Redolog files are 50MB and there is no work done in db during the time. I'm NOT using Standby Redolog files.
    Is there a need for logical standby database to be in NOARCHIVELOG mode? The Primary is definatley in ARCHIVELOG mode.
    Thanks for any responses.
    regards
    Sahba

    hi,
    well there are two things to the above:-
    1. there was an archive file nearly every minute:
    this is due to a db recovery. for some reason, the db was in inconsistent state, after a sudden shutdownof the OS. I was on a test environment, on windows vista, unfortunately. unimportant ... a reboot solved it.
    2. Logical standby db in NOARCHIVE MODE when setup for the purpose of Reporting.
    As long as the MAA configured for the primary db, such as physical standby db, and a second, the logical standby db setup purely for the purpose of reporting, which then can run with NOARCHIVELOG mode, after converting the physical standby db to logical.
    logical standby db uses Streams architecture, so this method brings cost, time and performance advantages to the customer.
    regards
    Sahba

  • Logical Standby and Streams

    Hi,
    I am considering different replication scenarios for our future system and have a (maybe stupid:) question. Is it technically possible to create a logical standby database (Data Guard) and than replicate it further using Streams?
    Regards,
    Tim

    Yes , This is possible with logical standby but you need to have mechanisms to take care of role transitioning in case of fail over. See Oracle document http://download.oracle.com/docs/cd/E14072_01/server.112/e10700/whatsnew.htm (Key word search "streams")
    Thanks
    http://swervedba.wordpress.com/
    Edited by: swervedba on May 30, 2011 8:48 PM

  • Logical Standby Prereq

    I am evaluating Logical standby for an application, but I need to confirm if there is a prerequisite that both source and target databases need to be on the same os platform. My source server is HP UX 11.11 and Target server is HP Itanium ia64 11.31. Can I setup Logical standby between these 2 platforms?

    Read the Note:413484.1 Data Guard Support for Heterogeneous Primary and Standby Systems in Same Data Guard Configuration.
    Examples of different platform combinations supported within a Data Guard configuration include:*
    Different combinations of operating system word size (e.g. 32bit and 64bit)**
    HP-UX PA-RISC and HP-UX Itanium
    Beginning with Data Guard 11g, a mixture of Linux and Windows operating systems as noted in the table below.
    Platform combinations not listed in the table below are not supported.
    Platform_ID | Platform Name | PLATFORM_IDs supported within the same Data Guard configuration
    3 | HP-UX (64-bit) & HP-UX PA-RISC | 3 & 4 (see MetaLink Notes 395982.1 and 414043.1)
    4 | HP-UX IA (64-bit) & HP-UX Itanium | 4 & 3 (see MetaLink Notes 395982.1 and 414043.1)
    NOTE:395982.1 Data Guard Support for Mixed HP PA-RISC 64-bit and HP Itanium Environments
    NOTE:414043.1 Role Transitions for Data Guard Configurations Using Mixed Oracle Binaries
    HTH
    Enrique

  • Error in Standby alert log continuously

    After I setup the Physical Standby and Logical Standby database, I found lots of errors showing in alert log of Standby database.
    LOGMINER: Error 308 encountered, failed to read missing logfile /u01/oradata/arch2/primary/1_1_111111111.dbf
    According to the doc, I set the values LOG_ARCHIVE_DEST_3 in case of role transition:
    (for primary)
    LOCATION=/u01/oradata/arch2/primary/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=primary(for standby)
    LOCATION=/u01/oradata/arch2/standby/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=standbyWhen I run this command, the error keeps showing in the alert log continuously! Why does it look for the path "primary", but not "standby" ?
    ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE;
    Help! Does anyone know the problem? All new data can't be found in the logical standby now.
    Thank you!

    When I enable the LOG_ARCHIVE_DEST_STATE_3, the errors show in alert log again!
    LOGMINER: Error 308 encountered, failed to read missing logfile /u01/oradata/arch2/primary/1_1_111111111.dbf
    SELECT TYPE,STATUS FROM V$LOGSTDBY;
    COORDINATOR
    ORA-01291: missing logfile
    here are my parameters:
    Primary:
    LOG_ARCHIVE_DEST_1='LOCATION=/u01/oradata/arch/ MANDATORY VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary'
    LOG_ARCHIVE_DEST_2='SERVICE=ORCL_SB LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=standby'
    LOG_ARCHIVE_DEST_3='LOCATION=/u01/oradata/arch2/primary/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=primary'
    Standby:
    LOG_ARCHIVE_DEST_1='LOCATION=/u01/oradata/arch/ MANDATORY VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=standby'
    LOG_ARCHIVE_DEST_2='SERVICE=ORCL_PRI LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primary'
    LOG_ARCHIVE_DEST_3='LOCATION=/u01/oradata/arch2/standby/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=standby'
    Why does the path in primary parameter file show in standby alert log??

  • Physical Standby Online Redo log  files,

    Hi,
    I'm trying to create a physical standby database (10.2.0.3). I'm a little confused about the requirement for online redo logs on the standby.
    in my standby alert log I get the following when I issue:
    SQL> alter database recover managed standby database disconnect from session
    "ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/appl/oradata/prod/prod_1_redo_01_02.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3"
    /appl/oradata/prod/prod_1_redo_01_02.log is the path to the location of the online redo logs on the production system. This file does not exist on the standby filesystem so the error is correct.
    I assume that it gets this information from the standby control file I created on the production system and copied over to the standby.
    Do I need to copy the online redo logs from the primary over to the standby site or do I need to create online redo logs on the standby?
    Does the standby need to have redo log files?
    I'm not talking about 'standby log files' of the type created using 'alter database add standby log file'. I've not got that far yet.
    I just need to establish if a physical standby requires online redo log files?
    Thanks in advance,
    user234564

    I wanted to update this thread since I've been dealing with the exact same errors. The basic question is: "does a physical standby need the online redo logs?"
    Answer: Not really, until one wants to switchover or failover (and become a primary database). Furthermore, whenever the MRP process is started, Oracle prepares for a possible switchover/failover by "clearing" the online redo logs (MetaLink note# 352879.1). It is not a big deal, since Oracle will build the actual redo files when the "alter database open resetlogs" is accomplished during a "role transition."
    In our situation, we have decided to use our standby for nightly exports. We stop MRP, open the database read-only, then restart MRP. We built these standby DBs with RMAN. The RMAN duplicate process will not build the online redo log files until the database is opened for read/write (with resetlogs). However, we haven't had a need for read/write (i.e. a switchover).
    Thus, every morning we have been getting the same errors that "user234564" posted above. At first the errors seemed scary, then we realized they were just a nusiance. In order to clean things up, all I did was just "cp" our stanby redo logs (SRL) into our online redo directories ensuring the names matched what was in v$logfile. When I restarted MRP, the alert log clearly showed Oracle clearing these "newly found" online redo logs.

  • Steps to do switchover / switchback in RAC environment

    Hi folks,
    I m having setup with 2 node RAC primary and 2 node RAC Dataguard on 10.2.0.4.0. Dataguard setup is working fine. Dataguard is setup with Standby Redo log group with managed recovery. There is no problem with transferring archives & applying on standby.
    Now I want to do Switchover/Switchback between Primary and Standby for RAC. I am familiar with Single instance Switchover and Switchback but never did RAC environment Switchover/Switchback. Can anybody please elaborate steps or suggest any link for me??
    regards,
    manish

    Hi Guys,
    Today I performed RAC Switchover / Switchback for 2 Node Primary with 2 Node Standby on OEL. I expected some issues, but it was totally smooth. Giving you steps for the same, so it will be useful to you. Even this would be my first contribution to Oracle Forums.
    DB Name     DB Unique Name     Host Name     Instance Name
    live     live     linux1     live1
    live     live     linux2     live2
    live     livestdby     linux3     livestdby1
    live     livestdby     linux4     livestdby2
    Verify that each database is properly configured for the role it is about to assume and the standby database is in mounted state.
    (Verify all Dataguard parameters on each node for Primary & Standby)
    Like,
    Log_archive_dest_1
    Log_archive_dest_2
    Log_archive_dest_state_1
    Log_archive_dest_state_2
    Fal_client
    Fal_server
    Local_listener
    Remote_listener
    Standby_archive_Dest
    Standby_archive_management
    service_names
    db_unique_name
    instance_name
    db_file_name_convert
    log_file_name_convert
    Verify that both Primary RAC & Dataguard RAC are functioning properly and both are in Sync
    On Primary,
    Select thread#,max(sequence#) from v$archived_log group by thread#;
    On Standby,
    Select thread#,max(sequence#) from v$log_history group by thread#;
    Before performing a switchover from a RAC primary shut down all but one primary instance (they can be restarted after the switchover has completed).
    ./srvctl stop instance –d live –i live1
    Before performing a switchover or a failover to a RAC standby shut down all but one standby instance (they can be restarted after the role transition has completed).
    ./srvctl stop instance –d live –i livestdby1
    On the primary database initiate the switchover:
    alter database commit to switchover to physical standby with session shutdown;
    Shutdown former Primary database & Startup in Mount State.
    Shut immediate;
    Startup mount;
    select name,db_unique_name, log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
    Make log_Archive_Dest_state_2 to DEFER
    alter system set log_archive_dest_state_2='DEFER' sid='*';
    On the (old) standby database,
    select name,log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
    On the (old) standby database switch to new primary role:
    alter database commit to switchover to primary;
    shut immediate;
    startup;
    On new Primary database,
    select name,log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
    Make log_Archive_Dest_state_2 to ENABLE
    alter system set log_archive_dest_state_2='ENABLE' sid='*';
    Add tempfiles in New Primary database.
    Do some archivelog switches on new primary database & verify that archives are getting transferred to Standby database.
    On new primary,
    select error from v$archive_Dest_status;
    select max(sequence#) from v$archived_log;
    On new Standby, Start Redo Apply
    alter database recover managed standby database using current logfile disconnect;
    Select max(sequence#) from v$log_history; (should be matching with Primary)
    Now Start RAC databases services (both Primary – in open & Standby – in mount)
    On new Primary Server.
    ./srvctl start instance –d live –i livestdby2
    Verify using ./crs_stat –t
    Check that database is opened in R/W mode.
    On new Standby Server.      
    ./srvctl start instance –d live –i live2 –o mount
    Now add TAF services on new Primary (former Standby) Server.
    By Command Prompt,
    ./srvctl add service -d live -s srvc_livestdby -r livestdby1,livestdby2 -P BASIC
    OR
    By GUI,
    dbca -> Oracle Read Application Cluster database -> Service Management -> select database -> add services, details (Preferred / Available), TAF Policy (Basic / Preconnect) - > Finish
    Start the services,
    ./srvctl start service -d live
    Verify the same,
    ./crs_stat -t
    Perform TAF testing, to make sure Load Balancing & Failover.
    regards,
    manish
    Email: [email protected]
    Edited by: Manish Nashikkar on Aug 31, 2010 7:41 AM
    Edited by: Manish Nashikkar on Aug 31, 2010 7:42 AM

  • How do the application servers connect the new database after failing over from primary DB to standby DB

    How do the application servers connect the new database after failing over from primary DB to standby DB?
    We have setup a DR environment with a standalone Primary server and a standalone Physical Standby server on RHEL Linux 6.4. Now our application team would like to know:
    When the primary DB server is crashed, the standy DB server will takeover the role of primary DB through the DataGuard fast failover. As the applications are connected by the primary DB IP before,currently the physical DB is used as a different IP or listener. If this is happened, they need to stop their application servers and re-configure their connection so the they coonect the new DB server, they cannot tolerate these workaround. 
    Whether does oracle have the better solution for this so that the application can automatically know the role's transition and change to the new IP without re-confige any connection and shutdown their application?
    Oracle support provides us the answer as following:
    ==================================================================
    Applications connected to a primary database can transparently failover to the new primary database upon an Oracle Data Guard role transition. Integration with Fast Application Notification (FAN) provides fast failover for integrated clients.
    After a failover, the broker publishes Fast Application Notification (FAN) events. These FAN events can be used in the following ways:
    Applications can use FAN without programmatic changes if they use one of these Oracle integrated database clients: Oracle Database JDBC, Oracle Database Oracle Call Interface (OCI), and Oracle Data Provider for .NET ( ODP.NET). These clients can be configured for Fast Connection Failover (FCF) to automatically connect to a new primary database after a failover.
    JAVA applications can use FAN programmatically by using the JDBC FAN application programming interface to subscribe to FAN events and to execute event handling actions upon the receipt of an event.
    FAN server-side callouts can be configured on the database tier.
    FAN events are published using Oracle Notification Services (ONS) and Oracle Streams Advanced Queuing (AQ).
    =======================================================================================
    Who has the experience and the related documentation or other solutions? we don't have the concept of about FAN.
    Thank very much in advance.

    Hi mesbeg,
    Thanks alot.
    For example, there is an application JBOSS server connecting the DB, we just added another datasource and put the standby IP into the configuration file except adding a service on DB side like this following:
            <subsystem xmlns="urn:jboss:domain:datasources:1.0">
            <datasources>
                    <datasource jta="false" jndi-name="java:/jdbc/idserverDatasource" pool-name="IDServerDataSource" enabled="true" use-java-context="true">
                        <connection-url>jdbc:oracle:thin:@<primay DB IP>:1521:testdb</connection-url>
                        <connection-url>jdbc:oracle:thin:@<standby DB IP>:1521:testdb</connection-url>
                        <driver>oracle</driver>
                        <pool>
                            <min-pool-size>2</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                            <prefill>true</prefill>
                        </pool>
                        <security>
                            <user-name>TEST_USER</user-name>
                            <password>Password1</password>
                        </security>
                        <validation>
                            <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
                            <validate-on-match>false</validate-on-match>
                            <background-validation>false</background-validation>
                            <use-fast-fail>false</use-fast-fail>
                            <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
                            <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
                        </validation>
                    </datasource>
                    <drivers>
                        <driver name="oracle" module="com.oracle.jdbc">
                            <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                        </driver>
                    </drivers>
                </datasources>
            </subsystem>
    If the failover is occurred, the JBOSS will automatically be pointed to the standby DB. Additional actions are not needed.

  • Database rolling upgrade cpu patch with minimal service outage

    Oracle 11gR2 Primary Instance
    Oracle 11gR2 Active Physical Standby
    Requirement of applying CPU and CVE patches with minimal downtime. I believe that I've been able to apply CPU patch to Active Standby after deferring redo transport and applying patch to active physical standby first and then performing a manual switchover to have the standby become the primary and former-primary become the standby and they apply CPU Patch there and then perform another role transition to its original role.
    Appreciate your experience with primary and active physical standby rolling upgrades/patches. Thanks

    Hello;
    I believe you are over thinking this. All you have to do on the Standby is install the patch. No switchover, no SQL. No nothing.
    The SQL will move from the Primary to the Standby.
    Check the readme for the patch closely or post the patch number if you want to confirm.
    OR
    How do you apply a Patchset,PSU or CPU in a Data Guard Physical Standby configuration [ID 278641.1]
    ( If it helps I had the same thoughts after my first Data Guard setup !! )
    If you are trying to avoid downtime entirely the switchover will take about as long as the patch.
    If you have RAC this is interesting :
    http://javeedkaleem.blogspot.com/2010/05/how-to-apply-oracle-database-patch.html
    As is this :
    http://docs.oracle.com/cd/B28359_01/server.111/b28282/schedule_outage.htm
    Best Regards
    mseberg

  • Standby database doubts

    Hi All,
    I have some doubts in Oracle Standby database configuration and log transfer and redo apply.
    I have read the below document.
    Oracle® Data Guard Concepts and Administration
    Now my doubts are *(in Physical standby database with Maximum performance mode)*
    1. When configuring the standby database we are creating standby redologs in primary database,Is this standby redologs are used only when the role transition happens or for anyother purpose?
    2.The archivelogs are shipped from primary to standby and the archivelogs are applied to the standby database by doing the normal media recovery.Now, how and when the data is written in the standby database redologfiles,so that when we enable the real time apply it uses the standby database redologfile to apply the data without delay?
    3.(if the second point is true)In the standby database will it generate the Archivelogfiles from the redo applied, apart from the primary archivelogs which are transfered?
    Please Advice..
    TIA,

    1. When configuring the standby database we are creating standby redologs in primary database,Is this standby redologs are used only when the role transition happens or for anyother purpose?It is not for role transition.
    A standby redo log is required for the maximum protection and maximum availability modes and the LGWR ASYNC transport mode is recommended for all databases.
    You can recover more data than only applying archive logs in case of failure.
    SRLs' are a must for real time apply.
    2.The archivelogs are shipped from primary to standby and the archivelogs are applied to the standby database by doing the normal media recovery.Now, how and when the data is written in the standby database redologfiles,so that when we enable the real time apply it uses the standby database redologfile to apply the data without delay?The data is directly written from production to SRL of standby database using lgwr process(with the help of RFS), that is why it real time. Not waiting for a log switch. See the [diagram.|http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_apply.htm#i1021537]
    3.(if the second point is true)In the standby database will it generate the Archivelogfiles from the redo applied, apart from the primary archivelogs which are transfered?No. Only standby redo log will generate archived logs.
    Regards,
    S.K.

Maybe you are looking for

  • FCP doesn´t open with x264codec... help!

    Hi all! I´ve installed the x264codec (fcp version 5.1.3) and when i try to open... "bum"! Does any of you guys have this problem? I know that fcp 5.1.3 is a "problematic" version and i should upgrade it to 5.1.4, but his is the first problem i have w

  • ICal - recurring "server responded with an error" message

    After years of using iCal without problems, (except for some recent duplicate alarms), a recurring error message has suddenly started popping up. It says: "The server responded with an error. Access to account "***@me.com" is not permitted. The serve

  • Can't access store. So go back to v4.? but even that ain't easy.

    Given I am still unable to find the needle in the haystack that is the problem that prevents me from accessing the music store under version 6, I tried to re-install ver 4, but the library file (.itl) has been altered by the upgrade and itunes throws

  • SPP 4.10 - Installation Error 1606

    Hi Everyone, i hope you can help me. We are trying to install The SPP 4.10 by Ancile on a Windows 2008 Server. During the Installation we are getting the following error: Error 1606. Could not access network location %SystemDrive%/inetpub\wwwroot\. T

  • Problem ResultSet in JTable  ( - -)""

    I have encountered error when compile the code implemented, as i first time write Jtable, it might be a bit messy. Please advice .............. import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLExcep