sorry,搞错了,参考以下:.NET Framework Data Provider for Oracle (System.Data.OracleClient) The .NET Framework Data Provider for Oracle is an add-on component to the .NET Framework that provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software. Using C#:using System.Data.OracleClient;
Dim oOracleConn As OracleConnection = New OracleConnection() oOracleConn.ConnectionString = "Data Source=Oracle8i;" & _ "Integrated Security=SSPI"; oOracleConn.Open() Note: You must have the Oracle 8i Release 3 (8.1.7) Client or later installed in order for this provider to work correctly.Note: You must have the RTM version of the .NET Framework installed in order for this provider to work correctly.Note: There are known Oracle 7.3, Oracle 8.0, and Oracle9i client and server problems in this beta release. The server-side issues should be resolved in the final release of the product. However, Oracle 7.3 client will not be supported. For more information, see: .NET Data Provider for Oracle Beta 1To view Microsoft KB articles related to OracleConnection
The .NET Framework Data Provider for Oracle is an add-on component to the .NET Framework that provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software. Using C#:using System.Data.OracleClient;
OracleConnection oOracleConn = new OracleConnection();
oOracleConn.ConnectionString = "Data Source=Oracle8i;" +
"Integrated Security=SSPI";
oOracleConn.Open();
Using VB.NET:Imports System.Data.OracleClient
Dim oOracleConn As OracleConnection = New OracleConnection()
oOracleConn.ConnectionString = "Data Source=Oracle8i;" & _
"Integrated Security=SSPI";
oOracleConn.Open()
Note: You must have the Oracle 8i Release 3 (8.1.7) Client or later installed in order for this provider to work correctly.Note: You must have the RTM version of the .NET Framework installed in order for this provider to work correctly.Note: There are known Oracle 7.3, Oracle 8.0, and Oracle9i client and server problems in this beta release. The server-side issues should be resolved in the final release of the product. However, Oracle 7.3 client will not be supported.
For more information, see: .NET Data Provider for Oracle Beta 1To view Microsoft KB articles related to OracleConnection