NLS_CHARSET_ID
NLS_CHARSET_ID(text)

Returns the ID number corresponding to a given NLS character set name.

Example

SQL> SELECT NLS_CHARSET_ID('US7ASCII'), NLS_CHARSET_ID('WE8EBCDIC37C')
  2  FROM dual;

NLS_CHARSET_ID('US7ASCII') NLS_CHARSET_ID('WE8EBCDIC37C')
-------------------------- ------------------------------
                         1                             90

Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.