TNSNAMES.ora for DR And Primary Instance

I have 2 node rac, how do i specify load balance and failover in the client tnsnames.ora including DR hostnames so that when the primary instance is not available it automatically goes to DR. Instead of flipping the tnsnames.ora.

You seem to have a substantial amount of confusion in your request.
When you use the term DR are you referring to an unmentioned Physical Data Guard implementation somewhere else or are you misusing the term to mean "the other node in my cluster?"
In what version of Oracle?
What services have you defined?
How is failover configured? Using TAF or FCF?
You need to provide a lot more information for us to help you.
Load balancing has nothing to do with failover. Are you asking about one of them or both?
Review the capabilities of the DBMS_SERVICE package with respect to creating a service. How did you define your RAC services?

Similar Messages

  • Cleint tnsnames.ora  for connecting to RAC instance

    Dear all,
    DB:10.2.0.1
    o/s:redhat 5.6
    2node rac cluster
    I am getting ERROR: ORA-12170: TNS:Connect timeout occurred when trying to connect to rac instance.the timeout frequency is very less once in 10 times.
    cleint tnsname.ora
    RACTEST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.25)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.27)(PORT = 1521))
    (FAILOVER= TRUE)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = RACTEST)
    Regards

    Try to connect straight to the nodes. One node at the time. You can add new tnsnames entries for all RAC nodes so you can connect only one node not the whole RAC.
    example:
    RACTEST1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.25)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = dedicated)
    (SERVICE_NAME = RACTEST)
    (INSTANCE_NAME = RACTEST1)
    RACTEST2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.27)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = dedicated)
    (SERVICE_NAME = RACTEST)
    (INSTANCE_NAME = RACTEST2)
    If both nodes are working then problem is probably in network / firewall.
    Usually this kind of problems comes because one node's database instance is somehow broken. And if that is the problem correction is restart failing instance.
    Edited by: Simo Kemppinen on Jul 15, 2012 12:58 PM
    Edited by: Simo Kemppinen on Jul 15, 2012 12:59 PM

  • Location of tnsnames.ora for Tora and Oracle XE Client

    I Googled far and wide and did not see a CLEAR answer to my question, hopefully this will help others.
    I have installed the debian oracle-xe-client and tora packages (tora rebuilt for oracle) on Ubuntu 8.04.
    However, I did not know where I was supposed to place the tnsnames.ora file for my databases. I have tried running Tora with the environment variable of TNS_ADMIN set to the file where I placed my tnsnames.ora, however that did not work as Tora did not 'see' the file or its entries apparently. I know this works because I copied it from a Debian Etch box with the client and server installed.
    I had even added a 'network/admin' directory structure to the //usr/lib/oracle/xe/app/oracle/product/10.2.0/client (ORACLE_HOME) with the tnsnames.ora but also with no success.
    Now for the solution:
    Simply remember that TNS_ADMIN points to the directory where the tnsnames.ora is and it will work. :)
    I do have a suggestion that both Tora and sqlplus use a config file to set these directory(s) in addition to the overriding ability of the environment variable, TNS_ADMIN as is usually the case with UNIX apps (and thus expected).
    Thank you,
    Jason

    The ODBC Instant Client Readme that is included in the install also indicates that %ORACLE_HOME%/network/admin/tnsnames.ora is the correct default location. What about OCI?

  • TNSNAMES.ORA  for Oracle database 11.1.0.7

    Hi,
    Im installed oracle database 11.1.0.7 ,but unable find the TNSNAMES.ORA File.Can any help on this.

    Hi,
    Which OS is urs ??
    Normally it is available in ORACLE_HOME/network/admin.
    If it is not there, then
    Use NETCA to create those files.
    Normally, the Network Configuration Assistant (NETCA) is started at the end of the installation process; however, if NETCA fails or you exit before completing, the tnsnames.ora and the other files will not be created. The tnsnames.ora and the other NETCA created files are not necessary for connecting to the database locally from the server.
    Thanks,
    Ranjith

  • Possible to use 2 tnsnames.ora for just one client?

    Hi,
    in our organisation we have two different tnsnames.ora files. This because of the
    fact that there are remote locations each with their own IT department. Each department maitains their own databases, but applications are spread over the whole organisation.
    What I would like to to create is a tnsnames.ora in which there is an e.g. include c:\oracle\tnsnames.ora and include c:\oracle1\tnsnames.ore. Would that be possible?
    Fred

    If what you want to achieve is a situation where different users use the same PC, but you want to limit the tnsnames they have access to, what if you try setting the TNS_ADMIN environment variable to point to the permitted directory for each user env profile.
    e.g
    user1
    TNS_ADMIN=c:\oracle\network\admin\user1
    c:\oracle\network\admin\user1\tnsnames.ora
    c:\oracle\network\admin\user1\sqlnet.ora
    user2
    TNS_ADMIN=c:\oracle\network\admin\user2
    c:\oracle\network\admin\user2\tnsnames.ora
    c:\oracle\network\admin\user2\sqlnet.ora
    etc.

  • Time out parameters for ABAP and JAVA instance

    Hello All,
    We are looking for Time out parameters for our ABAP and JAVA instances.
    As users are complaining that they are getting time out error
    while they are trying to access Cprojects from Portal.
    I was able to check/collect the ABAP instance parameters from SMICM Tcode.
    Can anybody tell me which parameters we need to look for JAVA instance.
    Thanks in advance.
    Regards,
    Amber S

    jstart/shutdownTimeout
    (jstartup/shutdown_timeout)
    Specifies the shutdown timeout, i.e. the grace period for the AS Java instance to shut down before the Java process terminates itself.  Unt is in Seconds. Default is 120
    j2ee/ms/connectTimeout
    (jstartup/wait_for_scs)
    Specifies the timeout for the first connection to the message server. The AS Java instance fails to start if this timeout expires.Unt is in Seconds.Default is  60
    j2ee/ms/reconnectTimeout
    (jstartup/wait_for_reconnect)
    Specifies the timeout for the reconnecting to the message server.The AS Java instance shuts down when this timeout expires.Unt is inSeconds.Default is  3600 (one hour)
    Thanks

  • Tnsnames configuration for RAC and dataguard

    Hi everyone,
    I have an environment with RAC and dataguard (production is RAC, standby is single instance) and I was wondering what is the best way to configure the clients (since I have quite a few and I don't want to change their tnsnames if I need to failover to the standby database).
    Now, I need to have both RAC nodes of course, the question is what I should do with the standby...
    The problems are:
    1. If I add the standby as another address, 1/3 of the connections will get to it and I don't think it's a good idea
    2. I can disable the load_balance, but then all connections will go to the first node's listener
    3. After a failover, if the RAC nodes are down, it will take a long time to connect (the servers will not respond and the client will wait for timeout if it tries to connect to the RAC nodes first, only after the timeout it will try the standby and succeed)
    Any ideas and suggestions will be appreciated.
    Thanks,
    Liron

    Hi Robert,
    I agree that the standby should be up, but you have to admit that if it is down it should not delay connections to the primary...
    About the DNS, it's not that I don't trust the SA, but this is an environment for a customer so it should be as independent as it can be. So the failover process will be easy and fast. I don't know if I can get DNS permissions, but that's a good idea...
    A question that can be derived from this:
    assuming that I use observer to have an automatic failover, how should I configure my TNS? If the standby will become the primary automatically, I have to configure the clients to connect to the activated standby automatically. With no DNS changes or anything manual.
    I guess in this case, my best option will be with LOAD_BALANCE=off, some of the clients will have RAC-NODE1 as first address and some will have RAC-NODE2, the standby will be the last address and we'll suffer the timeout if the primary will be down when connecting to the activated standby.
    If anyone has other ideas, it would be great.
    Thanks,
    Liron

  • Tnsname.ora for home PC

    I am not able to get the connectivity for my home PC. It throws the error:
    TNS error....
    It will be helpful if you send the steps to solve the isue.
    Kindly reply soon

    Hi Halton,
    For listening to music and internet radio any of our cards should be fine, the budget cards are for instance
    Sound Blaster Li've! 24-bit
    Audigy SE
    Audigy 2 Value
    Regarding disabling the onboard audio, I can't give you a set of specific instructions, as this can differ per motherboard. Usually you can get into the BIOS by holding the Delete key (when specified) during the boot process. The BIOS screen is usually a blue background with white text. Onboard audio could be listed as "AC97" (which you set to enable or disable). If your PC or motherboard came with a manual, it may have some detail on how to change this.
    CatMessage Edited by Catherina-CL on 02-3-2006 2:56 PM

  • ASM instance not shown in tnsnames.ora

    Hi,
    Currently I have an Oracle 11g database on linux with ASM installed, or at least that's what I can tell from querying v$logfile and v$datafile views. But in my tnsnames.ora and listner.ora I only see the db instance with no ASM instance. If I goto $ORACLE_BASE/admin, I see ASM and orcl. But under $ORACLE_BASE/admin/+ASM/pfile, I see no files.
    This is a vm image by the way. The database is running fine as far as i can tell. My question is why there is no ASM entries in the above files?
    Thanks for the help.

    ASM instance is not used by applications users. It is used by Oracle which can see it, so you do not need any entry in tnsnames.ora for ASM instance. Also ASM instance usage init.ora file from $ORACLE_HOME/dbs directory, so you do not see any file in admin/pfile directory.
    Regards

  • Tnsnames.ora General Question

    We are experiencing a problem that many different users seem to have many different versions of tnsnames.ora. We want to create our "gold" version and ensure that everyone uses the same one. Two questions:
    1. Is the "alias" that you give each connection case sensitive? For instance if I name one connection Prod is that the same as PROD?
    2. At another place I worked I was under the impression that most applications (PL/SQL Developer for sure) uses the Windows PATH environment variable to locate tnsnames.ora by going through all directories listed in the variable and using the first occurrence of tnsnames.ora that it found. Through a little testing and renaming and such I have found that this doesn't appear to be the case. We are using ADI, Discoverer, different development tools, etc and would like to avoid having more than one location where the file is stored. What is the best way around that or is there a way? I assume that it depends somewhat on each application.
    Thanks in advance for the help!

    PL/SQL Developer Help->Support Info TNS Names tab shows that C:\oracle\ora92\network\admin\tnsnames.ora is used as my tnsnames.ora for the application. I don't have an ORA_HOME environment variable. So where is it coming from? The path above is in my PATH variable.
    So it is different for every application?
    I don't have TNS_ADMIN environment variable either.
    Sorry for the dumb questions. I just want to be 100% clear.
    Message was edited by:
    mateoc15

  • Use of tnsnames.ora

    Hi,
    Pls help me..
    i want to know the use of **tnsnames.ora for oracle developer and also about listener.ora**
    pls let me known clearly..
    advance thanks....

    Welcome to the forums.
    This is not a SQL or PL/SQL topic, is it? Please choose forum for your product/topic wisely.
    What you ask about is very well documented in the Net Services Reference for your version (of Database).
    http://www.oracle.com/pls/db112/portal.portal_db?selected=4&frame=#network_management
    Note that reading the documentation - after learning how to find and navigate it - is best not avoided and highly recommended (to say the least), when working with Oracle products.

  • Can't find tnsnames.ora

    Hi,
    I install Instant Client on Linux using rpm. I need to edit the tnsnames.ora, but I can't find it.
    Can I copy one instance of tnsnames.ora and set TNS_ADMIN=<the path of tnsname.ora directory> as and enviornment variable on your client machine?
    Thank you

    No tnsnames.ora is included with Instant Client, you have to create (or copy, as you do) your own.
    You did the right thing, TNS_ADMIN must point to the directory containing tnsnames.ora.
    If you have an sqlnet.ora file, it must be in the same directory.
    Yours,
    Laurenz Albe

  • Can't srvctl command write tnsnames.ora file?

    Hi,
    I use srvctl to create a new service correctly, but I find the information of this service isn't written into tnsnames.ora file, it means, user can't connect database by directly using this service name, it's very stranger, who can tell me how to use srvctl to create a service and ensuer the information about this service can be correctly written into tnsnames.ora file?
    #srvctl add service -d mm -s mx -r node1 -a node2.

    Did you check tnsnames.ora for any new entries?
    Yes,There are not any new entries for the new service I just created.
    Check the command reference again, there is a flag to display "sample tns entries"
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm#i1008779
    I check that documentation, and I can use that command to run in my RAC environment, the returned result is
    Example client-side TNS entry for service mx:
    mx = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db_vip)(PORT=dedicated_port
    ))(CONNECT_DATA=(SERVICE_NAME=mx)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC
    How to use this service in client or our application, must we manullay configure tnsnames.ora file?
    BRs./Vinson

  • TNSNAMES.ora et HOSTS file on windows

    Hi,
    in TNSNAMES.ora for host field I put correct IP adresse.
    In hosts file of Windows I have defined an alias for the same host with wrong IP adresse. Then I can not connect to DB and I have TNS-12541 error.
    Then I put the correct adresse for host alias in hosts file. Everything is OK and I can connect to DB
    Is -it normal ? Why does not ORACLE use TNSNAMES.ora and it looks in hosts file ?
    Do you have any explanation ?
    Many thanks.

    check address in listener.ora and tnsnames.ora
    Try to connect with ip address.
    host file is used for address resolving.
    Regards

  • Problem with address names in tnsnames.ora

    ORACLE 9.2.0.7 (Sun Solaris 9, server host name is sol09 & c-name is sol10.xyz.com)
    ORACLE 11g (Sun Solaris 10, server host name is sol10 & c-name is sol10.xyz.com)
    Don't know why some address names from tnsnames.ora are working and some are not working,for all the below i have given the same host name , port, and sid
    <addressname> =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = <hostname>)(Port = <port>))
    (CONNECT_DATA =
    (SERVICE_NAME = <sid>)
    tnsnames.ora
    sol10.xyz.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
    (CONNECT_DATA = DEDICATED)
    (SERVICE_NAME = ora11g)
    ora11g =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
    (CONNECT_DATA = DEDICATED)
    (SERVICE_NAME = ora11g)
    ora11g.sol10 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
    (CONNECT_DATA = DEDICATED)
    (SERVICE_NAME = ora11g)
    rajesh =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
    (CONNECT_DATA = DEDICATED)
    (SERVICE_NAME = ora11g)
    sol10.rajesh =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = sol10.xyz.com)(Port = 1521))
    (CONNECT_DATA = DEDICATED)
    (SERVICE_NAME = ora11g)
    sqlnet.ora
    NAMES.DEFAULT_DOMAIN = xyz.com
    NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
    TNS PING results on the server sol09 where oracle client 9.2.0.7 is installed in
    tnsping sol10.xyz.com -> success
    tnsping ora11g -> Fail (TNS-03505: Failed to resolve name)
    tnsping ora11g.sol10 -> success
    tnsping rajesh -> Fail (TNS-03505: Failed to resolve name)
    tnsping rajesh.sol10 -> successFrom above results, the following names for address names are working -> sol10.xyz.com, ora11g.sol10, sol10.rajesh, (anything that has the host name sol10),
    if i give the address names as ora11g, or rajesh , its not working, the tnsping is failing. getting TNS-03505: Failed to resolve name error.
    Its a strange behavior, not able to figure it our why this is behaving like this. did not found a reason for it. Am I missing anything? Can Any one help me please.....
    Edited by: user567722 on Feb 11, 2011 9:07 AM

    It usually boils down to this:
    When, on the server, you type 'lsnrctl status', you get a list of service names.
    The service name must be the thing found in the (SERVICE_NAME = ?????) clause.
    When you type "tnsping abc", the system notices there is no 'domain' to the 'abc' so it checks in sqlnet.ora - if there is a default_domain, it appends that to the abc to get abc.domain. It then looks up the result as the left side of an entry in tnsnames.ora.
    So in your case, since sqlnet.ora appends 'xyz.com' to any alias that does not include a period. Your comment was:
    From above results, the following names for address names are working -> sol10.xyz.com, ora11g.sol10, sol10.rajesh,(anything that has the host name sol10),
    if i give the address names as ora11g, or rajesh , its not working, the tnsping is failing. getting TNS-03505: Failed to resolve name error.
    and, lo and behold, the ones that pass have a 'domain'. But ora11g and rajesh do not have a domain and the system is attempting to look up ora11g.xyz.com and rajesh.xyz.com, neither of which I see in the tnsnames.ora
    Edited by: Hans Forbrich on Feb 11, 2011 10:47 AM

Maybe you are looking for

  • Creating new logical ports for WSDL with several port types not working

    Hi all, I am trying to integrate some BODS webservice into the BPM. I am using CE 7.2 Kernel Version:     7.20.3710. When I am trying to assign a provider system in the application configuration I get following error: The provider system successfully

  • Unable to access public folders on Exchange 2007 when user mailbox is on Exchange 2013

    Hi I have coexistence with Exchange 2007 and Exchange 2013. I've moved a mailbox to Exchange 2013 and now cannot view the public folders on Exchange 2007. The error message I get is "could not connect to the public folder server. microsoft exchange i

  • Page error when clicking on #hashtag in feed

    I've got an issue where if I click on a hashtag in a site feed to see the conversations, I get the below error.  I'm not aware of any special permissions needed?

  • Language Conversion & related Calculations.

    Greetings, 1) If the data is Arabic can we perform the calculation on Arabic numbers & generate charts too, how well OBIEE supports this. 2) Unlike english, arabic is right to left.. Any possibility of doing this too, any documents/blogs for help? Re

  • Corrupted file names in "iTunes Music Library.xml"

    I have 7,500 songs in my library (iTunes 7.3.2). All the MP3s live on an external hard drive. Yesterday I tried to sync to my iPod and I noticed hundreds of 'file couldn't be found' errors. I checked in iTunes and loads of songs wouldn't play when I