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.

Similar Messages

  • How to write the listener.ora and tnsnames.ora

    Hi, there
    I store my oracle database in the machine A. In the machine B,
    it only install the oracle without create database. How should
    I write the
    listener.ora and tnsnames.ora? So that the machine B could
    acces the database which store in the machines A.
    Could you give me a simple example and with some description.
    Thanks you very much!!
    null

    wrjih (guest) wrote:
    : Hi, there
    : I store my oracle database in the machine A. In the machine B,
    : it only install the oracle without create database. How should
    : I write the
    : listener.ora and tnsnames.ora? So that the machine B could
    : acces the database which store in the machines A.
    : Could you give me a simple example and with some description.
    : Thanks you very much!!
    1 - you can simply copy the files from the server to the client.
    If they are correct, it must work fine
    2 - Follow the examples inside the
    $ORACLE_HOME/network/admin/samples
    3 - Follow my examples:
    I will try to make it simple:
    The server must have the listener.ora. The client does not need
    it if you don't have a database there.
    I cannot tell you what is mandatory in the file, and what is not.
    The listener.ora has the interface (addr or name)
    to listen, the port/proto, and some info about your database
    ($ORACLE_HOME and Name).
    #--- Listener.ora -- my minimal settings ---
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL= TCP)(Host=Server)(Port= 1521))
    (ADDRESS=(PROTOCOL= IPC)(KEY = ORCL))
    STARTUP_WAIT_TIME_LISTENER = 1
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    TRACE_LEVEL_CLIENT=OFF
    SID_LIST_LISTENER =
    (SID_LIST=(SID_DESC=
    (SID_NAME = SACS)
    (ORACLE_HOME=/oracle/805)))
    #---- end of listener.ora ---
    Both machines can, and should have similar TNSNAMES.ORA:
    tnsnames.ora has the address or name of the server, and the Name
    of the database you wish to connect to.
    #--- tnsnames.ora --- minimal.
    ORCL = (DESCRIPTION =
    (ADDRESS_LIST=(ADDRESS = (PROTOCOL = TCP)(Host=Server)(Port =
    1521)))
    (CONNECT_DATA = (SID = SACS)))
    #--- end of tnsnames.ora ---
    And finally sqlnet.ora, that is very usefull for setting secure
    networks or
    just logging for looking for errors. You can also set your
    keepalive timeout.
    #--- sqlnet.ora
    TRACE_LEVEL_CLIENT = OFF
    names.directory_path = (TNSNAMES)
    SQLNET.EXPIRE_TIME = 10
    #-- end of sqlnet.ora --
    null

  • Path of Sqlnet.ora and Tnsnames.ora

    Hi all
    Why I have one
    Sqlnet.ora
    in
    C:\ORAWIN95\NETWORK\ADMIN
    and
    one in
    C:\ORAWIN95\NET80\ADMIN
    and
    Tnsnames.ora
    in
    C:\ORAWIN95\NET80\ADMIN
    and
    C:\ORAWIN95\NETWORK\ADMIN
    and
    C:\ORAWIN95\NET80\TNSAPI
    why they are duplicated?
    thanks
    Sobrinho

    It looks like you have (or had) multiple versions of SQL*Net.
    Oracle 8 put everything in %oracle_home%\net80 while Oracle 7 and 9 use %oracle_home%\network

  • Listener.ora and tnsnames.ora

    What are the differences between the files listerner.ora and tnsname.ora in terms of their functions? Their contents are so similiar. Thks.
    A beginner

    I need to use ADO with the connection string
    "provider=sqloledb; server=OrclServer;
    DATABASE=PMSYS;UID=PMUSER;PWD=" in the application IWhy do you "need" to use the MS OLE DB data provider for SQL Server (SQLOLEDB)?
    And the rest of the connection string you are trying to use looks like one for odbc dsn-less connection. Be sure you are using the correct syntax when you have decided on the type of data access api that is suitable for your application and database.
    You should probably be using OraOLEDB.Oracle data provider, Like Sybrand suggested. Also, be aware of other obsolete providers such as msdaora and msdasql - I'd suggest that you do not use these for a new application (unless you really know what you are doing).
    If you are developing with .NET Framework, then you have another range of data providers to choose from. If you are developing for Oracle data sources, the one from Oracle should be your first choice: ODP.NET.
    Message was edited by:
    orafad

  • Listener.ora and Tnsnames.ora created in a different location

    Hi All,
    I have both the files i.e Listener.ora and Tnsnames.Ora in a location called D:\OraHome_1 and not in D:\OraHome_1\Network\Admin !! Also I do not have the sqlnet.ora file in either of these two locations.
    Though conn sys/pswd@sid is working fine and DB is also up and running, "conn / as sysdba" is not working. I would like to restore these files in their actual location and make "conn / as sysdba also working".
    Thanks in advance
    -Aditi

    Is perhaps TNS_ADMIN set to d:\orahome_1 ?where do i check this parameter ?
    What does output of following tell youc:\> tnsping sid
    C:\WINNT\system32>tnsping sid
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 05-JUL-2006 19:17:26
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 'complete host name')(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = SID)))
    OK (30 msec)
    ***NOTE*** this leaves a blank space when it says 'Used parameter files:' Isn't this unusual ....!!
    You may not need the listener.ora - it is kinda "optional". Not sqlnet.ora either. There are defaults to survive on.That's fine but I still would like to know why these files got created in a directory different from oraclehome\network\admin?

  • Setting the listener and tnsnames.ora

    Hi,
    I have two node cluster database 10.2.0.4 on Linux. Someone messed up with the tnsnames file and also the local,remote listener setting are gone during the switchover.
    Now I just want to replace the new tns entries,listener entries, set the local/remote listener and then register the local/remote listener. During these changes it will not affect the applications, but just want to know is there any specific steps which I have to keep in mind.
    Thank you.
    Edited by: 936264 on May 23, 2012 8:52 AM

    Hi
    Did you not back them up? :-)
    The answer to your question is yes. Basically, you need your listener referenced in the listener.ora for each node, then you need to reference those listeners in your tnsnames.ora - one for your local listener and another for your remote listener. A good starting point will be what you've got in your LOCAL_LISTENER and REMOTE_LISTENER parameter - that will show the names of the entries you need to create in the tnsnames.ora. I have all entries in the listener.ora and tnsnames.ora on both nodes just for simplicity but you don't have to do that.
    Any idea what port you used for your listener? The default 1521?
    A couple of examples from my test system:
    listener.ora (we use port 1550 by the way):
    LISTENER_DEVDB_NODE1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1550)(IP = FIRST))
    tnsnames.ora
    LISTENER_DEVDB_NODE1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
    LISTENER_DEVDB_NODE2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1550)(IP = FIRST))
    LISTENERS_DEVDB =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1550)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1550)(IP = FIRST))
    So our local listener is LISTENER_DEVDB_NODEn for each and REMOTE_LISTENER is LISTENERS_DEVDB on each node.
    Hope that helps. Any further questions let me know....
    cheers,
    Mark
    orabackus.wordpress.com

  • How to configure listener and tnsnames.ora on 10g version

    how to configure listener and tnsnames.ora on 10g version

    If you are on linux platform, on command prompt execute netmgr and configure listener fromt there. Or go to $oracle_home/network/admin/listner.ora write the following
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    For tnsnames.ora write the following
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )

  • Connect to Oracle DB using DBCP and tnsnames.ora

    I have a Spring-based web app that is running on Tomcat and uses DBCP to connect to Oracle.
    The problem:
    Need to pull database connection information from tnsnames.ora file. There is Oracle Client installed on a server, so tnsnames file is available.
    According to JDBC documentation, the following url should do the trick: jdbc:datadirect:oracle:TNSNamesFile=c:\\oracle\\product\\10.2.0\\NETWORK\\ADMIN\\tnsnames.ora;TNSServerName=FITZGERALD.SALES
    This leads to the following declaration in dataAccessContext-local.xml file:
    +<bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close">+
    +<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>+
    +<property name="url" value="jdbc:datadirect:oracle:TNSNamesFile=C:\\oracle\\product\\10.2.0\\db_1\\network\\admin\\tnsnames.ora;TNSServerName=TESTDB"/>+
    +<property name="username" value="${jdbc.username}"/>+
    +<property name="password" value="${jdbc.password}"/>+
    +</bean>+
    This doesn&rsquo;t work for me saying that database url is invalid.
    Can anyone provide instructions on how to set up DBCP with tnsnames.ora?
    Any help greatly appreciated.

    You are right, the I got that url may not be correct. I got it from datadirect documentation.
    I couldn�t find any good information or examples on this, but I think using TNS keyword-value pairs and tnsnames.ora is supported by type4 Oracle 10g JDBC.
    Some info I found in section �Connecting to the Database through the Applet� in JDBC Reference http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/jdbcthin.htm#CACCHECD
    I guess there is something off in that documentation though. I couldn't get it working.

  • Oracle cleint and tnsnames.ora

    We have a duty to do some data analysis on one of our oracle databases. We have a copy of the tnsnames.ora file with the DB server and SID etc.
    If you use something like toad or golden to query the DB, do you also need to install the oracle client on the machine (windows XP?) Or just the TOAD software?
    Is there a default locaiton on XP where tnsnames.ora needs to be saved?
    And if we do need the client what is the correct version?

    user599292 wrote:
    We have a duty to do some data analysis on one of our oracle databases. We have a copy of the tnsnames.ora file with the DB server and SID etc.
    If you use something like toad or golden to query the DB, do you also need to install the oracle client on the machine (windows XP?) Or just the TOAD software?
    Is there a default locaiton on XP where tnsnames.ora needs to be saved?
    And if we do need the client what is the correct version?Toad, yes you need the Oracle client. Can't say about "golden", I don't even know what that is. In general, any product like this is going to sit on top of the Oracle client, not replace it.
    there is nothing magic about tnsnames.ora. It is just a names resolution file that is used by the oracle client software. If you have some magic application that replaces the oracle client instead of using it, then your tnsnames.ora will be of no intrinsic value beyond giving you the information you need to configure said magic application.
    Edited by: EdStevens on Oct 14, 2011 6:32 AM

  • DATAGUARD SERVICENAME AND TNSNAMES.ORA problem.

    Experts,
    I have created a database TESTDG10 ( db_unique_name) and using a grid control created a standby TEST10S ( db_unique_name). The dbname is TESTDG10. The dataguard configuration works well. I am able to switchover from one database to another and able to see logs transferred and applied.
    The Problem. I included the following in my client ( TOAD ) tnsnames.ora and I cannot connect to the standby with it. Could you please tell me what is wrong. Given below is the tnsnames.ora entry on the client.
    TESTDG10.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PrimServer )(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = StandServer )(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTDG10)
    I did not modify the listner.ora or tnsnames.ora files on the servers. Grid Control did all the necessaru mods.

    The standby TEST10S is currently the active primary and I cannot connect to it using sqlplus test/test@TESTDG10. I have to explicitly use sqlplus test/test@TEST0S. Should I create a on-logon trigger at database level on the both databases and redirect the connection. Please explain to me the mechanism for the client to connect to the active primary transparently without having to change the connect string each time a switchover happens.

  • Help on Listener and Tnsnames.ORA

    Hi guys,
    I just installed Oracle Discoverer Admin Ed Rel 4 recently and i can't connect to Discoverer as well as SQL+ due to listener and tnsnames problem. Can you pls. help me to configure the .ORA files needed for the connection. I was trying to build database and connections local to my laptop. Is this possible using TCP-Loopback?
    Appreciate any help...
    Thanks.
    Enzo

    There's another possible problem on the Windows platform: Database and Discoverer are installed in different Oracle homes, many people configure the sqlnet files inside the database's ORACLE_HOME, which are not read automatically by the other home(s). So solution is to copy all configuration files to ORACLE_HOME\network\admin of all ORACLE_HOMEs OR to set TNS_ADMIN, which points to one central location.
    Werner

  • Trouble with listener.ora and tnsnames.ora

    I can't get the listener running.
    Trying to start the listener results in the following message:
    LSNRCTL for MacOS X Server: Version 9.2.0.1.0 - Beta on 04-JAN-2003 23:35:28
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    I suspect i have a configuration error in listener.ora or tnsnames.ora, but I'm stumped at this point.
    Can anyone help?
    Much appreciated.
    John freberg
    TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
    MacOS X Server Error: 2: No such file or directory

    Assume you've got $ORACLE_HOME
    We'd end run listener problems by setting/exporting TNS_ADMIN and putting tnsnames.ora and listener.ora files in a standard place ( ../dbs for our site) rather than Oracle's defaults.
    We'd also found that there is a parsing problem of the tnsnames.ora file by 9.2 ( its in AIX and MAC versions at least). Placing the entire description section on a single line consistently resolved problem.
    Opening a Tar on that one.
    So Now we're accessing Dbs based on mac and AIX from Multiple MAC and AIX remote sites with SQLPLUS and thin clients.
    JD

  • Listener.ora and tnsnames.ora and sqlnet.ora

    Hello newbie here, trying to look into simple RAC setup with 2 nodes (A.this.com, B.this.com), one service (PROD.this.com), one listener and one instance on each node (listener PRODlist1 using instance PRODinstance1 on node A, listener PRODlist2 using instance PRODinstance2 on node B), one database (ORCL).
    db global db name = orcl.this.com
    I would like loadbalancing=on, with TAF basic (no preconnect, retries 10, delay 5.)
    With dynamic service registration.
    What should the tnsnames.ora and listener.ora and sqlnet.ora look like?
    Have read all sorts of literature, getting confused...

    I post my sample configuration here:
    DBA1.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (FAILOVER=ON)
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
    (CONNECT_DATA =
    (BACKUP=DBA2)
    (SERVICE_NAME = DBA.WORLD)
    DBA2.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (FAILOVER=ON)
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
    (CONNECT_DATA =
    (BACKUP=DBA1)
    (SERVICE_NAME = DBA.WORLD)
    )

  • Listener.ora and tnsnames.ora tuning through SDU settings

    Hi,
    In my current environment we have lot of network wait events,when I look into the tnsnames.ora and listener.ora value for SDU is set to default(2k).
    I read few documents and its telling me to increase the value to 8k-32k.I want to test how much benifit I will get If I change that values.
    thanks in advance

    What are the wait events you are getting?
    You got to be careful with SDU packet size, mostly the default is suitable for all the environments. If you increase the packet size to say 8K, you may be wasting the space if you are not able to utilizing all 8K. That would have an adverse affect as well.

  • Virtual address configure listener.ora and tnsnames.ora files on Solaris10

    Hi,
    I have installed Oracle 10g R2 on Solaris 10 U4 SPARC.
    I need to configure Oracle 10g to work with Storage Foundation for Oracle v5.0.
    After Oracle installation listener.ora listens on host IP address.
    So I have changed to listens on the Virtual IP address. This is a requirement:
    All listeners to be configured must listen to the same virtual IP address
    Could you please tell what to correct to have my Oracle working correctly?
    listener.ora:
    -bash-3.00$ cat listener.ora
    # listener.ora Network Configuration File: /export/home/u01/app/oracle/product/10.2.0/Db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /export/home/u01/app/oracle/product/10.2.0/Db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.160.19.64)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    tnsnames.ora:
    -bash-3.00$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /export/home/u01/app/oracle/product/10.2.0/Db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.160.19.64)(PORT = 1158))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Also connecting by web browser http://10.160.19.64:1158/em I am not able to start listener:
    Details TNS-12541: TNS:no listener
    Using the command listener start it starts successfully.
    Kind regards,
    Daniel

    The port in listener.ora nad tnsnames.ora are now the same - 1521
    After this trying logining by Web page there is an error:
    Error
    Io exception: The Network Adapter could not establish the connection
    When I run netca tool and I reconfigure listener netca change the IP address to sun3 which has 10.160.19.49. After this listener works fine and I am able to connect by Web page.
    bge0 10.160.19.49 - is the base IP address
    bge0:2 10.160.19.64 - is the virtual IP address
    I want listener to listen on 10.160.19.64.

Maybe you are looking for

  • How can I transfer a long video to my computer?

    I took a long video (1.20h+-) and it is now in "movies," not the camera role.  I cannot transfer it to my work computer and need to free up space on my device.  What can I do?

  • How to get "Standard" commands Guid and Id in .Vsct file

    Hi, Please have a screen shot - I want to know the guid & id of above commands (sub menus) like Standard, Debug, Debug Location, customize etc.  I found guid & id for customize submenu from below line is -  <UsedCommand Condition="!Defined(No_Customi

  • Temperature Rises with audio

    Hi! When you ear some music in your machine the temperature rises from 87F to 136F. Some people refer this to iTunes but i tested with other audio software and is the same thing. ex: Cog, VLC, etc... Is this normal????? I know this processor can take

  • My iMessage won't work can you please help

    My iMessage just stopped work today and can't get it to work again help please

  • Crystal XI Runtime with Windows 2008 Server

    Hi all We have been using Crystal for many years with our application, distributing Crystal Runtime with it. We have our own DLL which interacts with Crystal to display a setup screen to get the user to enter values for the parameters within the repo