My Oracle Support Banner

Error ORA-28500 {ZZZZZ,NativeErr = 156} Using Sybase ODBC Driver With DG4ODBC (Doc ID 2005717.1)

Last updated on JUNE 08, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

After configuring the Database Gateway for ODBC (DG4ODBC) to connect to a Sybase Database using the native Sybase ODBC driver issuing a SELECT returns the following error:

SQL> select * from "sysobjects"@SYBODBC;
select * from "sysobjects"@SYBODBC
*
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[SAP][ASE ODBC Driver][Adaptive Server Enterprise]Incorrect syntax near the
keyword 'where'.
{ZZZZZ,NativeErr = 156}
ORA-02063: preceding 3 lines from SYBODBC


The select statement works successfully when using isql to connect to the same Sybase database

Cause

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
Symptoms
Cause
Solution
References


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