Oracle memory is called the SGA: there are different components of the SGA. Every database will have a section within the memory (SGA) referred to as the database buffer cache!
It is split up into little blocks in memory called the oracle data blocks. Each one of these blocks will be 8k in size.
There is an algorithm that gets applied to the database buffer pool, it is the LRU (least recently used).. As the blocks get touched they get placed toward the LRU to get written to disk, Oracle keeps the most used in memory for easier access.
Another area in the SGA is the Shared Pool which is used to reduce parsing- there are two sections within shared pool.
- Library Cache: Inside the library Cache, you have the actual text of the sql statement .You will also have as compiled section of the SQL code which is called META CODE. The third area you have in the library is the execution plan. This shows how the query is going to retrieve the rows.
- The second piece of the shared pool is the dictionary cache. It contains the names of objects that have been touched recently. Your privileges and rows is stored here too. So if the employee table has been accessed recently, it is placed in the shared pool
If you are using the RMAN utility in oracle you would want to configure your LARGE pool within the SGA.
0 comments:
Post a Comment