2010年5月30日星期日

Re: [PerlChina] perl 连接oracle

Huangj wrote:
> 还是 Perl 连接 oracle 的问题,
> 俺的系统(windows xp)已经安装了 oracle 客户端,
> 问题是,怎样让 Perl 知道系统已经安装了客户端并调用相应的 dll ?
>

你的 DBD::Oracle 是 activeperl 自带的么?activeperl 从 5.10.0.1003 就自
带 DBD::Oracle 了。

activeperl 5.10 的文档提到 http://xrl.us/bhnfts

The DBD::Oracle module is only included in the 32-bit releases of
ActivePerl for Windows and Linux. It does not include the Oracle client
libraries; instead it requires that either the regular client libraries
or the Oracle Instant Client is already installed and configured on the
system.

ActiveState recommends DBI and DBD::ODBC for accessing databases using
ODBC. The Win32::ODBC module continues to be provided for backwards
compatibility, but new code should exclusively use DBD::ODBC.

我想你大概可以尝试下先按照 oracle client 然后重装下 activeperl 看是否能
解决问题。以前用 DBD::Oracle 都是在 *nix 下,windows 里就不是很清楚了。

Qiang

--
您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

没有评论: