|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi All,
I am trying to connect to Oracle on unix box using DBI-DBD modules in perl. I statically linked the DBD module as dynamic linking was failure. When I run my perl application it says "DBD::Oracle::ORA_OCI() is deprecated" and "DBD::Oracle initialisation failed: Can't locate aut o/DBD/Oracle/ORA_OCI.al in @INC....". I am sure ORA_OCI.al file is nowhere on my system. I am stuck with this problem. Please help me out. Thanks Vibha --------------------------------------------------------- System Specifics ---------------------- HP-UX B.11.00 A Perl, version 5.005_03 built for PA-RISC1.1 DBD-Oracle-1.03 DBI-1.13 Apache 1.3.12 Oracle8 Enterprise Edition Release 8.0.5.0.0 Error log message is ------------------------------------------------------------ Use of inherited AUTOLOAD for non-method DBD::Oracle::ORA_OCI() is deprecated at /home /vibha/lib/perl5/site_perl//DBD/Oracle.pm line 48. [Wed Feb 7 16:35:01 2001] [error] DBD::Oracle initialisation failed: Can't locate aut o/DBD/Oracle/ORA_OCI.al in @INC (@INC contains: /home/vibha/lib/perl5/5.00503/ /home/v ibha/lib/perl5/site_perl/ /home/vibha/lib/perl5/site_perl/5.005 /opt/apache/lib/perl5/ site_perl/5.005/PA-RISC1.1 /opt/apache/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/ 5.00503/PA-RISC1.1 /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/P A-RISC1.1 /usr/local/lib/perl5/site_perl/5.005 . /opt/apache/ /opt/apache/lib/perl) at /home/vibha/lib/perl5/site_perl//DBD/Oracle.pm line 48 |
|
#2
|
|||
|
|||
|
Show a sample of how you are trying to connect to the
database. I use Perl DBI alot but have never seen that error message. Tyr connecting using the following: use DBI; use DBD::Oracle; BEGIN { $ENV{ORACLE_HOME} = '/path/to/oracle', } ## Initialize connection to Oracle and making ## DBI report any errors my $dbh = DBI->connect('dbi:Oracle', 'username/password','', {RaiseError => 1 }); Also, read the DBI documentation using the perldoc utility, like so: perldoc DBI The documentation show several ways of connecting, try them and see which one works for you. -Carlos |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > How to run DBD::Oracle with Apache and Perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|