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

Similar Messages

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

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

  • List of TNS entries

    Hi,
    Oracle 10.2.0.1
    Windows xp
    Is there any dict view/dbms package, by which i may get all the names of TNS entries in tnsnames.ora from client side and/or server side ?
    Suppose tnsnames.ora is having following entries :
    db1,.....
    db2.....
    So, i just want to get the names of tns entries in tnsnames.ora.
    Thanks.

    Is there any dict view/dbms package, by which i may get all the names of TNS entries in tnsnames.ora from client side and/or server side ?
    Suppose tnsnames.ora is having following entries :
    db1,.....
    db2.....AFAIK, there are no parameters for TNS, If dataguard broker configured, then you can see in FAL parameter, Other than you can see listener name from "LOCAL_LISTENER". I dont think there would be such faciity to look all the tns entries names, As this is specific to OS how you connect.

  • How does autocfg choose what tns entries it generates, missing entries

    Hi,
    I have upgraded my test system from 12.0.6 to 12.1.3.
    My set up is I have 2 appltiers on serperate boxes. 1 for Web and 1 for Concurrent processing.
    When I from the system up I could not open concurrent request output or logfiles. The reason was there was no FNDFS/FNDSM tns entries generated on the Web Tier for that point to the CP Tier.
    When I look on the CP Tier there are no FNDFS/FNDSM tns entries generated that point to the Web Tier.
    I managed to get these generated by
    (1) In the context file for the Web Tier set a_admin_server to point to the CP Tier box.
    (2) In the context file for the CP Tier set a_admin_server to point to the Web Tier box.
    Then when I run autocfg it generates the TNS entries I need. But I need to know how it works as we plan to have more than 1 web Tier .
    Can anyone help.
    Regards
    Graham

    I'm still very curious about this.
    The short short of the above question is:
    When you incorrectly enter a password - does apple erase all the "wrong entries" from your running count when you enter it right, or is one wrong entry one permanent strike on your account until the next time that you enter a password wrong?

Maybe you are looking for

  • Cannot see emails in the inbox, but can send emails out.  why?

    I bought the Galaxy S III about 3 months ago, and have been struggling to set up my personal email (my own domain hosted by godaddy.com).  my gmail accounts sync up nicely from day 1. Today, a tech rep from Godaddy.com suggested that i turn off wi-fi

  • Blackcreen but works with external monitor

    Hi, I need help with my moms notebook its HP not sure about the model but it's definitely one of those old ones. so she was restarting her NB probabbly by taking the power cable off. Now the notebook wont load just blackscreen so I tried few usual st

  • Apps crash very often. System reboots.

    Hello, Problem is that applications very often crash. The most: Safari, iBooks, GoodReader, Numbers, Pages. App closes and the system returns to the main screen, not saving the changes that took place during use of the application. Very often when pd

  • TS3899 what are the email account settings for att.yahoo

    At the same time on the same day my iMac, iPhone and iPad all stopped sending and recieving email....I can connect to att web mail and get email but my mac products quick working....what gives?

  • LWAPP - client roaming - DHCP request

    I was thinking that by using WPA-PSK, client roaming producing a DHCP request when changing AP will not be sent by the controller to the DHCP server, which appears to be false. Wanting to know : does CCKM (with leap) could stop this behavior, elimina