隨筆-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 華夢行 閱讀(1204) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 柳林县| 嘉义市| 商洛市| 甘南县| 康马县| 天长市| 宁城县| 墨竹工卡县| 玛曲县| 吴江市| 资兴市| 和政县| 武安市| 穆棱市| 阜阳市| 汝城县| 察哈| 阿坝| 突泉县| 汾西县| 苗栗县| 长阳| 咸阳市| 株洲市| 乐平市| 鸡东县| 综艺| 金阳县| 衡东县| 锡林郭勒盟| 宁城县| 阳江市| 元江| 凤阳县| 牟定县| 桦川县| 邹城市| 永胜县| 大厂| 苗栗县| 乌兰察布市|