Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1365013
  • 博文数量: 416
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 4258
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-23 22:13
文章分类

全部博文(416)

文章存档

2015年(7)

2014年(42)

2013年(35)

2012年(14)

2011年(17)

2010年(10)

2009年(18)

2008年(127)

2007年(72)

2006年(23)

2005年(51)

分类: Oracle

2014-03-18 11:26:08

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;

-------------------------------------

监控concurrent 正在执行的sql
SELECT a.sid, a.serial#, b.sql_text
  FROM v$session a, v$sqltext b
 WHERE a.sql_address = b.address
  AND a.sid = <...>
 ORDER BY b.piece

-------------------
SELECT 
        FSAV.USER_NAME,
        FU.DESCRIPTION,
        FSAV.RESPONSIBILITY_NAME,
        FSAV.USER_FORM_NAME,
        FSAV.LOGIN_NAME,
        FSAV.TIME,
        FSAV.PID,
        FSAV.TERMINAL_ID,
        FSAV.USER_ID,
        FSAV.RESP_APPL_ID,
        FSAV.RESPONSIBILITY_ID,
        FSAV.FORM_ID,
        FSAV.FORM_APPL_ID 
 FROM FND_SIGNON_AUDIT_VIEW  FSAV,
      FND_USER FU
 where FSAV.LOGIN_NAME='applprod'
       AND FSAV.USER_ID = FU.USER_ID
 order by to_number(substr(FSAV.TIME,1,instr(FSAV.TIME,':')-1))*60 + to_number(substr(FSAV.TIME,instr(FSAV.TIME,':')+1))

阅读(681) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~