When opening an oracle connection, connection object is null

后端 未结 5 2037
予麋鹿
予麋鹿 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:17

    Add a try catch block around the open() call and resolve the ORA error that shows up in the OracleException.

提交回复
热议问题