Connect to an Oracle database

后端 未结 3 1776
情书的邮戳
情书的邮戳 2021-02-14 22:20

I\'m trying to connect to an Oracle database but when the the code is executing the line:

con = new OracleConnection(oradb);

It gives this erro

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-14 23:01

    I was getting that error in my test project. The problem was that I was opening Visual Studio from a command line that had an old PATH. After opening everything fresh, it worked.

    Check the PATH from your code, and make sure the oracle folder is in the PATH.

提交回复
热议问题