Skip to Content
Oracle Net8 Configuration and Troubleshooting
book

Oracle Net8 Configuration and Troubleshooting

by Hugo Toledo, Jonathan Gennick
December 2000
Intermediate to advanced
408 pages
12h 26m
English
O'Reilly Media, Inc.
Content preview from Oracle Net8 Configuration and Troubleshooting

Appendix E. Environment and Registry Variables

There are a few environment variables that are particularly relevant to Net8. The most useful of these variables is probably TNS_ADMIN, which allows you to customize the location of your Net8 configuration files.

Environment variables are used on Linux and Unix systems for the settings described in this chapter. Environment variables may be used on Windows NT systems too, but with Windows NT, you also have the option of specifying these settings in the registry.

Net8 Environment Variables

Environment variables that you can use to control Net8 activity allow you to do the following:

  • Specify a custom location for Net configuration files (TNS_ADMIN)

  • Specify a default net service name (LOCAL or TWO_TASK)

  • Enable the use of shared sockets under Windows NT (USER_SHARED_SOCKET)

On case-sensitive operating systems such as Linux and Unix, environment variables are case-sensitive. On such systems, the names of Net8-related environment variables are always uppercase.

TNS_ADMIN

On most systems, Net8 configuration files such as tnsnames.ora and sqlnet.ora are stored in the $ORACLE_HOME /network /admin directory. On a few Unix systems, you may find the default directory to be /var/opt/oracle. If you don’t like this location, you can customize it using the TNS_ADMIN environment variable. Just set TNS_ADMIN to point to the directory containing your configuration files. For example:

export TNS_ADMIN=/etc/oracle/net8

If you’re going to set TNS_ADMIN, you need to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pro Oracle Database 11g RAC on Linux

Pro Oracle Database 11g RAC on Linux

Steve Shaw, Martin Bach
Oracle 11g

Oracle 11g

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 1565927532Catalog PageErrata