Hi,
I'm trying to connect to our Oracle9 database via the Perl DBI (I'm using ActiveState Perl, and installed the DBI and DBD::ODBC via the ActiveState ppm).
Here's my basic connection attempt:
When I run this, I get the following error message:
Is there another package/module I should be using for my ODBC connections? Searches on the internet seem to indicate that this is an Oracle issue in general, but it seems strange to me that connections to Oracle via Windows with Perl can't happen...
Any help greatly appreciated,
thanks!
dora c
I'm trying to connect to our Oracle9 database via the Perl DBI (I'm using ActiveState Perl, and installed the DBI and DBD::ODBC via the ActiveState ppm).
Here's my basic connection attempt:
Code:
use DBI;
$DSN = 'driver={Microsoft ODBC for Oracle};database=MyDatabase';
$DBH = DBI->connect( "dbi:ODBC:$DSN"
,"MyUserId"
,"MyPassword"
,{
RaiseError => 1
,AutoCommit => 0 } )
|| die "couldnt connect to database...\n";
When I run this, I get the following error message:
Code:
DBI connect('driver={Microsoft ODBC for Oracle};database=MyDatabase','MyUserId',...) failed: [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
Is there another package/module I should be using for my ODBC connections? Searches on the internet seem to indicate that this is an Oracle issue in general, but it seems strange to me that connections to Oracle via Windows with Perl can't happen...
Any help greatly appreciated,
thanks!
dora c