Shared Pool in Oracle

Shared Pool in Oracle

The Shared Pool is a critical component of the SGA in Oracle. It is responsible for storing frequently used information to optimize performance. The Shared Pool consists of several key components that help reduce processing load and speed up SQL query execution. The main components of the Shared Pool include:


?? 1. Library Cache

  • Function: Stores SQL and PL/SQL statements that have been parsed, compiled, and executed.
  • Soft Parse: When an SQL statement is sent to the database, Oracle checks if this statement already exists in the Library Cache. If it does, the system will reuse the statement without needing to parse and compile it again. This process is called a soft parse, which saves resources and time.
  • Hard Parse: If the statement does not exist in the Library Cache, the system will perform a hard parse, which is more resource-intensive as it requires parsing and compiling the statement from scratch.


?? 2. Data Dictionary Cache (or Row Cache)

  • Function: Stores the database's metadata, such as information about tables, columns, indexes, and access privileges.
  • Benefit: This helps metadata queries to be executed more quickly without needing direct disk access. This significantly improves performance, especially for large databases.


?? 3. Server Result Cache

  • Function: The Server Result Cache is a special part of the Shared Pool that stores the results of specific SQL or PL/SQL queries that have already been executed. When a query requests the same result as a previous query, Oracle can retrieve the data directly from the Server Result Cache instead of re-executing the entire query.
  • Benefit: Optimizes repeated queries, reducing processing time and optimizing memory resources.

?Hoang Van Quy

Database Developer | Database Administrator | Database Oracle #performanceturning, and #toiuucosodulieu

6 个月

thanks for sharing

要查看或添加评论,请登录

Ph?m ??c Nh?t Huy的更多文章

  • T?i sao ch?n Stateless thay vì Stateful trong ki?n trúc ph?n m?m?

    T?i sao ch?n Stateless thay vì Stateful trong ki?n trúc ph?n m?m?

    L?p trình viên ai c?ng mong mu?n m?t cu?c s?ng nh? nhàng, code ít bug, h? th?ng d? b?o trì, scale m??t mà mà kh?ng ph?i…

    3 条评论
  • API Gateway

    API Gateway

    I. API Gateway là gì? API Gateway là m?t l?p trung gian gi?a ?ng d?ng client (nh? trình duy?t web, ?ng d?ng di ??ng) và…

  • Understanding and Addressing Performance Issues in Software Systems

    Understanding and Addressing Performance Issues in Software Systems

    1. The Ultimate Goal: Eliminating Performance Issues Performance issues are undesirable in any software system.

  • Hi?u su?t h? th?ng (System Performance)

    Hi?u su?t h? th?ng (System Performance)

    1. ??nh ngh?a Hi?u su?t là th??c ?o v? t?c ?? ho?c kh? n?ng ph?n h?i c?a h? th?ng d??i m?t kh?i l??ng c?ng vi?c…

  • Sharding and Partitioning in Databases

    Sharding and Partitioning in Databases

    Sharding and Partitioning are both techniques used to divide large databases to improve performance and manageability…

  • Parallel Processing in Databases: Boosting Performance and Optimizing Resources

    Parallel Processing in Databases: Boosting Performance and Optimizing Resources

    In the era of data explosion, processing and analyzing large datasets pose a significant challenge for many database…

    1 条评论
  • What is OLTP Systems?

    What is OLTP Systems?

    ?? OLTP (Online Transaction Processing) is a system designed for online transaction processing, focusing on managing…

  • DDoS ATTACK

    DDoS ATTACK

    ?? DDoS (Distributed Denial of Service) is a type of cyber attack in which the attacker uses multiple devices or…

  • Understanding SQL Injection

    Understanding SQL Injection

    1. What is SQL Injection? SQL Injection is a type of security vulnerability that allows an attacker to interfere with…

    2 条评论
  • Understanding Transaction Log in SQL Server

    Understanding Transaction Log in SQL Server

    ?? The Transaction Log in SQL Server is a crucial part of the database that stores all changes made to the database. It…

    1 条评论

社区洞察

其他会员也浏览了