By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,641 Members | 2,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,641 IT Pros & Developers. It's quick & easy.

ORA-12560: TNS:protocol adapter error

P: 40
Hi

Whenevr I try to connect my ASP.Net form to Oracle DB I get the follwoing error:
ORA-12560: TNS:protocol adapter error

here's the code:

Dim con As New OracleConnection("Password=tiger;" & _
"User ID=scott")

con.Open()
Dim myCMD As New OracleCommand
myCMD.Connection = con
myCMD.CommandText = "select password from emp_password where username='" + txtusername.Text + "'"
myCMD.CommandType = CommandType.Text
Dim myReader As OracleDataReader
myReader = myCMD.ExecuteReader()
myReader.Read()
If Not (txtpassword.Text = myReader.Item("password")) Then
lblalert.Visible = True

Else
Response.Redirect("myaccount.aspx")
End If
myReader.Close()
con.Close()


Please help as soon as possible....

Ashima
Apr 25 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 154

Post your reply

Sign in to post your reply or Sign up for a free account.