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.

Similar Messages

  • How do I import a SPSS .sav file into SQL 2008 r2 using SSIS

    Hi there,
    Like the title says, I'm trying to import an SPSS .SAV file into an SQL 2008 R2 database using SSIS.
    I've tried a few things, but i cant seem to get it to work properly. I'm hoping there's someone out there who could point me in the right direction.
    I've tried the following:
    Tried the IBM step by step manual (http://pic.dhe.ibm.com/infocenter/spssdc/v6r0m1/index.jsp?topic=%2Fcom.spss.ddl%2Faccess_odbc.htm)
    --Couldnt folow this guide because I didnt have the SPSS MR DM-2 OLE DB Provider.
    Tried installing the provider using (http://pic.dhe.ibm.com/infocenter/spssdc/v7r0m0/index.jsp?topic=%2Fcom.spss.ddl%2Fdts_troubleshooting.htm) as a guide to download the provider listed (www-03.ibm.com/software/products/nl/spss-data-model).
    --This didnt work, I still could not see the provider listed after install and rebooting the server.
    Tried to get the file as CSV (Company couldnt provide it in CSV or another format)
    The server is a Windows Server 2008 R2 Enterprise 64-bit, has the Data Collection Data Model installed on it with SQL Server 2008 R2.
    If anyone could point me in the right direction they could make my day!
    Thanks in advance!
    Ronny

    Hi Ronny,
    According to your description, you want to import a SPSS .sav file to SQL Server 2008 R2 database. If that is the case, we can achieve this requirement with SPSS or SQL query. For more details, please refer to the following methods:
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=93346
    http://ilovespss.blogspot.com/2007/10/migrating-data-from-spss-to-sql-server.html
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Import an excel file into SQL Developer and create a table

    Hello everyone!
    I have an Excel file I want to Import into SQL Developer. Do I need to Create a table first than import the file into the table?
    Or is there a way to import an Excel file and it automatically generate or turn into a table?
    I would really appreciate any directions or explanations.
    Thanks everyone!
    Java Man

    Joyce Scapicchio wrote:
    I suspect that you are having memory problems opening the excel file. This is a known issue with excel files for importing and exporting. Check this post for suggestions:
    Re: Export to Excel Hangs to Excel Hangs ]
    Joyce Scapicchio
    SQLDeveloper TeamThanks for the reply but the problem was I needed to convert the file to a csv format. To do this open the file in Excel and re-save as CSV Comma Delimiter. Don't worry about data-types because when the file is uploaded to SQL Developer, you will have the chance to set all the parameters, data-types and so on.
    Once I did this and try opening the file, the setup window opened and I was able to do all the additional tweaking and convert the data to a table.
    Because of this I am speculating that SQL Developer does not work with Excel XLSX extension.
    Thanks again!
    JM

  • Import Oracle DataBase dump file Into Sql Server With out connection oracle using c# code.

    Hi All,
    I would like to ask how can imports my dump oracle database file data and struct into sql server 2005
    with out make connection oracle.
    best regards.
    Hakim. 

    Hi Hakim.
    Based on your title, what I understood there is a issue regarding transfer oracle db dump to sql database using C# code. Am I right? If so, I am afraid there is no build-in method which meet your requrements in .NET framework. You must provides
    OraDump  Export API to allow developers integrate corresponding capabilities  into their applications. These capabilities are about export data from  Oracle dump files into popular databases like Microsoft SQL server. Every developer
    having OraDump Export API can write just few lines of code on C# or  Visual Basic to implement the appropriate export process.
    I am search a third-party link, but it's a paid service. 
    http://www.convert-in.com/data-migration-service.htm
    If you don't have to with code, Please refer to: Migrating Oracle Databases to SQL Server 2000
    http://technet.microsoft.com/en-us/library/cc966513.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Import a CSV text file into SQL Server using DTS

    Hi,
    This may be a silly question but im gonna ask it anyway!
    What i need to do is execute a DTS package from a CF page to read a text file and import its content to a table. I have 100's of txt files with 10,000's of rows.
    The reason i think this is a silly question is because when setting the DTS package in SQL Ent, you have to specify the file name of the file you wish to import data from, therefore, its possible that you cannot change the file name. Ive done lots of research and not found one example that will allow me to do dynamically change the file name making the DTS pick up a different file. The only code ive found is as below, that executes the DTS and imports the data obtained from the file name that was set when the DTS package was created.
    <cfobject
    type="COM" name="objDTS" class="DTS.Package" action="CREATE">
    <CFSET
    r = objDTS.LoadfromSQLServer("[SERVERNAME]","[PASSWORD]","",0,"","","","[DTSPACKAGE]","")>
    <cfset
    p = objDTS.Execute()>
    I found the following suggestion in a forum somewhere, but ive not had much luck with it
    <cfset
    objDTS.GlobalVariables.Item("filename").Value = "[statsFileName]">
    I know an alternative to this is to read the file using CFfile or using Java and insert one by one, i dont dont like that method as it could cause performance issues with my server.
    Hope someone can help me out.
    regards
    d

    Questions:
    1. What version of SQL Server are you using?
    2. Are you required to use a specific DTS package or do you simply need to import data from a file to a table?  You might also consider using the bcp utility or, if you are using 2005 or newer, integration services.
    3. Is the uploading of files and the import of data a manual process or is it automated?  Is there a user uploading one file at a time to your server or do you receive files in batches.  Can you describe the work flow?
    You might try the following if you are required to use DTS:
    1. Upload your text file with CFFILE, putting in the directory expected by your DTS package.
    2. Rename the file to the name required by your DTS package
    3. Use CFEXECUTE to run the DTS package by calling dtsrun at the command line.
    dtsrun
    http://msdn.microsoft.com/en-us/library/aa224467%28SQL.80%29.aspx
    bcp
    http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx

  • Can't import office 2010/13 files into SQL Server. I'm out of ideas!

    Hi
    I have SQL Server 2012 installed on my Windows 8.1 Instance.  I want to be able to import and export data to Access 2013 files *accdb.  I have Office 64 bit installed on my machine.  I have searched a lot and can't find exactly what to do
    to fix this.  I have even done a clean install of SQL, but still no bananas.
    I have downloaded and installed Microsoft Access Database Engine 2010 but that didn't help.
    Any ideas?

    OK, now I know why I have never solved this problem.  When I try to install Microsoft Access
    Database Engine 2010 32 bit version, I get an error saying I cannot install the 32 bit version while running Office 2013 64 bit.  
    I found this blog http://knowledge.autodesk.com/support/autocad-civil-3d/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-install-64-bit-Microsoft-Database-Drivers-alongside-32-bit-Microsoft-Office.html
    which talks about the opposite problem, but not my problem.  Does anyone know of a work around to install the 32bit version of ADE with 64 bit Office?

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

  • 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

  • Best way to import csv file into sql server

    Hello DBAs
    always thankful for your help and one question, what is the best way to import a csv file into sql server ?

    and there is a
    Bulk Insert Task for the Control Flow.
    http://www.youtube.com/watch?v=ACuCU6IqO50
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

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

  • Import a 10g DMP file into a 9.2.0.5 instance

    Is it possible to import a 10g DMP file into a 9.2.0.5 instance? Thanks
    in advance for your thoughts.

    No, do NOT run the catexp.sql from 9i in your 10g db! That was only a valid method with Oracle 6/7 and Oracle 7/8!
    Just use the Oracle 9.2 version of exp to create the dumpfile from the 10g database. You can use SQL*Net to connect to the 10g db from your 9.2 server connecting like system/manager@tnsname. Then use 9.2 imp to import the dumpfile into your 9.2 db.
    If you have access to Metalink please refer to the following note for full details on compatibility between Oracle releases for exp/imp: 132904.1

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

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

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

Maybe you are looking for