OLEDB DBColumnInfo->ulColumnSize shows wrong length (BYTES instead CHAR) for NVARVCHAR column when RDBMS parameter nls_length_semantics = CHAR

(Doc ID 1136838.1)

Last updated on MAY 24, 2012

Applies to:

Oracle Provider for OLE DB - Version and later
Information in this document applies to any platform.


Using OLEDB against database using init.ora parameter

nls_length_semantics = CHAR

and retrieve column information for a NVARCHAR column using


returns maximum lengh for BYTES - not CHAR.

I.e. if NVARCHAR(40) is defined, return value is 80 (2*40) instead expected 40

Using OLEDB and lower correct values for DBColumnInfo->ulColumnSize returned.


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