EBS R12 查询EBS用户相关SQL
--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,
EBS R12 查询EBS用户相关SQL的更多相关文章
- R12 查询EBS用户相关SQL(转)
https://www.cnblogs.com/quanweiru/p/4869697.html http://hutianci.iteye.com/blog/934921 --R12查询EBS在线用 ...
- R12 查询EBS用户相关SQL
--R12查询EBS在线用户SQL SELECT U.USER_NAME, APP.APPLICATION_SHORT_NAME, FAT.APPLICATION_NAME, ...
- Oracle EBS中查询Profile的各种SQL【转载】
1.List E-Business Suite Profile Option Values For All Levels SELECT p.profile_option_name SHORT_NAME ...
- 【转】Oracle EBS中查询Profile的各种SQL
参考 http://blog.csdn.net/pan_tian/article/details/7652968#t0 Using API FND_PROFILE.save to update pro ...
- 【Oracle】查询锁的相关SQL
--查看有锁的进程 select t2.username,t2.sid,t2.serial#,t2.logon_time,t2.state from v$locked_object t1,v$sess ...
- EBS R12安装升级(FRESH)(五)
7.4.5 用DBUA升级 Database Upgrade Assistant提供图形界面进行升级. 将zysong.ttf复制到 /u01/oracle/TEST/db/tech_st/11.2. ...
- ORACLE EBS R12 FOR LINUX 开机后如何启动数据库、应用脚本[Z]
在Linux中安裝EBS R12後, EBS關閉與啟動的程序為: 1. 關閉EBS - 先關閉Applications Server $ cd /d01/oracle/VIS/inst/apps/V ...
- EBS R12 探索之路【EBS 经典SQL分享】
http://bbs.erp100.com/thread-251217-1-1.html 1. 查询EBS 系统在线人数 SELECT U.USER_NAME ,APP.APPLICATION_SHO ...
- 皴EBS R12应用程序和数据库用户password
1.假设你有一个EBS周围环境APPS用户password,能够打破用户的应用程序password 参考:Oracle EBS R12下怎样破解用户password 2,假设没有APPS用户passw ...
随机推荐
- VC青睐服装订制网站 市场规模超3000亿美元 - 找VC - 创业邦
VC青睐服装订制网站 市场规模超3000亿美元 - 找VC - 创业邦 VC青睐服装订制网站 市场规模超3000亿美元
- 为什么新建的管理员账号权限没有Administrator大?
Administrator是超级管理员,UAC不用确认,跟关了一样. 新建隶属于administrator组的用户,可以关掉UAC. 控制面板>系统和安全>操作中心>更改用户帐户控制 ...
- <php>删除(有内容的)文件夹函数程序
function deldir($dirname) { if(!file_exists($dirname)) {//判断文件夹是否存在 die("文件夹不存在!");//作用等于( ...
- python3-day3(函数-返回值)
1.函数 函数式:将某功能代码封装到函数中,日后便无需重复编写,仅调用函数即可 面向对象:对函数进行分类和封装,让开发“更快更好更强...” 2.return返回值 import smtplibfro ...
- POJ 1322 Chocolate
Chocolate Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8245 Accepted: 2186 Speci ...
- AVR32开发环境搭建
下面是搭建AVR32开发环境的过程记录: 1.AVR32的编译环境下载 (到这里下载 as5installer-stable-5.1.208-full.exe) 如果你在安装的过程中碰到如下问题: ...
- 给UIImage添加蒙版
http://stackoverflow.com/questions/17448102/ios-masking-an-image-keeping-retina-scale-factor-in-acco ...
- Fedora安装VirtualBox时出现错误Kernel driver not installed (rc=-1908)的解决办法
新建虚拟机后启动时出现如下错误: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) ...
- .NET 4.0 兼容 .NET 2.0 的方法
使用.net开发桌面应用,广大亲门最头疼的莫过于客户端部署的问题.基于.net 2.0 的winfrom程序因为 Framework 的分发包大小为20M左右还好解决,不幸的是如果项目中使用了Wcf, ...
- JS中的for和for in循环
1.for循环通常用来遍历数组或类数组对象 模式1:长度缓存 for(var i=0,max=arr.length;i<max;i++){ //your code } 模式2:逐减,与零比较比与 ...