Professional Documents
Culture Documents
• When we connect to an oracle database instance, we create a session that uses a server process
for communication between the client and database instance.
• Each server process has its own PGA.
• The PGA is used to process SQL statements and to hold logon and other session information.
• The amount of PGA memory used and the contents of the PGA depend on whether the instance is
running in the dedicated or shared server mode.
• The total memory used by all individual PGAs is known as total instance PGA memory, or instance
PGA
• Setting the size of the instance PGA in database control files, not individual PGAs.
User Global Area (UGA):
The UGA is memory associated with a user session.
Cache Hit: if process finds the data already in the cache (cache hit ), it can
read the data directly from the memory.
Cache Miss: if the process can’t find the data in the cache ( cache miss )
It must copy the data block from the data file on disk into a buffer in the cache
before accessing the data.
• Accessing the data through cache hit is faster than access through a
cache miss.
The background process log writer (LGWR) writes the redo log buffer to the
active online redo log group on disk.
Library Cache:
• Shared SQL Area
• Private SQL Area
• PL/SQL procedures and package
Data Dictionary Cache
• Names of all tables and views in the database
• Names and datatypes of columns in the database tables
• Priviliges of all oracle users
The Streams pool stores buffered queue messages and provides memory for
Oracle Streams capture processes and apply processes.
The Streams pool is used exclusively by Oracle Streams.
Unless you specifically configure it, the size of the Streams pool starts at zero.
The pool size grows dynamically as required by Oracle Streams.
• By allocating session memory from the large pool for shared SQL, the
database avoids performance overhead caused by shrinking the shared
SQL cache.
• By allocating memory in large buffers for RMAN operations, I/O server
processes, and parallel buffers, the large pool can satisfy large memory
requests better than the shared pool.
• The java pool services the parsing requirements for JAVA commands.
• Required if installing and using java.
• It is stored much the same way as PL/SQL in database tables.
• It is sized by the JAVA_POOL_SIZE parameter.
• Oracle uses java, if you don’t.