Академический Документы
Профессиональный Документы
Культура Документы
Why at all did we try Result Cache in DNA ? 11g Result Cache - An Introduction DNA Set up - init.ora etc Monitoring effectiveness in DNA Pointers for further study Q&A
Remote Database DML does not Invalidate the local results cache Be extra careful on stale results if remote dml. Init.ora : Result_cache_remote_expiration
init.ora : result_cache_mode= FORCE Query Hint : select /*+ result_cache*/ Deptno, sum(sal) from emp group by deptno Table Annotation : alter table emp(mode force) ; Session Mode : alter session set result_cache_mode= force ;
DNA ETL : uses query hint DNA YREPORT uses Session Mode using a logon trigger
InstID
Memory Usage CNT_SQL RepeatedScans (MB) Rows Invalidations 8 14 0.01 8 158 9287400 0.15 158 5 9 0 5 226 474 0.22 226 656 699 0.94 7176 47 6472 0.05 47
Repeated Scans Over Cnt 0 1.75 0 58781.01 0 1.8 0 2.1 0 1.07 0 137.7
Cron @ sp1-portaldb-001:/net/dba/scripts/automation/ResultCacheStickinessRpt.pl
Interval -----------0 to 5 5 to 10 10 to 15 15 to 20 20 to 25 25 to 30 30 to 35 35 to 40
SELECT 5 * TRUNC (scan_count / 5) || ' to ' || 5 * (TRUNC (scan_count/ 5) + 1) "Interval", COUNT(1) "Total Sql", SUM(scan_count) "Scan Hits" FROM gv$result_cache_objects Where Status = 'Published' AND type = 'Result' AND Namespace = 'SQL' GROUP BY TRUNC (scan_count / 5) ORDER BY 5 * TRUNC (scan_count / 5)
THANK YOU