Problems Selecting Mysql Data Using 11.1.0.6 or 11.2 DG4ODBC - Error In Your SQL Syntax (Doc ID 553030.1)

Last updated on JANUARY 19, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.2.0.2 [Release 11.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 31-Aug-2012***

Symptoms

Trying to select data from MySQL using 11.1.0.6 DG4ODBC gives the following error -

SQL> select * from test_table@mysql ;
ERROR:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][MySQL][ODBC 3.51
Driver][mysqld-5.0.24a-community-nt]You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right syntax
to use near '"TEST_TABLE" WHERE "col1"='Bill '' at line 1 (SQL State: 37000; SQL
Code: 1064)
ORA-02063: preceding 2 lines from MYSQL


This can also happen using an earlier RDBMS such as 9.2.0.8 to access 11.2 DG4ODBC.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms