Checking Oracle Database Encoding

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

  1. This returns the sort and comparison settings of the oracle db. Should be the same (BINARY)

    1 2 3 4 5 SELECT * FROM nls_session_parameters WHERE parameter IN ('NLS_COMP', 'NLS_SORT'); SELECT * FROM nls_database_parameters WHERE parameter IN ('NLS_COMP', 'NLS_SORT'); SELECT SYS_CONTEXT('USERENV','NLS_SORT') nls_sort FROM DUAL;
  2. Returns the collation of the database, Expected value is `AL32UTF8`

    1 2 3 SELECT * FROM nls_session_parameters WHERE PARAMETER='NLS_CHARACTERSET'; SELECT * FROM nls_database_parameters WHERE PARAMETER='NLS_CHARACTERSET';
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.