查询EBS在线用户(转)

SELECT u.user_name
      ,app.application_short_name
      ,fat.application_name
      ,fr.responsibility_key
      ,frt.responsibility_name
      ,fff.function_name
      ,fft.user_function_name
      ,icx.function_type
      ,icx.first_connect
      ,icx.last_connect
  FROM icx_sessions          icx
      ,fnd_user              u
      ,fnd_application       app
      ,fnd_application_tl    fat
      ,fnd_responsibility    fr
      ,fnd_responsibility_tl frt
      ,fnd_form_functions    fff
      ,fnd_form_functions_tl fft
 WHERE 1 = 1
   AND u.user_id = icx.user_id
   AND icx.responsibility_application_id = app.application_id
   AND fat.application_id = icx.responsibility_application_id
   AND fat.language = 'ZHS'
   AND fr.application_id = icx.responsibility_application_id
   AND fr.responsibility_id = icx.responsibility_id
   AND frt.language = 'ZHS'
   AND frt.application_id = icx.responsibility_application_id
   AND frt.responsibility_id = icx.responsibility_id
   AND fff.function_id = icx.function_id
   AND fft.function_id = icx.function_id
   AND icx.disabled_flag != 'Y'
   AND icx.pseudo_flag = 'N'
   AND (icx.last_connect +
       decode(fnd_profile.value('ICX_SESSION_TIMEOUT'),
               NULL,
               icx.limit_time,
               0,
               icx.limit_time,
               fnd_profile.value('ICX_SESSION_TIMEOUT') / 60) / 24) >
       SYSDATE
   AND icx.counter < icx.limit_connects
   AND u.user_name <> 'SYSADMIN';

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10359218/viewspace-758703/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10359218/viewspace-758703/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值