http://www.perlmonks.org?node_id=410517


in reply to Can't load Oracle.dll - HELP!!!

As ysth says your install of DBD::Oracle is probably broken. If you RTFS of Dynaloader you will see:

# Many dynamic extension loading problems will appear to come from # this section of code: XYZ failed at line 123 of DynaLoader.pm. # Often these errors are actually occurring in the initialisation # C code of the extension XS file. Perl reports the error as being # in this perl code simply because this was the last perl code # it executed. my $libref = dl_load_file($file, $module->dl_load_flags) or croak("Can't load '$file' for module $module: ".dl_error());

As you claim to be able to run it off the command line the other possibilities include permissions or perhaps more than one version of Perl on the box. If you are positive it works off the command line then Permissions would be top of the list.

cheers

tachyon