分类(Delphi)
ODAC4.15安装
2008/05/27 11:39
把ODAC里面的 所有delphi*.dpk install 后,再把下面几个文件放入
D:\Program Files\Borland\Delphi7\Bin里面
----------------------------------------
dacvcl70.bpl
odacvcl70.bpl
dac70.bpl
odac70.bpl
dcldac70.bpl
dclodac70.bpl
 ---------------------------------------
[Fatal Error] salary.pas(7): File not found: 'OraNet.dcu'
[Error] File not found: 'DBAccess.res'
[Error] File not found: 'Ora.res'
如果出现以上提示,则把
E:\DelphiPack\ODAC4.15\ODAC\Source\Delphi7\Odac\Lib
E:\DelphiPack\ODAC4.15\ODAC\Source\Delphi7\out
加入library path

 ///////////////////////////////////////////////////////////////////

今天在Delphi中使用ODAC连接Oracle9i数据库报错:“ORA-06401: NETCMN: invalid driver designator”百思不得其解,使用TOraSession组件直接配置,连接Oracle数据库没问题,发现在TOraSession的配置窗口还有一个“Net”选项,恍然大悟,加条语句:

            OraSession1.Options.Net := True;

If set to True ODAC connects directly over TCP/IP and does not require Oracle software on the client side. Supported with ODAC Net edition.

一切OK

Tags: delphi
相关日志:
+引用(0) |
发表评论
昵称  密码  游客无需密码
网址  电邮  注册
验证码 请输入左侧图片中的字符
记住我