My Oracle Support Banner

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

Last updated on FEBRUARY 01, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.1.0.7 [Release 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud 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
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

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.