Duplicate entries in TNSNAMES.ORA

Hi,
Is there a bearing or issue if i have duplicate names in TNSNAMES.ORA?
Thanks

I don't see any duplication, what I see it is ambiguous and could make errors. Please fix it.Thanks,
I am actually auditing client's tnsnames.ora. And i found some ambigiuous and duplicate entries.
I am not allowed to fix any but to report only.
Here is sample of duplicate and ambiguous entries.
PROD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = abc.phil.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD1)
PROD2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xyz.phil.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD2)
PROD2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = def.phil.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD2)
PROD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = abc.phil.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD1)
)Actually there are more that 50 entry names thats why they find it hard to check.
Thanks
Edited by: 843228 on Apr 5, 2011 4:24 AM

Similar Messages

  • How to deactivate an entry in tnsnames.ora file

    Hi all,
    I am working with Oracle 10g enterprise edition. I have a data source named with DEVDATA which should not be affected while I am working on my project. Usually, I will add DEVDATA entry in tnsname.ora file if I want to use it and I will remove that entry from tnsnames.ora file in order to protect that data source. It is very laborious process each time when I want to add or remove that entry. Do we have any mean such a way that I can switch between the two options. Currently, I have a desktop shortcut to tnsnames.ora file so that I can add or remove that entry when ever I want. Can we comment out that entry. Please suggest me.
    I hope this is the right place to fire this question. If not, direct me. Thanks in advance.
    Regards,
    Kumar.

    [email protected] wrote:
    Hi all,
    Thanks for your replays. As you said we can comment out lines with '#'. But, I am looking for commenting whole entry at a time. Can any one tell me how to comment out whole entry/paragraph. Is there any oracle utility by which we can deactivate the data source. Please suggest. Thank you.
    Regards,
    Kumar.As others have said, either comment out each line of the entry, or have two tnsnames files that you rename as needed. But really, how often do you make the swap that commenting/uncommenting about five lines of code is such a burden?

  • How to make SAS Server or datasets entry in tnsnames.ora

    Hi,
    I want to make an entry in tnsnames.ora for SAS Server or SAS datasets.
    Can anybody tell me what all attributes is requried?
    Regards,
    Vikas

    [email protected] wrote:
    Hi all,
    Thanks for your replays. As you said we can comment out lines with '#'. But, I am looking for commenting whole entry at a time. Can any one tell me how to comment out whole entry/paragraph. Is there any oracle utility by which we can deactivate the data source. Please suggest. Thank you.
    Regards,
    Kumar.As others have said, either comment out each line of the entry, or have two tnsnames files that you rename as needed. But really, how often do you make the swap that commenting/uncommenting about five lines of code is such a burden?

  • How to add an entry to TNSNAMES.ORA?

    Hello,
    if I add the following entry to the TNSNAMES.ORA:
    test1_10.121.34.56 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.34.56)(PORT = 1521))
    (CONNECT_DATA =
    (SID = test1)
    (SERVER = DEDICATED)
    how could I activate it please without rebooting?
    I'm using Oracle 9i Release 9.2.0.8.0 at CentOS 4.7
    Linux machine (which is compatible to RHEL 4.7).
    Thank you
    Alex

    Hello all, thank you for your support.
    Could we please start from the beginning?
    (and I'll use the real IP addresses this time, sorry)
    {color:#0000ff}oracle@ablora01:admin&gt; <strong>host ablora01.internal.XXX.com</strong>
    ablora01.internal.XXX.com has address 10.121.42.100
    {color}
    I have neither sqlnet.ora nor listener.ora and
    I have the following 2 entries in my tnsnames.ora:
    {color:#0000ff}oracle@ablora01:admin&gt; <strong>ll /abl/apps/oracle/9.2/network/admin/</strong>
    -rw-r--r-- 1 oracle oinstall 825 Jul 26 2003 libnk59.def
    drwxr-xr-x 2 oracle oinstall 4096 Nov 5 16:25 samples
    -rw-r--r-- 1 oracle oinstall 130 Mar 18 2002 shrept.lst
    -rw-r--r-- 1 oracle oinstall 24 Aug 7 2000 snmp_ro.ora
    -rw-r--r-- 1 oracle oinstall 717 Nov 5 17:15 sqlnet.log
    -rw-r--r-- 1 oracle oinstall 756 Nov 5 17:08 tnsnames.ora
    oracle@ablora01:admin&gt; <strong>cat /abl/apps/oracle/9.2/network/admin/tnsnames.ora</strong>
    # TNSNAMES.ORA Network Configuration File: /abl/apps/oracle/9.2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TEST1_10.121.42.81 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.81)(PORT = 1521))
    (CONNECT_DATA =
    (SID = test1)
    (SERVER = DEDICATED)
    BOCHUM_10.121.42.100 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.100)(PORT = 1521))
    (CONNECT_DATA =
    (SID = BOCHUM)
    (SERVER = DEDICATED)
    {color}
    When I try to tnsping the first entry it works:
    {color:#339966}oracle@ablora01:admin&gt;<strong> tnsping BOCHUM_10.121.42.100</strong>
    TNS Ping Utility for Linux: Version 9.2.0.8.0 - Production on 05-NOV-2008 17:19:34
    Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.100)(PORT = 1521))) (CONNECT_DATA = (SID = BOCHUM) (SERVER = DEDICATED)))
    <strong>OK (0 msec)</strong>
    {color}
    When I try to tnsping the 2nd entry it fails:
    {color:#ff0000}oracle@ablora01:admin&gt; <strong>tnsping TEST1_10.121.42.81</strong>
    TNS Ping Utility for Linux: Version 9.2.0.8.0 - Production on 05-NOV-2008 17:20:21
    Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.121.42.81)(PORT = 1521))) (CONNECT_DATA = (SID = test1) (SERVER = DEDICATED)))
    <strong>TNS-12541: TNS:no listener</strong>{color}
    When I look at the listener I get:
    {color:#339966}oracle@ablora01:admin&gt; <strong>lsnrctl status</strong>
    LSNRCTL for Linux: Version 9.2.0.8.0 - Production on 05-NOV-2008 17:21:55
    Copyright (c) 1991, 2006, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 9.2.0.8.0 - Production
    Start Date 04-NOV-2008 17:35:04
    Uptime 0 days 23 hr. 46 min. 50 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Log File /abl/apps/oracle/9.2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ablora01.internal.XXX.com)(PORT=1521)))
    Services Summary...
    Service "BOCHUM" has 1 instance(s).
    Instance "BOCHUM", status READY, has 1 handler(s) for this service...
    Service "test1" has 1 instance(s).
    <strong>Instance "test1", status READY, has 1 handler(s) for this service...</strong>
    Service "test1XDB" has 1 instance(s).
    Instance "test1", status READY, has 1 handler(s) for this service...
    The command completed successfully{color}
    When I try sqlnet it first fails and I have to reenter password:
    {color:#339966}{color:#ff0000}oracle@ablora01:admin&gt; <strong>sqlplus scott/tiger@TEST1_10.121.42.81</strong>
    SQL*Plus: Release 9.2.0.8.0 - Production on Wed Nov 5 17:10:42 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    {color:#ff0000}ERROR:
    {color}<strong>{color:#ff0000}ORA-12541: TNS:no listener
    {color}</strong>{color}
    {color:#ff0000}{color:#ff0000}Enter user-name: scott
    Enter password:{color}
    Connected to:
    Oracle9i Release 9.2.0.8.0 - Production
    JServer Release 9.2.0.8.0 - Production
    SQL&gt; select * from tab;
    TNAME TABTYPE CLUSTERID
    BONUS TABLE
    DEPT TABLE
    EMP TABLE
    SALGRADE TABLE
    {color}
    Do you please know, why it complains about the missing listener?
    And my actual target is to allow a program from 10.121.42.81
    to connect to the "test1" instance.
    Regards
    Alex
    Edited by: user10507116 on Nov 5, 2008 12:29 PM

  • Limit on number of TNSNAMES.ORA entries ?

    I am using SQL Dev 1.2.1.32.13 and connect to our databases via entries in TNSNAMES.ORA. Is there some limit on the number of TNSNAMES.ORA entries that SQL Dev can list when using the TNS connection type to create a new connection ? I seem to be able to list 39 of our list of databases in TNSNAMES.ORA. I haven't counted them all but I guess the full list has somewhere in the region of 60/70 entries.
    Chris

    Thanks, the offending bit of TNSNAMES.ORA is shown below, once this was straightened out SQL Dev found all the remaining database entries:
    # ICIS_CST.WORLD =
    ...# (DESCRIPTION =
    .....# (ADDRESS_LIST =
    ........# (ADDRESS =
    ...........# (COMMUNITY = TCP.world)
    ...........# (PROTOCOL = TCP)
    ...........# (HOST = xx.xxxx.xxx.xxx)
    ...........# (PORT = NNNN)
    ...# (CONNECT_DATA =
    .....# (SID = ICISCST)
    (where ... = spaces)
    Corrected version:
    # ICIS_CST.WORLD =
    # (DESCRIPTION =
    # (ADDRESS_LIST =
    # (ADDRESS =
    # (COMMUNITY = TCP.world)
    # (PROTOCOL = TCP)
    # (HOST = xx.xxxx.xxx)
    # (PORT = NNNN)
    # (CONNECT_DATA =
    # (SID = ICISCST)
    Thanks
    Chris
    Message was edited by:
    chrism5

  • Oracle 8i clients, inconsistent handling of tnsnames.ora (ORA-06401 gotcha)

    This is more of a bug report / oddity declaration than a real problem, though it was a pain in the butt to nail down. I post it here for the benefit of anyone else who may run into it down the road.
    Using the linux sqlplus client, I kept getting consistent failures connecting to one of a dozen db's, but tests with the (java) netasst client worked fine. After various debugging of other potential causes, it came down to strace'ing the sqlplus client, and noting that it was attempting to connect to the wrong host, despite what was specified on the command line.
    What we identified as the most probable cause:
    The routines that load and parse the tnsnames.ora file differ between the linux and java clients, with the java client being more tolerant/robust. The tnsnames.ora file I'd been supplied with had come from a fellow user's Win32 machine, and had been edited there, which probably included a couple ^M's or other non-visible characters within the file.
    The solution (at least, what I did):
    Load the tnsnames.ora file with netasst, and save it again with netasst. Netasst wrote the file in a manner that sqlplus could read accurately, and I got to go have a beer.
    - billn

    Hi Fredrik,
    You r right. But I have its entry in tnsnames.ora file. The entry looks like this -
    My_Service_Name.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Server = Computer_Name_of_Server_having_Ora8i)
    (Host = IP_Add_of_Server_having_Ora8i)
    (Port = 1521)
    (Pipe = ORAPIPE)
    (CONNECT_DATA = (SID = ORCL)
    The same entry exists in the tnsnames.ora file on the local PCs (same office where the Oracle 8i Server is present) at Site 1 and these PCs connect the server without any problem.
    Thanks
    Lokesh

  • SQL developer cannot see connection info from tnsnames.ora file

    Greetings All,
    I have been using sql developer for a while. Currently on 3.0.04.34.
    I have 16 database connections.
    Everything was working fine until yesterday.
    Today when I tried to connect to a database from the list of connections I am getting following error:
    Invalid connection information specified. Verify url format for specified driver.
    When I pull up the property for this connection -connection type is still TNS, Netwrok Alias is now greyed out and what was in Netwrok Alias has shifted to Connect Identifier.
    When I try to create a new connection I do not see entry from tnsnames.ora file for the databse I am trying to connect to in the Network Alias drop down list.
    I can connect to this database from sqlplus.
    Has anyone seen this behavior? Does any one know the fix for this?
    Thanks.

    Hi,
    Maybe your preference settings got corrupted, or the Tnsnames.ora file got moved to somewhere SQL Developer can't find it.
    Are you using either:
    1. Tools|Preferences|Database|Advanced|Tnsnames Directory, or a
    2. TNS_ADMIN environment variable
    to point to your Tnsnames? Having one of those should enable the Network Alias drop-down list to get populated. Otherwise, if the values moved to Connection Identifier are correct, then you won't be to connect in that mode without also having an Oracle client installed with an 11.1 JDBC thick driver (ocijdbc11.dll).
    If there is no issue with the Tnsnames. ora location, it might be a good idea to use Export Connections to make a backup of your connections. Then you can try deleting the connections from SQL Developer and re-importing them. Even if that doesn't fix the problem, you should be no worse off.
    Regards,
    Gary
    SQL Developer Team

  • 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

  • Can't change tnsnames.ora

    Hi Everybody,
    Am using 10gXE , while trying to add new entry to tnsnames.ora or init.ora it throws a exception that don't have enough privellege.Am having the database in my local system.How to handle the sitution .please help.
    Thanks

    Well, XE is not certified against Vista.
    http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm
    So you need to download the edition meant for Vista from here...
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html

  • ODBC Driver needs TNSNAMES.ORA unlike MS Driver which allows full qualified connect?

    We are looking at moving from using the MS ODBC/OLEDB providers for Oracle (contained in MDAC 2.7) to Oracle's own 8i/9i ODBC driver & OLEDB provider (because we need UNICODE support, which is lacking in the MS drivers).
    For our 3-tier application, we build fully qualified ODBC/OLEDB dynamic connection strings at run-time (for DB2, ORACLE and SQL_SERVER) and pass these connections string around between tiers of our app. Provided the client PC has the basic connectivity for the necessary RDBMS platform, the connection string works.
    The MS Drivers for ORACLE enable you to specify a fully qualified string in the SERVER argument like so:
    SERVER=(DESCRIPTION=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=<HostName>)(Port=<PortNumber>))(CONNECT_DATA=(SID=<SID>)))
    So does the ORACLE OLEDB provider.
    However, I can't get the ORACLE ODBC driver (9.0.0) driver to accept this using the DBQ argument (the equivalent of SERVER=). I can only get it to work if I make an entry in TNSNAMES.ORA and then say DBQ=<TNSNAMES.ORA Alias>, which is useless to us because of our "dynamic" requirements; we can't go around to every client in advance and update the TNSNAMES.ORA file because we do not which clients will want to access which database, or when.
    Has anybody managed to get fully qualified TNS strings to work with the 8i/9i Oracle driver?
    Alastair

    My understanding from looking into this a while ago was that this used to work, but stopped working in some version of the driver. If you search this forum, I'm reasonably sure there will be a thread on this that goes into more detail than I currently remember.
    I don't recall whether the most recent version of the Oracle ODBC driver fixes this bug. I would strongly suggest downloading an updated driver from OTN to test for yourself. If this is still a bug in the most recent version of the driver, there ought to be a TAR opened in Metalink on it. Someone may have posted a workaround or an estimate of when this bug will be fixed.
    Justin

  • 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

  • Must PMON use tnsnames.ora to locate none-defualt listener?

    Hi,
    I just want to confirm this because it is said tnsnames.ora only used for client. So I am a little confused by this usage.
    Please give some explanation about this.
    Thanks in advance.
    Br
    Martin

    tqma wrote:
    Hi,
    I notice this, "Clients and database servers (that are clients of other database servers) use the net service name when making a connection with an application."
    The statement also tells me that tnsnames.ora only is used for client role.
    Ok, my question comes from these operations;
    1. I modify the listener.ora, adding a new none-default listener, such as on port 1899.
    2. When I want to register an instance to this new listener by statements of "alter system set local_listener=...; alter system register;", it fails.
    More details, for example, I add these codes in listener.ora
    TXT_LIS=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fztxt)(PORT = 1525))
    Then I issue command "alter system set local_listener=txt_lis;". This command will fail.
    I need to add this in tnsnames.ora; "Txt_lis=(ADDRESS = (PROTOCOL = TCP)(HOST = fztxt)(PORT = 1525))";
    After adding the entry in tnsnames.ora, the problem is solved. When I google this, it's said PMON needs tnsnames.ora to do name resolution.
    I think PMON is a server process. So I ask if tnsnames.ora is necessary for server side in this circumstance.Since it is contacting the listener, it is acting in client role at that point.
    OK, maybe that's splitting a hair a bit to fine ...
    I'd say OK, there is one single, not often used, time when a server process uses tnsnames. But 99.999999% of the time, when people are trying to debug connection problems and can't keep straight in their mind the difference - in location and function - between client and server processes . . . it's true enough to tell them the tnsnames is used only by client processes.
    >
    Br Martin
    Edited by: tqma on May 25, 2011 10:10 AM
    Edited by: tqma on May 25, 2011 10:13 AM

  • 1.2.0 reads TNSNAMES.ORA file multiple times and duplicates values in Alias

    Since upgrading to 1.2.0.29.98 (clean install on Win XP SP 2), I have noticed that SQL Developer appears to be reading the TNSNAMES.ORA file multiple times. This results in the Network Alias pop-list on the TNS connection type to have duplicate values, although the number of duplicates for each entry varies widely - from four for the least that I saw and 252 for the most (assuming I counted that right :) ). We have approximately 270 entries in our TNSNAMES.ORA and the first entry in the file appears in the Network Alias list four times and the last entry in the file appears in the list 48 times.
    To be honest, I switched to Basic JDBC connections with 1.1 and only noticed the problem because of some network performance issues - I thought that SQL Developer had hung and I switched on the debugging and could see that it was looping through the TNSNAMES.ORA file. Now that the network performance issues have been resolved, it still takes a little while to open the new connection window, but it is liveable, so I don't know whether the problem is 1.2 specific or not.

    Sue,
    I assume from a bit of testing, that "each tns file on the system" means each file in the TNS_ADMIN location that starts with TNSNAMES.ORA.
    I set my TNS_ADMIN to a local location and copied the current TNSNAMES.ORA from the network location (and chopped it down to a handful of entries). When I restarted SQL Developer I only had a single copy of each alias. If I copied TNSNAMES.ORA to "Copy of TNSNAMES.ORA" I still only had a single copy of each alias. If I copied TNSNAMES.ORA to TNSNAMES.ORA.TXT I then had two copies of each alias.
    Unfortunately, I don't have any say in the maintenance of the network TNS_ADMIN location and it has almost 200 backup copies of the tns file, typically named TNSNAMES.ORA.YYYYMMDD.
    My TNS_ADMIN setting is done as a Windows environment variable. I do not have any TNS_ADMIN setting in my registry.

  • Multiple entries for a single Host in tnsnames.ora

    I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
    The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
    I need to know if this would cause conflicts or not?
    PYRPROD.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
        (CONNECT_DATA =
          (SID = pyrp1)
    PYRP1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
        (CONNECT_DATA =
          (SERVICE_NAME = pyrp1)

    TekWarrior wrote:
    I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
    The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
    I need to know if this would cause conflicts or not?
    PYRPROD.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
        (CONNECT_DATA =
          (SID = pyrp1)
    PYRP1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
        (CONNECT_DATA =
          (SERVICE_NAME = pyrp1)
    TekWarrior wrote:
    I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
    The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
    I need to know if this would cause conflicts or not?
    PYRPROD.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
        (CONNECT_DATA =
          (SID = pyrp1)
    PYRP1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
        (CONNECT_DATA =
          (SERVICE_NAME = pyrp1)
    It  won't cause any problem.

  • EM doesn't allow creation of tnsnames.ora entry with service name orcl11gr2

    Dear all,
    I'm trying to create a net service name with EM Database Control, via Net Services Administration link. On the service name field, under the 'Edit Net Service Name' screen, I key in orcl11gr2, and it throws the the following error:
    Validation Error
    Examine and correct the following errors, then retry the operation:
    Service Name - Specify a valid service name.
    I wonder what is the extra validation that EM is checking. I assume it's checking the number of characters to be 8 characters or less.
    Also, because of this extra validation that is in EM, all tnsnames.ora entry that have service name = orcl11gr2, I will not be able to use EM to modify them, as I will get the same above error.
    But why does Oracle implements this extra validation, when the same validation is not implemented on other Oracle tools? For instance:
    1. dbca allows me to create a database with instance_name greater than 8 characters, and the outcome of initialization parameters will be as follow:
    db_name=orcl11gr -- truncated to 8 characters
    instance_name=orcl11gr2
    db_unique_name=orcl11gr2
    service_names=orcl11gr2
    2. Oracle Net Manager supports service name of orcl11gr2. The created Net Service Name, I have no problem connecting to the database.
    3. Listener support orcl11gr2 service name
    I'm using Oracle 11g R2 (11.2.0.1.0) for Microsoft Windows (x64), running on Windows 7.

    For your reference, here is the bug numbner: 10278345.
    -Mughees

Maybe you are looking for