Add tnsentry in tnsnames.ora file

Sample tns entry in tnsnames.ora network file

Following are the sample entry for tns in tnsnames.ora file

Go to the location ORACLE_HOME/rdbms/admin

Then find the tnsnames.ora file in Oracle and open in edit mode and add the new entery as follows:

MYSIDNAME=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SIDNAME)
)
)

NETCA is used to make tns entry in Oracle. Open the NETCA app with netca command at command prompt and follow the link

Create TNS entry in TNSNAMES.ORA file with NETCA Utility

This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply