DBA Hub

šŸ“‹Steps in this guide1/2

TNS_ADMIN Environment Variable in Oracle

When multiple installation of Oracle homes and client are done, Use of TNS_ADMIN is defined for tnsnames.ora location. TNS_ADMIN environment variable

oracle configurationintermediate
by OracleDba
34 views
1

Overview

When multiple installation of Oracle homes and client are done, Use of TNS_ADMIN is defined for tnsnames.ora location. TNS_ADMIN environment variableĀ  specifies the directory location for the tnsnames.ora file. If tnsnames.ora is not properly set then it will give the following errors: ORA-12154: TNS: could not resolve service name or SQL*NET Unable to resolve service name. Set in Environment Variable of Windows: - Search the Environment Variables and open window. - In the System variables section click the New button for create new entry. - Enter a variable name as TNS_ADMIN then enter a variable value of the path to the TNSNAMES.ORA file that will be used as the default. For example: Name: TNS_ADMIN Value: C:\data\app\oracle\product\dbhomeXE\network\admin

Code/Command (click line numbers to comment):

1
2
3
SET TNS_ADMIN=C:\data\app\oracle\product\dbhomeXE\network\admin

mkdir -p $ORACLE_BASE/network
2

Section 2

Code/Command (click line numbers to comment):

1
export TNS_ADMIN=$ORACLE_BASE/network

Comments (0)

Please to add comments

No comments yet. Be the first to comment!