Why do I receive an error when I try to connect to an Oracle database on with the Database Toolbox 3.4 (R2007b)?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 17 Apr 2024 at 15:52
I use a 64-bit version of Windows and a 32-bit version of Oracle and MATLAB. I setup up the ODBC connection and when I run the test it works. When I try to connect to it with the Database Toolbox, I receive the following error:
ERROR: While doing connection=database(), I get an error message that says:
TNF: Not resolved connection, ora-12154
Accepted Answer
MathWorks Support Team
on 17 Apr 2024 at 0:00
Edited: MathWorks Support Team
on 17 Apr 2024 at 15:52
This is an issue with the ODBC driver provided with the Oracle database. A bug report from Oracle which describes the issue that you are experiencing is available at:
The issue is caused by the path name of the client software. The 32-bit version of MATLAB is typically in "C:\Program Files (x86)\MATLAB". Due to a bug in the Oracle driver, the "(x86)" string in the path name is causing it to fail to connect. The work around is to change the installation directory of MATLAB and Oracle so that they do not contain any parentheses. There is a bug tracker link which you may be able to use to check the status of the bug report.
0 Comments
More Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!