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

Similar Messages

  • SQL Developer can't see tnsnames.ora

    Hiya. I hope someone can help with this. I installed Oracle instant client (basic lite) on my new Windows 7 machine (32 bit) - yeah, I know Windows 7 is not supported, but my gut feeling is that this isn't the issue I'm having.
    I've put my tnsnames.ora file in the same folder as instant client (C:\program files\oracle\instantclient), have created a system environment variable TNS_ADMIN which points to that folder, and have added that folder to the system "path" environment variable. That should do it, right?
    When I try to create a new connection in SQL Developer 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'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

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

  • How can you "share" 1 common TNSNAMES.ORA file amngst many clients?

    We're installing into a large enterprise, and have the rqmt of installing 8.1.7 client locally, yet sharing a common network copy of TNSNAMES.ORA. Has anyone ever done this? Better yet, the question might ought to be what is the proper approach here? Local client is necessary for compatibility reasons.
    Thanks!

    Hi
    Oracle provides a "DNS" type of service called ORACLE NAMES SERVERS.
    This means that if the NAMES_DIRECTORY_PATH parameter in the sqlnet.ora file
    has a value of OSNAMES, then the client automatically uses DDO ..
    Dynamic Discovery Option to resolve then Oracle Name.
    I recommend that you read up on this point ....
    Regards
    Ade

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

  • Configuring Clients to Share Net80 Configuration (TNSNAMES.ORA)

    I'd like to setup all client net80 connections to share a
    TNSNAMES.ORA file. I have tried adding the regestry key
    TNS_ADMIN to HKEY_CURRENT_USER|ENVIORNMENT key but
    have had no success. Not sure if it should be entered as
    a environment variable, I added TNS_ADMIN to
    HKEY_LOCAL_MACHINE|SOFTWARE|Oracle|HOME0 and still had no
    success.
    The client machines are Windows 2000. Has anyone configured
    this?
    Any help would be appreciated.
    Tammy

    I found the problem... actually it was working, just not from
    Oracle's Administrator Toolbar (which was what I was using to
    test the configuration). Strange.
    Thanks.

  • 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

  • Tnsnames.ora  is not working

    Hello,
    In my UAT envirnment we have 3 database on IBM AIX powerPC (64-bit) all are on 10.2.0.5.0
    My listener.ora and tnsnames.ora is at default location $ORACLE_HOME/network/admin/
    my listener is up
    $ lsnrctl status
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:56:08
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production
    Start Date 16-FEB-2011 18:51:16
    Uptime 15 days 17 hr. 4 min. 52 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0.1/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0.1/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.8.17)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "preprod" has 1 instance(s).
    Instance "preprod", status UNKNOWN, has 1 handler(s) for this service...
    Service "uat" has 2 instance(s).
    Instance "uat", status UNKNOWN, has 1 handler(s) for this service...
    Instance "uat", status READY, has 1 handler(s) for this service...
    Service "uat_XPT" has 1 instance(s).
    Instance "uat", status READY, has 1 handler(s) for this service...
    Service "uattest" has 2 instance(s).
    Instance "uattest", status UNKNOWN, has 1 handler(s) for this service...
    Instance "uattest", status READY, has 1 handler(s) for this service...
    Service "uattest_XPT" has 1 instance(s).
    Instance "uattest", status READY, has 1 handler(s) for this service...
    The command completed successfully
    i can remotely connected to database but on the same server tnsping is showing following error
    $ tnsping UATTEST
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:59:09
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0.1/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = uat)))
    TNS-12535: TNS:operation timed out
    or some time
    ORA-12547: TNS: lost contact
    remotely all the users are connected to listener but on the same server the operation is failed
    I cant connect to other database using this tnsnames.ora file
    can any one help me
    regards
    Bhushan
    Edited by: user9176407 on Mar 3, 2011 10:38 PM

    user9176407 wrote:
    Thanks for the reply
    In My server 3 database are there there a database by service name uat also present there
    I check all the configuration the entries in my tnsnames.ora is as below
    PREPROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = preprod)
    UAT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = uat)
    UATTEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = uattest)
    conf_uat =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 172.16.8.17)
    (PORT = 1521)
    (CONNECT_DATA =
    (SERVICE_NAME = uat)
    (SID = uat)
    also my listner file entries are
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = uat)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (SID_DESC =
    (SID_NAME = uattest)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    (SID_DESC =
    (SID_NAME = preprod)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
    Ok, for your listener.ora file, above you have the SID_LIST and the LISTENER sections. But what is this that follows, below?
    >
    uat =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1528))
    SID_LIST_uat =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = configdb)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
    which is working file
    but i have an problem in my tnsname.ora file

Maybe you are looking for