When opening an oracle connection, connection object is null

后端 未结 5 2085
予麋鹿
予麋鹿 2020-12-19 10:08

I am trying to connect to an oracle database in my controller:

 using Oracle.DataAccess.Client;
 using Oracle.DataAccess.Types;

 // Other code

 OracleConne         


        
5条回答
  •  [愿得一人]
    2020-12-19 10:32

    In my version the Oracle Path variable was set wrong ( cos there was another Oracle client installation before). So i suggest to take this possiblity into consideration too.

    By following the My computer(this PC)->Properties->Advanced System Settings->Advanced->Enviromental Variables->Path you can edit Oracle Home path.

提交回复
热议问题