这几个变量你挑着用吧。。。

ORACLE_HOME="/data/oracle/11g"
NLS_LANG=american_america.AL32UTF8
PATH=/data/oracle/11g/bin
LD_LIBRARY_PATH=/data/oracle/11g/lib
TNS_ADMIN=/data/oracle


在 2010年5月31日 上午10:48,Qiang (James) <[email protected]>写道:

> 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 讨论组”论坛。
> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。
> 要取消订阅此网上论坛,请发送电子邮件至 
> [email protected]<perlchina%[email protected]>
> 。
> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
>
>

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

回复