flowcontrol
Programmer
I am having trouble connecting to an Oracle 10g Release 2 database using Win32::ODBC. I receive the following error message:
'The instruction at "0x7c911e58" referenced memory at "0xffffffff". The memory could not be "read"'.
My code:
use Win32::ODBC;
$connectionString = 'BATHY';
$db = Win32::ODBC->new($connectionString);
"BATHY" is the system DSN on my machine, which I tested using the "Test Connection" button in the ODBC Datasource Administrator. The code above works perfectly when I connect to a SQL Server database using a full DSN connection string of "DSN=FLRC-DEV;UID=flrcuser;PWD=mypassword", so I tried the following connection string:
"DSN=BATHY;UID=bathyuser@GKBEB;PWD=mypassword"
I get the same error. ("GKBEB" is the TNS service name.) I suspect that my connection string is incorrect, but I'm new to Oracle and I'm at a loss.
Does anyone have any ideas as to what is wrong?
'The instruction at "0x7c911e58" referenced memory at "0xffffffff". The memory could not be "read"'.
My code:
use Win32::ODBC;
$connectionString = 'BATHY';
$db = Win32::ODBC->new($connectionString);
"BATHY" is the system DSN on my machine, which I tested using the "Test Connection" button in the ODBC Datasource Administrator. The code above works perfectly when I connect to a SQL Server database using a full DSN connection string of "DSN=FLRC-DEV;UID=flrcuser;PWD=mypassword", so I tried the following connection string:
"DSN=BATHY;UID=bathyuser@GKBEB;PWD=mypassword"
I get the same error. ("GKBEB" is the TNS service name.) I suspect that my connection string is incorrect, but I'm new to Oracle and I'm at a loss.
Does anyone have any ideas as to what is wrong?