饿虎岗资源网 Design By www.oxmxm.com

1、 USERENV(OPTION) 
  返回当前的会话信息. 
  OPTION='ISDBA'若当前是DBA角色,则为TRUE,否则FALSE. 
  OPTION='LANGUAGE'返回数据库的字符集. 
  OPTION='SESSIONID'为当前会话标识符. 
  OPTION='ENTRYID'返回可审计的会话标识符. 
  OPTION='LANG'返回会话语言名称的ISO简记. 
  OPTION='INSTANCE'返回当前的实例. 
    OPTION='terminal'返回当前计算机名 
  SELECT USERENV('LANGUAGE') FROM DUAL;
2、sys_context
复制代码 代码如下:
select  
SYS_CONTEXT('USERENV','TERMINAL') terminal,  
SYS_CONTEXT('USERENV','LANGUAGE') language,  
SYS_CONTEXT('USERENV','SESSIONID') sessionid,  
SYS_CONTEXT('USERENV','INSTANCE') instance,  
SYS_CONTEXT('USERENV','ENTRYID') entryid,  
SYS_CONTEXT('USERENV','ISDBA') isdba,  
SYS_CONTEXT('USERENV','NLS_TERRITORY') nls_territory,  
SYS_CONTEXT('USERENV','NLS_CURRENCY') nls_currency,  
SYS_CONTEXT('USERENV','NLS_CALENDAR') nls_calendar,  
SYS_CONTEXT('USERENV','NLS_DATE_FORMAT') nls_date_format,  
SYS_CONTEXT('USERENV','NLS_DATE_LANGUAGE') nls_date_language,  
SYS_CONTEXT('USERENV','NLS_SORT') nls_sort,  
SYS_CONTEXT('USERENV','CURRENT_USER') current_user,  
SYS_CONTEXT('USERENV','CURRENT_USERID') current_userid,  
SYS_CONTEXT('USERENV','SESSION_USER') session_user,  
SYS_CONTEXT('USERENV','SESSION_USERID') session_userid,  
SYS_CONTEXT('USERENV','PROXY_USER') proxy_user,  
SYS_CONTEXT('USERENV','PROXY_USERID') proxy_userid,  
SYS_CONTEXT('USERENV','DB_DOMAIN') db_domain,  
SYS_CONTEXT('USERENV','DB_NAME') db_name,  
SYS_CONTEXT('USERENV','HOST') host,  
SYS_CONTEXT('USERENV','OS_USER') os_user,  
SYS_CONTEXT('USERENV','EXTERNAL_NAME') external_name,  
SYS_CONTEXT('USERENV','IP_ADDRESS') ip_address,  
SYS_CONTEXT('USERENV','NETWORK_PROTOCOL') network_protocol,  
SYS_CONTEXT('USERENV','BG_JOB_ID') bg_job_id,  
SYS_CONTEXT('USERENV','FG_JOB_ID') fg_job_id,  
SYS_CONTEXT('USERENV','AUTHENTICATION_TYPE') authentication_type,  
SYS_CONTEXT('USERENV','AUTHENTICATION_DATA') authentication_data  
from dual

3.与系统视图v$session组合使用可以获得更多信息(客户端所使用的应用程序等)
复制代码 代码如下:
select *
  from v$session se,
       (select SYS_CONTEXT('USERENV', 'TERMINAL') terminal,
               SYS_CONTEXT('USERENV', 'LANGUAGE') language,
               SYS_CONTEXT('USERENV', 'SESSIONID') sessionid,
               SYS_CONTEXT('USERENV', 'INSTANCE') instance,
               SYS_CONTEXT('USERENV', 'ENTRYID') entryid,
               SYS_CONTEXT('USERENV', 'ISDBA') isdba,
               SYS_CONTEXT('USERENV', 'NLS_TERRITORY') nls_territory,
               SYS_CONTEXT('USERENV', 'NLS_CURRENCY') nls_currency,
               SYS_CONTEXT('USERENV', 'NLS_CALENDAR') nls_calendar,
               SYS_CONTEXT('USERENV', 'NLS_DATE_FORMAT') nls_date_format,
               SYS_CONTEXT('USERENV', 'NLS_DATE_LANGUAGE') nls_date_language,
               SYS_CONTEXT('USERENV', 'NLS_SORT') nls_sort,
               SYS_CONTEXT('USERENV', 'CURRENT_USER') current_user,
               SYS_CONTEXT('USERENV', 'CURRENT_USERID') current_userid,
               SYS_CONTEXT('USERENV', 'SESSION_USER') session_user,
               SYS_CONTEXT('USERENV', 'SESSION_USERID') session_userid,
               SYS_CONTEXT('USERENV', 'PROXY_USER') proxy_user,
               SYS_CONTEXT('USERENV', 'PROXY_USERID') proxy_userid,
               SYS_CONTEXT('USERENV', 'DB_DOMAIN') db_domain,
               SYS_CONTEXT('USERENV', 'DB_NAME') db_name,
               SYS_CONTEXT('USERENV', 'HOST') host,
               SYS_CONTEXT('USERENV', 'OS_USER') os_user,
               SYS_CONTEXT('USERENV', 'EXTERNAL_NAME') external_name,
               SYS_CONTEXT('USERENV', 'IP_ADDRESS') ip_address,
               SYS_CONTEXT('USERENV', 'NETWORK_PROTOCOL') network_protocol,
               SYS_CONTEXT('USERENV', 'BG_JOB_ID') bg_job_id,
               SYS_CONTEXT('USERENV', 'FG_JOB_ID') fg_job_id,
               SYS_CONTEXT('USERENV', 'AUTHENTICATION_TYPE') authentication_type,
               SYS_CONTEXT('USERENV', 'AUTHENTICATION_DATA') authentication_data
          from dual) base
 where se.AUDSID = base.sessionid;
 

饿虎岗资源网 Design By www.oxmxm.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
饿虎岗资源网 Design By www.oxmxm.com

P70系列延期,华为新旗舰将在下月发布

3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。

而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?

根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。