Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NLS Parameters and ORA 29275 - Partial Mutlibyte Character

SoofiJul 11 2016 — edited Jul 13 2016

Dear All,

          I am working in Oracle Forms and Reports 11g with db 12c.

I have a password (varchar2 column) which stores the result of  DBMS_OBFUSCATION_TOOLKIT.MD5(<my param>).

We have two different environment with different NLS Params. On one environment the form showing the password (in encrypted is working fine) whereas in another environment it throws ORA 29275 - Partial Multi-byte Character.

Here is the NLS_Parameter settings for the non-working environment

  

PARAMETERVALUE
NLS_LANGUAGEAMERICAN
NLS_TERRITORYAMERICA
NLS_CURRENCY$
NLS_ISO_CURRENCYAMERICA
NLS_NUMERIC_CHARACTERS.,
NLS_CALENDARGREGORIAN
NLS_DATE_FORMATDD-MON-RR
NLS_DATE_LANGUAGEAMERICAN
NLS_CHARACTERSETAL32UTF8
NLS_SORTBINARY
NLS_TIME_FORMATHH.MI.SSXFF AM
NLS_TIMESTAMP_FORMATDD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMATHH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMATDD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY$
NLS_NCHAR_CHARACTERSETAL16UTF16
NLS_COMPBINARY
NLS_LENGTH_SEMANTICSBYTE
NLS_NCHAR_CONV_EXCPFALSE

I guessed the problem with NLS_CHARACTERSET and I made a work-around in my form(POST-QUERY) as below,

CONVERT(<char>, <dest_char_set>, <source_char_set>)

but nothing works.

Also  the below query fails

select CASE
  INSTR
(
  RAWTOHEX
(
  utl_raw
.cast_to_raw (
  utl_i18n
.raw_to_char (
  utl_raw
.cast_to_raw ( <your_column> )
  
, 'utf8'
  
)
  
)
  
)
  
, 'EFBFBD'
  
)
  
WHEN 0 THEN 'OK'
  
ELSE 'FAIL'
  
END
  
from <your_table>
  
;

Have anyone faced this issue before?

Your valuable suggestions greatly appreciated.

Thanks in Advance.

Regards,

Soofi

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2016
Added on Jul 11 2016
6 comments
1,779 views