Selecting NCHAR/NVARCHAR Using DG4ODBC Adds a Space/Blank to Every Character

(Doc ID 1072796.1)

Last updated on MAY 27, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Information in this document applies to any platform.
***Checked for relevance on 27-May-2013***

Symptoms

Executing a select fetching foreign database nchar/nvarchar characters might display an additional space between the characters. A dump is showing the spaces as 0 bytes. For example:

SQL> select distinct("ENAME"), dump("ENAME") from "emp"@mysql_32 where "EMPNO"=7839;

ENAME         DUMP("ENAME")
----------        --------------------------------------------------------------------------------
K I N G          Typ=1 Len=16: 0,75,0,0,0,73,0,0,0,78,0,0,0,71,0,0

Changes

Upgrade to DG4ODBC 11g.

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