일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- supplemental log 활성화
- ora-00439: feature not enabled: partitioning
- 오라클
- oracle install
- oracle 파티션 datapump
- oracle account_status expired
- oracle 테스트 데이터
- ORA-00020
- Oracle RAC
- oracle supplemental
- ora-28002: the password will expire within 7 days
- oracle system lock
- oracle role 삭제
- oracle dba_profile password_life_time
- partition_options=merge
- sql user 생성
- Oracle Database
- MSSQL
- oracle
- ora-39083 ora-00439
- mssql database 삭제
- oracle awr
- oracle tde
- SQL Server
- SSMS
- oracleasm
- create role
- oracle SCN
- oracle pdb
- oracle datapump
Archives
- Today
- Total
신문지한장
[SQL] 하드파싱 많이 발생한 쿼리 조회 (ORA-4031 발생시 확인 쿼리) 본문
1. 하드파싱 많이 발생한 쿼리 조회
select substr(sql_text, 1, 30) "SQL",
count(*) cnt,
sum(executions) "TotExecs",
sum(sharable_mem) mem,
min(first_load_time) start_time,
max(first_load_time) end_time,
max(sql_text) full_sql,
max(hash_value) hash
from v$sqlarea
where FIRST_LOAD_TIME between TO_CHAR(SYSDATE-24/24,'YYYY-MM-DD/HH24:MI:SS') and TO_CHAR(SYSDATE,'YYYY-MM-DD/HH24:MI:SS') -- 한시간 이내
group by substr(sql_text, 1, 30)
having count(*) > 30 -- 비슷한 문장이 30개 이상
order by 4 desc;
2. 메모리 조회
select POOL, name, bytes ,bytes/1024/1024 "Size in MB" from v$sgastat where name='free memory';
3. subpool 확인
select nam.ksppinm NAME, val.KSPPSTVL VALUE from x$ksppi nam, x$ksppsv val where nam.indx = val.indx and nam.ksppinm like '%kghdsidx%' order by 1 ;
'Oracle > sql&script' 카테고리의 다른 글
[PL/SQL] 파티션테이블의 필요한 테이터만 삭제 및 백업.PL/SQL (0) | 2024.08.26 |
---|---|
[SQL] rman에서 아카이브 삭제 방법 (0) | 2024.08.26 |
[SQL] 세그먼트에 할당된 익스텐트 목록을 조회하는 방법 (0) | 2024.08.06 |
[SQL튜닝] 옵티마이저 힌트 사용 방법 (0) | 2024.08.06 |
[SQL튜닝] 실행계획과 비용 (0) | 2024.08.06 |