连接oracle db的奇怪问题 [英] strange problem connecting oracle db

查看:109
本文介绍了连接oracle db的奇怪问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在cmd提示符下运行perl脚本时,它运行良好并从db输出结果。

但是当我在apache服务器Internet Explorer上运行相同的脚本时。我收到错误

-----

install_driver(Oracle)失败:无法加载''C:/ perl / lib / auto / DBD /模块DBD的Oracle / Oracle.dll'':: Oracle:load_file:在C:/perl/lib/DynaLoader.pm第202行找不到指定的模块。

at(eval 5)第3行

编译在(eval 5)第3行的require中失败。

也许所需的共享库或dll没有安装在预期的地方

at D:/ Profiles / CHJT87 / My Documents / My Website / cgi / trials / connection.pl第8行

----------

不是这个奇怪的???我不明白,它是oracle或perl apache服务器的错误吗?


如果有人知道这个,请告诉我,

感谢您阅读mail。

when i run perl script in the cmd prompt , it runs well and outputs results from db.
but when i run the same script on apache server internet explorer. i get an error as
-----
install_driver(Oracle) failed: Can''t load ''C:/perl/lib/auto/DBD/Oracle/Oracle.dll'' for module DBD::Oracle: load_file:The specified module could not be found at C:/perl/lib/DynaLoader.pm line 202.
at (eval 5) line 3
Compilation failed in require at (eval 5) line 3.
Perhaps a required shared library or dll isn''t installed where expected
at D:/Profiles/CHJT87/My Documents/My Website/cgi/trials/connection.pl line 8
----------
isnt this strange ??? i dont understand , is it error of oracle or perl apache server??

if anyone have knowledge about this do let me know,
thanks for reading the mail.

推荐答案

在我看来,Oracle驱动程序perl需求没有正确安装。你是如何安装DBD :: Oracle的?您使用的是activeperl还是Strawberryperl还是其他不同的东西?使用activeperl,您应该首先尝试使用它附带的PPM应用程序来安装模块。如果是草莓perl,你可以从CPAN shell安装它。
It looks to me like the Oracle drivers perl needs were not installed properly. How did you install DBD::Oracle? Are you using activeperl or strawberryperl or something different? With activeperl you should first try using the PPM application that comes with it to install modules. If strawberry perl you can install it from the CPAN shell.


谢谢kevin,

i刚安装了activeperl,我看了perl / lib DBD已经在那里了/>
但我仍然试图从cpan下载它,只是复制lib中的粘贴文件夹。如何使用ppm application.i是perl的新手。
thanks kevin,
i just installed activeperl and i looked in perl/lib DBD was already there
but still i tried to download it from cpan and just copy pasted folder in lib. how to use ppm application.i am new to perl.


打开硬盘驱动器上的activeperl文件夹,然后单击文档并阅读PPM的说明。您也可以在activestate网站上阅读它们。你不能将驱动程序代码复制并传递到DBD文件夹中,需要安装它。
open the activeperl folder on your hard drive and click on documentation and read the instructions for PPM. You can also read them on the activestate website. You can''t copy and past the driver code into the DBD folder, it needs to be installed.


这篇关于连接oracle db的奇怪问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆