11G Gateways Fail When a Non-Oracle Database Column Name Has More Than 30 Characters (Doc ID 852285.1)

Last updated on OCTOBER 10, 2011

Applies to:

Oracle Server - Enterprise Edition - Version: 11.1.0.6 to 11.1.0.7 - Release: 11.1 to 11.1
Oracle Transparent Gateway for ODBC
Information in this document applies to any platform.
Any Oracle Transparent Gateway - Version: 11.1 to 11.1
***Checked for relevance on 11-JUL-2011***

Symptoms

You have a remote table with column name with more than 30 characters.

Name                                          Type
----------------------------------------- -------- ----------------------------
abcdefghijklmnopqrstuvwxyzabcd                      CHAR(9)

When selecting data from a remote table having more than 30 characters in the column name using Database Gateway for ODBC (DG4ODBC) version 11.1.0.6  running on a Windows server the following error is given:
(in this example, remote table is from SQL SERVER)

ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC SQL Server Driver][SQL Server]'abcdefghijklmnopqrstuvwxyzabcdefg' is an invalid name because it contains a NULL character or an invalid unicode character.[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.








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