SQL> SELECT name, value, unit
2 FROM v$pgastat
3 WHERE name IN ('aggregate PGA target parameter',
4 'maximum PGA allocated',
5 'over allocation count');
NAME VALUE UNIT
------------------------------ ---------- ----
aggregate PGA target parameter 134217728 bytes
maximum PGA allocated 418658304 bytes
over allocation count 94
SQL> SELECT name, value, unit
2 FROM v$pgastat
3 WHERE name LIKE '% PGA allocated' OR name LIKE '% workareas';
NAME VALUE UNIT
------------------------------------- ---------- ----
total PGA allocated 999358464 bytes
maximum PGA allocated 1015480320 bytes
total PGA used for auto workareas 372764672 bytes
maximum PGA used for auto workareas 614833152 bytes
total PGA used for manual workareas 0 bytes
maximum PGA used for manual workareas 0 bytes
SQL> SELECT name, value, unit
2 FROM v$pgastat
3 WHERE name LIKE 'aggregate PGA %';
NAME VALUE UNIT
------------------------------ ----------- ----
aggregate PGA target parameter 1073741824 bytes
aggregate PGA auto target 910411776 bytes
SQL> execute pga_pkg.allocate(500000)
SQL> SELECT name, value, unit
2 FROM v$pgastat
3 WHERE name LIKE 'aggregate PGA %';
NAME VALUE UNIT
------------------------------ ----------- ----
aggregate PGA target parameter 1073741824 bytes
aggregate PGA auto target 375754752 bytes
SQL> execute dbms_session.reset_package;
SQL> SELECT name, value, unit
2 FROM v$pgastat
3 WHERE name LIKE 'aggregate PGA %';
NAME VALUE UNIT
------------------------------ ----------- ----
aggregate PGA target parameter 1073741824 bytes
aggregate PGA auto target 910411776 bytes
SQL> ALTER SYSTEM SET pga_aggregate_limit = 1G;
ALTER SYSTEM SET pga_aggregate_limit = 1G
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00093: pga_aggregate_limit must be between 2048M and 100000G
ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT
ORA-03113: end-of-file on communication channel
Process ID: 5125
Session ID: 17 Serial number: 39
PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT of 2048 MB
Immediate Kill Session#: 17, Serial#: 39
Immediate Kill Session: sess: 0x77eb7478 OS pid: 5125
- 강좌 URL : http://www.gurubee.net/lecture/4389
- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^
- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.