使用VS连接Oracle时,提示: "Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed"

环境:VS2015       Oracle 11g 64位   Oracle客户端版本 32位 (相应配置以完成 )

连接时提示问题:

"Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed"  

解决办法:在环境变量Path中添加"C:\Oracle\product\instantclient_12_1\NETWORK\ADMIN;“实际依个人安装情况而定

(原理不是很清楚,主要是欺骗VS,可能是使VS认为Oracle是32位的,后补)

posted @ 2016-05-16 10:19  风清扬二代目  阅读(511)  评论(0编辑  收藏  举报