473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

strange problem connecting oracle db

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.
Aug 3 '09 #1
17 5903
KevinADC
4,059 Expert 2GB
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.
Aug 3 '09 #2
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.
Aug 3 '09 #3
KevinADC
4,059 Expert 2GB
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.
Aug 4 '09 #4
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..
Aug 4 '09 #5
KevinADC
4,059 Expert 2GB
add more repositories to the PPM application. See the PPM documentation.

Here is three good repositories:

http://theoryx5.uwinnipeg.ca/ppms/
http://www.bribes.org/perl/ppm
http://trouchelle.com/ppm/
Aug 4 '09 #6
KevinADC
4,059 Expert 2GB
@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.
Aug 4 '09 #7
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
Aug 4 '09 #8
when i try to add the repositories u gave from ppm it shows me fail .:-(
Aug 4 '09 #9
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,
Aug 4 '09 #10
KevinADC
4,059 Expert 2GB
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
Aug 4 '09 #11
KevinADC
4,059 Expert 2GB
@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.
Aug 4 '09 #12
when i add this to the repository
http://www.bribes.org/perl/ppm/

it gives me error
downloading file failed 500 cannot connect to www.bribes.org:80
(Bad hostname :www.bribes.org)
Aug 4 '09 #13
KevinADC
4,059 Expert 2GB
That could be a firewall or proxy server problem. Read the "PPM, Proxies and Firewalls" section of the PPM documentation.

http://docs.activestate.com/activepe...pm_and_proxies

If that is not the problem, I don't know.
Aug 4 '09 #14
numberwhun
3,509 Expert Mod 2GB
@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
Aug 4 '09 #15
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.
Aug 4 '09 #16
KevinADC
4,059 Expert 2GB
@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.
Aug 4 '09 #17
Thanks for the suggestions
Aug 4 '09 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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
2
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):...
2
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...
9
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...
1
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
2
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 ...
1
by: rohitbasu77 | last post by:
Steps to connect Oracle in linux.... is required... thanks in advance
0
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...
0
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...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.