SQL> alter system set pga_aggregate_target=20000000;
시스템이 변경되었습니다.
SQL> alter system set workarea_size_policy=AUTO;
시스템이 변경되었습니다.
SQL> show parameter pga;
NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------
pga_aggregate_target big integer 20000000
SQL> show parameter workarea
NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------
workarea_size_policy string AUTO
관련 뷰(View)
WORKAREA_SIZE_POLICY를 Auto로 사용할때 아래의 view가 유용할것이다.
1. V$SQL_WORKAREA
2. V$SQL_WORKAREA_ACTIVE
3. V$PROCESS contains new columns (PGA_USED_MEM, PGA_ALLOC_MEM AND PGA_MAX_MEM)
4. V$PGASTAT
Oracle 9.2 has also new views (see [NOTE:223730.1] for some explanation)
1. V$SQL_WORKAREA_HISTOGRAM
2. V$PGA_TARGET_ADVICE
3. V$PGA_TARGET_ADVICE_HISTOGRAM
v$pga_target_advice : PGA메모리 사용현황을 볼 수 있음
SQL> desc v$pga_target_advice
이름 널? 유형
----------------------------------------- -------- ----------------------------
PGA_TARGET_FOR_ESTIMATE NUMBER
PGA_TARGET_FACTOR NUMBER
ADVICE_STATUS VARCHAR2(3)
BYTES_PROCESSED NUMBER
ESTD_EXTRA_BYTES_RW NUMBER
ESTD_PGA_CACHE_HIT_PERCENTAGE NUMBER
ESTD_OVERALLOC_COUNT NUMBER
v$pgastat : 모니터링 PGA_AGGREGATE_TARGET
SQL> SELECT * FROM V$PGASTAT;
NAME VALUE UNIT
---------------------------------------- ------------ ------------
aggregate PGA target parameter 524,288,000 bytes
aggregate PGA auto target 467,481,600 bytes
global memory bound 26,214,400 bytes
total PGA inuse 4,714,496 bytes
total PGA allocated 16,799,744 bytes
maximum PGA allocated 33,172,480 bytes
total freeable PGA memory 1,114,112 bytes
PGA memory freed back to OS 598,933,504 bytes
total PGA used for auto workareas 0 bytes
maximum PGA used for auto workareas 12,239,872 bytes
total PGA used for manual workareas 0 bytes
maximum PGA used for manual workareas 0 bytes
over allocation count 0
bytes processed ############ bytes
extra bytes read/written 0 bytes
cache hit percentage 100 percent
16 개의 행이 선택되었습니다.
'[개발] DataBase Tool SAP > 3. Oracle' 카테고리의 다른 글
[DBA] 데이터 품질 진단 - DQ (0) | 2021.10.28 |
---|---|
오라클 쿼리모음 (0) | 2021.10.18 |
ora-04030 에러 확인 (0) | 2021.10.18 |
ORA-00257 :오라클 아카이브로그 오류 (0) | 2021.10.18 |