Error when connecting to oracle 11g via access 2013

blossompark
blossompark used Ask the Experts™
on
Hi All,
I am trying to connect to an oracle database using access 2013
The  ODBC Data driver can connect successfully to the data source see below.
dsn
But when I try to use this data source within Access 2013 I get an error message. See below
call fail
it  is 32 bit access running on 64 bit windows 7
Any guidance appreciated. Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Geert GOracle dba
Top Expert 2009
Commented:
create a connection in odbc 32bit

you created a connection in the 64 odbc

from start, type odbc, you should 32bit and 64bit versions

Author

Commented:
Hi Geert,
thanks for your response.
when I type odbc, i get two options
Microsoft ODBC administrator
Set up data source ODBC.
no 32 64 bit options
Geert GOracle dba
Top Expert 2009
Commented:
use explorer to look in  C:\Windows\SysWOW64

odbcad32.exe

windows 10 displays both.
I guess you still use windows 7
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Yes, Geert is correct. Use the corresponding version of ODBC:

32 bit: C:\Windows\SysWOW64\odbcad32.exe
64 bit: C:\Windows\System32\odbcad32.exe

Author

Commented:
looking at the existing installed drivers they seem to be 32 bit?
32
Why that?! Because of the "32" within the filename?! I'd give a damn about that ;-)
odbcad32.exe exists as 32 as well as 64 bit version with the SAME name...

Are you using 64 bit Access?!

Author

Commented:
no 32 bit access

Author

Commented:
i am using 32 bit access
Oracle Client is 32 or 64 bit?!
Geert GOracle dba
Top Expert 2009
Commented:
to check for the oracle client version

check what oracle paths you have
dos:
set path
> this will display all the paths to the oracle software installed ... and other software

run sqlplus
> it should state what version it started 64-bit or not

if you have multiple clients, move the 32bit path before the 64bit path in the path environment variable

Author

Commented:
the only client i can see in environment variables is
C:\downloaded applications\instantclient-basic-windows.x64-12.1.0.2.0\instantclient_12_1
This is the one I installed ...
I will remove this and install the 32 bit version?
Geert GOracle dba
Top Expert 2009
Commented:
not sure if the instant client is enough
you could try
and if that doesn't work, install the runtime version of oracle client
x64 indicates 64 bit architecture. This client won't work with 32 bit ODBC (and thus not with Access)
not sure if the instant client is enough
No, you have to get the ODBC "AddOn" from Oracle ;-) should be right below the Download list on that page

Author

Commented:
sorry...there is a previous entry in the PATh
C:\app\product\11.2.0\dbhome_2\bin; not sure if this 32 or 64
Looks like the DB installation.
Try this from command line and check 32 or 64 bit:

SET ORACLE_HOME=C:\app\product\11.2.0\dbhome_2
SQLPLUS / AS SYSDBA (or whatever login)

look for 64 bit on "welcome screen"...

Author

Commented:
Hi Alexander,
not  able to get the expected results  with the commands above,
i will install the 32 bit client and set this as first in the PATH

Author

Commented:
Hi Alexander and Geert,
thanks for your assistance,
i installed the 32 bit oracle client and now working ok...
Thank you!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial