ITPub博客

首页 > 数据库 > Oracle > Oracle/PLSQL: UserEnv Function(轉自http://www.techonthenet.com/oracle/functions/userenv.php)

Oracle/PLSQL: UserEnv Function(轉自http://www.techonthenet.com/oracle/functions/userenv.php)

原创 Oracle 作者:hzh_hu 时间:2009-06-19 17:29:53 0 删除 编辑


In Oracle/PLSQL, the userenv function can be used to retrieve information about the current Oracle session. Although this function still exists in Oracle for backwards compatibility, it is recommended that you use the sys_context function instead.

The syntax for the userenv function is:

userenv( parameter )

parameter is the value to return from the current Oracle session. The possible values are:

ParameterExplanation
CLIENT_INFOReturns user session information stored using the DBMS_APPLICATION_INFO package
ENTRYIDAvailable auditing entry identifier
INSTANCEThe identifier number of the current instance
ISDBAReturns TRUE if the user has DBA privileges. Otherwise, it will return FALSE.
LANGThe ISO abbreviation for the language
LANGUAGEThe language, territory, and character of the session. In the following format:
language_territory.characterset
SESSIONIDThe identifier of the auditing session
TERMINALThe OS identifier of the current session
[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/95530/viewspace-1023319/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-06

  • 博文量
    47
  • 访问量
    580728