Home: Perl Programming Help: DBI:
Error during connecting oracle 10g



paresh2011
New User

Jun 18, 2011, 10:58 PM


Views: 9891
Error during connecting oracle 10g

This error i get when i run a Hallow world program in this env
Database = Oracle 10g
ActivePerl-5.14.0.1400-MSWin32-x86-294816

Program:-
#!/usr/local/bin/perl
use strict;
use DBI;
my $dbh = DBI->connect( 'dbi:Oracle:orcl', 'scott', '*****',

{ RaiseError => 1, AutoCommit => 0 } );



cmpilation failed in required at E:\perl\d.pl line 5

Error:-

Perl lib version (v5.6.1) doesn't match executable version (v5.14.0) at E:\oracle\product\10.1.0\Db_2\perl\5.6.1\lib\MSWin32-x86/Config.pm line 21.
Compilation failed in require at E:\oracle\product\10.1.0\Db_2\perl\5.6.1\lib\MSWin32-x86/DynaLoader.pm line 25.
BEGIN failed--compilation aborted at E:\oracle\product\10.1.0\Db_2\perl\5.6.1\lib\MSWin32-x86/DynaLoader.pm line 25.
Compilation failed in require at E:\oracle\product\10.1.0\Db_2\perl\site\5.6.1\lib/DBI.pm line 152.
BEGIN failed--compilation aborted at E:\oracle\product\10.1.0\Db_2\perl\site\5.6.1\lib/DBI.pm line 152.
Compilation failed in require at E:\Perl\d.pl line 5.
BEGIN failed--compilation aborted at E:\Perl\d.pl line 5.