隨筆-295  評論-26  文章-1  trackbacks-0

          select userenv('language') from dual

          Oracle/PLSQL: UserEnv Function


          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:

          Parameter Explanation
          CLIENT_INFO Returns user session information stored using the DBMS_APPLICATION_INFO package
          ENTRYID Available auditing entry identifier
          INSTANCE The identifier number of the current instance
          ISDBA Returns TRUE if the user has DBA privileges. Otherwise, it will return FALSE.
          LANG The ISO abbreviation for the language
          LANGUAGE The language, territory, and character of the session. In the following format:
          ???? language_territory.characterset
          SESSIONID The identifier of the auditing session
          TERMINAL The OS identifier of the current session

          For example:

          userenv('ENTRYID') would return FALSE
          userenv('LANGUAGE') would return 'AMERICAN_AMERICA.WE8DEC'


          大盤預測 國富論
          posted on 2007-08-24 11:31 華夢行 閱讀(1208) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 长武县| 淮南市| 新闻| 上高县| 曲阜市| 阿巴嘎旗| 崇礼县| 合肥市| 和静县| 巴彦淖尔市| 通化县| 内黄县| 新化县| 吉隆县| 乌拉特中旗| 光山县| 富平县| 扶绥县| 河池市| 阳信县| 海南省| 东台市| 安泽县| 龙里县| 温州市| 永定县| 台东县| 喜德县| 凌源市| 宽甸| 勃利县| 呼图壁县| 鹤山市| 历史| 栾川县| 来凤县| 紫云| 特克斯县| 牡丹江市| 平原县| 遂昌县|