11g DataGuard

Hi all,
I followed "http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-dataguard.html" to setup 11g standby database. In point 9, it required to start standby database in NOMOUNT mode. However I got the following error:
C:\app\eric\product\11.1.0\db_1\NETWORK\ADMIN>set ORACLE_SID=orclsb
C:\app\eric\product\11.1.0\db_1\NETWORK\ADMIN>sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Nov 13 12:01:11 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL> connect / as sysdba;
ERROR:
ORA-12560: TNS:protocol adapter error
SQL>

Hi,
Check for the Listener Status... and also for the entries in litener.ora files
Also at the same time check for entries in the tnsnames.ora and check whether they are correctly mentioned or not..
tnsping <service_name> see if it is able to resolve the alias.....
Regards,
Prosenjit Mukherjee

Similar Messages

  • 11g dataguard client tnsname.ora entry format for switchover and failover

    I need format for the tnsnames.ora to use for the enduser when failover or switchover occurs in 11g dataguard.

    http://download.oracle.com/docs/cd/B19306_01/network.102/b14213/tnsnames.htm#sthref722

  • Oracle 11g Dataguard vs SAN

    Dear Expert
    Hi,
    I have question about Oracle Dataguard. If user already setup Oracle Dataguard. Now want to change to use SAN replication. Any configuration change need to make at DB level. Tks
    Regard
    Liang

    can you tell me in brief what is your requirement. you want to keep standby in SAN?

  • TAF On 11g DataGuard with FSFO

    Hi All,
    Today, i have created TAF for my 11.1.0.7 Oracle database running on RHEL 5.4 64 bit.
    I have configured my databases with FSFO enabled. (MaxAvailibility with LGWR SYNC AFFIRM transport)
    I created TAF with following entries:
    1) Created and enabled a dedicated service in primary :
    I have local_listener parameter set in my primary and standby databases.
    begin
    dbms_service.create_service('taf_test','taf_test');
    end;
    begin
    DBMS_SERVICE.START_SERVICE('taf_test');
    end;
    begin
    dbms_service.modify_service
    ('taf_test',
    FAILOVER_METHOD => 'BASIC',
    FAILOVER_TYPE => 'SELECT',
    FAILOVER_RETRIES => 200,
    FAILOVER_DELAY => 1);
    end;
    /2) Made sure that listener is listening to above created service:
    lsnrctl services l_payee1fe_dg_001
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 21-JAN-2010 09:52:27
    Copyright (c) 1991, 2008, Oracle.  All rights reserved.
    Services Summary...
    Service "taf_test.us" has 1 instance(s).
      Instance "payee1fe", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:13 refused:0 state:ready
             LOCAL SERVER3) TNS Entry :
    taf_test.us=
    (DESCRIPTION=
            (SDU= 32767)
            (ENABLE=BROKEN)
            (ADDRESS_LIST=
                    (FAILOVER=ON)
                    (LOAD_BALANCE=YES)
                    (ADDRESS=(PROTOCOL=TCP)(HOST=payee1fe-orasvr.db.us.com)(PORT=58003))
                    (ADDRESS=(PROTOCOL=TCP)(HOST=payee1fe-orasvr.db.us.com)(PORT=58003))
            (CONNECT_DATA=
                    (SERVICE_NAME = taf_test.us)
      )4)Trigger for setting service on appropriate primary database :
    create trigger taf_test after startup on database
    declare
    v_role varchar(30);
    begin
    select database_role into v_role from v$database;
    if v_role = 'PRIMARY' then
    DBMS_SERVICE.START_SERVICE('taf_test');
    else
    DBMS_SERVICE.STOP_SERVICE('taf_test');
    end if;
    end;
    /5) Ran a big SELECT on primary and after 5 sec, kill primary's pmon to do fail-over.
    6) After sometime, i saw that SELECT was hanged for some time and once, DGMGRL has open new primary (org standby), startup trigger got fired and SELECT started fetching rows from the point where it hanged.
    In that way, my TAF was working properly as expected.
    My question is :
    How come new Primary got the session state of SELECT which originated on old primary and then failed-over to new primary ? I confimed that,SELECT was NOT re-executed on new primary and started fetching rows from the row where it hanged at the time of fail-over.
    Since both the databases have different cache and controlfiles, i want to understand how TAF works on dataguard.
    In RAC,there is always a GRD through which session state can be co-ordinated between different instances. But this is not the case in DG.
    I did not find anything in PRIMARY's alert log. Though STANDBY alert log was containing below statement:
    ALTER SYSTEM SET service_names='taf_test' SCOPE=MEMORY SID='payee1fe';Can anyone shed light on internal working of TAF in DG.
    Regards,
    Bhavik Desai

    Hi,
    Just now i tested,SELECT FAIL-OVER for SELECT with PARALLEL (4) hint. I got below msg and SELECT did not executed on new primary:
    ERROR:
    ORA-25401: can not continue fetches
    4350 rows selected.However, i observed that the session is failed-over to new primary. After getting above msg in SQLPLUS window, when i saw number of slaves given to my new sessions, i got :
    SQL> select *From v$pq_tqstat;
    DFO_NUMBER      TQ_ID SERVER_TYP   NUM_ROWS      BYTES  OPEN_TIME AVG_LATENCY      WAITS   TIMEOUTS PROCES   INSTANCE
             1          0 Producer        19800      65296          0           0          3          0 P002            1
             1          0 Producer        19800      65296          0           0          4          1 P001            1
             1          0 Producer        19800      65294          0           0          3          0 P000            1
             1          0 Producer        19800      65296          0           0          3          0 P003            1
             1          0 Consumer         4351      65296          0           0          8          0 QC              1Does it mean that, SELECT fail-over is only supported for serialized SELECTs ? Or there is other alternative to achive PARALLEL SELECT fail-over ?
    Regards,
    Bhavik Desai
    Edited by: BhavikDe on Jan 24, 2010 11:30 PM

  • 11g dataguard, v$ view to monitor rate of redo transfer to standby?

    Hello,
    Which v$ views can I query to monitor the speed/rate of archivelogs transfer from primary to standby? Thank you in advance.

    V$standby_apply_snapshot - redo apply rate in KB/second
    v$dataguard_stats - info about standby background process
    v$recovery_progress - information about the redo.
    Hopes this helps!
    Thanks

  • 11g Active Data Guard Software?

    I got a copy of the 11g (for SUN SPARC) from the edelivery.com, and got the patch for 11.1.0.7 from metalink.
    I upgraded 110.2.0.4 to 11.1.0.7. But, I could not get the ADG to work.
    Here is what happened when I queried the database status.
    --------------------------- begin ---------------------------------
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> alter database open;
    Database altered.
    SQL> select status from v$instance
    2 ;
    STATUS
    OPEN
    SQL> select OPEN_MODE from v$database;
    OPEN_MODE
    READ ONLY
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    SQL> select OPEN_MODE from v$database;
    OPEN_MODE
    MOUNTED
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    ---------------------------- end ------------------------------------
    Turning on the Redo Apply put the database mode back to 'MOUNTED'. For ADG, it should remain 'OPEN'. I suspect this copy of 11g does not have the ADG feature.
    Is there a way I could check whether the ADG is installed? Is there a directory under $ORACLE_HOME or a script under $ORACLE_HOME/rdbms/admin that indicates the ADG is indeed installed?
    Where did you guys get your software?
    Thanks very much in advance.

    You should have the right software and the right option installations in Entreprise Edition (otherwise Data Guard would not work at all).
    Did you check both alert log for possible error messages ?
    I think you should open the database in read-only mode instead of read-write mode:
    alter database open read only;See following OTN example: http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-dataguard.html
    Edited by: P. Forstmann on Jul 9, 2009 9:29 PM
    Edited by: P. Forstmann on Jul 9, 2009 9:34 PM

  • Number of PR0X process

    Hi
    Is there any way to modify the number of PR0X processes? There are currently 5 such processes running, is there a way to configure this value?
    I am currently using Oracle 11.2.2 with Active Data guard on HP UX system.
    Thanks

    904697 wrote:
    Hi
    Is there any way to modify the number of PR0X processes? There are currently 5 such processes running, is there a way to configure this value?
    I am currently using Oracle 11.2.2 with Active Data guard on HP UX system.
    ThanksEven i have not went through much, But i saw in 11g Dataguard hand book, Read below
    In Oracle Database 11g, the PQ slave overhead has been assuaged by leveraging Oracle kernel slave processes (KSV slaves). The KSV slaves can be seen as the PR0x processes. The MRP will relegate
    the actual (parallel) recovery to the KSV slaves. The PR0x processes will hash to a segment map,
    read from this map, and apply redo to the standby database. Leveraging KSV slaves removes the
    need to set the PEMS parameter or even specify the number of slaves needed for recovery. The
    number of PR0x processes started is dependent on the number of CPUs on the server.
    Again depends on CPU slaves as mentioned by mseberg.

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

  • Does Oracle 10g support Active Data-guard?

    Hi all,
    Can Oracle Database 10g support Active Data-guard?
    Thanks you!
    Dan
    Edited by: Dan on Jul 12, 2011 10:13 AM

    no, active data guard is 11gR1 new feature.
    In Oracle Database 10g and below you could open the physical standby database for read-only activities (say, to offload some reporting), but only after stopping the recovery process. With these releases, If Data Guard is a part of your DR solution, you really can't afford to pause the recovery process for a long duration for fear of falling behind, so the physical standby database is essentially useless for any read-only activity.
    With Oracle Database 11g, that situation changes: You can open the physical standby database in read-only mode and restart the recovery process. This means you can continue to be in sync with primary but can use the standby for reporting. (As in previous versions, you can take the backup from the standby as well.)
    refer:- http://www.oracle.com/technetwork/articles/sql/11g-dataguard-083323.html

  • OCM certification

      I am working as Senior Corporate Trainer with  OU training partner. I have successfully conducted training for 11g r2 RAC , 11g Dataguard, 11g SQL Tuning, 11g Performance Tuning etc. I want to appear for OCM certification exam. I would be grateful if you could clarify whether I need to attend training for two of the above modules as per prerequisite for OCM certification?
    Regards

    Hi,
    Please see following link:
    http://www.itcertificationmaster.com/oracle-certified-master-ocm-dba/
    I have passed OCM 10g Exam. How to prepare ? | Oleksandr Denysenko&amp;#039;s Blog
    Exam Title | Oracle Certification Exam
    Thank you

  • Duplicate messages/database inserts despite XA

    I have a simple test application which reads a single message at a time from WebSphere MQ, calls a tux service to insert into a database and writes an output MQ message (again via a tux service). The app is duplicating database inserts and MQ puts despite it being configured to use XA.
    I am running with AUTOTRAN=Y and can see the XA transactions in the trace.
    If I cause a DB failure (oracle 11g -> dataguard with fast start failover) , the servers exit and are re-started (this appeared to be the best way of cleaning up) however I get duplicates, despite the XA trace implying the global transaction was rolled back:
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...MQ Read->GPU POC TEST MSG18313<0> <<<<<<MQGET here
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...................calling <getu>
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: getu started
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: ..Input<GPU POC TEST MSG18313>
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: Conver string
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: .............................getu<GPU POC TEST MSG18313->GPU POC TEST MSG18313>
    124530.tuxtestmachine!server.864336.1.0: gtrid x0 x4aec30de x8d3: getu complete
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..returned from getu
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..calling mqwrite
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...................calling <mqwrite>
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: TRACE:at: { tpservice({"writemq", 0x10, 0x20077930, 22, 0, -2147483648, {0, -2, -1}})
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: ...in mqwrite
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: +++++Writing to MQ<GPU POC TEST MSG18313><GPU POC TEST MSG18313> <<<This is the MQPUT
    124530.tuxtestmachine!s_mqwrite.651446.1.0: gtrid x0 x4aec30de x8d3: TRACE:at: { tpreturn(2, 0, 0x20077930, 0, 0x0)
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..insert to database
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ..............Calling dbinsert with <GPU POC TEST MSG18313><21>
    124530.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: ...................calling <db_insert>
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { /ò!(0x20019b74, 0, 0x0)
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } /ò! = -7
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_open(0x2002035c, 0, 0x0)
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_open = 0
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_start(0x20019b74, 0, 0x0)
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_start = 0
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: ...Calling dbinsert<GPU POC TEST MSG18313>
    124530.tuxtestmachine!s_ora.897234.1.0: gtrid x0 x4aec30de x8d3: Database failure : ORA-25408: can not safely replay call <<<<As a result of the DB failure
    124640.tuxtestmachine!MQXA.778310.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_rollback(0x200196b4, 0, 0x0)
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_rollback(0x2001a454, 0, 0x0)
    124640.tuxtestmachine!s_mq.1016002.1.0: gtrid x0 x4aec30de x8d3: !!!Error calling<db_insert><13>
    124640.tuxtestmachine!MQXA.778310.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_rollback = 0 <<<< This looks to me like a succesful rollback by the TMS
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_rollback = -7 <<Resource manage unavailable, DB is still unavailable here
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_open(0x20020c3c, 0, 0)
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_open = 0
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: { xa_rollback(0x2001a454, 0, 0x0)
    124640.tuxtestmachine!TMS_ORA.1085652.1.0: gtrid x0 x4aec30de x8d3: TRACE:xa: } xa_rollback = 0
    $
    Anyone with any ideas as to where I go from here ? Your time is much appreciated.
    Thanks.

    Hi Dan,
    Thanks for the question.
    Currently the Messaging Pattern implementation does not use/implement JTA/XA or Coherence transactions. It's much like regular JMS in that it provides it's own transaction framework, that neither uses JTA or XA. While the JMS specification provides an XA API, the implementation of this is optional, as are Queues or Topics.
    The original goal of the Messaging Pattern implementation was to demonstrate that JMS-like messaging is possible with Coherence. When we looked at constructing the Messaging example, most people we talked to said they didn't want JMS and especially they didn't want transactions. They simply wanted a simple messaging implementation. So it's initial goal was to demonstrate a high-scalable messaging layer. Unfortunately that meant no "real" transaction support, especially in terms of things like XA and/or JTA.
    That said given the way that the pattern is currently implemented one could easily implement an XA resource so that it could be used as a last resource. That's probably the quickest way to get what you would like at the moment.
    Of course I'm certainly interested in implementing XA support, but we know that is non-trivial. It's not currently on our roadmap for the pattern, but it could be. Our next release will provide persistent messaging, but we could investigate XA after that.
    -- Brian
    Brian Oliver | Architect | Oracle Coherence Engineering
    Oracle Fusion Middleware

  • Oracle Active Dataguard 11g - Passwords

    Hi all
    Environment description: Production database, 11.2.0.3 version, standalone running on Solaris and an Oracle Active Dataguard database in read only mode, same version and operating system.
    Question: The users passwords and sys/system passwrod (orapw ) could be different in the ADG environment? I mean, could the orapwd file and user password be changed in the Dataguard database ?
    Thanks a lot.

    user1687821 wrote:
    Hi All,
    Please suggest a good step by step guide to implement Oracle Active Dataguard on Oracle 11g, OS : RHEL 5.4
    Have searched a couple of documents, but ending up with physical or logical dataguard setup guides...
    Please suggest end to end steps guide for Active Dataguard Implementation
    DB : Oracle 11g Release 2
    OS : RHEL 5.4
    ThanksHi,
    Active dataguard is option after configuring dataguard.
    You can put standby database in Open(read only) mode also you can enable Recover(MRP) while open so this can be used for reporting purpose too.
    Please refer below links for configuring them.
    http://www.oracle-class.com/wp-content/uploads/2011/01/dataguard/11gR2%20Physical%20Data%20Guard%20Setup%20%20project,%20with%20Active%20Data%20Guard%20option.pdf
    http://www.databasejournal.com/features/oracle/article.php/3834931/Using-Oracle-11gs-Active-Data-Guard-and-Snapshot-Standby-Features.htm
    http://www.oracle-base.com/articles/11g/DataGuardSetup_11gR2.php
    http://www.oracle.com/technology/deploy/availability/pdf/maa_wp_11gr1_activedataguard.pdf
    HTH.

  • DataGuard on Oracle 9i and Oracle 11g

    Hi Guys,
    Is it possible to configure DataGuard between an Oracle 9i primary database and an 11g standby?
    Thanks for the help.
    Carlos

    See this MAA paper - http://www.oracle.com/technetwork/database/features/availability/maa-wp-10gr2-rollingupgradebestprac-1-132006.pdf which explains a rolling upgrade using a Data Guard standby. The caveat is that you will have to create a 10.2.0.4 physical standby on the new hardware and convert it to a Logical Standby before upgrading it to 11.2. So you will have to have both homes on the new hardware. So your database has to be able to support a Logical standby.
    Also, depending on the hardware change the combination has to be a supported one as detailed in the MOS note " Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration" [ID 413484.1]
    Going from a single instance to a RAC is no problem.
    Thanks.
    Larry

  • Concept about Query Scn in Dataguard in Oracle 11g

    What are the details concepts behind the’ query scn’ in Dataguard in Oracle 11g. I read the concept from Oracle Datagaurd 11g Handbook but it was not clear for me.

    It's the highest SCN to which data is synchronised between the primary and secondary in a way that the secondary guaranteed read-consistent. It's therefore not possible to query an active standby for data modified after that SCN. At any given time, there might be transactions committed on the primary but not yet shipped or applied to the standby. You're not allowed to see those on the secondary. Not sure how much more detailed you want to get, really.
    Edited by: Catfive Lander on Jan 15, 2013 4:15 AM

Maybe you are looking for

  • How do I use Javascript to populate a text field based on a selection from a drop down box?

    Greetings, I have virtually no experience with JavaScript and I am trying to figure out how to add some basic automation features to an Adobe form.  I have a drop down box called "Hospital_Name" that will contain approximately 7 possible selections. 

  • Hp t510 right alt key mapping not working with ctrl + s

    Using the HP t510 to launch a xendesktop session via storefront. We have a mission critical application that uses the ctrl + alt + s hotkey to secure itself. The left alt key with ctrl + s is working as it should but the right alt key does not. When

  • Project System - How to do reversal of Settlement

    Hi Gurus, Please tell me how can i do the reversal for monthly or Final Settlement, if i settled something? Pleaser revert asap. Thank You

  • SAP HR -- Critical to the Organization

    We implmented SAP HR PA and PD Modules for US. We have a requirement to classify the employees based on their need to the company. I am a Technical Guy and I am thinking that I can develop a custom Infotype from the PA side for maintaining the Critic

  • I can't Apply license at ACS 5.1

    hi, maybe it looks stupied Q , but this my first time with ACS 5.1 server 1120 i configure the basic configuration using CLI setup command , then I connect https://10.2.2.7 but it ask me for the username and password , when i put the password i cann'