On Wed, 1 Oct 2003 13:32:02 +0530 "Thutika, Srinivas (ODC - Satyam)"
<[EMAIL PROTECTED]> wrote:
> Now i through the problem with the folling connecting parameters...
>
> my $dbh = DBI->connect('dbi:ODBC:oradsn','XXXKCP','XXXLL') || print
> "Connection to database FAILED";
>
> But still now i am facing the problems with the following code
>
> my $dbh = DBI->connect('dbi:Oracle:oradsn','XXXKCP','XXXLL') || print
> "Connection to database FAILED";
>
> When i am Using 'dbi:Oracle:oradsn' i am getting the following
> error....
>
> DBD::Oracle initialisation failed: Can't locate object method
> "driver" via package "DBD::Oracle" at D:/Perl/site/lib/DBI.pm
> line 711.
> Perhaps the capitalisation of DBD 'Oracle' isn't right. at dbop.pl
> line 7
The capitalization in the example you show is correct, but you must
have DBD::Oracle installed. One way to check is to run
`perl -MDBD::Oracle=99`. If DBD::Oracle is installed, you will get a
complaint about the version number being too low.
--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.