Two Methods for connecting oledb to Oracle

Source: Internet
Author: User

This is also an old problem. Simply write it here, so that the next time you encounter it, you will not be overwhelmed by headless flies.
You can use oledb to connect to an Oracle database. Generally, there are two kinds of providers.
A: provider = msdaora.1
B: provider = oraoledb. Oracle
The first is Microsoft's Oracle component, and the second is the Oracle access component.
Two character sets frequently used by Oracle databases
C: English: Simplified chinese_china.us7ascii
D: Chinese: Simplified chinese_china.zhs16gbk
When a works with C and D, Data Reading and Writing is free of garbled characters. If garbled characters occur, modify the environment variable nls_lang at the system level (non-user level) to the character set used by the database and restart the computer.
Disadvantage: Long, clob, and BLOB fields are not supported.
B supports big fields and works perfectly with D. If BC is used in combination, the system reads no garbled characters and writes the data to garbled characters. The Chinese parameter passed as the where condition is garbled. Unavailable. If the database character set is C, only a can be used. To read large fields, you must use B to create a new connection.

Related Article

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.