Home > Database > Mysql Tutorial > 如何查看用户使用情况(最近登入,活跃度。。。)

如何查看用户使用情况(最近登入,活跃度。。。)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:12:48
Original
1743 people have browsed it

1.确保数据库已经打开审计 SQL show parameter auditNAME TYPE VALUE------------------------------------ ---------------------- ------------------------------audit_file_dest string /u01/app/ora11/admin/ora11g/adumpaudit_sys_operations 【本文来

1.确保数据库已经打开审计

SQL> show parameter audit

NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
audit_file_dest string /u01/app/ora11/admin/ora11g/adump
audit_sys_operations 【本文来自鸿网互联 (http://www.68idc.cn)】boolean FALSE
audit_syslog_level string
audit_trail string DB
Copy after login

audit_ trail 缺省是db ,审计信息记录到AUD$

如果为 os,审计信息放到操作系统上 audit_file_dest = /u01/app/ora11/admin/ora11g/adump 这个目录下,如果这个目录满了,应用无法连接到数据库中

修改配置后需重启数据库生效。

2. *_audit_session 视图直接查看最近用登入情况

select * from DBA_AUDIT_SESSION

1 ora11 SYSTEM lixora pts/2 2014/12/24 10:25:38 LOGON 938591 0 24-12月-14 10.25.38.898412 上午 +08:00 0 7129

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template