您的位置:首页 > Web前端 > JavaScript

泄露你的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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: