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.
17 5903
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.
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.
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.
i just have perl folder and i tried doing
ppm install DBD-ORACLE. but it showed that package doesnt exits
this is the error
=======================
C:\>ppm install DBD-Oracle;
Downloading ActiveState Package Repository packlist...failed 500 Can't connect t
o ppm4.activestate.com:80 (Bad hostname 'ppm4.activestate.com')
ppm install failed: Can't find any package that provides DBD-Oracle;
========
on previous computer i setup , it s working well. ther i had activeperl folder then perl folder in that
here i just have perl folder..
@kanishka1213
If there is no activestate or activeperl folder and you are using activeperl, I don't know what to tell you. I have used activeperl for years and there was always a folder on the hard drive.
i download this and installed it
ActivePerl-5.10.0.1005-MSWin32-x86-290470.msi
so on my computer it create a folder for perl this way
C:/perl/bin/perl.exe
when i try to add the repositories u gave from ppm it shows me fail .:-(
if u say i get a activeperl folder then can u please give me the link from you installled ? so that i can get a similar configuration.
thank you so much,
There should be an activestate or activeperl folder where all of the activestate/perl documentation is stored. If for some reason there isn't, you can read all the documentation online at the activestate website. Here is a link to the PPM instructions for activeperl 5.10 http://docs.activestate.com/activepe...Perl-faq2.html @kanishka1213
I don't use activeperl anymore, I switched to strawberry perl when I got my new computer.
If you are using Windows click on the start button, then programs, then search for the activestate or activeperl folder, should be on the C drive but could be on other drives if you installed to a different drive.
@KevinADC
It would have to be some kind of firewall problem preventing you from getting out because I just went to the URL's that Kevin provided and they loaded just fine in my browser.
Regards,
Jeff
the things work fine for me . the only thing is did was uninstalling active perl and deleting all files associated with it and installing it again. the thing i guess was some perl files were on this computer and i installed it again . :-). happy endings.
thankyou kevin and Jeff.
@kanishka1213
Very good, that would have have been my next suggestion, check for more than one install of perl. If you have a modern computer strawberry perl seems to work good. The newest version even comes with DBI and the mysql drivers already included, which I am pretty sure activeperl doesn't, although that might not be a benefit for you.
But if you decide to try strawberry perl you have to uninstall activeperl first.
Thanks for the suggestions
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Ramesh |
last post by:
hi,
Can we use SQLConnection object to connect to oracle?
I understand that for connecting Oracle we have to use
only ODP.net (or) OLEDB Object. Is it correct? Please...
Thanks,
Ramesh
|
by: Mahesh.V |
last post by:
Hi All
I get the following error while connecting to the oracle database using
ODBC. in my VB.NET application. Can any one help me out solving this problem
server message (if any):...
|
by: python_eager |
last post by:
Hi
i am connecting my database oracle 9i. While connecting i am
getting the following error
connection = cx_Oracle.connect("myusername", "mypassword", "python")
RuntimeError: Unable to acquire...
|
by: Keith E. Sauvant |
last post by:
Hi,
we got a strange problem connecting to an Oracle database onsite with
our PHP application: During CSV import job handled by our application,
PHP opens up to some hundred connections to the...
|
by: karthik29 |
last post by:
i want to connect oracle and sql.
like,using a quey i should be able to data from both oracle and sql.
does any know this command
|
by: manasvi |
last post by:
hello! m a newbie with connecting oracle to java.
i get an error .... may b in the connection string
java.sql.SQLException: Io exception: Connection ...
|
by: rohitbasu77 |
last post by:
Steps to connect Oracle in linux.... is required...
thanks in advance
|
by: moyoal |
last post by:
Dear All,
this is my first experience to connect forms and database using VPN from other location.
we have client/server architectures, .FMX are available in 212.147.1.63 server.
Database is...
|
by: brioska |
last post by:
I have similar too... :(
I tried to connect to db2 from sql*plus and report builder.
Sql*plus succesfully made the connection with same error message (+same
error when I used select or...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |