Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please explain me this code...

what is the use of this code ?

VB
SAHYDTAMS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.15.100.113)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.15.100.114)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TAMSAPP)
)
)



thanks
Posted

This Code is found in "tnsnames.ora" file(It is a SQL*Net configuration file that defines databases addresses for establishing connections to them.).
When you finish installing Oracle,the tnsnames.ora is a SQL*Net configuration file that normally resides in the ORACLE_HOME/network/admin directory.Specifically, the tnsnames.ora defines databases addresses so that connections can be made to them also identifies services available from the machine.For each database instance on your server add a section like your above code.

refer to this link
http://stackoverflow.com/questions/307636/how-do-you-setup-a-linked-server-to-an-oracle-database-on-sql-2000-2005[^]
 
Share this answer
 
v2
Comments
Ubaid ur Rahman IT 17-Apr-13 3:53am    
boss, am using Sqlserver 2005 database, so how to connect Sqldatabase to oracle database using this code.

Where should i put this code in Sqldatabase,,by the way am working on .Net c# Sqlserver2005.

SAHYDTAMS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.15.100.113)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.15.100.114)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TAMSAPP)
)
)

I need to connect from Sqldatabase to oracle database.

please help

thanks.
Singh_Vinay 17-Apr-13 4:08am    
Refer to This link,Hope It'll Help You
http://stackoverflow.com/questions/307636/how-do-you-setup-a-linked-server-to-an-oracle-database-on-sql-2000-2005
Ubaid ur Rahman IT 17-Apr-13 4:38am    
boss, i cant able to download Oracle Instant Client

please help.
Singh_Vinay 17-Apr-13 5:41am    
Please Check This
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

Hope it'll solve your problem
What you have here is the Oracle proprietary format for database connections strings: Connection strings for Oracle[^]. The snippet you provided seems to be taken directly from a tsname.ora file: 6 Local Naming Parameters (tnsnames.ora)[^].

After a bit more information from OP I dug up this: How to set up and troubleshoot a linked server to an Oracle database in SQL Server[^], what seems to be OP was set as a task to do.

Regards,

— Manfred
 
Share this answer
 
v2
Comments
Ubaid ur Rahman IT 17-Apr-13 3:53am    
boss, am using Sqlserver 2005 database, so how to connect Sqldatabase to oracle database using this code.

Where should i put this code in Sqldatabase,,by the way am working on .Net c# Sqlserver2005.

SAHYDTAMS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.15.100.113)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.15.100.114)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TAMSAPP)
)
)

I need to connect from Sqldatabase to oracle database.

please help

thanks.
Manfred Rudolf Bihy 17-Apr-13 4:09am    
You probably want to create a link in SQL Server2005 that points to an Oracle database. You have not mentioned any of this in your question. Please edit your question to reflect this new information so everybody can help you better with your problem.
Please also follow the instructions found here: How to set up and troubleshoot a linked server to an Oracle database in SQL Server.

Cheers!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900