TOAD The environment for SQL*Net tnsnames

Posted on 2006-11-12
Medium Priority
Last Modified: 2013-12-12
If I set TNS_ADMIN environment for windows START (right click computer) -> properties => advanced => environment variable ....
and then open a cmd session , and type "sqlplus ....", it  looks for tnsnames in TNS_ADMIN location

Is this true for TOAD database connections as well, if not how to force TOAD to look at a particular directory for tnsnames.ora
Question by:josephsonnd
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 14

Assisted Solution

GGuzdziol earned 100 total points
ID: 17928616
TNS_ADMIN works for Toad as well.

Accepted Solution

Stephen Lappin earned 300 total points
ID: 17928696
Yes, TOAD uses TNSNAMES.ORA, and will use the TNS_ADMIN environment variable (if set).

With TOAD9, you can also use a direct connection, or use a connection stored in a LDAP directoy.

For a direct connection, you supply host, port (that listener is listening on) and either service name or SID.

LVL 27

Assisted Solution

sujith80 earned 100 total points
ID: 17928815
You can make TOAD use the settings from Registry:

If you want to get the tnsnames.ora from another location in your machine other than the default location:

- In the TOAD connect window, see which oracle home you are using. You can see the dropdown list "Installed Clients"
 Say it is HOME<n>
- add a string TNS_ADMIN, set the value of this string as your tnsnames.ora location
- save and close
- exit toad and launch again
- now you can see the entries from your tnsnames.ora in the connect window
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.


Author Comment

ID: 17937921
Setting the TNS_ADMIN let TOAD7 use the tnsnames.ora in the location pointed to by TNS_ADMIN during connection. Work!

However, in the TOAD7 "connection window", when I click <TNSNames Editor>, then choose <file> tab, look at the tnsnames.ora file, it does not show the one at TNS_ADMIN, it shows the one at OH/network/admin

Expert Comment

by:Stephen Lappin
ID: 17938677
Do you have multiple Oracle Homes?
CAn you upgrade to TOAD 8.6 or TOAD 9.0?
LVL 27

Expert Comment

ID: 17938748
Use the registry setting!

Author Comment

ID: 17939028
Talking to Management and in the process of getting upgrading to v9.0. Do you think it may be a bug in ?

I do have multiple Oracle Homes, but I d have TNS_ADMIN set

As for registry setting , we do not let users modify their registry settings

Author Comment

ID: 17939044

The company policy is that end-users not have access to modify their registry setting, although that is a good option


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question