ITeye博客

(转)oracle 查看数据库连接备忘

mlxia · 2010-08-19 15:28 · oracle · 数据库 · Markdown

http://yezi.iteye.com/blog/127210

2007-09-26

oracle 查看数据库连接备忘

关键字: oracle

Java代码 

  1. select count(*) from v$session where username is not null order by machine;
  2. select * from v$session where username is not null order by machine;
  3. select count(*) from v$session where username is not null and machine='test1' order by machine ;
  4. select count(*) from v$session where username is not null and machine='localhost.localdomain' order by machine ;
  5. select * from v$process where username is not null ;
  6. select * from V$SHARED_SERVER_MONITOR ;
  7. SELECT * FROM v$open_cursor;
  8. SELECT sql_text,COUNT(*) FROM v$sql s , v$session se WHERE se.prev_hash_value =s.hash_value GROUP BY sql_text;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。