Friday, May 14, 2021

SQL Query Result Cache in Oracle

  • SQL Query Result Cache can improve the performance of your queries by caching the results of a query in memory, and then using the cached results in future executions of the query or query fragments. 
  • The cached results reside in the result cache memory portion of the SGA. 
  • This feature is designed to speed up query execution on systems with large memories.
  • SQL result caching is useful when queries need to analyze a large number of rows to return a small number of rows or a single row.
  • Two new optimizer hints are available to turn on and turn off SQL result caching:
    • /*+ result_cache */
    • /*+ no_result_cache */
  • These hints enable you to override the settings of the RESULT_CACHE_MODE initialization parameter.
  • You can execute DBMS_RESULT_CACHE.MEMORY_REPORT to produce a memory usage report of the result cache.

1 comment:

  1. Optumflex Solutions for your ERP business needs. Visit Optumflex.com for more information.

    ReplyDelete

Query To Fetch AP Invoice Details From SO Number(Doc ID 2949013.1)

SELECT dh.source_order_number       ,df.source_line_number as so_line_number   ,df.fulfill_line_number    ,ddr.doc_user_key as po_number...