Is telnet use local tnsnames.ora?

I was suprise that when the local tnsnames.ora of client was not correct,sqlplus at telnet can't connect to server,and when the file was modify,I can use sqlplus connect to oracle through telnet.
is telnet use local tnsnames.ora?

This is simply impossible.

Similar Messages

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

  • Replace local tnsnames.ora-files with OID

    Hi there,
    I would like to replace our local tnsnames.ora-files with an central OID-Instance. I know I will have to use the ldap.ora on clientside, but how can I add service names to the OID?
    Is there any guide or manual which describes this functionality?
    Best Regards

    You need the Net Configuration Assistant, not Net Manager!
    - select configure Directory Usage
    - select correct type and name, and port(s)
    - select correct default context (NOT cn=OracleContext!)
    Next, you should be able to navigate to Local Naming, select an entry from your tnsnames.ora, and select from the mennu: Command->Directory->Export Net Service Names
    - select one or more entries to be migrated

  • Use of tnsnames.ora

    Hi,
    Pls help me..
    i want to know the use of **tnsnames.ora for oracle developer and also about listener.ora**
    pls let me known clearly..
    advance thanks....

    Welcome to the forums.
    This is not a SQL or PL/SQL topic, is it? Please choose forum for your product/topic wisely.
    What you ask about is very well documented in the Net Services Reference for your version (of Database).
    http://www.oracle.com/pls/db112/portal.portal_db?selected=4&frame=#network_management
    Note that reading the documentation - after learning how to find and navigate it - is best not avoided and highly recommended (to say the least), when working with Oracle products.

  • How to define a DSN without using a tnsnames.ora on the PC client machine

    Hi,
    Client : Windows XP with Oracle9i ODBC driver
    Server : Oracle 10 on Solaris
    I need to define a DSN which does not rely on tnsnames.ora on the client machine.
    I tried to use a file dsn, but without success, because I don't know the parameters to use.
    I used these params in the file.dsn :
    [ODBC]
    DRIVER=Oracle9i ODBC Driver
    UID=testuser
    PWD=testpw
    SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=9999))(CONNECT_DATA=(SERVICE_NAME=testSID)))
    It does not work ....

    Hrm, interesting. It always used to be DBQ but it seems it might have changed to SERVER at some point.
    Anyway, I tried this and it worked fine for me (using 10204)
    TESTFILE.DSN
    ================
    [ODBC]
    DRIVER=Oracle in OraDb10g_home1
    server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))
    TEST.VBS
    ==========
    set con = createobject("adodb.connection")
    con.open "filedsn=testfile;uid=scott;pwd=tiger;"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Note also that unless you really want to create a file dsn, you could also just use a dsnless connection string and pass that directly too:
    set con = createobject("adodb.connection")
    con.open "driver={Oracle in OraDb10g_home1};uid=scott;pwd=tiger;server=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=gdarling-pc2)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))"
    set rs = createobject("adodb.recordset")
    rs.open "select user from dual",con
    msgbox rs.fields(0).value
    Hope it helps,
    Greg

  • Possible to use 2 tnsnames.ora for just one client?

    Hi,
    in our organisation we have two different tnsnames.ora files. This because of the
    fact that there are remote locations each with their own IT department. Each department maitains their own databases, but applications are spread over the whole organisation.
    What I would like to to create is a tnsnames.ora in which there is an e.g. include c:\oracle\tnsnames.ora and include c:\oracle1\tnsnames.ore. Would that be possible?
    Fred

    If what you want to achieve is a situation where different users use the same PC, but you want to limit the tnsnames they have access to, what if you try setting the TNS_ADMIN environment variable to point to the permitted directory for each user env profile.
    e.g
    user1
    TNS_ADMIN=c:\oracle\network\admin\user1
    c:\oracle\network\admin\user1\tnsnames.ora
    c:\oracle\network\admin\user1\sqlnet.ora
    user2
    TNS_ADMIN=c:\oracle\network\admin\user2
    c:\oracle\network\admin\user2\tnsnames.ora
    c:\oracle\network\admin\user2\sqlnet.ora
    etc.

  • Does ODBC SQLDriverConnect allow connections without using tnsnames.ora?

    I am trying to find out if the Oracle ODBC driver supports a connection attempt through the SQLDriverConnect() ODBC API function without the need to use the tnsnames.ora file. In other words, I would like to pass into the SQLDriverConnect() function the connection string information that would normally be found in the tnsnames.ora file. The purpose of this would be to force the ODBC driver to bypass reading the tnsnames.ora file entirely and simply use the connection information I pass into the connection buffer in the SQLDriverConnect() function.
    If this is possible, can someone explain how to do it? I've tried what I think should have worked, so I'm either not doing this right or this functionallity is not supported by the driver.
    Thank you.
    -Dave

    You might try logging a support request to see if that functionality got restored at some point. My recollection is a year or two old...
    The Easy Connect syntax is just another feature of the TNS layer, so it should be available to any apps using the 10g client.
    The documentation discusses using the Easy Connect Naming Method in some detail. I've not used it with the Oracle ODBC driver, but it should just work.
    Justin

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

  • 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

  • Connecting to a database that's not in tnsnames.ora

    Hi there,
    I'm using Oracle 8.1.6/Apache/PHP & would like to be able to connect to a database that's not listed in the local tnsnames.ora (by local, i mean the machine that's serving the web pages).
    Is this possible?
    Thanks!

    I'm not sure that you can use this in PHP/Apache, but when I used Oracle Enterprise Manager (which isn't ported to Linux so I had to use a different machine (NT/Solaris)) I used the format ipaddress:port:SID (ex.: 192.168.0.5:1521:cddata), where ipaddress is the address of your machine, port is the port number of the listener on the database (defulat is 1521) and SID is the SID of the database you want to access.
    I hope this helps.

  • Urgent : Is there any c++ parsers available for reading tnsnames.ora

    I have to parse the tnsnames.ora and get the connection string , host name , instance name , port etc .. and store it in my local memory structure . Is there any c++ parsers available , which parses and gives the desired output or do i have write my own parser .

    You're right...the database connections work fine if I define them manually rather than reading them from the tnsnames.ora file.
    I was hoping to have many users running SQL Developer so using the tnsnames.ora file might save people's time and reduce the number of database connection-related support calls.
    If worse comes to worse, I can create an XML file to define the database connections. The only drawback to this is that we have an automated procedure to update people's tnsnames.ora whereas there is currently no way to keep the XML file up-to-date.

  • Sql Developer not reading right tnsnames.ora

    I have both a local 9iv2 and a 10xe (app_express) databases installed. Oracle home is set to ora92 and therefore should be reading the tnsnames.ora file in c:\oracle\ora92\network\admin. However, I recently used SQL Developer to connect to the 10xe database, and now all it reads is the tnsnames.ora file in the oraclexe\....\network\admin directory.
    Any suggestions as to how to get it to use the tnsnames.ora from the ora92 home again??
    The only solution I can think of now is to create one tnsnames.ora file with all the connections I need and copy it to each place where a tnsnames.ora file has been installed (ora92, ver 8 server, oraclexe, designer, forms/reports installs - etc.) Any other suggestions would be appreciated. I don't know why it is not reading from the specified home.
    Thanks
    Glenn

    Hi,
    This should help.
    Re: tns_admin
    -kris

  • Problem with TNSNAMES.ORA (urgent)

    Dear Freinds,
    I am trying to run my Forms(6i) on the Form server , but as I try to login to the database to run the form I am getting an error 'ora-12154 : TNS could not resolve the service names' . I have checked the local TNSNAMES.ORA file and it has the entry for my Oracle SID , (my local machine registry has also been changed).
    Please tell me if I am missing to set anything .
    Thanks in advance .

    Hellow There,
    Go to services,i.e: Start -> Settings -> Control Panel -> Services.
    There is a service nam:
    OracleTNSNames80
    Right click on it and then click "START".
    If this could not solve, then go to Oracle Net8 and try to configure "Database location" and/or "Listener Location" and see what happen in the Listener node.
    If this did not help, you would go to www.Informit.com -> Free Library.
    and navigate through the Library to a free electronic book:"teach u r self Oracle8 in 21 days" .. good book.
    Regards
    Tariq Khalaf

  • Parameters of tnsnames.ora

    hello. i am new in oracle 10g and i want to take advice. i see the setting parameters of tnsnames.ora on Oracle Net Manager and i set the tnsnames.ora with it.
    i developed a client application working with remote oracle 10g database on windows platforms. i developet it on VisualStudio, this application can work with both ms sql and oracle 10g. the user chooses it. when the user chooses Oracle i must create connection string and connect to the remote db.
    i can implement it with two way
    1. i want only connection name which is defined in tnsnames.ora and connect over it.
    2. i make an interface user set the simple and advanced settings of connection parameters and i can insert them into connection string.
    which way should i use. i think that it is better to set all of parameters in my application because it will be easier for user. but i think about the future versions of oracle . there may be problems on them.
    what do you advice me?
    thanks.

    Hello user "user518019":
    I'm also new in the Oracle world but I have programming since a lot of years. I would recommend to you following a simple rule:
    if your applicattion is very simple you must follow the simple way to connect to DB.
    By using a "tnsnames.ora" you only need to know a DB name to connect to it. In the other hand, if your are using non-default ports o also like this (per example, a more complicated enviroment) you would need a more detailed box to especify address, port number, service name, etc, etc...
    I suppose Oracle will continue using "tnsnames.ora" a lot of years, but this is only a impression. I hope send you some help with this.

  • Getting sqlplus to read tnsnames.ora

    I have installed the instant client (version 11_1) on an Ubuntu box (9.04)
    I have a tnsnames.ora file I would like to use with sqlplus.
    What do I need to do to configure to get sqlplus to use my tnsnames.ora file?
    When I strace the sqlplus process, I see that it tries accessing tnsnav.ora (in several locations)
    but never tnsnames.ora. I have placed a copy of the tnsnames.ora file in /etc, but sqlplus is not
    checking for a tnsnames.ora file in any directory.
    I've tried putting:
    network.directory_path TNSNAMES
    in my ~/.sqlnet.ora file. Sqlplus is reading that file, but that had no effect.
    Thanks!

    Hi,
    The default installation of tnsnames.ora is in:
    ${ORACLE_HOME}/network/adminAn example of an entrie:
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = <host_name or IP>)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = <SID>)
      )Also you should check [Oracle® Database Installation Guide 11g Release 1 (11.1) for Linux|http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/toc.htm]
    Regards,

Maybe you are looking for

  • Calling all SSAS users! May TechNet Gurus announced!

    The results for May's TechNet Guru competition have been posted! http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx Congratulations to all our new Gurus for May! We will be interviewing some of the winners

  • How to use jar -C programmatically

    Hi, I am creating a jar file programmatically. I want to use jar -C option. e.g jar -cvf myjar.jar -C anotherDir . Can anybody tell me how to do it?

  • I plugged in my Ipod and it is not automatically syncing

    Cpl of problems.  I plugged my Ipod into the USB cable connected to my PC.  I Tunes opens automatically but it does not sync.  There are no new updates & I used my Ipod today without any problems.   The battery is fine as it fully charged while plugg

  • 1000's of Returned Mail messages every day!

    Hi All, I am receiving thousands of Returned Mail and Undeliverable Mail messages every day in my Mail application. Here is the problem description: I used to have a MobileMe (.mac) account and a corresponding email address.  I did not renew my Mobil

  • Why is a workflow "stale"?

    I'm writing a workflow to send an email each time an user is created and I'm calling this workflow from a POJO. Everything looks good, no errors, in debug mode in my POJO I see that the workflow starts, there are no messages in my inbox. This is what