Oracle sets the size of the shared pool

Source: Internet
Author: User

In Oracle 10G or 11G versions, the reasonable setting of the shared pool size has a significant impact on the performance of the Oracle database.

The size setting rules for the Shared pool are as follows:

1. Find a reasonable value for the shared pool setting, as follows:

Select ' Shared Pool ' component,

Shared_pool_size_for_estimate Estd_sp_size,

Estd_lc_time_saved_factor Parse_time_factor,

Case

When current_parse_time_elapsed_s + adjustment_s < 0 Then

0

ELSE

current_parse_time_elapsed_s + adjustment_s

END Response_time

From (select Shared_pool_size_for_estimate,

Shared_pool_size_factor,

Estd_lc_time_saved_factor,

A.estd_lc_time_saved,

e.value/100current_parse_time_elapsed_s,

C.estd_lc_time_saved-a.estd_lc_time_saved adjustment_s

From V$shared_pool_advice A,

(SELECT * from v$sysstat where NAME = ' Parse Time elapsed ') E,

(Select Estd_lc_time_saved

From V$shared_pool_advice

where shared_pool_size_factor = 1) c);

2. Set the Estd_sp_size value of the row for the record in the last SQL statement that parse_time_factor first equals 1 to the shared pool.

3. Set the statement as follows:

Alter system set SHARED_POOL_SIZE=XXX scope=spfile; or alter system set SHARED_POOL_SIZE=XXX Scope=both;

This article is from the "Lin XI" blog, please be sure to keep this source http://lutaoxu.blog.51cto.com/4224602/1574270

Oracle sets the size of the shared pool

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.