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: to - 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***


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  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.


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