SQL Developer not only reading tnsnames.ora

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.

Similar Messages

  • SQL Developer can't see tnsnames.ora

    Hiya. I hope someone can help with this. I installed Oracle instant client (basic lite) on my new Windows 7 machine (32 bit) - yeah, I know Windows 7 is not supported, but my gut feeling is that this isn't the issue I'm having.
    I've put my tnsnames.ora file in the same folder as instant client (C:\program files\oracle\instantclient), have created a system environment variable TNS_ADMIN which points to that folder, and have added that folder to the system "path" environment variable. That should do it, right?
    When I try to create a new connection in SQL Developer, and change my connection type to "tns", I don't see any database connections.
    Troubleshooting ideas? Other ways to test that the needed Oracle files are installed properly?

    Here's how to debug where it's looking:

  • Urgent : Is there any c++ parsers available for reading tnsnames.ora

    I have to parse the tnsnames.ora and get the connection string , host name , instance name , port etc .. and store it in my local memory structure . Is there any c++ parsers available , which parses and gives the desired output or do i have write my own parser .

    You're right...the database connections work fine if I define them manually rather than reading them from the tnsnames.ora file.
    I was hoping to have many users running SQL Developer so using the tnsnames.ora file might save people's time and reduce the number of database connection-related support calls.
    If worse comes to worse, I can create an XML file to define the database connections. The only drawback to this is that we have an automated procedure to update people's tnsnames.ora whereas there is currently no way to keep the XML file up-to-date.

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

    Since upgrading to (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.

    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.

  • Developing without  Full client / tnsnames.ora

    I am trying to develop an OCI application using Borland C++ Builder. I want to deploy and develop using Instant Client 10G without tnsnames.ora file. I have 2 PCs - NT4 & XP.
    On the NT4 PC I had installed the full Oracle Client and was using the tnsnames.ora file and things were working fine. I've since uninstalled the full client and am now getting the "ORA-12154: TNS:could not resolve the connect identifier specified" error (using Instant Client)
    The XP box has never had the full client installed, does not have a tnsnames.ora file but works fine using the same code.
    I've been looking through this forum and note Justin Cave's comments that you can deploy but not develop using Instant Client but this seems to work fine on my XP box. (I am an Oracle novice so I could be missing something here).
    I have also checked the FAQ on connection strings and think I have got that correct (same code works on 1 PC and not the other) and don't think I've set the enviroment variables TNS_ADMIN or ORACLE_HOME on either machine.

    Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
    Anyway, I tried this and it worked fine for me (using 10204)
    DRIVER=Oracle in OraDb10g_home1
    set con = createobject("adodb.connection")
    con.open "filedsn=testfile;uid=scott;pwd=tiger;"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
    set con = createobject("adodb.connection")
    con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Hope it helps,

  • Sql Developer not reading right tnsnames.ora

    I have both a local 9iv2 and a 10xe (app_express) databases installed. Oracle home is set to ora92 and therefore should be reading the tnsnames.ora file in c:\oracle\ora92\network\admin. However, I recently used SQL Developer to connect to the 10xe database, and now all it reads is the tnsnames.ora file in the oraclexe\....\network\admin directory.
    Any suggestions as to how to get it to use the tnsnames.ora from the ora92 home again??
    The only solution I can think of now is to create one tnsnames.ora file with all the connections I need and copy it to each place where a tnsnames.ora file has been installed (ora92, ver 8 server, oraclexe, designer, forms/reports installs - etc.) Any other suggestions would be appreciated. I don't know why it is not reading from the specified home.

    This should help.
    Re: tns_admin

  • SQL Developer 3.2/4EA1 not fully reading TNSNAMES

    We are using both 3.2 and the 4EA1 versions, and have found that both are not fully reading the TNSNAMES file.
    In the TNSNAMES file, we have databases that are configured with either SID or SERVICENAME.
    It isn't excluding databases setup with either.
    Can anyone suggest what the issue might be?
    Russell H.

    This is just a shot in the dark, but have you checked your tnsnames file to see if anything besides the entry name (and commented lines) begins in column one?  Although sqlplus will usually parse such entries successfully, some of the other tools have had issues with them in the past... they seem to misparse the entry, which often messes up the processing of subsequent items.
    Here's a quick example, with spaces replaced by periods for readability:
    # good entry
    # bad entry
    If memory serves, only the entry name is actually supposed to begin in column 1... pretty sure I found that documented somewhere, back when I first encountered the issue.  So if this is indeed your problem, I suspect that the official verdict would be that your tnsnames file is bad and needs to be corrected.
    Again, this is just a wild guess.

  • TNS_ADMIN not respected, or how do I get sql developer to see my tnsnames

    When I installed sql developer at home with a 'static' tnsnames.ora file, sql-developer picked it up right away, and I was able to use the 'connect identifier' pull down menu.
    However, at work, all of developer's computers have a TNS_ADMIN registry set pointing to a network share. Sql developer fails to recognize that. The purpose of this is central administration of the file (changes happen at least once a month)
    Is there are a way to make it see our tnsnames.ora file? Is there are some kind of workaround (besides copying the file locally)

    Unfortunately, because SQL Developer is set up to allow an install without any local Oracle client, it is not wonderful at picking up some things from the local Oracle client when it is there - such as the TNS_ADMIN setting.
    Assuming you are on an Windows box, rather than having your TNS_ADMIN set in the HKEY_LOCAL_MACHINE\SOFTWARE\Oracle registry 'directory', you need to have a Windows environment variable set for TNS_ADMIN (it doesn't matter if this is a User environment variable or a System environment variable). I assume (but don't know) that on a Linux based version you need a Unix environment variable set.
    For example on Windows XP, right click on My Computer and select the Properties menu option. On that page, select the Advanced tab and then the Environment Variables button. Then click on the New button (in either the System or User section) and enter the variable name TNS_ADMIN and the variable value that you are using in the registry (ie z:\orant\network\admin).

  • JDBC-Connection in SQL-Developer via Connection-Manager gives ORA-12529

    Hi !
    This is a followup of this Thread: https://community.oracle.com/thread/3568462
    I have the same problem but I have ConnectionManager 11g ( , which doesn't know the setting for AUTHENTICATION_LEVEL=0
    And I have to use JDBC, so the OCI/Thick-driver is no option for me.
    The same error is raised when I use JDBC with Eclipse,...
    SQL-Plus over the Connection-Manager works without any problems.
    The ruleset of my cman.ora is:
    The error is:
    Listener refused the connection with the following error:
    ORA-12529, TNS:connect request rejected based on current filtering rules
    Anyone got jdbc-connections over ConnectionManager 11g+ running?

    Using Windows XP/Vista...
    After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
    When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
    All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
    Any suggestions/ideas?

  • Sql developer - not able to establish connection

    I have installed sql developer 3.2.2 and now I am trying to establish a connection with the database 'orcl' which I just created. But it is giving me a 'socket read timed out error' with vendor code 504. Please help. Thanks in advance.

    The output from 'lsnrctl status' is -
    C:\Users\Bits>lsnrctl status
    LSNRCTL for 64-bit Windows: Version - Production on 11-OCT-2013 22:59
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version - Produ
    Start Date                11-OCT-2013 10:18:43
    Uptime                    0 days 12 hr. 41 min. 38 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\Oracle\Bits\product\11.2.0\dbhome_1\network\admin\l
    Listener Log File         c:\oracle\bits\diag\tnslsnr\Bits-PC\listener\alert\log
    Listening Endpoints Summary...
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully.
    The output for 'tnsping orcl' is -
    C:\Users\Bits>tnsping orcl
    TNS Ping Utility for 64-bit Windows: Version - Production on 11-OCT-2
    013 23:04:28
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    OK (0 msec)
    The windows firewall is not working on my computer. Is that causing this issue?

  • Using Parameters in SQL-Query not only in where clauses

    I try to use Publisher parameters in the SQL Query from a Data Set.
    All of them have default values.
    So far, this is no problem, unless I try to use such a parameter value as an ordinary attribute value:
         case when (:pv_Group = 'no') then "DM15D_BETRIEBSTEIL"."BETR_TEIL"
                                            else :pv_some_Text end                                                                  as Betr_Teil,
         case when (:pv_Group = 'no') then "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM"
                                            else :pv_some_Text end                                                        as Suva_Nr,
         case when (:pv_Group = 'no') then "DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH"
                                            else sum("DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH") end      as Vollbesch
    from "GDWH05"
         "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM" in (:pv_nim100)
         fetch first 65001 rows ONLY
    The parameters 'pv_Group' and 'pv_nim100' are working fine. (when or where clauses)
    The parameter 'pv_some_Text' unfortunately not. (simple literals)
    When I try to validate the above SQL, I get the following Error:
    <font color="red">
    java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS. [nQSError: 46033] Datatype: 25 is not supported.
    After use a cast function:
    else CAST(:pv_some_Text AS CHARACTER)
    I get this ERROR:
    <font color="red">
    java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS. [nQSError: 19002] Incorrect use of parameters. The parameters used in CAST cannot be resolved without ambiguity.
    We use OBIEE on a Win64-System.
    Thank's for any help.

    Hi Alex,
    let's leave away any unnecessary details.
    This is the SQL, inserted in the window 'Edit Data Set' of BIP Data Model:
         '--1'     as Betr_Teil,
         '--2'      as Suva_Nr,
         sum("GDWH05"."DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH") as Vollbesch
    from "GDWH05"
         "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM" in ('122-4.4')
         fetch first 65001 rows ONLY
    Everything is fine when I click OK, the script goes back to the metadata.
    Let's try this script with bind values in ORACLE SQL Developer.
    This SQL is the physical part, found in the OBIEE-Log (Log level 5), except the bind values. Therefore we find, in the where clause, the join. In the logical sql, we don't have to join, because it's handled in the Common Enterprise Information Model (CEIM)
    sawith0 as
    sum(t39617.ris_vollbesch) as c1
    dm15d_betriebsteil t39455,
    dm15k_ris_fakten_pro_btt_jhr t39617
    t39455.id_betriebsteil = t39617.id_betriebsteil
    and t39455.suva_nr_form = '122-4.4'
    d1.c1 as c1,
    d1.c2 as c2,
    d1.c3 as c3
    :pv_some_text as c1,
    :pv_some_text as c2,
    sum(d1.c1) as c3
    sawith0 d1
    rownum <= 65001
    This SQL works fine, even with bind values for 'pv_some_text'.
    But, when using the following SQL in the BIP Data Model:
         :pv_Text as Betr_Teil,
         :pv_Text as Suva_Nr,
         sum("GDWH05"."DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH") as Vollbesch
    from "GDWH05"
         "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM" in ('122-4.4')
         fetch first 65001 rows ONLY
    The following ERROR occurs:
    <font color="red">java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS. [nQSError: 46008] Internal error: File server\Query\Optimizer\ServiceInterfaceMgr\Utility\Src\SQOIUTypeVisitor.cpp, line 643.</font>
    In my opinion, either I use a wrong syntax, or BIP has a problem with parsing the script.
    Thank you for your most welcome help.

  • SQL Developer not accepting certain characters from the keyboard

    I have been using SQL Developer for 5 or 6 months now, with minor issues and great satisfaction.
    A few days ago, just out of the blue, in the middle of the day, SQL developer started not accepting the following characters:
    Ctrlv, Ctrl + c, F5, F9 (I Think all function keys), BackSpace, Delete, Enter and arrow keys.+*
    T*his is only happening in the text editor part*. I am able to use this keys in the results, whether they were a script output or an execute query output.
    SQL developer also functions properly (if i paste using the mouse, paste works.. and all the other keys)
    I checked the pc for viruses, using AVG, no viruses were found (my avg is updated daily and runs daily virus checks on a schedule, and this issue has been here for the past 1 or 2 weeks, so it was a virus, i think it should have been discoverd, besides, the keys are still working in sql developer, only not in the text editor part)
    Needless to say, but if i run notepad and type, keys work properly.
    I also reinstalled it in another folder with no luck
    Tried so many restarts .. no luck
    Tried it in safe mode .. no luck
    I am using SQL developer Version 1.5.4, Build MAIN-5940.. on Windows Xp
    I am suspecting there's some option in it that I disabled without paying attention..

    All that time trying possible solutions is understandable, but then typing them in your post... when searching the forum would have given you the solution under 1 minute:
    Preferences - Accelerators - Load Preset - Default
    Hope that helps,

  • Oracle SQL Developer (Not seeing object names within the interface)

    I was finally able to perform an export/import from our production environment to our training environment. Anyway, this was done using the SYS account and for some reason, I have an issue where in Oracle SQL Developer, there are no object names being displayed, but the objects do exist within SQLPLUS if I should query the table.
    The following error message displays when I refresh any of the objects folders within SQL Developer:
    ORA-00942: table or view does not exist
    Any ideas would be greatly appreciated.
    Thank you.

    825084 wrote:
    I'm pretty new to the Oracle DBA space but not to SQL Server Ah. The first thing you need to do is check everything you think you know about rdbms at the door. The similarity between SQL Server and Oracle ends right after SELECT * FROM EMP.
    Even the term "database" has different meanings.
    First thing I see, in your original post, is that you did the export/import as SYS. Was this "as sysdba"?
    From Oracle® Database Utilities
    10g Release 2 (10.2):
    Invoking Export and Import As SYSDBA
    SYSDBA is used internally and has specialized functions; its behavior is not the same as for generalized users. Therefore, you should not typically need to invoke Export or Import as SYSDBA, except in the following situations:
    * At the request of Oracle technical support
    * When importing a transportable tablespace set
    so it's quite possible that I missed something during the import/export of the environments.
    Are there any system tables that get invoked when you click on any of the objects within the connection?

  • Sql developer not working which i got when i installed oracle 11g on win7

    Hi i successfully instaled my oracle 11g on windows 7,but when iam trying to use my sql developer chich i got by default with 11g is not working ..when i open it its asking me for "select the path of java.exe file" when i browse and given the right path .iits again giving me the same pop and not throughing any error msg at least.
    Could u pls help me out on this??

    Well, not supported does not necessarly mean does not work, but if you have problem, then your only way is to find a solution on your own or through other fellows who are doing the same.
    Anyway, you could ask your question in the SQL Developer dedicated forum, but again, you could have some unexpected issues by working on non-supported config :
    SQL Developer

  • SQL Developer not starting - new installation

    I installed Oracle 11g on Windows 8, and am having problems with SQL developer starting. I have tried to debug but not a clue what I am looking for. I really could use some help. It is a 64 bit installation - and seems to be OK as I can connect to the DB in SQL plus. Thanks a lot!
    From a self-help perspective, did the following after looking at some threads:
    Ran sqldeveloper.exe and the output I got is:
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    Path=C:\app\kmalik\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\Parallels\
    Parallels Tools\Applications;C:\Windows\system32;C:\Windows;C:\Windows\System32\
    Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web
    Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v
    1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Pro
    gram Files\Microsoft SQL Server\110\Tools\Binn\
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
    Ran: java -version on the same command prompt and got
    'java' is not recognized as an internal or external command, operable program or batch file.

    And also note the following similar thread:
    java.exe Requirement to run SQL Developer?

Maybe you are looking for

  • IMac 27" Target DIsplay Mode + Answer to Windows 7 Boot Camp Install

    First, I'd like to address the handful of complaints I've come across about installing Windows 7 via Boot Camp on the new 27"iMac. The issue of the screen going blank when almost done has an easy albeit annoying answer. Simply connect the iMac to an

  • The Vista Guide

    Vista Guide For The Dumbies! Note I managed to recover the old copy of this I had. But all the changes I made were lost due to the reformat. So I will get eveything back up to date ASAP! Introduction This is a guide for advice with installing, and tr

  • How to Extract Data from IT 0025 and Modify the layout for Printing

    Hi All, Query----> My client has a requirement to output the appraisal data in a given format from IT 0025. (The entire appraisal done for the employee) I would like to know from where this data will be picked up … is this data stored in some cluster

  • Reverse Proxy question

    Hi, I'm using the Sun Webserver 7 and my aim is to allow for some URLs to be reverse proxied into a different server altogether. e.g. http://xyz.com/test/something.do --> http://abc.com/test/something.do and http://xyz.com/test/images/123.jpg --> htt

  • How to view data for MD05 before current date

    Hi SAP Gurus! We need to check what we entered for the past weeks forecasts. We currently use MD05 to view that. Right now, we are currently in week 47 now and would like to view data for weeks 40-46. For some reason SAP is only giving us week 47 onw