Can't find tnsnames.ora

Hi,
I install Instant Client on Linux using rpm. I need to edit the tnsnames.ora, but I can't find it.
Can I copy one instance of tnsnames.ora and set TNS_ADMIN=<the path of tnsname.ora directory> as and enviornment variable on your client machine?
Thank you

No tnsnames.ora is included with Instant Client, you have to create (or copy, as you do) your own.
You did the right thing, TNS_ADMIN must point to the directory containing tnsnames.ora.
If you have an sqlnet.ora file, it must be in the same directory.
Yours,
Laurenz Albe

Similar Messages

  • Cannot find tnsnames.ora error message

    We are using oracle 10.2.0.1 via Toad. I get a cannot find tnsnames.ora file error message and see only a tnsnames.ora file in the sample file under the c:\ORACLE\product\10.2.0.1\NETWORK\ADMIN\ directory.
    Do I need to create this file, and if so how do I do this?
    Thanks in advance for your help
    regards,
    user12943453

    Do I need to use the TNSNames Editor? No need for tnsnames.ora or SQL*net to access local DB
    Can I just use direct connect and the sqlnet editor?YES!

  • Command to determine path used to find tnsnames.ora

    How can know (with command or similar) the path that uses Oracle client to find tnsnames.ora file?
    We need a command because not always we have administrator permissions on a workstation to make a regedit or to see environment variables, but we have to determine causes of problem connections.
    If I’m working with client on UNIX, ‘tnsping name’ command shows a path of sqlnet.ora, usually the same that tnsnames.ora is allocated. Under windows doesn’t display information about this.
    For example:
    On UNIX:
    tnsping ####
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 9.2.0.4.0 - Production on 03-MAY-2007 13:55:58
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    /software/oracle/product/9.2.0/network/admin/sqlnet.ora
    On WINDOWS:
    C:\>tnsping ####
    TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 03-MAY-20
    07 13:58:51
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    TNS-03505: Message 3505 not found; No message file for product=NETWORK, facility
    =TNS
    Exists any command to do it or any command that shows this information?
    Thank you very much!!!
    Marc.

    Hi!
    In windows you also get the message what sqlnet.ora was used.
    The error message you get
    TNS-03505: Message 3505 not found; No message file for product=NETWORK, facility=TNSlooks like there is something wrong with your client installation, it can't find it's message file so you don't get your sqlnet.ora path. I suppose in your case knowing the location of tnsnames.ora wouldn't help since your client isn't installed correctly.
    Regards,
    PP

  • SQL Developer can't see tnsnames.ora

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

    Here's how to debug where it's looking:
    http://krisrice.blogspot.com/2008/04/it-seems-to-come-up-often-that-some.html
    -kris

  • Can we share TNSNAMES.ORA

    hi,
    I would like to know if it is possible to share a tnsnames.ora on Oracle8.1.7 between several clients. We are using multiple databases and the file tnsnames.ora often changes.
    Can we do it and how ?
    Thank you if you have an answer.

    No tnsnames.ora is included with Instant Client, you have to create (or copy, as you do) your own.
    You did the right thing, TNS_ADMIN must point to the directory containing tnsnames.ora.
    If you have an sqlnet.ora file, it must be in the same directory.
    Yours,
    Laurenz Albe

  • DBD::Oracle & Instant client - don't find tnsnames.ora

    Hello,
    I'm trying to use tns names in Perl scripts to connect with Instant client. I always get the ORA-12154 error when connecting with Perl :
    ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach).
    The perl command that raise the error is :
    +$dbh = DBI->connect("dbi:Oracle:MYDB","user","password") or die $DBI::errstr."\n";+
    I checked my Oracle installation and everything seems fine. Connection with sqlplus work without problem using the same connection string (sqlplus user/passowrd@MYDB).
    I stat'ed my tnsnames.ora file to check if it's accessed : it is with sqlplus, but not with my perl script.
    Instant Client has been installed with the zip files made available by Oracle (not RPM). ORACLE_HOME points to the installation directory and tnsnames.ora is located in $ORACLE_HOME//network/admin/. Server is a Red Hat Entreprise 5.
    In my knowledge DBD::Oracle use OCI so there should not have difference between sqlplus and DBD::Oracle. Am I wrong ? Anyone have had this problem before ?
    Thanks for your help
    Florent

    Hi,
    Environment variables was correctly defined, but your comment put me on the right track.
    I printed the %ENV content to check ORACLE_HOME which was OK.
    I check the directory and remind I put a sqlnet.ora file in the same directory than tnsnames.ora with the followin content :
    AUTOMATIC_IPC = OFF
    TRACE_LEVEL_CLIENT = OFF
    names.directory_path = (TNSNAMES)
    names.default_domain = world
    name.default_zone = world
    I removed this file and everything is ok now. I don't really know what this file is used for, but if I keep it online and change MYDB in the connection name to MYDB.world, it worked. I think I have to learn more about names...
    Thanks for your help anyway !
    Regards,
    Florent

  • Tnsping can't read tnsnames.ora  TNS-12533: TNS:illegal ADDRESS parameters

    Here's my tnsnames.ora. tnsping thinks it's illegal:
    acsplan =
    (DESCRIPTION=ACSPLAN
    (ADDRESS_LIST =
              (ADDRESS=(PROTOCOL=tcp)(HOST=10.101.205.166)(PORT=1521))
    (CONNECT_DATA=(SID=ACSPLAN))
    Why does tnsping think this is illegal?
    Thanks.
    Dean

    Dean Schulze wrote:
    Here's my tnsnames.ora. tnsping thinks it's illegal:
    acsplan =
    (DESCRIPTION=ACSPLAN
    (ADDRESS_LIST =
              (ADDRESS=(PROTOCOL=tcp)(HOST=10.101.205.166)(PORT=1521))
    (CONNECT_DATA=(SID=ACSPLAN))
    Why does tnsping think this is illegal?Does this work?
    acsplan  =
       (DESCRIPTION=
         (ADDRESS_LIST =
              (ADDRESS=(PROTOCOL=tcp)(HOST=10.101.205.166)(PORT=1521))
         (CONNECT_DATA=(SID=ACSPLAN))
       )

  • Can't change tnsnames.ora

    Hi Everybody,
    Am using 10gXE , while trying to add new entry to tnsnames.ora or init.ora it throws a exception that don't have enough privellege.Am having the database in my local system.How to handle the sitution .please help.
    Thanks

    Well, XE is not certified against Vista.
    http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm
    So you need to download the edition meant for Vista from here...
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html

  • Getting host, port from the tnsnames.ora with the service name

    Hi.
    I think that I asked a similar question yesterday. I want to ask if there is a way to get host and port from the tnsnames.org with a given service name. Somebody answered it for getting SID in the sqlplus. so I tried it in a similar way, but it didn't work.
    I have a service name, but I don't know how to get host and port. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
    I'd appreciated if somebody knows it.

    caesarkim wrote:
    Hi.
    I think that I asked a similar question yesterday. I want to ask if there is a way to get host and port from the tnsnames.org with a given service name. Somebody answered it for getting SID in the sqlplus. so I tried it in a similar way, but it didn't work.
    I have a service name, but I don't know how to get host and port. I know that I can parse the tnsnames.ora file to get it, but if possible, I want to use the more official and safe way.
    I'd appreciated if somebody knows it.Oracle RDBMS does not require SQL*Net to operate.
    Oracle RDBMS does NOT now or care about content of any tnsnames.ora file.
    Realize that each (remote) user can have their own personalized copy of tnsnames.ora
    The content of tnsnames not NOT have to reflect any reality.
    I could post the content of my tnsnames.ora & it would be useless to everyone reading.

  • Lookıng tnsnames.ora from em (rac)

    hi
    I cannot see the content of tnsnames.ora file from enterprise manager
    Oracle 10.2.0.3.0 on ibm aix
    The server is rac with two instances.
    for both instances, from the enterprise manager I look at at Net Services Administration > Local Naming:
    but nothing comes.
    However I can look at tnsnames.ora file from the server.
    How can I see tnsnames.ora from em ?

    but nothing comesIn what sense ? Nothing at all, or "No Search Results" ?
    I can look at tnsnames.ora file from the serverWhere ?

  • TOAD/OID and TNSNAMES.ORA

    We had OID installed on a trial basis here to replace tnsnames.ora files on servers, laptops and desktops. We have since uninstalled and removed all files and registry entries of the application from the server where it was installed.
    I had my laptop set up to use OID and I removed my TNSNAMES.ORA file. I have since removed all files from my laptop that had anything to do with OID and I put in a new TNSNAMES.ORA file. At the present time I can delete my TNSNAMES.ORA file from my laptop and TOAD will still connect to Oracle. However, SQLPlus or any other tool I use to connect to Oracle will not connect. Also, I can connect to Oracle databases that are not in my current TNSNAMES.ORA file.
    I have scanned my laptop looking for TNSNAMES.ORA files. I have set my registry to include a TNS_ADMIN entry to point to my current TNSNAMES.ORA file and I have set up user and system variables to point to my current TNSNAMES.ORA file but nothing seems to stop TOAD from using the Oracle connection strings that were established in OID. By the way, I uninstalled TOAD, cleaned out all files and registry entries that I know of; then I reinstalled TOAD. That didn't help either.
    Does anybody have any ideas of where I can look to resolve this?
    Thanks,
    Tom

    Is it possible, you are a 'victim' of hostname resolution? If there's a constellation like:
    1)You have a host named host.something.com
    2) You enter 'sqlplus scott/[email protected]'
    then Oracle generates
              (DESCRIPTION=
              (CONNECT_DATA=(SID=*)(SERVICE_NAME=host.something.com))
              (ADDRESS=(PROTOCOL=TCP)(HOST=host.something.com)(PORT=1521))
    Connect will succeed if you have a corresponding configuration on the server side,you don't need any configuration files on the client side.
    BUT, since you have sqlnet.ora, which points to tnsnames as name resolution, it would mean TOAD ignores yout sqlnet.ora. Nevertheless host name resolution could be an explanation for this mysterious behaviour.

  • USB Flash Drive -- tnsnames.ora

    I would like to be able to run the SQL Developer from a USB flash drive. Everything works great except I have a tnsnames.ora file referenced in my connections.
    Does anyone know if there is a location in the SQL Developer folders that I can place the tnsnames.ora file, so that it would be read by SQL Developer. I would like to be able to plug in the USB drive without setting TNS_ADMIN or having oracle home, and was wondering if the software would also check a directory as an option.
    The reason I like the tnsnames.ora, is that I have a RAC'd environment with multiple servers and the simple connection tab does not allow me to enter multiple servers. Thanks.

    Hello all,
    I'm evaluating SQL Developer today (7/11/2007) and I wanted to describe a technique my company uses to start apps that require an Oracle environment to be created prior to startup. We use a command file for this purpose. The .cmd file resides in the same folder as the application executable (sqldeveloper.exe in this case) and looks like this -
    ------------ sqldeveloper.cmd ------------------------------------------------------------------------
    @echo off
    setlocal
    REM cd to the system drive just in case..
    c:
    cd %TEMP%
    REm this file sets some Oracle variables
    call X:\Oracle.10gR2.EN.001\dba\oracle.cmd
    REM cd to the location where sqldeveloper was placed
    cd "C:\Program Files\sqldeveloper"
    REM specifiy the folder where the tnsnames.ora resides
    set TNS_ADMIN=X:\Oracle.10gR2.EN.001\network\admin
    REM start the app, in this case SQL Developer
    start sqldeveloper.exe
    The file X:\Oracle.10gR2.EN.001\dba\oracle.cmd in the call command above contains -
    set ORACLE_HOME=X:\Oracle.10gR2.EN.001
    set TNS_ADMIN=X:\Oracle.10gR2.EN.001\%ORA_SETUP%\%ORA_NAMES_SRV%
    set ACCESS=C:\Program Files\Ora01.102
    path %ACCESS%;%ORACLE_HOME%\bin;%windir%\System32;%windir%
    set API=%ORACLE_HOME%\dbs
    set OLEDB=%ORACLE_HOME%\oledb\mesg
    set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    set SQLPATH=%ORACLE_HOME%\DBS
    set SQLPLUS=%ORACLE_HOME%\sqlplus\mesg
    set OO4O=%ORACLE_HOME%\oo4o\mesg
    set NLSRTL33=%ORACLE_HOME%\ocommon\nls\mesg
    set NLSRTL32=%ORACLE_HOME%\ocommon\nls\mesg
    set ORA_NLS32=%ORACLE_HOME%\ocommon\nls\admin\data
    set ORA_NLS33=%ORACLE_HOME%\ocommon\nls\admin\data
    The X: drive above is a network drive where Oracle utilities are installed, so I don't actually have to have them installed on my PC. The tnsnames.ora is also maintained by the DBA, so no one needs to have it (or the Oracle client) on his/her own PC. This drive is automatically mapped to my PC at startup.
    When I start up SQL Developer by double-clicking on a shortcut pointing to the .cmd file, it reads the tnsnames.ora specified above. When I switch the Connection Type in the Connection dialog box from Basic to TNS, my tnsnames.ora entries appear in the Network Alias dropdown.
    One issue I'm noticing with this approach is that when I right-click on the Connections node and select New Connection, it takes a few minutes to read the tnsnames.ora, and when it finally returns control, it lists each tnsnames node multiple times in the dropdown. None of my other apps (TOAD for example) do this. However, this is a minor issue, shouldn't stop me from using the tool.
    Hope this helps..

  • Can't srvctl command write tnsnames.ora file?

    Hi,
    I use srvctl to create a new service correctly, but I find the information of this service isn't written into tnsnames.ora file, it means, user can't connect database by directly using this service name, it's very stranger, who can tell me how to use srvctl to create a service and ensuer the information about this service can be correctly written into tnsnames.ora file?
    #srvctl add service -d mm -s mx -r node1 -a node2.

    Did you check tnsnames.ora for any new entries?
    Yes,There are not any new entries for the new service I just created.
    Check the command reference again, there is a flag to display "sample tns entries"
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm#i1008779
    I check that documentation, and I can use that command to run in my RAC environment, the returned result is
    Example client-side TNS entry for service mx:
    mx = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db_vip)(PORT=dedicated_port
    ))(CONNECT_DATA=(SERVICE_NAME=mx)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC
    How to use this service in client or our application, must we manullay configure tnsnames.ora file?
    BRs./Vinson

  • Can i use the default value in TNSNAMES.ora file

    Hai , i connect the Vb to oralcle using Oracle data access component , and i have read the documentation for ora file.
    Most documentation show to connect oracle with vb.net , the ora file must be modified.
    My questions is , can i directly connect to Oracle without modify the ora file ?
    Thank You

    Thank you for the reply. I will read the documentation first.
    I install the oracle 10g express edition . Hence , i have two user , the sys an the other is hd.
    How the TNSNAMES.ora known i want connect to which username ?
    Thank you

  • Can you convert a standard tnsnames.ora to the IDEConnections.xml?

    I'm interested to see if there is a way to convert an existing tnsnames.ora to the IDEConnections.xml format?
    Would be a nice tip/feature...especially if you want to deploy sql developer to a large user base and not have them type in every possible connection.

    He wants all of his connections to just show without having to create connections. Actually, I noticed a post from Kris that shows a method for doing this:
    Re: Raptor Wish List
    Eric

Maybe you are looking for

  • MBP 2.16 Core Duo - ProRes

    Hi Everybody, I have the original Macbook Pro with 2.16 Intel core Duo processor not the core 2. My questions is will I be able to edit 1080i prores - not hq on this machine or do I need to upgrade? I plan to capture on the new AJA Ki Pro. If so, how

  • BPEL Installation Best Practises

    All, I have been tasked with installing BPEL in our test and production environments. It looks like there are several architectural options during installation. Specifically, installing a complete standalone BPEL with it's own home or installing in a

  • Changing default email provider when submitting a form

    I created a form in LiveCycle and when I click on "Submit", (I have an email submit button set up on the form), it opens up a message in outlook, instead of just sending it to the email address I provided, how do I fix this? Thanks.

  • X120e Cant scroll to the bottom with trackpad mid button

    Hey, i've been playing with my new x120e for a while and one thing bugs me. As i try to scroll down with the trackpad mid button, sometimes I cant get to the very bottom of the document. I can see there is a little gap at the bottom of the scroll bar

  • Bulk infoobject creation

    Hello guru's, Is any program or FM is avilable in sap BI/BW for bulk creation of infoobjects(Char/KF) in one go? Thanks, Rishi Nigam