Missing alias of tnsnames.ora

today i discovered a problem with my tnsnames.ora file.
With my free old Toad, there is no way to define the "name" of the connection. I only have the network alias and the user. So i used alias names like customer-project(PRODUCTION) and customer-project(DEVELOPMENT) for old oracle 8i connections, where i can not use SQLDeveloper. What a bad idea...
Tnsping and SQL*Plus work fine, Toad works fine, but SQLDeveloper has a problem. Many (random?) network aliases are missing.
In the future i will avoid special characters in my network aliases, but its intersting to know that the common way to use tnsping to test tnsnames.ora will not be significant in combination with SQLDeveloper.

So the problem with SQL Developer is that it stops reading the tnsadmin.ora file when it gets to one of these tns aliases with ()s.
I was able to confirm this with 3.0EA1, trying both TEST(1) and "TEST(1)", and probably most significantly in being able to identify this, no error is reported in the UI, the console or the Loggnig Pane (even with logging set to finest).
However, I was unable to use either form of tns alias with ()s with either tnsping or sql*plus, which is what I thought you were saying worked for you. Unlike SQL Developer, though, I was able to use tnsping and sql*plus with tns aliases defined after the tns alias with ()s.
Your workaround of moving the tns aliases with ()s to the bottom of the file would avoid the problem in SQL Developer, but I would think it would be best if SQL Developer actually reported a warning/error in some way when it finds a tns alias it cannot interpret.
theFurryOne

Similar Messages

  • Missing dbsnmp, tnsname.ora and listener.ora

    I am puzzle with missing files:
    dbsnmp
    tnsname.ora
    listener.ora
    they arent in oracle_home/network/admin or
    /oracle_home/bin
    I have 8.1.5.0 dbserver and dbclient installed on
    rh6.0. the listener is working fine.
    OEM on NT system
    I need to have intelligent agent up and running.
    null

    Check this metalink note, it covers specific RAC issues:
    Configuration of Load Balancing and Transparent Application Failover
    Note:226880.1
    Werner

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

  • TNSNames.ora missing ?

    hi
    i installed Oracle 10g recently. and since i had a patch to install, i disbled installing the startup DB. after installation was successful, i then installed the patch and everything was successful.
    finally, since everything was successful, i invoked dbca and then started to created the first SID. here, when the creation started, immediately it gave an error saying that "ORA-12638:Credential retrieval failed". after googling, i found that its due to the parameter change in sqlnet.ora and hence i changed the SQLNET.AUTHENTICATION_SERVICES into (none). after this modification the database creation went smoothly and successfully i installed the db.
    the problem is this.
    i can access the database through sql*plus but when i tried to connect through sql navigator, it gave an error saying that the TNS name could not be resolved (something like this)
    then i tried to locate the TNSnames.ora file but i the only file in the Network/admin folder was the sqlnet.ora file and the samples folder. it seems that the tnsnames,ora and the other files are missing.
    can u please tell me what has happened and what can i do to get the TNS names.ora file back ??
    i am new to oracle so descriptions are highly accepted :)

    804253 wrote:
    Hi Rajesh,
    Good day to you.
    I have installed the Oracle Client 10g Release 2 in the VM environment.However I could not track the file TNSNames.ora
    I have tried the link provided by you, there is no Net Manager available to select. Do u have any other solutions to track the missing TNSNames.ora or alternative methods to configure TNSNames.ora?
    I'm new to Oracle and need your help.
    Thanks in advance.
    Warmest Regards,
    Sze KhinDid you try netca instead of netmgr?

  • 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

  • SQLDeveloper stubbornly refuses to see my tnsnames.ora changes...

    Win32 x86 32-bit running SQLDeveloper 2.1.1
    Previously, I had a tnsnames.ora file in place with several hundred entries. SQLDeveloper worked fine.
    Then I deleted that file and created a new tnsnames.ora file with only one entry.
    When I try to define a new Database Connection (Connection Type: TNS), I still see all the old entreis under Network Alias. (Yes, I've quit and restarted SQL Developer).
    I do not have a tnsnames.ora file in my home directory...in fact, the only one on the whole box lives in $ORACLE_HOME/network/admin (I searched ;-) I have setup a TNS_ADMIN environment variable...no change.
    I suspect there is something cached somewhere, but I did a registry search for "TNS" and didn't find it.
    I've since uninstalled the client and reinstalled it, and ran a fresh copy of SQLDeveloper...and it's still showing the old entries!
    What am I missing? Some preferences/properties cache file somewhere? Is there a way in SQLDeveloper to say "go refresh your list of tns entries"?

    Half progress...I found a small typo in the new tnsnames.ora that made it invalid. Fixing that made it load into SQL DEveloper and I was able to connect to the DBs in that tnsnames.ora.
    BUT...it still shows all the old entries. My new entries are mixed in alphabetically with the old entries, despite the fact that my old entries are no longer in the current tnsnames.ora.
    ...?

  • 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

  • Tnsnames.ora  is not working

    Hello,
    In my UAT envirnment we have 3 database on IBM AIX powerPC (64-bit) all are on 10.2.0.5.0
    My listener.ora and tnsnames.ora is at default location $ORACLE_HOME/network/admin/
    my listener is up
    $ lsnrctl status
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:56:08
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production
    Start Date 16-FEB-2011 18:51:16
    Uptime 15 days 17 hr. 4 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0.1/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0.1/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.8.17)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "preprod" has 1 instance(s).
    Instance "preprod", status UNKNOWN, has 1 handler(s) for this service...
    Service "uat" has 2 instance(s).
    Instance "uat", status UNKNOWN, has 1 handler(s) for this service...
    Instance "uat", status READY, has 1 handler(s) for this service...
    Service "uat_XPT" has 1 instance(s).
    Instance "uat", status READY, has 1 handler(s) for this service...
    Service "uattest" has 2 instance(s).
    Instance "uattest", status UNKNOWN, has 1 handler(s) for this service...
    Instance "uattest", status READY, has 1 handler(s) for this service...
    Service "uattest_XPT" has 1 instance(s).
    Instance "uattest", status READY, has 1 handler(s) for this service...
    The command completed successfully
    i can remotely connected to database but on the same server tnsping is showing following error
    $ tnsping UATTEST
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:59:09
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0.1/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = uat)))
    TNS-12535: TNS:operation timed out
    or some time
    ORA-12547: TNS: lost contact
    remotely all the users are connected to listener but on the same server the operation is failed
    I cant connect to other database using this tnsnames.ora file
    can any one help me
    regards
    Bhushan
    Edited by: user9176407 on Mar 3, 2011 10:38 PM

    user9176407 wrote:
    Thanks for the reply
    In My server 3 database are there there a database by service name uat also present there
    I check all the configuration the entries in my tnsnames.ora is as below
    PREPROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = preprod)
    UAT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = uat)
    UATTEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = uattest)
    conf_uat =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 172.16.8.17)
    (PORT = 1521)
    (CONNECT_DATA =
    (SERVICE_NAME = uat)
    (SID = uat)
    also my listner file entries are
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = uat)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (SID_DESC =
    (SID_NAME = uattest)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (SID_DESC =
    (SID_NAME = preprod)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    Ok, for your listener.ora file, above you have the SID_LIST and the LISTENER sections. But what is this that follows, below?
    >
    uat =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1528))
    SID_LIST_uat =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = configdb)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    which is working file
    but i have an problem in my tnsname.ora file

  • ORA-12545 error after changing the host name as IP address in Tnsnames.ora

    HI,
    I tried to connect PHP and oracle in Red Hat linux. I got error ORA-12545 after changing the host name as IPAddress in Tnsnames.ora file. In sqlnet.ora file also i have entry for tnsnames in Directory_Path. I struggled so much but i couldnt solve that. Please give me ur valuable suggestions....

    12545, 00000, "Connect failed because target host or object does not exist"
    // *Cause: The address specified is not valid, or the program being
    // connected to does not exist.
    // *Action: Ensure the ADDRESS parameters have been entered correctly; the
    // most likely incorrect parameter is the node name. Ensure that the
    // executable for the server exists (perhaps "oracle" is missing.)
    // If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
    // host name to a numeric IP address and try again.
    Seems you specified wrong IP address.

  • SQL Developer cannot import connections from a tnsnames.ora

    Just try sql develorper today, I saw it can import connections from a XML file or a .properties file? But has no an option to import from a tnsnames.ora ?
    I think this should be a basic function. Did I miss it?

    You didn't answer the questions:
    Would the connection name simply mirror the tns entry? I'm not sure that'd be correct since I frequently have multiple connections defined to 1 DB ( tns entry ) If you program this "connection collection" to be performed at first startup (asking the user if he wants to), before having added any connection, you have a 1:1 relation; problem solved.
    If you want it enabled even after adding connections, you can add arbitrary suffixes (_1, _2 and so on).
    What username would be defaulted?This is even easier: none.
    That's the least the end-user can add. He can even leave it blank if he really wants to be prompted on connecting.
    K.

  • SQL Developer not only reading tnsnames.ora

    Hello,
    I have found a very odd behaviour in SQL Developer 1.2 (running on Windows 2000):
    I have set TNS_ADMIN to point to a directory on a network drive residing on a Linux host. In this directory there were many backup files of tnsnames.ora created over time whose names followed the pattern tnsnames.ora.<timestamp> or tnsnames.bak or something similar. In SQL Developer in the "New database connection" dialog many TNS-entries showed up multiple times in the "Network alias" listbox. Only after removing all those backup files from the directory the behaviour of SQL Developer was correct and every entry only showed up once. I also found out that even when I moved the backup files to a new directory "tnsnames.bak" under the directory which TNS_ADMIN points to the entries showed up multiple times. After I renamed this directory to bak.tnsnames the behaviour was again correct. In my opinion SQL Developer should only read the file called tnsnames.ora and ignore all other files or directories with similar names.
    Kind regards,
    Christof Breker

    Various users reported this before.
    Maybe others use multiple files, but at least there should be the option to read just this one.
    Regards,
    Kristof

  • Problem with TNSNAMES.ORA (urgent)

    Dear Freinds,
    I am trying to run my Forms(6i) on the Form server , but as I try to login to the database to run the form I am getting an error 'ora-12154 : TNS could not resolve the service names' . I have checked the local TNSNAMES.ORA file and it has the entry for my Oracle SID , (my local machine registry has also been changed).
    Please tell me if I am missing to set anything .
    Thanks in advance .

    Hellow There,
    Go to services,i.e: Start -> Settings -> Control Panel -> Services.
    There is a service nam:
    OracleTNSNames80
    Right click on it and then click "START".
    If this could not solve, then go to Oracle Net8 and try to configure "Database location" and/or "Listener Location" and see what happen in the Listener node.
    If this did not help, you would go to www.Informit.com -> Free Library.
    and navigate through the Library to a free electronic book:"teach u r self Oracle8 in 21 days" .. good book.
    Regards
    Tariq Khalaf

  • TNSNAMES.ORA file

    Hi,
    I was given an oracle remote database connection details like the below:
    UMAC100 =
    (DESCRIPTION=
      (ADDRESS_LIST=
       (ADDRESS=
        (PROTOCOL=TCP)
        (HOST=abcd.efgh.com)
        (PORT=1521)
      (CONNECT_DATA=
       (SID=UMAC100)
    I use SQL Developer, and figured out the necessary details like connection name, port, hostname, etc from the above deatils and am able to connect.
    However when I try to connect to this remote database through sqlplus, it says TNS protocol adapter error.
    Through sqlplus, it connects when i give sqlplus db_name/[email protected]':1521/UMAC100'
    I was told to copy paste the above
    (DESCRIPTION=
      (ADDRESS_LIST=...........)) to my tns file.
    I tried locating my TNSnames.ora file and found one in D:\app\Unameit\product\11.2.0\client_1\network\admin\sample location. I tried pasting it here, but still, I am unable to connect.
    I googled, but am not able to figure out a solution.
    Can someone tell me what needs to be done step by step so that I am able to connect through sqlplus typing just the USERNAME/PASSWORD?

    Hello
    thanks for reply ...
    but i think some thing is missing ... there are only few directories under oracle home ...i installed oracle under /opt/app/oracle...
    is this correct... ? or
    $ cd /opt/app/oracle
    $ ls -ltr
    total 301312
    -rw-r--r-- 1 oracle oinstall 1996228 Jul 31 2009 ojdbc5.jar
    -rw-r--r-- 1 oracle oinstall 2111220 Jul 31 2009 ojdbc6.jar
    -rw-r--r-- 1 oracle oinstall 82983 Aug 2 2009 orai18n-mapping.jar
    -rw-r--r-- 1 oracle oinstall 1656280 Aug 2 2009 orai18n.jar
    -rw-r--r-- 1 oracle oinstall 37807 Aug 13 2009 xstreams.jar
    -rw-r--r-- 1 oracle oinstall 1296216 Aug 25 2009 libsqlplus.so
    -rwxr-xr-x 1 oracle oinstall 8904 Aug 25 2009 sqlplus
    -rw-r--r-- 1 oracle oinstall 1503424 Aug 25 2009 libsqlplusic.so
    -rw-r--r-- 1 oracle oinstall 7751832 Sep 4 2009 libnnz11.so
    -rw-r--r-- 1 oracle oinstall 110576 Sep 28 2009 libocijdbc11.so
    -rw-r--r-- 1 oracle oinstall 14072 Sep 28 2009 libheteroxa11.so
    -rw-r--r-- 1 oracle oinstall 753808 Nov 2 2009 libsqora.so.11.1
    -rw-r--r-- 1 oracle oinstall 45403016 Nov 2 2009 libclntsh.so.11.1
    -rw-r--r-- 1 oracle oinstall 1477416 Nov 2 2009 libocci.so.11.1
    -rw-r--r-- 1 oracle oinstall 89381056 Nov 2 2009 libociei.so
    -rwxr-xr-x 1 oracle oinstall 425712 Nov 2 2009 wrc
    -rwxr-xr-x 1 oracle oinstall 25680 Nov 2 2009 adrci
    -rw-r----- 1 oracle oinstall 63 May 12 18:23 oraInst.loc
    -rw-r--r-- 1 oracle oinstall 38 May 12 18:23 install.platform
    drwxr-xr-x 3 oracle oinstall 512 May 12 18:23 odbc
    drwxr-xr-x 2 oracle oinstall 512 May 12 18:23 light
    drwxrwx--- 13 oracle oinstall 512 May 12 18:23 inventory
    drwxrwx--- 5 oracle oinstall 512 May 12 18:23 oraInventory
    drwxr-xr-x 3 oracle oinstall 512 May 12 18:23 install
    drwxr-xr-x 3 oracle oinstall 512 May 12 18:28 cfgtoollogs
    $

  • 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

  • Odd issue in tnsnames.ora

    Hi guys,
    In my tnsnames.ora, there's a section as below:
    # Production
    QDBSP =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = qdb.lipt.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = qdb.amers.ime.tes.com)
          (SERVER = DEDICATED)
      )it works perfect, but after i changed local name QDBSP to QDBSP2, when I try to connect to it via sqlplus, I get this:
    ORA-12545: Connect failed because target host or object does not existwhen i change it back to QDBSP, it works, change to QDBSP2, fail again....
    has anyone been in the same situation? or any clues?
    many thanks.

    Hi,
    ORA-12545: Connect failed because target host or object does not existplease post the below output
    ping qdb.lipt.comit seems mentioned hostname is unreachable.
    ORA-12545:
         Connect failed because target host or object does not exist
    Cause:      The address specified is not valid, or the program being connected to does not exist.
    Action:      Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.

Maybe you are looking for