Oracle tnsnames.ora
August 15, 2007 18:39:02 Last update: August 15, 2007 18:39:02
The tnsnames.ora file maps net service names to connect descriptors. Here's a sample:
When a client connects with a net service name,
ORA10 =
(DESCRIPTION = (ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = somehost)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME=ORA10)
)
)
When a client connects with a net service name,
tnsnames.ora is searched in the following order:
-
$HOME/.tnsnames.ora(or current working directory on Windows) -
$TNS_ADMIN/tnsnames.ora -
/etc/tnsnames.ora -
$ORACLE_HOME/network/admin/tnsnames.ora
Easy email testing with http://www.ximailstop.com