Tnsnames_checker

Validate and syntax check your tnsnames.ora file with tnsnames_checker. This utility will perform the following checks on your tnsnames.ora file and report anything it doesn't like.

The checks carried out are:

File List

Windows Only Files

Linux/Unix Only Files

Something for Everyone!

The Build

Dependencies

Windows

Linux and Unix.

Testing

From the build directory:

Parameters

Output from the checker is passed to both stdout and stderr. General messages and flagrant blowing my own trumpet messages go to stdout, while warnings and errors go to stderr. You can either ignore this and catch everything on screen, in a file, or redirect the individual channels to different files, as per the examples below.

Note: if you wish to use a pretty mangled tnsnames file for testing, there's one in the source directory named tnsnames.test.ora. Simply replace "tnsnames.ora" in the examples below with "../tnsnames.test.ora" if, as expected, you are running the test from the test directory.

Everything to the Screen

Windows:

tnsnames_checker tnsnames.ora

Linux/Unix:

./tnsnames_checker.sh tnsnames.ora

Everyting to a single file

Windows:

tnsnames_checker tnsnames.ora >tnsnames.log 2>&1

Linux/Unix:

./tnsnames_checker.sh tnsnames.ora >tnsnames.log 2>&1

Split over Two Files

Windows:

tnsnames_checker tnsnames.ora >tnsnames.log 2>tnsnames.errors.log

Linux/Unix:

./tnsnames_checker.sh tnsnames.ora >tnsnames.log 2>tnsnames.errors.log