batch 파일중 SQL 부하 찾기
1)module name으로 찾기(모듈지정시 사용가능) select t1.module,t1.substr_sqltext,t1.executions,t1.buffer_gets from ( select parsing_schema_name schema, module, sql_id, hash_value,substr(sql_text,1,37) substr_sqltext, executions, buffer_gets, disk_reads, rows_processed, round(buffer_gets/executions,1) lio, round(elapsed_time/executions/1000000,1) elapsed_sec, round(cpu_time/executions/1000000,1) cpu_sec from v$..
더보기
Keep Buffer 대상 선정 SQL
select owner, --결과에서 프로그램 중요도 선정하여 선택 table_name, index_name, partition_name, sum(blocks) as t_blocks from (select sg.owner, decode(substr(s.ob_type,1,5),'TABLE',s.ob_name,'INDEX', ( select table_name from DBA_INDEXES where index_name = s.ob_name)) as table_name, decode(substr(s.ob_type,1,5),'INDEX',s.ob_name) as index_name, sg.partition_name, sg.blocks from ( select distinct object_name as ob_n..
더보기