隨筆-295  評(píng)論-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'


          大盤預(yù)測(cè) 國(guó)富論
          posted on 2007-08-24 11:31 華夢(mèng)行 閱讀(1208) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 龙南县| 泰州市| 合作市| 永州市| 曲麻莱县| 洛宁县| 团风县| 科尔| 萍乡市| 胶南市| 华坪县| 天峻县| 桃园县| 山西省| 保靖县| 常德市| 白银市| 扎鲁特旗| 汽车| 北宁市| 赤城县| 吉林省| 临漳县| 尼勒克县| 县级市| 英山县| 金乡县| 塔河县| 嫩江县| 安康市| 岳普湖县| 毕节市| 通榆县| 麻江县| 平山县| 寿宁县| 曲阳县| 江源县| 桃源县| 大关县| 泽库县|