C # Oracle connection error: OCIEnvCreate failed. The Returned Code is

Source: Internet
Author: User

 

Processing certain data requires reading data from Oracle

Because there is not much Data, it is simple and convenient to directly use System. Data. OracleClient

Add references, write SQL statements in one breath, and report an error immediately when running

 

I have never seen this mistake...

Searching online...

 

It turns out that the default permissions on xp and above systems are insufficient...

You only need to run vs as administrator or directly run the generated application...

To prevent missing administrator permissions, we canAdd a program list file(I suddenly remembered that I wrote a blog many years ago to come to http://www.cnblogs.com/sun8134/archive/2009/10/30/1593025.html)

 

Then modify it to run as Administrator

 

Then, the system will automatically prompt you to have the administrator privilege.

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.