Summary of problems with using oledb to connect to Oracle

Source: Internet
Author: User

Summary 1:

Problem: Use the followingCodeWhen filling in dataset,

Dataset DS = new dataset ();
Try
{
 
Oledbdataadapter command = new oledbdataadapter (sqlstring, connect );
Command. Fill (DS, "ds ");
}
Catch (system. Data. oledb. oledbexception ex)
{
// Throw new exception (ex. Message );
}
Return Ds;

An Oracle error occurred, but the error information cannot be retrieved from Oracle. The data type is not supported.

Explanation:

If you want to read BLOB fields in the Oracle database, you cannot use it. net built-in system. data. for oledb class libraries, you must use oracleclient (a class library dedicated for operating and managing Oracle databases, similar to the sqlclient class library) (oracleconnection, oraclecommand, oracledataadapter ,. net does not contain oracleclient. You need to add system. data. oracleclient. DLL reference can be used, this file can be downloaded on msdn.

Question 2:

After installing. NET Framework 2.0, no oracle provider for ole db is found in oledb Configuration Manager.

Can download: http://www.microsoft.com/downloads/details.aspx? Familyid = 4f55d429-17dc-45ea-bfb3-076d1c052524 & displaylang = ZH-CN

Then install.

Alternatively, install. NET Framework 2.0 SP1 with v2.0.50727.

SP1 already contains

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.