--R12查询EBS在线用户SQL 
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;

SELECT FND.USER_NAME,
         ICX.RESPONSIBILITY_APPLICATION_ID,
         ICX.RESPONSIBILITY_ID,
         FRT.RESPONSIBILITY_NAME,
         ICX.SESSION_ID,
         ICX.FIRST_CONNECT,
         ICX.LAST_CONNECT,
         DECODE ( (ICX.DISABLED_FLAG),  'N', 'ACTIVE',  'Y', 'INACTIVE') STATUS
    FROM FND_USER FND, ICX_SESSIONS ICX, FND_RESPONSIBILITY_TL FRT
   WHERE     FND.USER_ID = ICX.USER_ID
         AND ICX.RESPONSIBILITY_ID = FRT.RESPONSIBILITY_ID
         AND ICX.DISABLED_FLAG <> 'Y'
         AND TRUNC (ICX.LAST_CONNECT) = TRUNC (SYSDATE)
ORDER BY ICX.LAST_CONNECT;

--监控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 = :P_SID
ORDER BY B.PIECE;

--查询某用户一年登录EBS失败的次数:
--用 apps/apps_password 登录:
SELECT COUNT (LOGIN_NAME)
  FROM FND_UNSUCCESSFUL_LOGINS L, FND_USER U
WHERE     L.USER_ID = U.CUSTOMER_ID
       AND ATTEMPT_TIME > (SELECT MAX (START_TIME)
                             FROM FND_LOGINS L
                            WHERE L.USER_ID = U.USER_ID)
       AND (ATTEMPT_TIME + 265) > SYSDATE
       AND U.USER_NAME = '<username>';

--查询用户登录次数
  SELECT PEO.PERSON_ID,
         PEO.FULL_NAME,
         FU.USER_ID,
         FU.USER_NAME,
         HL.LOCATION_CODE,
         HL.DESCRIPTION,
         COUNT (FL.USER_ID) AS LOGIN_TIMES
    FROM FND_USER FU,
         PER_ALL_PEOPLE_F PEO,
         PER_ALL_ASSIGNMENTS_F ASS,
         HR_LOCATIONS HL,
         FND_LOGINS FL
   WHERE     FU.EMPLOYEE_ID = PEO.PERSON_ID
         AND ASS.PERSON_ID = PEO.PERSON_ID
         AND ASS.LOCATION_ID = HL.LOCATION_ID
         AND FL.USER_ID(+) = FU.USER_ID
         AND FU.USER_NAME = :USER_NAME
GROUP BY PEO.PERSON_ID,
         PEO.FULL_NAME,
         FU.USER_ID,
         FU.USER_NAME,
         HL.LOCATION_CODE,

         HL.DESCRIPTION;

EBS R12 查询EBS用户相关SQL的更多相关文章

  1. R12 查询EBS用户相关SQL(转)

    https://www.cnblogs.com/quanweiru/p/4869697.html http://hutianci.iteye.com/blog/934921 --R12查询EBS在线用 ...

  2. R12 查询EBS用户相关SQL

    --R12查询EBS在线用户SQL SELECT U.USER_NAME,       APP.APPLICATION_SHORT_NAME,       FAT.APPLICATION_NAME,  ...

  3. Oracle EBS中查询Profile的各种SQL【转载】

    1.List E-Business Suite Profile Option Values For All Levels SELECT p.profile_option_name SHORT_NAME ...

  4. 【转】Oracle EBS中查询Profile的各种SQL

    参考 http://blog.csdn.net/pan_tian/article/details/7652968#t0 Using API FND_PROFILE.save to update pro ...

  5. 【Oracle】查询锁的相关SQL

    --查看有锁的进程 select t2.username,t2.sid,t2.serial#,t2.logon_time,t2.state from v$locked_object t1,v$sess ...

  6. EBS R12安装升级(FRESH)(五)

    7.4.5 用DBUA升级 Database Upgrade Assistant提供图形界面进行升级. 将zysong.ttf复制到 /u01/oracle/TEST/db/tech_st/11.2. ...

  7. ORACLE EBS R12 FOR LINUX 开机后如何启动数据库、应用脚本[Z]

    在Linux中安裝EBS  R12後, EBS關閉與啟動的程序為: 1. 關閉EBS - 先關閉Applications Server $ cd /d01/oracle/VIS/inst/apps/V ...

  8. EBS R12 探索之路【EBS 经典SQL分享】

    http://bbs.erp100.com/thread-251217-1-1.html 1. 查询EBS 系统在线人数 SELECT U.USER_NAME ,APP.APPLICATION_SHO ...

  9. 皴EBS R12应用程序和数据库用户password

    1.假设你有一个EBS周围环境APPS用户password,能够打破用户的应用程序password 参考:Oracle EBS R12下怎样破解用户password 2,假设没有APPS用户passw ...

随机推荐

  1. usaco5.5-Hidden Passwords

    最小表示法,感觉可以做成个模板,第一次RE是因为字符串长度变2倍了而我把数组开小了 Executing...   Test 1: TEST OK [0.008 secs, 3760 KB]   Tes ...

  2. 【剑指offer】面试题41:和为 s 的两个数字 VS 和为 s 的连续正数序列

    题目: 输出所有和为S的连续正数序列.序列内按照从小至大的顺序,序列间按照开始数字从小到大的顺序 思路: small代表序列最小数字,large代表序列最大数字.初始化small为1,large为2. ...

  3. Java 8 新特性终极版

    声明:本文翻译自Java 8 Features Tutorial – The ULTIMATE Guide,翻译过程中发现并发编程网已经有同学翻译过了:Java 8 特性 – 终极手册,我还是坚持自己 ...

  4. <php>统计整个文件夹的大小

    //用来统计一个目录下大小 function dirsize($file) { $size = 0; $dir = opendir($file); while($filename = readdir( ...

  5. Thrift的安装和简单演示样例

    本文仅仅是简单的解说Thrift开源框架的安装和简单使用演示样例.对于具体的解说,后面在进行阐述. Thrift简述                                           ...

  6. IOS 6.0+ Autolayout — UITableViewCell 高度调整

    要实现的效果 要求: storyboard上的准备工作 建好cell自定义AutoCell 类,关联好控件,事先准备好一些数据源 实现tableview的委托方法 核心部分,HeightForRow方 ...

  7. 初识QML学习机制

    在QML中,一个用户界面被指定为具有属性的对象树,这使得Qt更加便于很少或没有编程经验的人使用,JavaScript在QML中作为一种脚本语言,对QML进行逻辑方面的编程. AD:WOT2015 互联 ...

  8. ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_909_0.MYI' (Errcode: 13)

    mysql> desc tablename; ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_909_0.MYI' (Errcode ...

  9. C#基础:集合

        C#中的数组实现为 System.Array 类的实例,它们只是集合类(Collection Classes)中的一种类型.集合类一般用于处理对象列表,其功能比简单数组要多,功能大多是通过实现 ...

  10. 你所不知道的java编程思想

    读thinking in java这本书的时候,有这么一句话“在编译单元的内部,可以有一个公共(public)类,它必须拥有与文件相同的名字” 有以下疑问: 在一个类中说可以有一个public类,那是 ...