Oracle EBS用户登录情况统计脚本
2012-12-15 19:49
771 查看
每日用户登录次数的统计select to_char(START_TIME,'DD-MON-YYYY') Login_Time, count(*) cnt
from apps.fnd_logins where START_TIME > (select to_date('01-APR-2015 00:00:00','DD-MON-YYYY HH24:MI:SS') from dual)
and login_type is not null
and end_time is null
group by to_char(START_TIME,'DD-MON-YYYY')
order by Login_Time DESC;
OutputLOGIN_TIME CNT
----------------- ----------
09-APR-2015 1124
08-APR-2015 1873
07-APR-2015 1887
06-APR-2015 41
05-APR-2015 46
04-APR-2015 42
03-APR-2015 1679
02-APR-2015 2449
01-APR-2015 3902
9 rows selected
当前在线的用户数和Session数select to_char(sysdate, 'YYYYMMDD HH24:MI:SS') || '-' || ' UserCount - ' ||
count(distinct client_identifier) || ' -SessionCount: ' || count(*)
from v$session;
select to_char(sysdate, 'YYYYMMDD HH24:MI:SS') || '-' || ' UserCount - ' ||
count(distinct client_identifier) || ' -SessionCount: ' || count(*)
from gv$session;
OutputTO_CHAR(SYSDATE,'YYYYMMDDHH24:
--------------------------------------------------------------------------------
20150409 15:08:22- usercount - 610 -SessionCount: 2089
V$SESSION和GV$SESSION的区别:https://community.oracle.com/thread/1066147
from apps.fnd_logins where START_TIME > (select to_date('01-APR-2015 00:00:00','DD-MON-YYYY HH24:MI:SS') from dual)
and login_type is not null
and end_time is null
group by to_char(START_TIME,'DD-MON-YYYY')
order by Login_Time DESC;
OutputLOGIN_TIME CNT
----------------- ----------
09-APR-2015 1124
08-APR-2015 1873
07-APR-2015 1887
06-APR-2015 41
05-APR-2015 46
04-APR-2015 42
03-APR-2015 1679
02-APR-2015 2449
01-APR-2015 3902
9 rows selected
当前在线的用户数和Session数select to_char(sysdate, 'YYYYMMDD HH24:MI:SS') || '-' || ' UserCount - ' ||
count(distinct client_identifier) || ' -SessionCount: ' || count(*)
from v$session;
select to_char(sysdate, 'YYYYMMDD HH24:MI:SS') || '-' || ' UserCount - ' ||
count(distinct client_identifier) || ' -SessionCount: ' || count(*)
from gv$session;
OutputTO_CHAR(SYSDATE,'YYYYMMDDHH24:
--------------------------------------------------------------------------------
20150409 15:08:22- usercount - 610 -SessionCount: 2089
V$SESSION和GV$SESSION的区别:https://community.oracle.com/thread/1066147
相关文章推荐
- Oracle EBS R12 - 一段Oracle EBS中给指定用户增加指定职责的PLSQL脚本
- Oracle EBS 用户登录日志记录 fnd_logins
- shell脚本-统计系统用户登录,终端,做什么-002
- Oracle 统计用户下表的数据量实现脚本
- Oracle EBS里如何用脚本修改用户密码
- QTP录制脚本后要验证多个用户的登录情况/查询情况,如何操作?
- 脚本统计ip的海外用户分布情况或者国内省份的分布情况
- 【Shell】建立一个脚本统计当前登录用户数
- Oracle用户登录信息的统计
- ORACLE——整库备份多用户情况
- Oracle普通用户登录及查看信息
- 如何统计ORACLE某用户的表的数据量
- 简单统计SQLSERVER用户数据表大小(包括记录总数和空间占用情况)
- 简单统计SQLSERVER用户数据表大小(包括记录总数和空间占用情况)
- 简单统计SQLSERVER用户数据表大小(包括记录总数和空间占用情况)
- Oracle EBS-SQL (SYS-1): sysadmin_用户职责查询.sql
- 如何禁止SYS和SYSTEM用户远程登录Oracle
- Oracle sysdba正常登录,其他用户不能登录
- oracle g11.2 sys用户登录
- oracle统计用户下所有的表,字段个数,表数据条数,以及表中文名