Oracle Learning SQL statement Execution order

Source: Internet
Author: User

1. Order of execution:

Client input SQL statement

SQL statements reach the DB instance over the network

After the server porcess receives the SQL statement

A. Parse the SQL statement into an execution plan before executing

B, parsing: Consume a lot of resources: CPU, IO, if there is a cache in the shared pool does not need to parse again.

(Shared pool: Cached SQL statements and execution plans for SQL statements)

(Buffer case: Cache DBF Data

Fetch data procedure: Server porcess First checks if there is data in the buffer case, and if there is data, directly

The data in the buffer catch is returned to the user (logical read); if not, enter DBF to fetch the data to the buffer catch

(physical read).

Hit rate: logical read/(logical read + physical read)

Low hit rate: inefficient and concerned about efficiency should also look at the number of physical reads per second.

2.smon is responsible for maintaining the internal database, Pmon the server Proces.

3.buffer Cath Status:

Connected (server process/pin when reading or writing data), clean, unused, dirty (requires write, cached data is consistent with database data after write, cache becomes clean), cache order is used: not used, clean and dirty

Oracle Learning SQL statement Execution order

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.