摘要:
---正在执行的selecta.username,a.sid,b.SQL_TEXT,b.SQL_FULLTEXTfromv$sessiona,v$sqlareabwherea.sql_address=b.address---执行过的selectb.SQL_TEXT,b.FIRST_LOAD_TIME,b.SQL_FULLTEXTfromv$sqlareabwhereb.FIRST_LOAD_TIMEbetween'2009-10-15/09:24:47'and'2009-10-15/09:24:47'orderbyb.FIRST_LOAD_TIME(此方法好处可 阅读全文
摘要:
查看oracle数据库的连接数以及用户1、查询oracle的连接数select count(*) from v$session;2、查询oracle的并发连接数select count(*) from v$session where status='ACTIVE';3、查看不同用户的连接数select username,count(username) from v$session where username is not null group by username;4、查看所有用户:select * from all_users;5、查看用户或角色系统权限(直接赋值给用户或 阅读全文