Oracle performance adjustment and recovery of tablespace fragments

Source: Internet
Author: User

The following articles mainly introduce Oracle performance adjustment and several methods to reclaim tablespace fragments. First, we need to use the compress = Y parameter exp for the relevant tablespace, after truncate the table, import the table imp. This is the first step,

2. Use

 
 
  1. Alter tablespace name coalesce;

Manually contract once.

3. Change the pctincreace parameter of the tablespace to greater than 0 to make it automatically contract. Generally, it is changed to 1.

 
 
  1. Alter tablespace name storage (pctincrease 1 );

About tablespace pctincrease = 1:

1) do not set pctincrease to 0 because the SMON process will only periodically merge idle chunks of tablespaces not equal to 0 in PCTINCREASE. If it is set to 0, SMON cannot merge idle fragments. In this case, you must manually use alter tablespace xxx coalesce to merge fragments.

2) do not set PCTINCREASE To a large number. It is only used to prevent the newly created table from using a large PCTINCREASE and cause uncontrollable space usage. If you no longer need to create a new table in the tablespace, this parameter will not be affected as long as it is not equal to 0.

In addition, PCTINCREASE has nothing to do with the automatic growth of tablespaces. The automatic growth of tablespaces is controlled by autoextend on, and it is purely linear growth, that is, the specified growth, it will always increase at a time). Unlike the PCTINCREASE of a table, it may lead to geometric growth.

The content above is an introduction to how to adjust Oracle performance and how to recycle tablespace fragments.

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.