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

Similar Messages

  • Custom Connection info from an XML file

    I am writing a class that implements OnBeforeChangeUserProfile PEI. I will connect to a database to verify information. I want to be able to load the connection information from an XML file so that I won't have to compile the code for different servers. Where would I put that XML file, is there a structure that I should use?
    Oguz

    You should be able to use a VarPack:
    http://www.plumtree.com/EnterpriseWebDevelopmentDocumentation/index.asp?pagename=UsefulToolsObjects/VarPack/Quickstart_VarPack_intro.htm

  • 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 - Cannot see list of tables in my connection

    Hi - when I downloaded and started to use the SQL developer tool, once I connected, I could see all of the tables/columns in my connection on the left side of the tool, and I had my query panel, results panel, and SQL history stacked on the right. Suddenly something has changed, and I cannot see the list of tables, etc. in my connection anymore, so I have to rely on memory and SQL history to remember the table and column names. It has to be "hidden" somehow, but view-connections does not help, and trying to click and drag windows doesn't uncover it either.
    Any suggestions?
    Thanks!

    Probably better to ask in the SQL Developer forum here: SQL Developer
    I've been trying the version 2 beta though and it has quite a few bugs in. Table browsing is working fine for me, but all my functions and procedures have disappeared from the tree view. It does odd things with code formatting too.
    I don't think it will be supplanting trusty old command line SQL Plus for me yet any time soon...

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

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

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

  • SQL Developer and TOAD connection.

    Hi,
    I am able to see the DDL script for tables using TOAD, but NOT using SQL Developer (2.1.1). Same user, pass, and tnsname file.
    They use same tnsname.ora file on my computer. I set basic and TNS connection for SQL Developer.
    The connection is from my computer to the server (Oracle 11.1.0.7 EE).
    ORA-31603: object "ALARM_DEFINITION" of type TABLE not found in schema "AIRCOM"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 3241
    ORA-06512: at "SYS.DBMS_METADATA", line 4812
    ORA-06512: at line 1
    It is same with packages. I cannot see package body.
    What is the different and which additional privileges I need to see the DDL script?
    Thanks in advance for your help!
    Konstantin

    I don't think it's a connection issue. There seem to be differences in how Oracle and Toad access system views to show objects. If you search the boards you see it has effected a couple of people. Sometimes they post what permissions they changed to get things to work for them.
    ie... Re: Issue with viewing Package Body  in SQL Developer 2.1 RC1
    I don't think I've seen any official documentation to indicate what privileges need to be granted in order to see them thought. And I think there is a bug that prevents generating DDL for tables owned by other users. I don't know if that extends to generating stored procedure code.

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

  • SQL Developer-Cannot Connect

    Hi, I have the same problem as the person who posted the question
    The history is i already have oracle 10g express edition installed on my system but with it I cannot create tables or execute DML or DDL commands so I downloaded SQL developer .
    When it came to the connection I wanted to fill in the Hostname , Port and SID in that order it gave me that same error "The network adapter could not establish connection ", and to fill in those spaces I used the link I saw when opening the Human Resources schema in the express edition(The schema came in the express edition and I used it to learn the SELECT statement). so i tried to use that address and it came in this format :- http://127.0.0.1:8080/apex/f?p=4500:1000:3171371893604961
    And since SQL told me to fill those parameters as Hostname:Port:SID I felt the use of the last 3 digits i.e 4500:1000:3171371893604961 would have worked but that is what is giving me the error.
    I would appreciate the help. Thank you

    This post has been branched off from and refers to
    SQL Developer-Cannot Connect
    @user 867945,
    Please do not resurrect long dead threads.
    It is poor forum etiquette.
    Post your own new inquiry so that anyone that responds is answering YOU.
    Feel free to provide a reference link to any discussion, anywhere, that may be somehow similar.

  • SQL Developer Tables Node is missing from when expand connection

    Hi,
    I'm getting this issue often when I expand the connection node (Oracle DB connection), the Tables node is missing from the object types tree. Even if i close the SQL developer and come back it would be the same.
    Is this a known issue? I've seen this both in 3.0 & 3.1.
    please advice.

    Hi,
    Just as an update: I did not encounter the issue anymore since my last post (ca 1 week) and I did not do any changes to sqldeveloper any more (never did an export / import of connections, no change in version of JDK any more etc.).
    I guessed this here could be my issue: SQL Developer: Not able to view tables
    excerpt: "The problem occurs when SQL Developer 3.0.04 connects to a limited privilege schema via a shared server connection. The workaround is to connect using a dedicated server connection."
    I use type "Basic" for all my sqldeveloper connections, so no TNSnames.ora entries containing the line "SERVER=DEDICATED" and I did get same issue also when connection using a custom created user having the DBA role.
    Therefore I guess this is here is more likely to be my issue: SQL Developer: Not able to view tables
    excerpt "JDBC driver having to do with 'Out Of Band Breaks' - basically a low level TCP issue.
    To enable the workaround, a Java system property needs to be set - oracle.net.disableOob=true. "
    Very often when I did have the issue I closed SQLDeveloper and used Toad for the rest of the day (or a few hours). Next time launching SQLDeveloper the tables node usually was back again. So this could fit into the picture, right?

  • Tnsnames.ora file does not seem to load in SQL Developer

    I've really tried my best to figure this out on my own ... through the Help, this forum, and Internet in general. I apoligize in advance for having to ask this, since I'm sure this is a common issue. This particular form entry was really close:
    Database Connections will not load tnsnames.ora
    But, I just can seem to figure out why, or where entries from my tnsnames.ora file are loading into SQL Developer.
    - I have the TNS_ADMIN system environment variable defined to the directory where tnsnames.ora is stored - C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN.
    - I do not see a TNS tab as the forum entry above indicates anywhere in SQL Developer - This may be my problem.
    It seems that this issue could be cleared up with better directions on how to import tnsnames.ora entries into SQL Developer. Is there any specific direction on how to get your tnsnames.ora file setup correctly with SQL Developer running on Windows XP - Besides the Help which mentions the setup of TNS_ADMIN, but doesn't really tell you what the expected result is, or where the entries will be, or how to verify this is working?
    Any help would be most appreciated.
    Thanks,
    Dave
    Below is the export from the About box in SQL Developer:
    About
    Oracle SQL Developer 1.5.1
    Version 1.5.1
    Build MAIN-5440
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.42
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.54.40
    Version
    Component Version
    ========= =======
    CVS Version Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform 1.6.0_07
    Oracle IDE 1.5.1.54.40
    Versioning Support 1.5.1.54.40
    Properties
    Name Value
    ==== =====
    apple.laf.useScreenMenuBar true
    awt.toolkit sun.awt.windows.WToolkit
    class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level CONFIG
    class.transfer delegate
    com.apple.macos.smallTabs true
    com.apple.mrj.application.apple.menu.about.name "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes false
    file.encoding Cp1252
    file.encoding.pkg sun.io
    file.separator \
    http.agent Mozilla/5.0 (Java 1.6.0_07; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
    ice.browser.forcegc false
    ice.pilots.html4.ignoreNonGenericFonts true
    ice.pilots.html4.tileOptThreshold 0
    ide.AssertTracingDisabled true
    ide.bootstrap.start 1628689279134099
    ide.build MAIN-5440
    ide.conf C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild false
    ide.devbuild false
    ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun true
    ide.java.minversion 1.5.0
    ide.launcherProcessId 5580
    ide.main.class oracle.ide.boot.IdeLauncher
    ide.patches.dir ide/lib/patches
    ide.pref.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
    ide.pref.dir.base C:\Documents and Settings\X626730\Application Data
    ide.product oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation C:\sqldeveloper\sqldeveloper.exe
    ide.splash.screen splash.gif
    ide.startingArg0 C:\sqldeveloper\sqldeveloper.exe
    ide.startingcwd C:\sqldeveloper\sqldeveloper\bin
    ide.user.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
    ide.user.dir.var IDE_USER_DIR
    ide.work.dir C:\Documents and Settings\X626730\My Documents\SQL Developer
    ide.work.dir.base C:\Documents and Settings\X626730\My Documents
    java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob sun.awt.windows.WPrinterJob
    java.class.path ..\..\ide\lib\ide-boot.jar
    java.class.version 50.0
    java.endorsed.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\endorsed
    java.ext.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
    java.home C:\Program Files\Java\jdk1.6.0_07\jre
    java.io.tmpdir C:\DOCUME~1\X626730\LOCALS~1\Temp\
    java.library.path C:\sqldeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\PROGRA~1\IBM\WEBSPH~2\BIN\DB2;C:\PROGRA~1\IBM\WEBSPH~2\BIN\MQClient;C:\PROGRA~1\IBM\WEBSPH~2\BIN;C:\IBM\WebSphere MQ Client\Java\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\ora92\bin;C:\oracle\product\10.2.0\client_2\bin;C:\Perl\bin\;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\CA\PEC\bin;C:\Reuters\Plus;C:\Reuters\Plus\COMLOGIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Compuware\Common;C:\Program Files\Common Files\Compuware;C:\Program Files\CA\AllFusion Harvest Change Manager;C:\Program Files\SecureCRT\;C:\PROGRA~1\F-Secure\Ssh;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program files\1E\SMSNomad\;C:\j2sdk1.4.2_06\jre\bin;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\IBM\Installation Manager\eclipse\lib;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\R71\AllFusion Harvest Change Manager;C:\IBM\WebSphere MQ Client\bin;C:\IBM\WebSphere MQ Client\tools\c\samples\bin;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL
    java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name Java(TM) SE Runtime Environment
    java.runtime.version 1.6.0_07-b06
    java.specification.name Java Platform API Specification
    java.specification.vendor Sun Microsystems Inc.
    java.specification.version 1.6
    java.util.logging.config.file logging.conf
    java.vendor Sun Microsystems Inc.
    java.vendor.url http://java.sun.com/
    java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
    java.version 1.6.0_07
    java.vm.info mixed mode
    java.vm.name Java HotSpot(TM) Client VM
    java.vm.specification.name Java Virtual Machine Specification
    java.vm.specification.vendor Sun Microsystems Inc.
    java.vm.specification.version 1.0
    java.vm.vendor Sun Microsystems Inc.
    java.vm.version 10.0-b23
    jdbc.driver.home /C:/oracle/product/10.2.0/client_1/
    jdbc.library /C:/oracle/product/10.2.0/client_1/jdbc/lib/ojdbc14.jar
    line.separator \r\n
    oracle.home C:\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
    oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version 9.0.4
    orai18n.library /C:/oracle/product/10.2.0/client_1/jlib/orai18n.jar
    os.arch x86
    os.name Windows XP
    os.version 5.1
    path.separator ;
    reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model 32
    sun.boot.class.path C:\Program Files\Java\jdk1.6.0_07\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_07\jre\classes
    sun.boot.library.path C:\Program Files\Java\jdk1.6.0_07\jre\bin
    sun.cpu.endian little
    sun.cpu.isalist
    sun.desktop windows
    sun.io.unicode.encoding UnicodeLittle
    sun.java2d.ddoffscreen false
    sun.jnu.encoding Cp1252
    sun.management.compiler HotSpot Client Compiler
    sun.os.patch.level Service Pack 2
    user.country US
    user.dir C:\sqldeveloper\sqldeveloper\bin
    user.home C:\Documents and Settings\X626730
    user.language en
    user.name a641421
    user.timezone America/New_York
    user.variant
    windows.shell.font.languages
    Extensions
    Name Identifier Version Status
    ==== ========== ======= ======
    Check For Updates oracle.ide.webupdate 11.1.1.0.22.49.42 Loaded
    Code Editor oracle.ide.ceditor 11.1.1.0.22.49.42 Loaded
    Database Connection Support oracle.jdeveloper.db.connection 11.1.1.0.22.49.42 Loaded
    Database Object Explorers oracle.ide.db.explorer 11.1.1.0.22.49.42 Loaded
    Database UI oracle.ide.db 11.1.1.0.22.49.42 Loaded
    Diff/Merge oracle.ide.diffmerge 11.1.1.0.22.49.42 Loaded
    Extended IDE Platform oracle.javacore 11.1.1.0.22.49.42 Loaded
    External Tools oracle.ide.externaltools 11.1.1.0.22.49.42 Loaded
    Feedback oracle.ide.feedback 11.1.1.0.22.49.42 Loaded
    File Support oracle.ide.files 11.1.1.0.22.49.42 Loaded
    File System Navigator oracle.sqldeveloper.filenavigator 11.1.1.54.40 Loaded
    Help System oracle.ide.help 11.1.1.0.22.49.42 Loaded
    History Support oracle.jdeveloper.history 11.1.1.0.22.49.42 Loaded
    Import/Export Support oracle.ide.importexport 11.1.1.0.22.49.42 Loaded
    Log Window oracle.ide.log 11.1.1.0.22.49.42 Loaded
    Mac OS X Adapter oracle.ideimpl.apple 11.1.1.0.22.49.42 Loaded
    Navigator oracle.ide.navigator 11.1.1.0.22.49.42 Loaded
    Object Gallery oracle.ide.gallery 11.1.1.0.22.49.42 Loaded
    Object Viewer oracle.sqldeveloper.oviewer 11.1.1.54.40 Loaded
    Oracle IDE oracle.ide 11.1.1.0.22.49.42 Loaded
    Oracle Microsoft Access Browser oracle.sqldeveloper.thirdparty.access 11.1.1.54.40 Loaded
    Oracle Migration Workbench oracle.sqldeveloper.migration 11.1.1.54.40 Loaded
    Oracle Migration Workbench - MS Access oracle.sqldeveloper.migration.msaccess 11.1.1.54.40 Loaded
    Oracle Migration Workbench - MySQL oracle.sqldeveloper.migration.mysql5 11.1.1.54.40 Loaded
    Oracle Migration Workbench - SQLServer oracle.sqldeveloper.migration.sqlserver2005 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation Core oracle.sqldeveloper.migration.translation.core 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MS Access oracle.sqldeveloper.migration.translation.msaccess 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MS SQL Server oracle.sqldeveloper.migration.translation.sqlserver 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation MySQL oracle.sqldeveloper.migration.translation.mysql 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation Sybase oracle.sqldeveloper.migration.translation.sybase 11.1.1.54.40 Loaded
    Oracle Migration Workbench - Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.54.40 Loaded
    Oracle MySQL Browser oracle.sqldeveloper.thirdparty.mysql 11.1.1.54.40 Loaded
    Oracle SQL Developer oracle.sqldeveloper 11.1.1.54.40 Loaded
    Oracle SQL Developer Extras oracle.sqldeveloper.extras 11.1.1.54.40 Loaded
    Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.54.40 Loaded
    Oracle SQL Developer SearchBar oracle.sqldeveloper.searchbar 11.1.1.54.40 Loaded
    Oracle SQL Developer TimesTen oracle.sqldeveloper.timesten 1.5.1.1.2 Loaded
    Oracle SQL Server Browser oracle.sqldeveloper.thirdparty.sqlserver 11.1.1.54.40 Loaded
    Oracle Sybase Browser oracle.sqldeveloper.thirdparty.sybase 1.2.1.54.40 Loaded
    Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.54.40 Loaded
    PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.0.22.49.42 Loaded
    Peek oracle.ide.peek 1.0 Loaded
    Replace With oracle.ide.replace 11.1.1.0.22.49.42 Loaded
    Runner oracle.ide.runner 11.1.1.0.22.49.42 Loaded
    SQL Worksheet Window oracle.sqldeveloper.sqlworksheet 11.1.1.54.40 Loaded
    Search Bar oracle.ide.searchbar 11.1.1.0.0 Loaded
    Snippet Window oracle.sqldeveloper.snippet 11.1.1.54.40 Loaded
    Sybase 12 oracle.sqldeveloper.migration.sybase12 11.1.1.54.40 Loaded
    Sybase 15 oracle.sqldeveloper.migration.sybase15 11.1.1.54.40 Loaded
    Tuning oracle.sqldeveloper.tuning 11.1.1.54.40 Loaded
    VHV oracle.ide.vhv 11.1.1.0.22.49.42 Loaded
    Versioning Support oracle.jdeveloper.vcs 11.1.1.0.22.49.42 Loaded
    Versioning Support for CVS oracle.jdeveloper.cvs 11.1.1.0.22.49.42 Loaded
    Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.0.22.49.42 Loaded
    Web Browser and Proxy oracle.ide.webbrowser 11.1.1.0.22.49.42 Loaded
    oracle.ide.dependency oracle.ide.dependency 11.1.1.0.22.49.42 Loaded
    oracle.ide.indexing oracle.ide.indexing 11.1.1.0.22.49.42 Loaded

    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?

  • Bulk import of tnsnames.ora file into SQL developer on first run

    Is there a way for SQL developer to read the tnsnames.ora file and import all of the connections from that? Near as I can see, I would either have to manually add each of them or import an xml file of some kind...Thoughts?

    There's a feature request for this at the Exchange (http://htmldb.oracle.com/pls/otn/f?p=42626:39:3634225177876117::NO::P39_ID:4582), but they closed it down like a crack-house :-(
    So you just have to continue your manual slave-labours...
    Have fun,
    K.

  • The SQL*PLUS cannot be connected

    The SQL*PLUS cannot be connected.
    When I try to connect to sqlplus, I get the following error message: ORA-12560: TNS:protocol adapter error
    I trouble shoot it according to the following steps, but have not found any problems:
    C:\Documents and Settings\Administrator>sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 27 09:45:51 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    C:\Documents and Settings\Administrator>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 27-APR-2010 09:37:56
    Copyright (c) 1991, 2007, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Production
    Start Date                27-APR-2010 09:35:08
    Uptime                    0 days 0 hr. 2 min. 48 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   F:\app\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Listener Log File         f:\app\oracle\diag\tnslsnr\HOST1\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOST1)(PORT=1521)))
    Services Summary...
    Service "db1" has 1 instance(s).
      Instance "db1", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Administrator>tnsping db1
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 27-APR-2010 09:38:46
    Copyright (c) 1997, 2007, Oracle.  All rights reserved.
    Used parameter files:
    F:\app\oracle\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICA
    TED) (SERVICE_NAME = db1)))
    OK (500 msec)
    C:\Documents and Settings\Administrator>echo %oracle_sid%
    db1Both the OracleServiceDB1 service and the OracleOraDb11g_home1TNSListener service are already started.

    The following is from F:\app\oracle\diag\tnslsnr\HOST1\listener\trace\listener.log
    System parameter file is F:\app\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Log messages written to f:\app\oracle\diag\tnslsnr\HOST1\listener\alert\log.xml
    Trace information written to f:\app\oracle\diag\tnslsnr\HOST1\listener\trace\ora_2020_1660.trc
    Trace level is currently 0
    Started with pid=2020
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOST1)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    Tue Apr 27 09:21:18 2010
    System parameter file is F:\app\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Log messages written to f:\app\oracle\diag\tnslsnr\HOST1\listener\alert\log.xml
    Trace information written to f:\app\oracle\diag\tnslsnr\HOST1\listener\trace\ora_1984_2004.trc
    Trace level is currently 0
    Started with pid=1984
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOST1)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    Tue Apr 27 09:35:08 2010
    System parameter file is F:\app\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Log messages written to f:\app\oracle\diag\tnslsnr\HOST1\listener\alert\log.xml
    Trace information written to f:\app\oracle\diag\tnslsnr\HOST1\listener\trace\ora_3740_3788.trc
    Trace level is currently 0
    Started with pid=3740
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOST1)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    Tue Apr 27 09:37:56 2010
    WARNING: Subscription for node down event still pending
    27-APR-2010 09:37:56 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=185599488)) * status * 0
    Tue Apr 27 09:38:49 2010
    27-APR-2010 09:38:49 * ping * 0
    Tue Apr 27 10:48:44 2010
    27-APR-2010 10:48:44 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=db1)(CID=(PROGRAM=F:\app\oracle\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=HOST1)(USER=Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.2)(PORT=2030)) * establish * db1 * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
      TNS-00530: Protocol adapter error
       32-bit Windows Error: 2: No such file or directory
    Tue Apr 27 10:49:26 2010
    System parameter file is F:\app\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Log messages written to f:\app\oracle\diag\tnslsnr\HOST1\listener\alert\log.xml
    Trace information written to f:\app\oracle\diag\tnslsnr\HOST1\listener\trace\ora_3948_1304.trc
    Trace level is currently 0
    Started with pid=3948
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOST1)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    Tue Apr 27 10:50:24 2010
    27-APR-2010 10:50:24 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=db1)(CID=(PROGRAM=F:\app\oracle\product\11.1.0\db_1\bin\sqlplus.exe)(HOST=HOST1)(USER=Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.2)(PORT=2045)) * establish * db1 * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
      TNS-00530: Protocol adapter error
       32-bit Windows Error: 2: No such file or directory

  • SQL Dev 3.0.04 cannot locate TNSNAMES.ora file after Oracle11g XE Beta

    Hello,
    I had Oracle Developer Suite (Reports, Forms) installed on Windows 7 32 bit along with SQL Developer 3.0.04 (latest prod. build) and everything was working just fine.
    Then, I installed Oracle 11g XE Beta database and now, all the existing Connections in SQL Developer give an error "Invalid connection information specified. Verify the URL format for the specified driver."
    I thought since 11gXE was the latest Oracle software installed, the Path environment variable in Windows will have the Oracle 11gXE as the leading path string. So, I cut this leading string : C:\Oracle\Oracle11gXE\product\11.1.0\db_1\bin and appended it at the very end.
    This means that the Path that existed prior to the 11gXE install is now the leading and hence SQL Developer should be reading the TNSNAMES.ora file from the very first Oracle Home encountered which is for the developer suite. But this does not seem to work.
    Any ideas how to fix this? How does SQL Developer determine which tnsnames file to use?
    Thanks,
    Manish

    Hi Manish,
    One place to control this is Tools|Preferences|Database|Advanced|Tnsnames Directory.
    Otherwise read the documentation in Help|Table of Contents|SQL Developer Concepts and Usage|Database Connections. The third paragraph contains a description of the various alternatives.
    Regards,
    Gary Graham
    SQL Developer Team
    Edited by: gggraham on Jul 18, 2011 2:52 PM

  • SQL Developer is not able to identify the Tnsnames.ora file

    Hi,
    I have installed the following in the laptop having Win XP:
    1) Oracle 10gR2 Client software in the D: drive of laptop. Tnsnames.ora is located in this clients Network\Admin path. This client is used to access the databases on the other servers.
    2) Oracle 10gR2 Database software in the E: drive of laptop. Right now there is not Tnsnames.ora file in this softwares Network\Admin path. This db software has been installed to create local databases in the laptop.
    3) Oracle SQL Developer Version 2.1.1.64 is also installed in C: drive of laptop.
    The problem which now I'm facing is that the SQL Developer is not able to identify the Tnsnames.ora file mentioned in the above point-1 which contains entries of databases on the different servers. Could you please help me out in solving this problem?
    Thanks in advance.
    MAK

    I forget what version I was using at the time, but when I had an ORACLE_HOME defined for the environment and TNSNAMES file defined in SQL Developer (different one than was in ORACLE_HOME), that I would see results from both tns files. I don't know if that is still the case. I have since dropped my ORACLE_HOME environmental variable.

Maybe you are looking for