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

Similar Messages

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

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

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

  • Dataguard on other OS version

    Dear DBAs,
    Is there any issues that might occure if my primary database 10.2.0.4 is installed on a Windows2003-64bit(Enterprise Edition) machine and the physical standby database in on a Windows 2003-32bit (standard edition)?
    Thank you in advance

    Never tried, but according to Note 413484.1 Data Guard Support for Heterogeneous Primary and Standby Systems in Same Data Guard Configuration, it's possible (and supported) to mix binaries, but you need to follow an special procedure when you switchover/failover, documented in Note 414043.1 Role Transitions for Data Guard Configurations Using Mixed Oracle Binaries.
    Enrique

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

  • SunCluster control of Oracle DataGuard databases

    I've got two sites in a "Metro SAN" arrangement. I've setup a zone on each site using local storage for Oracle with DataGuard. Both zones must therefore be running at all times, so the zone does not failover but the database does (ie. standby becomes primary). Well, that’s my plan…
    I’ve deployed SC3.2u2 (non geographic). Is this able to change the DataGuard role under cluster control?
    I’ve read that the Geographic edition can do this – but we don’t have RAC. Can it run without RAC?
    If DataGuard proves to be inappropriate, then should I just use mount the database on zpool mirrored shared storage (consisting of one LUN from each site) to achieve my replication? Not very elegant, but it may have to do if I cannot use DataGuard.
    thanks

    james.patterson wrote:
    I've got two sites in a "Metro SAN" arrangement. I've setup a zone on each site using local storage for Oracle with DataGuard. Both zones must therefore be running at all times, so the zone does not failover but the database does (ie. standby becomes primary). Well, that&#146;s my plan&#133;
    I&#146;ve deployed SC3.2u2 (non geographic). Is this able to change the DataGuard role under cluster control? The HA-Oracle agent can accommodate Data Guard but it doesn't change the roles. If the database is a standby then it doesn't attempt recover it, it simply mounts it. Thus if you want to have this hybrid arrangement, then you need to construct some sort of mechanism to bring the primary down and make it a standby and then start the standby recovery and bring it online as a primary.
    I&#146;ve read that the Geographic edition can do this &#150; but we don&#146;t have RAC. Can it run without RAC?No. I wrote the module and it was decided that Data Guard broker was the best interface to use to control the Data Guard set-ups. Unfortunately, Data Guard broker does not work with cold fail-over databases because the broker files have embedded host names in them. Although we could work around the host naming issue, Oracle wouldn't support it.
    If DataGuard proves to be inappropriate, then should I just use mount the database on zpool mirrored shared storage (consisting of one LUN from each site) to achieve my replication? Not very elegant, but it may have to do if I cannot use DataGuard.If you have a Metro SAN, why use Data Guard in the first place? You seem to be confusing HA with DR. A simple mirrored LUN with one LUN from each site is far simpler, but the performance will depend on the separation. If it is ~ < 20Km, then performance should be OK.
    thanksTim
    ---

  • AS Java instance complications on Oracle Dataguard

    Having read many threads on Oracle DR for SAP, still some points remain unclear. Would appreciate if some expert can clear the points below for Java specific Instances:
    DR is setup & switchover / failover also takes place fine but Java instance startup fails.
    1. Some forums suggested to also copy the usr/sap/SID directory to the standby.
    But will it not raise more errors coz the primary server hostname will conflict with the hostname of standby server ?
    Directory backup, I suppose works if it is restored on the same host. But what about the different host with different hostname ?
    2. I also found that bootstrap gives error "Cluster id [IDXXXXX]" not found in database. (Its the same if we restore the Java back up on a different host with different Instance ID)
    This error is also logical & I found that replacing the ID of standby instance by the ID of primary server Java instance in the instance profile parameter "j2ee/instance_id" helped me bring the sytem up & it worked fine. But is it the correct method ? Coz with replaced Instance ID, the system may give errors in future upgrades or deployments, if performed on standby servers due to elimination of primary site.
    Instance ID depends on hostname during installation (I read so in some S-Notes; Box number of Java instance). If we replace the ID manually then later sapinst or upgrade operations will detect a conflict in existing & expected Java ID.
    So again, whats the proper procedure for Java instances ? Any reference to S-Notes or Guides ? I havn't found yet.
    3. Once the DR gets running, & some JSPM / SDM deployment is performed on Primary node, how will the DR system be synch-ed up with primary. DB changes would be updated but I think SDM puts some files on file level also. If we perform a switchover after SDM deployment, will the server come up properly with all deployments, coz some files would be missing on file level.
    Whats the technique to resolve this difference ?
    Best regards / Thanks for time.
    Edited by: Muhammad Ali Ahmed Siddiqui on Jan 29, 2012 10:55 AM

    Hi Muhammad,
    You should copy "/usr/sap/<SID>/J<Instance#>/j2ee" excluding the folders, below;
    "/usr/sap/<SID>/J<Instance#>/j2ee/cluster/server<#>/temp"
    "/usr/sap/<SID>/J<Instance#>/j2ee/cluster/log"
    Then, start the config tool, search for old hostname the replace with the new one.
    >> Instance ID depends on hostname during installation (I read so in some S-Notes; Box number of Java instance). If we replace the ID manually then later sapinst or upgrade operations will detect a conflict in existing & expected Java ID.
    It is correct... You will not face a trouble during the java archive package deployment neither on SDM nor JSPM. This number is checked by the system during the SAP upgrade. In short, if you are planning to upgrade on the new system after the role transition, you will face with the problem, because of the box number. This is because this number is calculated by hostname, instance# and SID
    As a last suggestion is; you can replicate the files between hosts, noted on my first paragraph, by using robocopy (Windows) or rsync (UX)
    Best regards,
    Orkun Gedik

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

  • Standby database archive log apply in production server.

    Dear All,
    How I apply standby database archive log apply in production server.
    Please help me.
    Thanks,
    Manas

    How can i use standby database as primary for that 48 hour ?Perform a switchover (role transitions).
    First check if the standby is in sync with the primary database.
    Primary database:
    sql>select max(sequence#) from v$archived_log; ---> Value AStandby database:
    sql>select max(sequence#) from v$archived_log where applied='YES'; -----> Value BCheck if Value B is same as Value A.
    If the standby is in sycn with the primary database, then perform the switchover operation (refer the below link)
    http://www.articles.freemegazone.com/oracle-switchover-physical-standby-database.php
    http://docs.oracle.com/cd/B19306_01/server.102/b14230/sofo.htm
    http://www.oracle-base.com/articles/9i/DataGuard.php#DatabaseSwitchover
    manas
    Handle: manas
    Email: [email protected]
    Status Level: Newbie
    Registered: Jan 24, 2012
    Total Posts: 10
    Total Questions: 3 (3 unresolved)
    Name Manas
    Location kolkata Mark your questions as answered if you feel that you have got better answers rather than building up a heap of unanswered questions.

  • Can I have primary and standby in same OS but different releases.

    All,
    Can I have primary and standby DBs in same OS but in different releases?
    i.e. primary is in RHEL 5 and standby is in RHEL 4, is it ok to setup or do we see any issues?
    Thanks,
    Mahi

    In 10g, dataguard started to support different binaries on primary and standby database servers with the same OS family. For example Microsoft Windows 64-bit on primary and Microsoft Windows 32-bit or Microsoft Windows 64-bit for AMD on standby database server. However with 11g, dataguard also supports different OS on primary and standby servers
    Role Transitions for Data Guard Configurations Using Mixed Oracle Binaries [ID 414043.1]
    Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration [ID 413484.1]

  • DNS / BIND  - Can I configure primary and standby forwarders?

    Hi all,
    I have on Solaris 10 (x86) a DNS server (BIND 9.3.6-P1) that relies exclusively on two “forwarders”: 155.28.144.13and 154.23.134.32.
    The configuration is as follow:
    # cat /etc/named.conf
    acl "CSClan" { 192.168.4.0/24; 192.168.7.0/24; }; //CSC internal LAN ip address range
    options {
            directory "/var/named";
            forward only;
            forwarders {
                    155.28.144.13;
                    154.23.134.32;
                 allow-query { "localnets"; };
    # cat /etc/resolv.conf
    nameserver 127.0.0.1
    When I check with snoop, I can see requests sometimes to one forwarder, sometimes to the other.
    Is it possible to configure DNS to use primarily one forwarder?
    Thanks in advance for your support.
    Best Regards,
    Rui Vilão

    In 10g, dataguard started to support different binaries on primary and standby database servers with the same OS family. For example Microsoft Windows 64-bit on primary and Microsoft Windows 32-bit or Microsoft Windows 64-bit for AMD on standby database server. However with 11g, dataguard also supports different OS on primary and standby servers
    Role Transitions for Data Guard Configurations Using Mixed Oracle Binaries [ID 414043.1]
    Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration [ID 413484.1]

  • Enable Physical Standby Database

    Hi,
    I am working on Linix with Oracle Database 10g, I am preforming a test with the data guard
    DGMGRL for Linux: Version 10.2.0.3.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys/oracle@DRCP
    Connected.
    DGMGRL> show configuration
    Configuration
    Name:                DB123
    Enabled:             YES
    Protection Mode:     MaxAvailability
    Fast-Start Failover: DISABLED
    Databases:
    PROD   - Primary database
    DRCP - Physical standby database
    Current status for "DB123":
    SUCCESS
    DGMGRL> failover to 'DRCP'
    Performing failover NOW, please wait...
    Failover succeeded, new primary is "DRCP"
    DGMGRL>  SHOW CONFIGURATION;
    Configuration
    Name:                DB123
    Enabled:             YES
    Protection Mode:     MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    PROD   - Physical standby database (disabled)*
    DRCP - Primary database
    Current status for "DB123":
    SUCCESS
    My question is how to move back to PROD and enable it, what are the options?
    Please advice. Thank you

    Hi,
    Since you have performed a FAILOVER, this is a one way process. If you were trying to test the role transitions, then you could have gone with SWITCHOVER which is a 2 way process.
    Now, you are having only 1 database which is behaving as primary database and you do not have the standby database. If flashback was enabled on your old primary database, then you can reinstate it to behave as standby database.
    Since you are using DGMGRL, you can refer this http://gavinsoorma.com/2009/06/using-flashback-to-reinstate-a-standby-after-a-failover/
    If using SQL, then you can refer http://shivanandarao.wordpress.com/2012/08/28/dataguard-failover/

Maybe you are looking for

  • Duplex printing doesn't work on HP Laserjet 3055

    Hi! I am a new rMBP user and I need your help with setting up a printer. I want to use my old printer HP LaserJet 3055 for both side printing - using Widnows I didn't have any problem with that. The printer supports manual duplex printing - it means

  • Select one of several FPGA VIs at runtime under RT program control

    I need a CRIO RT controller to select one of several FPGA VIs (or bitfiles) at runtime based on an operating mode parameter. The application requires the FPGA to acquire and process data using several different techniques based on a user supplied mod

  • Executing sql from table with in plsql procedure

    I wonder if anyone can help. I have a table that stores sql statements. They are actually a set of rules that I want to apply to my application. My intention is to execute the statement in plsql. EG a sql statment held in the table might be: 'select

  • WS_FILENAME_GET

    Hi Ladies and Gents, I just want to find out when I use the FM 'WS_FILENAME_GET' and I get an information that this module is obsolete, can I still use the FM? What will happen if I use this FM? If it is better not to use this, which is the new FM th

  • Why, after a Microsoft update (about removing malicious software) does Fire fox crash repeatedly.

    I ran this update from Microsoft, and Immediately, Firefox crashed, repeatedly,( 5-6x) each time sending a crash report. I did the "reset Firefox" option, but this did nothing. I don't know anything about safemode, so I didn't try that. I thought it