I am not able to connect to connect to a remote Oracle database from
my Mojolicious::Lite app. Other "normal" perl scripts however can.
I set the relevant $ENV's in a begin block:
BEGIN {
$ENV{SYBASE} = "C:\\Sybase";
$ENV{SYBASE_OCS} = "OCS-15_0";
$ENV{Path} = "C:\\sybase\\OCS-15_0\\bin;C:\\sybase\\OCS-15_0\
\dll;C:\\sybase\\OCS-15_0\\lib3p;H:\\instantclient_11_2;" .
$ENV{Path};
$ENV{ORACLE_HOME} = "H:\\instantclient_11_2";
$ENV{TNS_ADMIN} = "H:\\instantclient_11_2";
}
and as I mentioned earlier, my trivial script (outside of the lite
app) is able to connect and retrieve results just fine.
The error I receive is:
install_driver(Oracle) failed: Can't load 'C:/Perl/lib/auto/DBD/Oracle/
Oracle.dll' for module DBD::Oracle: load_file:The specified module
could not be found at C:/Perl/lib/DynaLoader.pm line 201.
at (eval 4180) line 3
Compilation failed in require at (eval 4180) line 3.
Perhaps a required shared library or dll isn't installed where
expected
at
deck.pl line 110
( line 110: my $dbh = DBI->connect(....); )
I can read H: just fine, even from the script, but I wondered if the
fact that the client is there could have introduced an issu so I moved
things under C:.. and now I get this error:
install_driver(Oracle) failed: Attempt to reload DBD/Oracle.pm
aborted.
Compilation failed in require at (eval 4185) line 3.
Any help would be appreciated. I can confirm that $ENV{Path} contains
the path to the oracle client. I can `call` the external script from
Mojo and get results back but don't really want to resort to that.
Could Mojo or morbo be doing something to my environment so that I
can't connect? Any help would be appreciated.
Thanks!
OS: Windows XP
Oracle: instantclient_11_2
Mojo: v1.99