On Sat, Dec 20, 2008 at 6:17 AM, MGautam <flame....@gmail.com> wrote:
> Hi,
> I want to connect to a "Oracle SQL Developer" with perl (running on
> windows).
>
> I tried something like,
>
> use DBI;
>
> $db = "database1";
> $host = "10.0.0.1:1433";
> $user = "username";
> $password = "password";
>
> my $dbh   = DBI->connect ("DBI:Oracle:database=$db:host=$host",
>                           $user,
>                           $password)
>                           or die "Can't connect to database:
> $DBI::errstr\n";
>
>
> install_driver(Oracle) failed: Can't load
> 'C:/Perl/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle:
> load_file:The specified procedure could not be found at
> C:/Perl/lib/DynaLoader.pm line 202.
>
>
> Can someone please let me know how to connect to the database. I tried
> searching on google. And tried few permutations but none of it worked.
>

You need install the Oracle Perl DBD driver in order to connect to Oracla DB
http://search.cpan.org/~pythian/DBD-Oracle-1.22/Oracle.pm

In windows use the Perl Package Manager for install it.

Regards.
>
> --
> TIA
> Gautam
>



-- 
Francisco Valladolid H.
 -- http://bsdguy.net - Jesus Christ follower.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to