A script-enabled browser is required for this page to function properly.

ORA_NLS.GET_LANG_STR built-in function

This function returns the requested information about the current language. You can use GET_LANG_STR to retrieve character information.

Syntax


FUNCTION ORA_NLS.GET_LANG_STR
(attribute PLS_INTEGER)
RETURN VARCHAR2;

Parameters

Parameter

Description

attribute

An ORA_NLS constant or its associated integer value. For a List of constants, see ORA_NLS character constants..

Returns

A character value.

Example


/*
** Retrieve and print out the language name
*/
BEGIN lang_name (out TEXT_IO.FILE_TYPE)
  lang_name VARCHAR2(80);
BEGIN
  lang_name := ORA_NLS.GET_LANG_STR
  (ORA_NLS.LANGUAGE);
  TEXT_IO.PUT(out, "Current Language is %s\n",
  lang_name);
END;

See also

About the ORA_NLS built-in package

ORA_NLS built-in package