Configure listener for data guard

HI everyone,
I am currently setting data guard (Physical standby database) for my database. But I have problem to configure the listener on both servers. Can anyone provide me some example?
Oracle: 10g R2
O/S: Windows
Primary database ken10g
standby database: ken10gbk
Following is the content of my current listener files on both of servers:
Primary server:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = Primary_server)(PORT = 1521))
Standby Server:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby_server)(PORT = 1521))
Thanks in advance.
Ken

Hi Ken,
You need to configure this on both primary and standby, I would have kept different listener name on primary and standby. Also if you are going to use dataguard broker you would need to set GLOBAL_DBNAME in your listener.ora file
I have give a sample entry for tnsnames.ora and listener.ora
TNSNAMES.ORA on primary
STNDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-prv)(PORT = 10521))
(CONNECT_DATA =
(SERVICE_NAME = STNDBY)
PRIM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-prv)(PORT = 10521)))
PRIMARY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-prv)(PORT = 10521))
(CONNECT_DATA =
(SERVICE_NAME = PRIMARY)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Copy the same file to the standby server and adjust it based on the listener.ora file. Also update the listener.ora file so that it listen the SIDs mentioned in the tnsnames.ora file.
Listener.ora
LISTENER_STBY =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-prv)(PORT = 10521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER_STBY =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db10g)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = stndby)
(GLOBAL_DBNAME = stndby_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db10g)
)

Similar Messages

  • Separate listener for Data Guard

    I am setting up a best practice about using a dedicated listener for Data Guard. The idea is to maintain full functionality of Data Guard while application team is requesting to bring down listener service (according to business requirement). Need your opinion on these:
    1. I understand that there may be a very little chance when listener is required by Data Guard, but I find it no harm to do this. Do you agree with me?
    2. In RAC environment, we can only have 1 VIP to be used in listener.ora. I am thinking of using same IP but different port numbers for different listener. Any better idea than this?
    Many thanks

    It is never a bad practice to use separate listeners at the primary and at the Standby for Data Guard's use. A listener at the standby is required by Data Guard to make a connection to that standby. A listener at the Primary is required for Data Guard to make a reverse connection from the Standby to the Primary for some kinds of Gap resolution (missing log file the the Primary thinks it already sent or a corrupted log file etc). And of course, when you switch roles.
    To answer the second question could you please tell me what version of Oracle you are using and if you plan on using the Data Guard Broker or not?
    Thanks.
    Larry

  • Database is configured for Data Guard

    I am run a UTF8 conversion on a development database that has been cloned from Data Guard. There is a warning in Migration Status: "Database is configured for Data Guard" What is the DMU looking at to determine this? The database is open in read-write mode and it behaving like a primary database (I run the DMU scan and run updates to fix invalid representations). I would like to know what settings I need to update.
    Is this preventing me from converting tables using CTAS? When I try to select this for all tables I get the message, "The DMU does not support the conversion method "Copy data using CREATE TABLE AS SELECT" for tables that are involved in an Oracle Streams process, like capture or apply. Use another available conversion method for the table"
    Thanks,
    Ben

    The DMU checks if the parameter DG_BROKER_START is set to true.
    The problem with CTAS is independent from Data Guard. The DMU checks for tables that:
    - are source of asynchronous Streams capture, or
    - have update conflict handlers, or
    - have DML handlers, or
    - have conflict resolution parameters
    The above tables are considered configured for Oracle Streams and are not supported by CTAS conversion method. This is because the CTAS method creates a converted copy of the table and drops the original. The DMU is not capable of moving the Streams configuration information from the old table to the new one.
    Thanks,
    Sergiusz

  • Configurational settings for data source in BI server

    Hi Sdns,
    Where can we make  configurational settings for data source in BI server.
    Advance thanks to replies.
    karun

    Go to T-code RSA13.
    Search you desired BI system.
    Right click on it and Display Data Source Tree.
    There you can see all your datasource with BI as source system.
    You can do the same for other source systems.
    Double click on the datasource to see the fields and configuration.

  • Missing configuration entry for data - index relationship

    IN ST04 -> configuration -> Data Class
    all data classes are in yellow I'm trying to activate them and getting the following error
    "Missing configuration entry for data - index relationship"
    This is the result of  a system copy
    Thanks
    Kkhaldoun

    Hi All,
    Just an update, I was able to get around my problems by patching the 2004s media from sp6 to sp8, uninstalling my scs, and database and re-installing from the patched media.

  • Best Practice for monitoring database targets configured for Data Guard

    We are in the process of migrating our DB targets to 12c Cloud Control. 
    In our current 10g environment the Primary Targets are monitored and administered by OEM GC A, and the Standby Targets are monitored by OEM GC B.  Originally, I believe this was because of proximity and network speed, and over time it evolved to a Primary/Standby separation.  One of the greatest challenges in this configuration is keeping OEM jobs in sync on both sides (in case of switchover/failover).
    For our new OEM CC environment we are setting up CC A and CC B.  However, I would like to determine if it would be smarter to monitor all DB targets (Primary and Standby) from the same CC console.  In other words, monitor and administer DB Primary and Standby from the same OEM CC Console.   I am trying to determine the best practice.  I am not sure if administering a swichover from Cloud Control from Primary to Standby requires that both targets are monitored in the same environment or not.
    I am interested in feedback.   I am also interested in finding good reference materials (I have been looking at Oracle documentation and other documents online).   Thanks for your input and thoughts.  I am deliberately trying to keep this as concise as possible.

    OMS is a tool it is not need to monitor your primary and standby what is what I meant by the comment.
    The reason you need the same OMS to monitor both the primary and the standby is in the Data Guard administration screen it will show both targets. You also will have the option of doing switch-overs and fail-overs as well as convert the primary or standby. One of the options is also to move all the jobs that are scheduled with primary over to the standby during a switch-over or fail-over.
    There is no document that states that you need to have all targets on one OMS but that is the best method for the reason of having OMS. OMS is a tool to have all targets in a central repository. If you start have different OMS server and OMS repository you will need to log into separate OMS to administrator the targets.

  • Steps for data guard RAC primary RAC standby

    Hi,
    I have some doubt in configuring data guard for rac DR to rac primary.
    1) In RAC DR, physical standby will be in RAC before starting data guard for RAC Primary , right?.
    2) While configuring RAC DR , should one node be down in standby?.
    3) After creating the auxiliary database in standby, i mean restoring the rman backup from staging directory in DR,
    Shall we have to register the services(database,instance,asm,etc..) to CRS(OCR)?. If yes ,Why?.
    4) After DR configure over , Shall i shut/down one node?. Should all the nodes in DR be in up , while applying logs to
    standby ?.
    If anybody have made the setup and have the prepared document , requesting you to share with me.
    Thank you very much,
    Sunand

    Hi Sunand,
    Please follow the following My Oracle Support (MOS) Document ID:
    MAA - Creating a RAC Physical Standby for a RAC Primary [ID 380449.1]
    For further details, see the referred documents in previous post. Try practicing on VMWare because it will give you the flexibility for creating snapshots to save your work. Please see the answers for your question below:
    Q1. In RAC DR, physical standby will be in RAC before starting data guard for RAC Primary , right?.
    Answer: Yes, this is recommend but not mandatory. You can add a second node later on.
    Q2. While configuring RAC DR , should one node be down in standby?
    Answer: Yes, there are some database configuration commands that should be run in exclusive mode. You can start the remaining instance(s) after DB creation. Do not forget to set CLUSTER_DATABASE parameter to TRUE. Also, all instances except one should be close while performing switchover/failover.
    Q3. After creating the auxiliary database in standby, i mean restoring the rman backup from staging directory in DR, Shall we have to register the services(database,instance,asm,etc..) to CRS(OCR)?. If yes ,Why?
    Answer: Yes, this is recommended for RAC configuration to take advantage of high availability services.
    Q4. After DR configure over , Shall i shut/down one node?. Should all the nodes in DR be in up , while applying logs to
    standby ?
    Answer: You can start up all the instances after DR creation. In this case if your one node goes down log apply services will continue to apply changes in DR.
    Hope, this helps to clear your questions.
    Regards,
    Shahid

  • Steps for Data Guard with one primary and 2 standby

    Hi,
    Database :10.2.0.4, 11.2.0.1
    Os: Windows , Unix
    A ----------------> Primary database
    B ----------------> Standby Database 1
    C ----------------> Standby Database 2
    I want to configure *2 standby* databases for single primary database.
    Lets take, A ,B and C are my machines.My data guard configuration will be like,*archive logs will be moving* from A to B and A to C.
    If i do any switchover in between A and B , now B is primary and remaining A and C are standby databases.At this stage also , archive logs should move from B to A and B to C. Also, same should happen from C to A and C to B,If i do switchover in between B and C.If everything is fine , then i will do switchback to main Primary database(A).
    How do i have to mention PFILE in all machines ,the parameters like
    LOG_ARCHIVE_DEST_1=LOCATION=<PATH> -- LOCAL ARCHIVE PATH
    LOG_ARCHIVE_DEST_2=SERVICE=
    LOG_ARCHIVE_DEST_3=SERVICE=
    FAL_SERVER=
    FAL_CLIENT=
    STANDBY_FILE_MANAGEMENT=
    In my tnsnames.ora , primary,standby1 and standby2 are my service entries and these are same in all of my machines.
    Please suggest me , how do i can configure my pfiles in all machines ?.
    Thanks,
    Sunand

    Not yet, but now you have me interested.
    Please consider Flashback.
    I still have to test but here's my take:
    PRIMARY SETTINGS
    *.FAL_SERVER=STANDBY
    *.FAL_CLIENT=PRIMARY
    *.STANDBY_FILE_MANAGEMENT=AUTO
    *.DB_UNIQUE_NAME=PRIMARY
    *.LOG_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    *.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY'
    *.log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
    *.log_archive_dest_3='SERVICE=STANDBY2 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY2'
    *.LOG_ARCHIVE_DEST_STATE_1=ENABLE
    *.LOG_ARCHIVE_DEST_STATE_2=ENABLE
    *.LOG_ARCHIVE_DEST_STATE_3=ENABLE
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    STANDBY 1 SETTINGS
    *.FAL_SERVER=PRIMARY
    *.FAL_CLIENT=STANDBY
    *.STANDBY_FILE_MANAGEMENT=AUTO
    *.DB_UNIQUE_NAME=STANDBY
    *.LOG_FILE_NAME_CONVERT='PRIMARY','STANDBY'
    *.log_archive_dest_1=LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=STANDBY'
    *.log_archive_dest_2='SERVICE=PRIMARY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PRIMARY'
    *.log_archive_dest_3='SERVICE=STANDBY2 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY2'
    *.LOG_ARCHIVE_DEST_STATE_1=ENABLE
    *.LOG_ARCHIVE_DEST_STATE_2=DEFER
    *.LOG_ARCHIVE_DEST_STATE_3=DEFER
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    STANDBY2 SETTINGS
    *.FAL_SERVER=PRIMARY
    *.FAL_CLIENT=STANDBY2
    *.STANDBY_FILE_MANAGEMENT=AUTO
    *.DB_UNIQUE_NAME=STANDBY2
    *.LOG_FILE_NAME_CONVERT='PRIMARY','STANDBY2'
    *.log_archive_dest_1=LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=STANDBY2'
    *.log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
    *.log_archive_dest_3='SERVICE=PRIMARY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PRIMARY'
    *.LOG_ARCHIVE_DEST_STATE_1=ENABLE
    *.LOG_ARCHIVE_DEST_STATE_2=DEFER
    *.LOG_ARCHIVE_DEST_STATE_3=DEFER
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    Edited by: mseberg on Nov 29, 2010 9:39 AM
    The first test slapped me. Looking at 409013.1 Cascaded Standby Databases
    Edited by: mseberg on Nov 29, 2010 12:49 PM

  • Configure TAF on Data Guard

    Hi,
    I've created a data guard setup consisting of single-node primary and standby databases using 11.2.0.1 AIX 6.1
    Now I would like to configure the TAF, so that the application is automatically and transparently failed-over to the new primary database during switchover. I've read several links, but they seem to be pointing to some documents which are no-longer accessible on the Oracle website.
    I'd a appreciate a simple walk-through on the process, or a pointer to some useful documentation on this.
    Regards,
    dula

    Not sure how far you want to go with this. If far enough is to have the users re-connect then what follows works.
    I assume you have flashback database configured and an observer in place.
    Given that' true then:
    A trigger will be created in the database so that whichever database opens as “primary”, the service will start. The service will be defined in tnsnames so that applications connect to that service. Since only the current primary will have the service running, applications will only connect to the “primary”.
    1.     Create the service current primary.
    SQL> Exec dbms_service.create_service (service_name => 'testserv',network_name = > 'testserv');
    PL/SQL procedure successfully completed.
    2.     Now create the trigger to start the service.
    create or replace
    trigger start_testserv
    after startup on database
    declare
    role varchar (30);
    begin
    select database_role into role from v$database;
    If role= 'PRIMARY' then
    dbms_service.start_service('testserv');
    end if;
    end;
    3.     Manually start the service (fires at database startup normally).
    SQL> execute dbms_service.start_service('testserv');
    4.     Verify the service is started.
    Lsnrctl status
    And you should see:
    Service "testserv.nsight.com" has 1 instance(s).
    Instance "standdb", status READY, has 1 handler(s) for this service...
    5.     Create a tnsnames entry for this service that references both databases – but only the primary will have the service running so when a user connects, they get the current primary and, should a failover occur, when they login they connect to what is then the primary.
    testserv =
    (description=
    (SDU=32767)
    (address_list=
    (address=(protocol=tcp)(host=ora-vm-db2.nsight.com)(port=1521))
    (address=(protocol=tcp)(host=ora-vm-db3.nsight.com)(port=1521))
    (connect_data=
    (service_name = testserv.nsight.com)
    (server=dedicated)
    (FAILOVER_MODE =
    (TYPE=select)
    (METHOD=BASIC)
    (RETRIES=30)
    (DELAY=10)
    Note: included in the address list are both servers
    6.     Test the connection
    Create a connection to testserv from sql developer.
    select db_unique_name from v$database;
    DB_UNIQUE_NAME
    standdb
    Now shutdown abort the current primary (standdb);
    SQL> shutdown abort;
    ORACLE instance shut down.
    Now connect to the broker and look at status.
    DGMGRL> show configuration verbose;
    Configuration - drconfig
    Protection Mode: MaxAvailability
    Databases:
    testdb - Primary database
    Warning: ORA-16817: unsynchronized fast-start failover configuration
    standdb - (*) Physical standby database (disabled)
    ORA-16661: the standby database needs to be reinstated
    (*) Fast-Start Failover target
    Fast-Start Failover: ENABLED
    Threshold: 300 seconds
    Target: standdb
    Observer: ora-vm-db3.nsight.com
    Lag Limit: 30 seconds (not in use)
    Shutdown Primary: TRUE
    Auto-reinstate: TRUE
    Configuration Status:
    WARNING
    The former standby is now the primary.
    Try again from sql developer. You will need to reconnect.
    select db_unique_name from v$database;
    DB_UNIQUE_NAME
    testdb
    And that is basically how the applications will operate – reconnect if there is a failure and they will be connected to the new primary with no data loss and with only a momentary loss of service while the failover occurs.

  • Configure about the DATA GUARD APPLICATION on ORACLE 9i platform

    I have worked on Oracle 9i (9.2.0.1) platform. I have installed Oracle 9i server edition in my machine, and created one database name ORCL.
    I want to configure DATA GUARD APPLICATION in my machine... is it possible?
    if it is then how can I do this...

    Yes, it is possible.
    Please refer to the Dataguard Concepts and Administration Manual for installation guidance.
    Please do not bother to come back to ask further doc questions, showing you are not prepared to do your own work.
    Sybrand Bakker
    Senior Oracle DBA

  • Question on db_unique_name in init.ora for Data Guard

    I need to set up only one physical standby on a different box (at a different location) for the primary db in production.
    OS: Sun Sparc Solaris 10
    Oracle: 10.2.0.3
    Can I use the same db_unique_name in init.ora for both primary and standby DBs?
    What are the minimal parameters required by Data Guard I have to specify in the init.ora in my case?
    Could anyone please post an example of init.ora for both primary and standby DBs?
    Thanks very much in advance.

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i63561

  • Use dedicated server for data guard?

    Hi All,
    I've heard from someone that it is possible to separate data guard from the database and put it to a server, such that the data guard server will be dedicated to shipping log to standby site db etc. I don't know if such architecture would work. Could anyone please clarify it? Thanks in advance.

    An Introduction to Data Guard from Oracle Doc's is here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/concepts.htm#i1039416

  • License for Data Guard 11g - Observer

    Hi,
    I would like to know if fast-failover with Observer requires any additional licensing then just Data Guard.
    Thanks in advance.

    My first stop would be.... [Oracle 11g Licensing Information|http://download.oracle.com/docs/cd/B28359_01/license.111/b28287/toc.htm|Oracle 11g Licensing Information]. After that I would look at the Data Guard documentation.
    HTH!

  • Configure Listener for Multiple IP's???

    I need to know how to configure my listener on a Windows 2000 Advanced Server using Oracle 8i to allow for the following conditions:
    1) I have 4 NIC'S in my server and I have 1 different IP address on each NIC.
    2) Stations will connect to Oracle via those 4 different IP's/NIC'S for load balancing of the NIC'S.
    3) There is only 1 SID used for my database.
    Any suggestions of how to configure the listener?
    Any Help GREATLY appreciated!!!
    mailto:[email protected]

    Can you use the idea posted here?
    You only have 2 options if you want to use remote desktop on multiple pc's on the same lan. Change the listening port, or forward an external port to a different internal port. Don’t enable upnp, there’s no need for it and it will just cause more problems than its worth. why would you want an application opening ports on your firewall without you knowing it? Just change the listening port on pc 2 to 3390, pc 3 to 3391. Then forward these ports to each respective ip address (should be static ips). and you are done. When you want to connect to pc 1 you type {your ip} and it will connect to pc 1. For pc 2, you type {your ip}:3390. pc 3 {your ip}:3391.
    http://support.microsoft.com/kb/306759
    Westell 6100 modem/router; Linksys WRT54GL v1.1 router firmware 4.30.9; Linksys WPC54G v2 Notebook Card; CenturyTel DSL using PPPoE

  • Steps to configure Oralce 9i Data Guard

    Hello,
    I am looking out for a document that has step by step instruction how to set up an Oracle 9i Dat aguard in Maximum Performance mode.
    Can someone kindly point me to an existing document.
    Thanks..RCube

    Please read the Dataguard Concepts and Administration Manual for your version, which you can find online at http://tahiti.oracle.com.
    It also contains working scenarios.
    As you don't provide a version, I can not provide a link.
    You can easily navigate to the 'List of books' and find it there.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Invalid Annotation Object

    What does it mean and how to I get out / avoid / fix it?  Thanks!

  • Wireless- almost there iwl3945

    ASUS laptop- W7j Intel pro Wireless 3945 Planning to use gnome-network-manager Hey I've almost got wireless working but no dice. 1.uname -r 2.6.25-ARCH-   (3945 built into kernel right?) 2.Installed    pacman -S wireless_tools    pacman -S gnome-netw

  • DOCUMENTING SELECT STATEMENT

    Hi All, I been working with databases (ORACLE, MSSQLSERVER, SQLANYWARE) for last couple of years. SELECT statement comes into picture very frequently. But yet I am unable to find any template, tool or hint to document the SELECT statement, so that ot

  • Why do I get sometimes my macbook to do white noise out of the blue

    Why do I get sometimes my macbook to do white noise out of the blue? It's a new mac so is it faulty?

  • Flash Player Will Not install on Mac.

    I receive  a message that the latest version of Adobe Flash Player is required to view certain pages such as you tube or news websites. I have tried to download numerous times to no avail. Contacted support and they directed me here. I cannot repair