An explanation from Asktom about soft parse.

Source: Internet
Author: User

There are two types of parses (OK, actually "three" these days).

They are

o HARD Parse--the query has never been seen before, isn ' t in the shared pool.
We must parse it, hash it, look at the shared pool for it, Don t find it,
Security check it, optimize it, etc (lots of work).

o SOFT Parse--the query has been seen before, is in the shared poo. We have
To parse it, hash it, look into the shared pool for it and find it (less work then
A hard parse but work none less)

o a kinder, softer SOFT parse--You are using session_cached_cursors (search
This site is for the word for info. We take your query, look in the sessions
Cursor Cache--Find the cursor and reuse it. Very Very little work.

So, after the "startup", you go to Sqlplus and do this:

Sql> alter session set SESSION_CACHED_CURSORS=0; --Just making sure
Sql> select * from EMP; --Hard Parse
Sql> select * from EMP; --Soft Parse
Sql> select * from EMP; --Soft Parse
Sql> alter session set SESSION_CACHED_CURSORS=100; --Enable this feature
Sql> select * from EMP; --Soft Parse
Sql> select * from EMP; --kinder, gentler, soft parse

Link

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:801662252143






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.