RAC TNS Entry

Hi All ,
One of our distributed query is running slow.
On further analysys we found that as query switches between different instances , because of GCS waits its taking time.
If we connect to only single node , it is running well as there were no GCS waits.
So we can use single instance tnsnames entry to get the benefit , but if that instance is down we dont get benefit of RAC.
is there any tnsentry to achieve the following ...
Connect to Node 1 only as log as it is up and connect to Node 2 only in case Node 1 fails.
I remember something called preferred Node.
Thanks
Pramod Garre

I do not understand what is the problem with GCS waits. but to unswer your second part of the question here is what you do:
start dbca > "Oracle real splication clusterdatabase" > "services Management"> "you rac database"
then add database service <node1>p chhose prefered for 1 node and available for others taf policy BASIC.
save it. You shoud see service added and tns added as well.

Similar Messages

  • RAC TNS Entry for FAILOVER

    Hi DBAs,
    We have a 4 node RAC Database (10.2.0.4) on Solaris 5.10. Sometime for maintenance we brought 2 nodes down. And using a service (which include all the VIPs for all oracle instances) If I try to connect to the database, I get error TNS Service not available and after 3-4 tries it automatically connect.
    I have not specified the FAILOVER parameter in the TNSNAMES.ORA. Assuming the default value is FAILOVER=ON.
    Please suggest do I need to explicitly define the value for FAILOVER, if so what would be the appropriate value - FAILOVER=ON or FAILOVER=YES. Also what is the difference between FAILOVER=ON & FAILOVER=YES .
    Thanks
    -Samar-

    Hi Samar,
    Put the vip addresses on your tnsnames.ora as the sample bellow.
    ORCL =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = host2-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = host3-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = host4-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.com)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 10)
    (DELAY = 1)
    This video from Pythian by Alex Gorbachev will help you to clarify about vip addresses use http://www.pythian.com/news/2624/pythian-video-oracle-rac-why-vips
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • Not using TNS entries correctly

    SQLDeveloper Version 2.1.1.64. I have created TNS aliases to connect to individual RAC instances in my TNSNAMES.ORA file. From SQL*Plus, when I use the TNS alias to connect to a particular instance, I get connected to the correct one. When I use the same TNS alias with SQLDeveloper, it connects me randomly to any instance in the cluster.
    I have correctly defined the location of TNSNAMES.ORA file in the Preferences. I am specifying just one server name and SID in the TNS alias so there is no way that TNS entry can connect to any other instance. I have only one TNSNAMES.ORA file on the entire computer. Oracle client version 11.1.0.7. The TNS alias for each instance is unique in the TNSNAMES.ORA file.
    Any ideas on where SQLDeveloper is getting the wrong connection information from?
    Thanks...
    Arun Gupta

    Actually the driver used depends on the
    Tools -> Preferences -> Database -> Advanced -> Use OCI/Thick drivercheck-box; when you select TNS connection having this unchecked, SQLDeveloper parses your TNS file and then uses the Thin driver to connect.
    I guess since in your situation this does not behave as expected there may be a bug in the thin driver, or in SQLDeveloper interpretation of the TNS file, so try to check the property i mentioned and see if it works OK.

  • Tns Entries

    Hi All,
    DB version is 11.2.0.2. Could see in the tns entry as below
        (CONNECT_DATA =
          (SERVICE_NAME = ME)
         (FAILOVER_MODE =
            (TYPE = SELECT)
            (METHOD = BASIC)
            (RETRIES = 180)
            (DELAY = 5) ))
    )Was studying this document http://docs.oracle.com/cd/B28359_01/network.111/b28316/advcfg.htm in that 13.3.4 Failover_mode parameters
    1. Type - which is ideal settings for TNS entries is that type Session or Select . In sessions new session is automatically created in failover. Am not getting that type select where it says 'users with open cursors continue fetching on them after failure'?
    2. Retries & Delay - If retry is specified delay default to one second...so is that mentioning of delay is not required above?
    thanks,
    baskar.l

    ype - which is ideal settings for TNS entries is that type Session or Select . In sessions new session is automatically created in failover. Am not getting that type select where it says 'users with open cursors continue fetching on them after failure'?I am not sure about the "ideal" but the meaning of Select would be that using the same session state, RAC would be able to run your query , from the another node , from the same point where the session got disconnected on the first node. In other words, if on node 1 , your query fetched 50 rows from an output of 100 rows in total and session got disconnected at 51st row, after the failover, the query would continue from the 51st row only from node 2.
    Retries & Delay - If retry is specified delay default to one second...so is that mentioning of delay is not required above?After reading the doc it appears that either one of the two is needed, not both IMO.
    HTH
    Aman....

  • How to create tns entry

    hi member
    i have installled oracle 9i database and 10 g forms at my system in different drives of computer . but when i try to connect my forms with database i could not create connection between tables and forms.the error which displayed as tns could not resolve connection identifer i provide same username and password when it ask for database connection so plz help me in this regard .......thanks in advance

    Database Connecting string can be your DB Name or Net Service name.
    For example, in my tnsnames.ora, I have the following tns entries.
    TESTDB=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = XXX.XXX.XXX.XXX)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TESTDB)
    In the above entry, first line is the database connecting string i.e. TESTDB.
    First you need to try connecting to sqlplus for successful connection.
    C:\> tnsping testdb
    If you see the success message means you can easily connect to the Database.
    C:\> sqlplus scott/tiger@testdb
    Here your scott user will be connected to the TESTDB database.
    Regards,
    Sabdar Syed.
    http://sabdarsyed.blogspot.com

  • SQL Developer keeps pointing to old TNS entry  Version 2.1.1.64

    Hello,
    We are using SQL Developer and we just changed our database from host X to host Z. We changed the TNS entry to point to host z but Developer keeps pointing to host x. It seems the entry is cached. We tried deleting the connection and restarting the application. Still no luck. My only thought is that the connection is cached. if true can someone point me to the file that contains the connection info? And if not, can someone provide a alternative resolution to the issue?
    Thanks
    Rondale

    I agree with Turloch, I had a similar issue with SQL Developer 3. Even though I had the environment variable TNS_ADMIN, it basically ignored this variable and was referencing the first TNS_NAMES.ora file it found. I had to remove all copies except the one listed in my TNS_ADMIN variable before SQL Developer found the right one.
    It would be nice if the tool would check the TNS_ADMIN variable like other Oracle products do.
    Craig...
    Edited by: CraigB on Aug 31, 2011 11:56 AM

  • How to add tns entry in names server

    Hi,
    Can anyone tell us, How to add tns entry in names server
    Thanks

    In the Net Manager utility, in the left-hand pane left click Oracle Names Servers, left click on your nameserver.
    Click the "+" button in the upper left, that should be enough to get you started- sorry, all our 9i installs have gone away, can't exactly recall the nix X gui version of client program, but I think* its netmgr, should be in OH/bin.
    If you're running a java OEM console that cames with 9i clients, Net Manager is available on that little Butler tab.
    And for the command line version, running the namesctl utility- you can save a tns entry with the connect string and run it in a file, just like sqlplus, with an @filename:
    vi newtns.txt
    register newtns -d (DESCRIPTION=(ADDRESS_LIST=...(SERVICE_NAME=NEWTNS.MYCO)))
    $ namesctl
    @newtns.txt
    query newtns *
    reload -- nameserver sync
    query newtns *
    exit
    $ Edited by: clcarter on Jul 7, 2011 3:26 PM
    added cmdline version

  • Not able to connect remotely via TNS entry

    Hello,
    I need to do clone, so wanted to have remote connectivity to my test database. I brought the test database in nomount. Put the right entries in tnsnames.ora file of the same, yet when i login directly it shows it is in NOMOUNT but when remotely it shows connected to IDLE instance.
    Please help me out.
    Here is some excerpts:
    ==============
    oracle@x523:/oracle/app/oracle/product/10.2.0/db_3/network/admin> sqlplus sys/here2go@TRCN523 as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 9 03:17:59 2012
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to an idle instance.
    =======================
    oracle@x523:/oracle/app/oracle/product/10.2.0/db_3/network/admin> sqlplus "/as sysdba"
    INSTANCE_NAME STATUS
    TRCN523 STARTED
    Here is my TNS entry:
    ==============
    TRCN =
    (DESCRIPTION =
    (ENABLE = broken)
    (FAILOVER = ON)
    (LOAD_BALANCE = ON)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092))
    (CONNECT_DATA =
    # (SERVICE_NAME = TRCN.coat.com)
    (SERVICE_NAME = TRCN523)
    (FAILOVER_MODE = (TYPE = NONE))
    TRCN523 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    # (SERVICE_NAME = TRCN.coat.com)
    (SERVICE_NAME = TRCN523)
    (INSTANCE_NAME = TRCN523)
    NET_TRCN_X523 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092))
    ============
    Listener:
    =====
    SID_LIST_NET_TRCN_X523 =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_3)
    (SERVICE_NAME = TRCN.coat.com)
    (SID_NAME = TRCN523)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_3)
    (PROGRAM = extproc)
    ==========================================
    oracle@x523:/oracle/app/oracle/product/10.2.0/db_3/network/admin> tnsping TRCN523
    TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 09-AUG-2012 03:21:09
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = x523.coat.com)(PORT = 63092)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TRCN523) (INSTANCE_NAME = TRCN523)))
    OK (0 msec)

    Handle:      784786
    Status Level:      Newbie
    Registered:      Jul 27, 2010
    Total Posts:      211
    Total Questions:      81 (65 unresolved)
    Name      Learner
    Also Close your thread please

  • How to Connect Oracle Database without using TNS entry

    Hi,
    i need to connect Oracle Database server from my pc without using the TNS entry. How to do that?
    Regards,
    007

    You have marked the question as answered, so it means you can answer my questions:
    1.How do i check that i can make easy connect to the server or not, I mean is it configured on Server ?
    2.Can I make connection with easy connect without having Net Services software installed on the client ?
    3.What if I am not able to access sqlnet.ora ?
    4.Is there any difference in connect string, which is based upon OS for easy connect ?
    5.How do i use global database name, if it is configured ?
    6.What are pros and cons of using easy connect ?
    7....
    20....
    I think this are those 20 questions which John is talking about.
    Regards
    Girish Sharma

  • Data Services ORA-12154 - TNS - Entries o.k.!

    Hi Experts!
    There is a problem when executing a job:
    - Windows Server Enterprise 2007 Service Pack2
    - 64 - bit Operating - System (Business Objects Dataservices was installed in directory "C:\Programm Files (x86)" )
    - Oracle Client ist installed on Server and Client
    - all TNS - Entires are entered in tnsnames.ora - File (Client and Server)
    - Source: Oracle 9i
    - Target: Oracle 11g
    - Designer 12.2.2.3
    - JobServer 12.2.2.3
    - JobEngine 12.2.2.3
    - Repository 12.2.2.0000
    In Designer - Tool we are able to preview Data (Source and Target) in Client AND Server, so TNS - Entries should be correct (Client and Server). 
    We have installed a Designer on Client AND Server, the problem and the behaviour is the same on both sides.
    When executing the job this message appears:
    "OCI call <OCIServerAttach> for connection <BOHAI_PROD> failed: <ORA-12154: TNS:could not resolve the connect identifier
    specified>."
    A TNSPing for TNS - Entries is o.k.! (Source and Target) 
    Any Help?
    Thanks!

    Hi,
    I changed the Logon settings of the Data Services Windows - Service to "Local account".
    The problem is solved.
    Anyhow, can you tell me how to use TNS Listner Services. I don't konw this Service.
    Thank you very much!
    With kind regards!

  • Obtaining TNS entries from PL/SQL

    I read somewhere that one can get TNS entry definitions via PL/SQL.
    We currently develope/maintain a project on Oracle 9.2.0 which interconnects to at least 3 other projects running oracle instances. The problem here is that we have multiple development, testing, BC/DR and production instances to keep track of. and we need to know the dblink definitions that each of our instances connects to. Obviously we can get the tnsname of the dblink from "select * from all_db_links", but using tnsping returns the definition of that tnsentry from our local client (ugh). we need to be able to write a small stored function to query the tns definition from the server itself to ensure we have the correct definition relayed.
    Is this possible?

    Not really... not in a nice clean and robust way.
    PL/SQL itself does not have a command or standard package to enumurate the local list of TNS aliases in the tnames.ora file. And using UTL_FILE and parsing the tnsnames.ora file is not trivial.
    Question though is why use the tnsnames.ora file on the server in the first place? If you db connectivity and management is driven at application level, then dealing with the actual db connection data externally (in a flat file) is a problem. So don't. Deal with it inside Oracle itself.
    You can define a db link in Oracle using the actual connection string itself (which is what the TNS alias refers to).
    E.g.
    create database link orcl_test connect to scott identified by tiger using
    '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.0.1)(PORT=1527))) (CONNECT_DATA=(SID=orcl)(SERVER=shared)))';
    At application level you can control the type of connection ito service name,/SID, TAF, shared/dedicated and so on.
    Obviously there are pro's and con's both ways - using a tnsnames.ora file versus using the connection string directly. But in certain cases the pro's outweigh the con's.

  • How to manage TNS entry in the OID ?

    Hello,
    We are in our way to implement OID to replace multiple TNSNAME.ora files.
    We are looking for the adequate tool to manage TNS entries in the OID.
    Does anybody use a Web interface to manage such entry ? or the mandatory tool is Oracle Directory Manager ?
    Is there another tool ?
    Thank in Advance.
    Jerome.

    The tool you use to manage the tns entries in the OID is Net Manager.
    Once you have ldap defined in your sqlnet.ora
    NAMES.DIRECTORY_PATH = (LDAP, TNSNAMES)
    And a valid ldap.ora file
    DIRECTORY_SERVERS=(oidhost:389:636)
    DEFAULT_ADMIN_CONTEXT = "dc=company,dc=com"
    DIRECTORY_SERVER_TYPE = OID
    You will then see that the directory and it's service names are available for management in the same way that the local tnsnames.ora entries.
    Alan...

  • How to create TNS entry for db2 database?

    hi,
    I want to create a db2 database tns entry in tnsname.ora file. How do i create?
    thanks

    There seem to be several related threads about this concern.
    Creating dblink for db2 database
    How to create TNS entry for db2 database?
    How to create TNS entry for db2 database?

  • Tns entry on client machine for a physical standby!

    Hi all.
    i am working on 10gR2 on RHEL4.I have created a physical standby on the same host. The primary and the standby database has different sid as prod and prodsb
    can i have one tns entry on the client machine so that they can connect to the database even after teh switchover or failover??? or will they have to change the connection string while connecting to the database??

    Hi, you can use Oracle Transparent Failover, please review the next link for get more information.
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#sthref1278
    Please let me know if you have some doubt or comment about this.
    Regards.

  • Login Using tns entry takes more than one minute

    Hi all,
    I have created one 11g R2 database. I am trying to login to the instance and it works fine when I login using just the username and password. But when I try to login using tns entry its taking too much time to login. Also when I try to connect from a remote machine using Toad or any other client its getting timed out or takes too much time to login. Once I get connected everything works fine.
    The Database is installed on Rehat Enterprise Linux Server relase 5.3
    Regards
    Navas

    Hi,
    The output of tnsping is pasted below.
    tnsping IDMREPO
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 06-OCT-2010 12:37:53
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    /home/orarepo/app/orarepo/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = IDMREPO)))
    OK (0 msec)
    Regards
    Navas

Maybe you are looking for

  • Location of ASM data files

    Hii All, Can you please tell me how to find the location of data files configured/added using ASM? is it v$datafile or any other dictionary is there ? Regards, John

  • Where can I buy a Zen Touch

    Hi. I have been looking at the Zen touch for a wile now and am thinking of buying the 40GB model when it comes out. Today I went to Best Buy and Circuit City to look and test it out, but was disappointed to see that they don?t carry it yet? can anyon

  • Special Function in Output type for PO

    Hi Expetrs:    Can any please tell me how to write a code for a Purchase Order in the transmission medium "8" ie., Special Function and the PO Script output is converted to PDF file and it should be send to the server path location through FTP. Thank

  • How do you protect the content in a chm?

    Hello, I know some users have thought of some creative techniques for preventing content from being copied from a chm, spefically Pete Lee's JavaScript methods. However, I was wondering if anyone knew how to append a copyright statement when the cont

  • Multiple Signatures possible?

    Hello, new iPhone user here and I have looked for my answer but wasn't lucky. My question is: Can I have multiple signatures? I have my personal email, my game email and my work email on my iPhone. I would like to be able to choose which signature to