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

Similar Messages

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

  • 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

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

  • 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

  • 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

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

  • What goes where when using separate drives for data and applications?

    Hello people!
    In Mac Guru's "Guide to Macintosh Performance Acceleration" it states " Separating your "User" data from the Operating System and Applications is the simplest and most cost effective way to enjoy a significant performance boost at
    minimal cost"...
    Now how exactly do I do that?
    I have a 40 GB HD with Panther on it and a 55 GB drive I want to use for the "data" drive. What goes where?
    Thanks for reading!

    Hello Danny:
    Welcome to Apple discussions.
    I disagree with the premise in that article - "significant" is relative and depends on where you are. The only method I am aware of to "separate" would be to create partitions. OS X uses sophisticated algorithms to manage memory - both real and virtual. There are very few good reasons to partition an internal HD - and several that suggest you should not do that - absent a "good" reason.
    Barry

  • Query to return separate rows for date range including NULLs

    I'm trying to write a query that will return all customers from table 1. Table 1 also provides a start date and an end date that may be different for different customers. Left join with Table 2  provides all matches and NULL if NO matches.
    If there is any match at all, I do not get the NULLs for other dates. There should be a match for each date from start to end. How can I write the code so that my return will loop thru each date and provide the match or NULL?

    Sorry. I am somewhat new to this and am not sure what you are requesting. I receive a return of all customers with the code below but if customer 1 has a start date of 1/1/15 and a stop date of 1/5/15 and a document exists for 1/1/15 and 1/3/15
    I do not receive the rows with NUL for 1/2/15, 1/4/15, and 1/5/15 which is what I'm trying to accomplish. If there is no match at all, I only receive the one row with NULL and I would like to see a row for each date from start to stop.
    SELECT  T1.IDNumber,T1.StartDate,T1.StopDate,T3.SignDateTime
    FROM
    Table1 T1
    INNER
    JOIN Table2
    T2
    ON
    T1.CustID
    = T2.CustID
    LEFT
    JOIN Table3
    T3
    ON
    T1.CustID
    = T3.CustID
    WHERE
    T1.StartDate
    > '2015-01-20 00:00:00.000'
    AND
    (T3.ReportID
    IN ('DOC1',
    'DOC2',
    'DOC3') OR
    T3.ReportID
    IS NULL)
    AND
    T2.YesNo
    = 'Y'

  • Force logging for data guard

    It is my understanding new to version 11g force logging is not required on the database? So we could setup a tablespace for staging tables in no logging and not generate as much redo to be shipped over to the standby?
    Is this true or was that feature added in 10? I have hunted around on OTN for some info on the subject. could anyone provide a link?
    Thanks

    I've seen nothing that indicates "force logging is not required but the idea that somehow there is an advantage to no logging is grossly overstated.
    I'd suggest that you go to http://asktom.oracle.com and read Tom's comments about it.
    If your system is so close to falling over that a little bit of logging is going to tip it over you've huge problems you'd best deal with immediately.
    Consider, for example, setting up your staging tables as global temporary tables.

  • DBCONSOLE Problem for Data Guard

    Dear All(s)
    I am using Oracle 10.2.0 Physical Standby Data Gurad, I have failover successfully. But unable to creating DBConsole serverice. Any one can guide me how i can configure dbconsole (Web OEM).
    Thanks in Advance

    Naeem,
    If you want and afford, you can setup database control on standby after failover in similar manner you did it on primary. Here what you can do to set it up, and fgllow the interactive instruction?
    # su - oracle
    -- Then set your sid
    $> export ORACLE_SID=<sidname>
    -- to create
    $>emca -config dbcontrol db -repos create
    -- to drop old one
    $>emca -deconfig dbcontrol dbRegards
    OrionNet

  • Data Guard instance - Additional Listener

    Hi,
    I have 2 node cluster RAC 11gr2 and want to setup data guard  on remote site with 2 node RAC instance. Do I prefer to have separate listener for data guard? Is this best practices or do I need to prefer to have scan listener?
    Does any one have any DG best practices doc or ML?
    Thanks

    Hi,
    Check out this note - Data Guard Physical Standby 11.2 RAC Primary to RAC Standby using a second network (Doc ID 1349977.1)
    Additional listener only for DG traffic is a good solution - you can disable access for users and still have a working DG infrastructure.
    regards,
    Marcin Przepiorowski

  • Should e-book Data Guard Concepts and Administration be useless for us?

    I think The Data Guard Broker is an easy and efficient way to manage a Data Guard configuration. The Data Guard Broker provides us with two efficient tools: EM Console and DGMGRL. We can do everything we want for Data Guard system.
    Why we spend so much time to read Oracle e-book Data Guard Concepts and Administration? I think it is useless. Only Broker is enough?

    Frank,
    The thing is GUI tool itself is also program that need some one to manage. The developer of such tools cannot take care unlimited possibilities in the real world.
    Just check how many threads in this forum about why emca, dbca and EM console not working.
    Being a DBA, we should understand the underlying technology that driven the system. It's like driving a car. A regular customer could say I don't care about mechanics of a car. As long as it's running, that's enough. But we are not regular customer, we suppose to be the auto repair mechanician in Oracle world. We could enjoy driving a car, but at same time we should know why and how it's working.

Maybe you are looking for