Home » Infrastructure » Windows » error regarding oracle connection (oracle 9i)
error regarding oracle connection [message #584889] Mon, 20 May 2013 06:03 Go to next message
Messages: 1
Registered: May 2013
Location: chennai
Junior Member
error regarding oracle connection

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oradb As String = "Data Source=CallTaxi; UserName = SCOTT; Password=TIGER ;"

Dim conn As New OracleConnection(oradb)
Dim cmd As New OracleCommand
'Dim da As OracleDataAdapter
cmd.Connection = conn
cmd.CommandText = "select Land_Name from taxi_Landmarkmaster"
cmd.CommandType = CommandType.Text
Dim dr As OracleDataReader = cmd.ExecuteReader()
cboRequstClass.Text = dr.Item("Land_Name")
End Sub
End Class

Error msg:
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
Re: error regarding oracle connection [message #584908 is a reply to message #584889] Mon, 20 May 2013 07:52 Go to previous message
Michel Cadot
Messages: 68415
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Without the exception itself we cannot help.

Previous Topic: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Next Topic: ORACLE error 29277 in FDPSTP Cause: FDPSTP failed due to ORA-29277: invalid SMTP operation ORA-065
Goto Forum:

Current Time: Tue Mar 21 10:30:16 CDT 2023