Hello Kallie,
Oracle Instant Client does not really requires the TNS configuration (tnsnames.ora). According to documentation Instant Client allows you to run your applications without installing the standard Oracle client or having an ORACLE_HOME. So it does uses a slightly different connection string syntax. You can use any one of the following syntax with the instant client.
- A SQL Connect URL string of the form:
//host:[port][/service name]
e.g. //oradb01.foo.com:1521/orcl
- As an Oracle Net keyword-value pair.
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=HOSTNAME_OR_IP)
(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=SERVICE_NAME)))
e.g.
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=oradb01.foo.com)
(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=orcl)))
As per the documentation Naming methods that require TNS_ADMIN to locate configuration files continue to work if the TNS_ADMIN environment variable is set. If the TNS_ADMIN environment variable is not set, and TNSNAMES entries are used, then the ORACLE_HOME variable must be set, and the configuration files are expected to be in the $ORACLE_HOME/network/admin directory.
Regards,