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.

Similar Messages

  • Read from text file multiple times

    Hi!
    Inside my main VI, I read settings from the same text file like 4-5 different places (some inside sub VI's).  This is also inside a while-loop that is delayed about 0,5 seconds.  The text file contains about 50-100 lines depending on the settings.  My question is if this can make the program unstable or loose it's performance??? 
    Is it better to drag wire in all around the VI and subVI's ??
    Best regards
    Martin 
    Solved!
    Go to Solution.

    Simple way is to use functional global.
    Read text file at the start of the program, store it in Functional global.
    Use it to read setting anywhere anytime...
    If you don't know about functional global here is the link.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • How to pass a function with the same argument multiple times and return values in variables?

    The problem I have is I created a function which really is some kind of database.  Basically a bunch of:
    if (a.value == "this number"){
    b.value = "this expression";
    Inside the form are 2 dropdown lists that return numerical values which I want to process through that function and put the return value inside separate variables.
    var a = this.getField("OPE003.EVEN.1.MIP");
    Mip(a);
    var result1 = Mip();
    I tried to overwriting *a* to process the second field
    a = this.getField("OPE003.EVEN.2.MIP");
    Mip(a);
    var result2 = Mip();
    result1 and result2 are put in an array, joined as a string.
    Doing so, I always get the last processing twice as the final result.
    Can I use a function as a batch processing tool that way?

    You are right, I changed the code to what you said but how do I pass another value through my fonction so I can get Result1 and Result2?
    is it
    var a = this.getField("OPE003.EVEN.1.MIP");
    var b = this.getField("OPE003.EVEN.2.MIP");
    var result1 = Mip(a);
    var result2 = Mip(b);
    var c = new Array[result1, result2]

  • Multiple tnsnames.ora files

    Hi,
    I am new to oracle and we have multiple versions of oracle installed on our machine. We have Oracle 9i, xe, developer suite - all on the same machine and as a result of that, we have multiple tnsnames.ora files. Due to this, when we try to log into the applications (sql plus, raptor, forms etc.), we get one or the other error all the time.
    Is it due to having multiple tnsname.ora files on the same machine. What is the solution to this problem?
    Thanks in advance
    accts

    Is it due to having multiple tnsname.ora files on the same machine.No, every application looks for its own tnsnames.ora, and if you get errors, then it means that something is wrong, not necessarily with tnsnames.ora.
    The first thing I'd do is to maintain only one (possibly working) tnsnames.ora (renaming or removing the other ones), and set TNS_ADMIN OS environment variable to point to that one, and try.
    It would be useful to know the errors you get...

  • 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

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

  • How to use ODBC SQLDriverConnect() without using tnsnames.ora file

    I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    This requires an entry in the tnsnames.ora file that looks like this:
    MyDB.world =
    (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
    (LOAD_BALANCE = yes)
    (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = MY_SRVC))
    However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
    ORA-12154: TNS: Could not resolve the connect identifier specified.
    I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
    Any help on this would be greatly appreciated.
    Thank you.

    How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
    Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry.

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

  • DBA studio: Error add/connect database "Failed to parse tnsnames.ora file"

    I have Oracle (version 8.1.7) installed in my XP machine and when I try to (having chosen "Launch DBA Studio standalone") to open a connection I get:
    "Failed to parse tnsnames.ora file
    ERROR: 100 -- NLNV-NLNV String Format Error".
    Also got this when I tried to manually add a database to a tree.
    I can access the databases listed in my tnsnames.ora using SQL Plus with no error.
    This is my tnsnames.ora.
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    INST1_HTTP.xx.yy.GE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyMachine3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = buch3ora)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA.xx.yy.GE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    MyOra3.xx.yy.GE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyMachine3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ora3)
    OORCL.xx.yy.GE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 3.4.55.66)(PORT = 1521))
    (CONNECT_DATA = (SERVICE_NAME = oorcl))
    Does anybody have any idea what is wrong? Thanks a lot. Changsong

    Just found out this IS a string error in my Tnsname.ora. What i did is deleting all the entries in my tnsname.ora, and start adding each one back. I found one particular entry is responsible for the error. This is the old text
    serv32.xxx.ge.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (COMMUNITY = TCP)(PROTOCOL = TCP)(HOST = sevr32.xxy.ge.com)(PORT = 1521))
    (CONNECT_DATA = (SID = atmo32))
    just looking by itself I can't see anything wrong. I just formatted it a little, making it looked like the other one that is working
    serv32.xxx.ge.com =(DESCRIPTION =
         (ADDRESS_LIST =
         (ADDRESS =
         (COMMUNITY = TCP)
         (PROTOCOL = TCP)
         (HOST = sevr32.xxy.ge.com)
         (PORT = 1521)))
         (CONNECT_DATA=
         (SID = atmo32)))
    and now it works fine. I Really can't tell the difference, except that some words were moved to the other line. What puzzled me is that the same old tnsname.ora worked in almost all the other circumstances, like sql plus, and other database enginee. But it is just not good enough for dba studio?
    I admit I probably should have used the network utility to add a connection to avoid this type of format error.
    Anyhow, I'm glad it is solved. by the way, the symjct.dll mentioned in the previous post should be symcjit.dll. I guess he mispelled the name. I renamed it to symcjit_old.dll and now the java error was gone. So that is another gain from this post. Thanks Joel for all the information.

  • Should dbassist create an entry in my tnsnames.ora file?

    I just created an instance on Solaris with dbassist and the sample minimal.rsp response file (8.1.7). I was surprised to note that no entry was created in the tnsnames.ora file as I would expect (it does create an entry on Windows platforms). Is this typical behavior? I did not see any option in the response file to do this. Another thing I notice was that it created an entry in the oratab file with the auto start flag set to n. Is there a way to make dbassist set that flag to y during install or am I going to have to sed it afterwards?
    Thanks,
    John

    1. Do I have to use the external IP address in the LISTENER.ora
    file if I want clients external
    to the firewall to connect to my database?No, you should simple use the internal address - there's no need
    to use the external address. The packets that reach the server
    do not contain the external address by the time they get to the
    server. The firewall performs NAT on the external address
    translating it to the internal address on the way in and
    translating the internal address to the external address on the
    way out.
    2. If I change the entries in the LISTENER.ora file from
    <production> to <172.168.0.101>, then
    clients cannot connect to the database. Is this a normal
    thing? I remember that I could use
    internal IP addresses in ORACLE7 and 8 in the LISTENER.ORA
    file.There must be something wrong with your DNS. If you run the
    command "ping production" what address do you get? The external
    address? If you attempt to ping 172.168.0.101 from a client that
    can not connect, what do you get? What if you run the
    command "tracert production"? What path do the packets take to
    the server.
    There sounds like there is some network topology issues in that
    the clients can't get directly to the internal address but are
    instead going through the firewall to get to the database. I
    would suggest using a sniffer on the database (with the
    appropriate authorization) to see what's going on and get a
    network admin involved.
    Regards,
    Aaron C. Newman
    Co-author, Oracle Security Handbook
    [email protected]
    Application Security, Inc.
    www.appsecinc.com
    phone: 212-490-6022
    -Protection Where It Counts-

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

  • How to list the datasources without use a tnsnames.ora file?

    Hi,
    I want to use the OracleDataSourceEnumerator class of ODP.Net to list the datasources on which the user can connect.
    It's work with a tnsnames.ora on the local station, so good.
    But I want use the easy connect naming methode so i have edited the sqlnet.ora file with this:
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    then i have deleted the content of the tnsnames.ora
    so my code don't work : none datasource is returned by the OracleDataSourceEnumerator
    So my question : is it a way to list the datasources without use a tnsnames.ora file?
    Edited by: user13499556 on 17 déc. 2010 08:21

    You can check
    DataConnectionFile.EnumerateDependants method
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Using tnsnames.ora file instead of oracle names server

    hi,
    sqlnet.ora file contains
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES)
    NAMES.DEFAULT_DOMAIN = (domain name)
    SQLNET.EXPIRE_TIME = 2
    DEFAULT_SDU_SIZE = 8761
    NAMES.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = TCP.world)
    (PROTOCOL = TCP)
    (Host = oranamesrvr0. domain name)
    (Port = 1575)
    NAME.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = TCP.world)
    (PROTOCOL = TCP)
    (Host = oranamesrvr0.domain name)
    (Port = 1575)
    There is also a tnsnames.ora file in the same path as this sqlnet.ora. Can someone tell how can i make the application use the tnsnames.ora file instead of using oracle name servers??
    Thanks in advance!!!

    917229 wrote:
    hi,
    sqlnet.ora file contains
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES)
    NAMES.DEFAULT_DOMAIN = (domain name)
    SQLNET.EXPIRE_TIME = 2
    DEFAULT_SDU_SIZE = 8761
    NAMES.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = TCP.world)
    (PROTOCOL = TCP)
    (Host = oranamesrvr0. domain name)
    (Port = 1575)
    NAME.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = TCP.world)
    (PROTOCOL = TCP)
    (Host = oranamesrvr0.domain name)
    (Port = 1575)
    There is also a tnsnames.ora file in the same path as this sqlnet.ora. Can someone tell how can i make the application use the tnsnames.ora file instead of using oracle name servers??
    Thanks in advance!!!In addition to SB's comment, keep in mind that the client only sees sqlnet.ora and tnsnames.ora that exist on the client machine .. or indicated by TNS_ADMIN as defined on the client machine. Setting this on the db server is meaningless to the client unless the client also resides on the db server.

Maybe you are looking for

  • Google Earth compatibility with MAC?

    I'm surprised to see so little discussion regarding Google Earth & the MAC platform. I've checked with Google and have searched several forums. Everyone agrees there's a problem, but who can offer a remedy - or even a theory? I have an IMac 5.1 runni

  • System Error:ADS :com.adobe processingException:XMLFM Exception during render Exception

    Dear All, We have configured ADS in DEV and QAS it is working fine. We have done the same configuration in PRD but it is giving the following error when we execute the program FP_CHECK_DESTINATION_SERVICE: SYSTEM ERROR: ADS: com.adobe.ProcessingExcep

  • GS70 Stealth Pro Crashes when using external monitor..

    Hi Guys, I just bought a GS70 ghost pro a few weeks ago and have been loving it, no problems, running Battlefield 3 and watchdogs.. However I just bought an external monitor, Asus VG248QE, when i connected it via display port and tried to play Battle

  • Flash will not install in 4.0b2 Firefox

    On OS X 10.6.4 with Firefox 4.0b2 Minefield), I cannot access Flash content. Flash is not shown in about:plugins. I reinstalled it from Adobe, but it is still not there. I saw a blog saying that Flash would not be in 4.0. That is a disaster for many

  • Handling a Weblogic TimedOutException

    Hi all, I am working on a very large Swing application that uses mostly stateless session EJB's with Weblogic 8.1. My problem is this: there are some places in the app where queries are timing out. I know that the relevant property is trans-timeout-s