The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, vaibhav.
Asked: November 22, 2021 - 3:48 pm UTC
Last updated: February 28, 2023 - 1:57 am UTC
Version: 19.3 , 12.2, 11.2
Viewed 50K+ times! This question is
SQL> select * from V$SGA_TARGET_ADVICE; SGA_SIZE SGA_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR ESTD_PHYSICAL_READS ---------- --------------- ------------ ------------------- ------------------- 1536 .5 77194 4.0654 166723785 2304 .75 20784 1.0946 104265809 3072 1 18988 1 99518764 3840 1.25 18792 .9897 99200304 4608 1.5 18667 .9831 99100785 5376 1.75 18623 .9808 99041074 6144 2 18612 .9802 99031122
vaibhav kansara, November 29, 2021 - 10:32 am UTC
SGA_SIZE SGA_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR ESTD_PHYSICAL_READS ESTD_BUFFER_CACHE_SIZE ESTD_SHARED_POOL_SIZE CON_ID ---------- --------------- ------------ ------------------- ------------------- ---------------------- --------------------- ---------- 18560 .125 4797623 8.8786 82376952 13824 2560 0 27840 .1875 600986 1.1122 82376952 13824 10752 0 37120 .25 554461 1.0261 25397336 27648 7680 0 46400 .3125 553327 1.024 22865771 41472 4608 0 55680 .375 552408 1.0223 22865771 41472 9216 0 64960 .4375 547275 1.0128 16544948 55296 7680 0 74240 .5 540790 1.0008 8088875 69120 6144 0 83520 .5625 540358 1 8088875 69120 7680 0 92800 .625 540358 1 8088066 82944 7680 0 102080 .6875 540358 1 8088066 96768 7680 0 111360 .75 540358 1 8088066 96768 7680 0 120640 .8125 540358 1 8088066 110592 7680 0
Andrew, November 29, 2021 - 9:06 pm UTC
COLUMN finding_time FOR a20 HEAD 'Finding Time' COLUMN current_target_mb FOR 999,999 HEAD 'Current SGA|Target (MB)' COLUMN advised_target_mb FOR 999,999 HEAD 'Advised SGA|Target (MB)' BREAK ON REPORT COMPUTE maximum LABEL 'Recommended Min. SGA' OF advised_target_mb ON report SELECT TO_CHAR( al.execution_start, 'dd Mon yyyy HH24:MI:SS') AS finding_time, aa.num_attr1/1048576 AS current_target_mb, aa.num_attr2/1048576 AS advised_target_mb FROM dba_advisor_actions aa, dba_advisor_findings af, dba_advisor_log al WHERE 1=1 AND al.owner = af.owner AND al.task_name = af.task_name AND aa.owner = af.owner AND aa.task_name = af.task_name AND aa.execution_name = af.execution_name AND af.finding_name = 'Undersized SGA' AND aa.attr1 = 'sga_target' ORDER BY al.execution_start ; clear computes
vaibhav kansara, December 01, 2021 - 6:54 am UTC
ArunB, February 09, 2023 - 10:00 pm UTC
select round(sum(pga_used_mem)/1024/1024,0) as TOTAL_PGA_USAGE_MB from v$process;
SELECT round(sum(VALUE)/1024/1024,0) as TOTAL_PGA_USAGE_MB FROM V$PGASTAT where NAME in ('total PGA inuse');
Need more information on Administration? Check out the Administrators guide for the Oracle Database