Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 8th, 2001, 12:07 PM
vibhagarg vibhagarg is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 1 vibhagarg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

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


Reply With Quote
  #2  
Old February 16th, 2001, 07:18 PM
carlos carlos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 11 carlos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How to run DBD::Oracle with Apache and Perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway