-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: BabuRaj109791
Message 14 in Discussion
New Message on MumbaiUserGroup
Error While connecting to ORACLE Database from ASP.NET
Reply
Reply to Sender
Recommend
Message 10 in Discussion
From:
BabuRaj109791
New Message on MumbaiUserGroup
Error While connecting to ORACLE Database from ASP.NET
Reply
Reply to Sender
Recommend
Message 2 in Discussion
From:
BabuRaj109791
New Message on MumbaiUserGroup
Error While connecting to ORACLE Database from ASP.NET
Reply
Reply to Sender
Recommend
Message 1 in Discussion
From:
BabuRaj109791
Hi, I am developing an ASP.Net application in which I am trying
to connect to a ORACLE database. I am using the .NET Framework Provider for
Oracle , the code in my ASP page is as shown below. Private Sub
Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Dim oracleConn As New OracleConnection
oracleConn.ConnectionString = "user id=featuredb;data
source=TOOLDB01;password=featuredb"
oracleConn.Open()
Response.Write("Connection opened")
Response.End()
End Sub When I run this page I get the following error ORA-12154: TNS:could not
resolve the connect identifier specified
What is the reason for this error ?
I have the TNSNAMES.ORA and SQLNET.ORA in the Oracle root directory.
The TNSNAMES.ORA file has the following contents
# TNSNAMES.ORA Network Configuration File:
D:\oracle\ora81\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
TOOLDB01 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = bumblebee1.pcs.mot.com)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TOOLDB01)
)
)
View other groups in this category.
View other groups in this category.
View other groups in this category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]