My Oracle Support Banner

UTL_I18N.RAW_TO_CHAR Is Failing With ORA-01890 In 12.2 When src_charset Value Is Different From DB Character Set (Doc ID 2456883.1)

Last updated on JANUARY 28, 2020

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample or bulit-in schema(s), Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.

In Database, Whenever UTL_I18N.RAW_TO_CHAR function call specifies the src_charset parameter value as the different character set other than DB Character set value

fails with
ORA-01890: NLS error detected.

However,the same code works in



 Upgraded database to from


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.