泄露你的JavaScript技术很烂的五个表现(转载)
2011-04-24 22:08
711 查看
SELECT SS.SID,SS.USERNAME,SS.PROCESS,PP.NAME,PP.MM FROM (
(select * from v$session t where t.USERNAME like 'BM%') SS JOIN
(select a.sid,b.name,(round(a.value/1024/1024,2))||'M' AS MM from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic#) PP ON SS.SID=PP.SID)
ORDER BY SS.USERNAME
=======================================================================
SELECT SS.SID,SS.USERNAME,SS.PROCESS,PP.session_pga_memory,PP.session_pga_memory_max FROM (
(select * from v$session t where t.USERNAME like 'BM%') SS JOIN
(
select spm.sid,spm.name,spm.session_pga_memory,spmx.session_pga_memory_max from
(select a.sid,b.name,(round(a.value/1024/1024,2))||'M' AS session_pga_memory from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory') spm
join
(select a.sid,b.name,(round(a.value/1024/1024,2))||'M' AS session_pga_memory_max from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory max') spmx
on spm.sid = spmx.sid
) PP ON SS.SID=PP.SID)
ORDER BY SS.USERNAME
=======================================================================
select username,sum(session_pga_memory)||'MB',sum(session_pga_memory_max)||'MB' from (
SELECT SS.SID,SS.USERNAME,SS.PROCESS,PP.session_pga_memory,PP.session_pga_memory_max FROM (
(select * from v$session t where t.USERNAME like 'BM%') SS JOIN
(
select spm.sid,spm.name,spm.session_pga_memory,spmx.session_pga_memory_max from
(select a.sid,b.name,(round(a.value/1024/1024,2)) AS session_pga_memory from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory') spm
join
(select a.sid,b.name,(round(a.value/1024/1024,2)) AS session_pga_memory_max from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory max') spmx
on spm.sid = spmx.sid
) PP ON SS.SID=PP.SID)
) group by username;
(select * from v$session t where t.USERNAME like 'BM%') SS JOIN
(select a.sid,b.name,(round(a.value/1024/1024,2))||'M' AS MM from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic#) PP ON SS.SID=PP.SID)
ORDER BY SS.USERNAME
=======================================================================
SELECT SS.SID,SS.USERNAME,SS.PROCESS,PP.session_pga_memory,PP.session_pga_memory_max FROM (
(select * from v$session t where t.USERNAME like 'BM%') SS JOIN
(
select spm.sid,spm.name,spm.session_pga_memory,spmx.session_pga_memory_max from
(select a.sid,b.name,(round(a.value/1024/1024,2))||'M' AS session_pga_memory from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory') spm
join
(select a.sid,b.name,(round(a.value/1024/1024,2))||'M' AS session_pga_memory_max from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory max') spmx
on spm.sid = spmx.sid
) PP ON SS.SID=PP.SID)
ORDER BY SS.USERNAME
=======================================================================
select username,sum(session_pga_memory)||'MB',sum(session_pga_memory_max)||'MB' from (
SELECT SS.SID,SS.USERNAME,SS.PROCESS,PP.session_pga_memory,PP.session_pga_memory_max FROM (
(select * from v$session t where t.USERNAME like 'BM%') SS JOIN
(
select spm.sid,spm.name,spm.session_pga_memory,spmx.session_pga_memory_max from
(select a.sid,b.name,(round(a.value/1024/1024,2)) AS session_pga_memory from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory') spm
join
(select a.sid,b.name,(round(a.value/1024/1024,2)) AS session_pga_memory_max from v$sesstat a,v$statname b
where ( b.name like '%pga%') and a.statistic# = b.statistic# and b.name='session pga memory max') spmx
on spm.sid = spmx.sid
) PP ON SS.SID=PP.SID)
) group by username;
相关文章推荐
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- 泄露你的JavaScript技术很烂的五个表现
- JavaScript技术很烂的五个表现
- 露你的JavaScript技术很烂的五个表现
- javascript获取asp.net服务器端控件的值(2009-10-31 15:24:26)转载标签:杂谈 分类:技术分类
- 在B/S开发中经常用到的javaScript技术(转载)
- [转载]在b/s开发中经常用到的javaScript技术
- 五个你必须知道的javascript和web debug技术
- 能说明你的Javascript技术很烂的五个原因
- 能说明你的Javascript技术很烂的五个原因
- 【转载】javascript技术难点(三)之this、new、apply和call详解
- 五个你必须知道的javascript和web debug技术