I am running a test script to connect to an Oracle 10.2.0.1 64-bit database on AIX 5.2. My script uses the version of Perl installed with the Oracle software for this platform. Here is the script:
#!/u01/apps/oracle/product/10.2.0/perl/bin/perl
use DBI;
$TARGET_SID = "xxx";
$TARGET_ID = "xxx";
$TARGET_PASSWORD="xxx";
$dbh = DBI->connect("dbi:Oracle:$TARGET_SID", $TARGET_ID, $TARGET_PASSWORD)
or die "Can't connect to sid=$TARGET_SID,id=$TARGET_ID: $DBI::errstr";
$qa = q(select name from v$database);
$cr = $dbh->prepare($qa);
$rc = $cr->execute();
while((@l)=$cr->fetchrow_array){
print @l,"\n" ;
}
$cr->finish;
$dbh->disconnect;
It generates the following error:
install_driver(Oracle) failed: Can't load '/u01/apps/oracle/product/10.2.0/perl/lib/site_perl/5.8.3/aix-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: A file or directory in the path name does not exist. at /u01/apps/oracle/product/10.2.0/perl/lib/5.8.3/aix-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at test.pl line 6
Any help is greatly appreciated.
Thanks
#!/u01/apps/oracle/product/10.2.0/perl/bin/perl
use DBI;
$TARGET_SID = "xxx";
$TARGET_ID = "xxx";
$TARGET_PASSWORD="xxx";
$dbh = DBI->connect("dbi:Oracle:$TARGET_SID", $TARGET_ID, $TARGET_PASSWORD)
or die "Can't connect to sid=$TARGET_SID,id=$TARGET_ID: $DBI::errstr";
$qa = q(select name from v$database);
$cr = $dbh->prepare($qa);
$rc = $cr->execute();
while((@l)=$cr->fetchrow_array){
print @l,"\n" ;
}
$cr->finish;
$dbh->disconnect;
It generates the following error:
install_driver(Oracle) failed: Can't load '/u01/apps/oracle/product/10.2.0/perl/lib/site_perl/5.8.3/aix-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: A file or directory in the path name does not exist. at /u01/apps/oracle/product/10.2.0/perl/lib/5.8.3/aix-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at test.pl line 6
Any help is greatly appreciated.
Thanks