IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

Encoding from UTF-8 to Oracle DB

  • 1.  Encoding from UTF-8 to Oracle DB

    Posted Sun September 25, 2016 03:37 PM

    Originally posted by: Ole Haavard Haug-Larsen


    Hi.

    I'm having problems with Norwegian charset (Æ,Ø,Å) when transforming from UTF-8 to Oracle database.

     

    WTX is installed at a Linux server with charset UTF-8 and the input-file is a XML containing Norwegian characters. When I map to new file at the Linux, there are no problem. BUT when I transform to a Oracle Database, the Norwegian characters are 'corrupt'. The content of the file is mapped into a CLOB-defined field in the DB-table.

     

    I have tried to set Data language in the type-tree (have tried different values), but the Æ, Ø and Å are stil wrong when storing to DB.

     

    The DB-environment have also been controlled:

    NLS_RDBMS_VERSION

    12.1.0.2.0

    NLS_NCHAR_CONV_EXCP

    FALSE

    NLS_LENGTH_SEMANTICS

    BYTE

    NLS_COMP

    BINARY

    NLS_DUAL_CURRENCY

    $

    NLS_TIMESTAMP_TZ_FORMAT

    DD-MON-RR HH.MI.SSXFF AM TZR

    NLS_TIME_TZ_FORMAT        

    HH.MI.SSXFF AM TZR

    NLS_TIMESTAMP_FORMAT

    DD-MON-RR HH.MI.SSXFF AM

    NLS_TIME_FORMAT

    HH.MI.SSXFF AM

    NLS_SORT

    BINARY

    NLS_DATE_LANGUAGE

    AMERICAN

    NLS_DATE_FORMAT

    DD-MON-RR

    NLS_CALENDAR        

    GREGORIAN

    NLS_NUMERIC_CHARACTERS

    .,

    NLS_NCHAR_CHARACTERSET

    AL16UTF16

    NLS_CHARACTERSET

    AL32UTF8

    NLS_ISO_CURRENCY

    AMERICA

    NLS_CURRENCY        

    $

    NLS_TERRITORY        

    AMERICA

    NLS_LANGUAGE

    AMERICAN

     

    Any tips and suggestions??

     


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Encoding from UTF-8 to Oracle DB

    Posted Mon September 26, 2016 07:05 AM

    Originally posted by: paul.brett


    I recommend you set the environment variable :

    export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

    ...before starting TX.

    (https://eclient.lenexa.ibm.com:9445/search/?fetch=source/TechNote/1962571)

    Thank-you.

    Paul.

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Encoding from UTF-8 to Oracle DB

    Posted Wed September 28, 2016 05:18 AM

    Originally posted by: Ole Haavard Haug-Larsen


    Thanks, Paul! Your answer solved my problem! :-)

     


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange