Skip to content

SQL Reference

USERENV

  • parameter: The session attribute to return, e.g. ‘LANGUAGE’, ‘SESSIONID’, ‘SID’, ‘TERMINAL’.
SELECT USERENV('LANGUAGE') FROM DUAL;
'AMERICAN_AMERICA.UTF8'

The ‘USERENV’ function provides information about the current session. In the example above, USERENV('LANGUAGE') returns the language and territory setting of the current session, along with the character set encoding value.