Beruflich Dokumente
Kultur Dokumente
Resolution
Getting Rid of the TNSNAMES.ORA File!
10,000
Pythian currently manages
more than 10,000 systems.
A Quick Refresher
WHAT ARE WE TALKING ABOUT?
Net Service Name
A simple name for a service that resolves to a connect descriptor
Connect Descriptor
A specially formatted description of the destination for a network
connection. A connect descriptor contains destination service and
network route information.
Source: https://docs.oracle.com/database/121/NTDBI/glossary.htm
THE BASICS: THE CONNECT DESCRIPTOR
Everything could be specified at the prompt
EZCONNECT
SA handles:
Replication, HA, Patches, Updates, Backups, etc
11g Clients:
NAMES.LDAP_AUTHENTICATE_BIND = YES
Trace Assistant
Example of Using Trace Assistant (TRCASST) to Work an Oracle Net issue (Doc
ID 1336069.1)
DEBUGGING TECHNIQUES: TRCROUTE
Oracle Trace Route utility
Reports on TNS entries on route to the server
https://docs.oracle.com/database/121/NETAG/connect.htm#NETAG383
DEBUGGING TECHNIQUES: OS TOOLS
Linux
Strace:
$ strace tnsping ORCL
Windows
Windows Sysinternals Process Monitor:
Run in batch file with command line switches
NtTrace:
http://www.howzatt.demon.co.uk/NtTrace
THINGS TO WATCH OUT FOR
NAMES.DIRECTORY_PATH
Methods not specified are excluded
Also determines search order
Must keep EZCONNECT for RAC cluster interconnect
Files searched
Remember: /etc/tnsnames.ora
Hidden file: ~/.tnsnames.ora
Windows
Different search order rules (cwd vs. home dir)
Different search orders if %ORACLE_HOME% is set
VIRTUAL DEMO 1
pane@pythian.com
1-877-PYTHIAN
http://www.Pythian.com/blog
http://is.gd/PythianFacebook
@Pythian
http://linkedin.com/company/Pythian