隨筆-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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 荃湾区| 宁都县| 昌江| 汕尾市| 四川省| 东乡县| 崇文区| 仪陇县| 兴隆县| 新乡市| 犍为县| 金秀| 尚志市| 郑州市| 祁阳县| 色达县| 吉木乃县| 和林格尔县| 巴青县| 高台县| 乌苏市| 固原市| 汾西县| 台安县| 宁晋县| 容城县| 宣威市| 柘荣县| 河间市| 余庆县| 双城市| 金塔县| 诸城市| 灯塔市| 大新县| 平定县| 汝阳县| 昭平县| 前郭尔| 桐城市| 远安县|