Scripts:查看使用PGA最多的10个SQL的脚本hpga10.sql
2014-05-29 10:54
330 查看
set line 230
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select sysdate from dual;
col MACHINE for a30
col PROGRAM for a40
col USERNAME for a15
select * from (
select s.sid, s.serial#, s.logon_time,s.username, s.machine, s.program,s.process, s.sql_id, p.pga_alloc_mem/1048576 size_m, p.spid
from v$session s, v$process p where s.paddr=p.addr
and p.pga_alloc_mem > 104857600 order by 7 desc
)
where rownum < 11;
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
select sysdate from dual;
col MACHINE for a30
col PROGRAM for a40
col USERNAME for a15
select * from (
select s.sid, s.serial#, s.logon_time,s.username, s.machine, s.program,s.process, s.sql_id, p.pga_alloc_mem/1048576 size_m, p.spid
from v$session s, v$process p where s.paddr=p.addr
and p.pga_alloc_mem > 104857600 order by 7 desc
)
where rownum < 11;
相关文章推荐
- Scripts:查看耗用buffer cache最多的10个SQL的脚本hbuf10.sql
- Scripts:查询使用临时表空间最多的10个SQL htemp10.sql
- Scripts:找出使用最多buffer get的SQL脚本perf_top_sql_by_buffer_gets.sql
- Scripts:查询物理读最多的10个SQL的脚本hphy10.sql
- Scripts:找出使用最高的10个表的脚本perf_top_10_tables.sql
- Scripts:查看回滚的SQL的脚本 huigun.sql
- Scripts:查询使用UNDO最多的10个SQL hundo10.sql
- Scripts:查询排序最多的10个SQL hsort10.sql
- 使用ps命令查看使用内存或CPU最多的10个进程
- sql查看cpu使用最多的和經常重編譯的
- [转] 使用SQL脚本查看表空间使用率和使用dba_tablespace_usage_metrics视图的区别
- Scripts:找出磁盘读最多的SQL的脚本 perf_top_sql_by_disk_reads.sql
- Scripts:查看数据文件使用率的脚本(包括临时表空间的文件哦)dba_file_space_usage.sql
- Scripts:找出10个最高使用的过程perf_top_10_procedures.sql
- [转] 使用SQL脚本查看表空间使用率和使用dba_tablespace_usage_metrics视图的差别
- Scripts:查询每个数据文件使用效率的脚本perf_file_io_efficiency.sql
- Scripts:从shared_pool中创建并删除profile的脚本(注意,此脚本危险比较高,生产环境不要使用)flush_sql10p.sql
- 使用ps命令查看使用内存或CPU最多的10个进程
- Scripts:查看未提交的事务的脚本CurrentActivity.sql
- sql查看cpu使用最多的和經常重編譯的