NHibernate連線oracle報錯

2021-09-07 11:06:16 字數 1856 閱讀 3407

nhibernate.exceptions.genericadoexception:「could not execute query

[ select sys_user0_.userid as userid1_0_, sys_user0_.loginname as loginn2_0_, sys_user0_.loginpassword as loginp3_0_, sys_user0_.deptid as deptid4_0_, sys_user0_.realname as realna5_0_, sys_user0_.tiltle as tiltle6_0_, sys_user0_.*** as ***7_0_, sys_user0_.phone as phone8_0_, sys_user0_.fax as fax9_0_, sys_user0_.provid as provi10_0_, sys_user0_.cityid as cityi11_0_, sys_user0_.address as addre12_0_, sys_user0_.email as email13_0_, sys_user0_.qq as qq14_0_, sys_user0_.nickname as nickn15_0_, sys_user0_.createuserid as creat16_0_, sys_user0_.createdate as creat17_0_, sys_user0_.modifyuserid as modif18_0_, sys_user0_.status as statu19_0_ from sys_user sys_user0_ where sys_user0_.loginname=? and sys_user0_.loginpassword=? ]

name:ln - value:admin name:lp - value:8c36a9ed82896dda

[sql: select sys_user0_.userid as userid1_0_, sys_user0_.loginname as loginn2_0_, sys_user0_.loginpassword as loginp3_0_, sys_user0_.deptid as deptid4_0_, sys_user0_.realname as realna5_0_, sys_user0_.tiltle as tiltle6_0_, sys_user0_.*** as ***7_0_, sys_user0_.phone as phone8_0_, sys_user0_.fax as fax9_0_, sys_user0_.provid as provi10_0_, sys_user0_.cityid as cityi11_0_, sys_user0_.address as addre12_0_, sys_user0_.email as email13_0_, sys_user0_.qq as qq14_0_, sys_user0_.nickname as nickn15_0_, sys_user0_.createuserid as creat16_0_, sys_user0_.createdate as creat17_0_, sys_user0_.modifyuserid as modif18_0_, sys_user0_.status as statu19_0_ from sys_user sys_user0_ where sys_user0_.loginname=? and sys_user0_.loginpassword=?]」

內部異常:

exception: ocienvcreate 失敗,返回**為 -1,但錯誤訊息文字不可用。

分析:這是沒連線上oracle資料庫,具體的原因就是,缺少oracle提供的開發驅動,到oracle官網找到你的資料庫版本相對應的客戶端安裝包,安裝之後就可以了,我使用的是oracle 11g的資料庫,我安裝的是odtwithodac112012.zip

nhibernate連線池配置

nhibernate連線池配置 nhibernate.driver.sqlclientdriver server 127.0.0.1 initial catalog sun user id sun password 123456 min pool size 10 max pool size 50 c...

連線失敗 ORA 28040 ORA 1017

如資料庫公升級12c 19c後原來的11g或更老的客戶端 jdbc 驅動連線資料庫時失敗,因為安全認證協議不符合,導致ora 28040錯誤的發生,提示下面的錯誤資訊 處理方法 如果11g連線 rac兩個節點oracle使用者,在 oracle home network admin下sqlnet.o...

ora 12170 tns 連線超時

ora 12170 tns 連線超時last login mon oct 23 15 11 08 2017 root itcast sqlplus system 123456 sql plus release 11.2.0.2.0 production on mon oct 23 15 17 09 ...