My Oracle Support Banner

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

Last updated on MARCH 12, 2021

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.
***Checked for relevance on 31-Aug-2012***


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

SQL> select * from test_table@mysql ;
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 to access 11.2 DG4ODBC.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.