اخوانى قمت بتحميل :-
Oracle Enterprise Edition Release 10.1.0.2.0
وقمت باظافة هذه المكتبة كمرجع إلى المشروع:-
Oracle.DataAccess.dll
وهذا كود الاتصال
Imports Oracle.DataAccess.Client Public Class Form1 Dim Str As String Dim conn As New OracleConnection Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try Str = "Data Source=smart;User ID=system;Password=smart2008" conn.ConnectionString = Str conn.Open() Catch ex As OracleException MsgBox(ex.Message) End Try End Sub End Class
لكن عند تشغيل المشروع تظهر لي هذة الرسالة :-
An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to load DLL 'OraOps9.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)