ORACLE Data Buffer DB cache

Source: Internet
Author: User

ORACLE Data Buffer DB cache db cache is a buffer organized by data blocks. When the database was just started, there was almost no user data buffer in the db cache, when a session accesses a table or index in the database, it first checks whether the data exists in the db cache. If the data does not exist, it reads the data block from the data file to the db cache, then read the data from the database CACHE. The data block in the database CACHE is located through the hash algorithm. There is a hash chain structure where all the data blocks being used in the buffer are located. If you want to search for data blocks, hash the chunk of the chunk chain. Scan the two-way linked list structure of the chunk to find the chunk. Each chain is called a BUCKET. The number of buckets does not change after the database is started. The number of buckets is specified by the parameter _ DB_BLOCK_HASH_BUCKETS. Db cache is composed of BUFFER. There are two algorithms in db chache. The LRU algorithm is used to swap out the buffer, and there is also a hash.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.