Simple analysis of logical reading of data reading: About buffer CACHE

Source: Internet
Author: User

The logical reading of data reading simple parsing--buffer CACHE about consistent read--consistency read--logical read-logical read-current read current reading--Physical reading, see: http://blog.csdn.net/ haibusuanyun/article/details/11489091

First, the experimental data preparation--Find out a data rowid, and file_id,block_id and other information

bys@ bys3>select rowid,test.* from test where rownum=1;

ROWID object_name object_id STATUS

------------------ ------------ ---------- -------

AAAFSJAAEAAAACRAAA undo$ VALID

Use the following statement to detect the corresponding line of file_id,block_id, about ROWID, see: http://blog.csdn.net/q947817003/article/details/11490051

Col object_name for A12

Col colname for A10

Select A.rowid,a.object_id,a.file_id,a.block_id,a.row_num,b.object_name,a.colname from

(Select rowID,

Dbms_rowid.rowid_object (ROWID) object_id,

DBMS_ROWID.ROWID_RELATIVE_FNO (ROWID) file_id,

Dbms_rowid.rowid_block_number (ROWID) block_id,

Dbms_rowid.rowid_row_number (ROWID) row_num,

&colname as colname from &tablename T) A,

Dba_objects b

where a.object_id=b.object_id;

Run the above statement, prompted to enter: &colname column name, &tablename table name can be similar to the following information: I'm here. Enter the object_name column of the test table

ROWID object_id file_id block_id row_num object_name

------------------ ---------- ---------- ---------- ---------- ------------ ----------

Aaafsjaaeaaaacraad 21641 4 171 3 TEST I_user1

AAAFSJAAEAAAACRAAC 21641 4 171 2 TEST con$

Aaafsjaaeaaaacraab 21641 4 171 1 TEST icol$

AAAFSJAAEAAAACRAAA 21641 4 171 0 TEST undo$

#############################

Second, about BH Buffer header,buckets,block_buffers Introduction:

See: Buffer Cache Experiment 1-memory structure diagram

#############################

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.