11G new Features-OLTP Table Compression

Source: Internet
Author: User

In previous versions, data could only be compressed during bulk load operations, such as direct load, create table as select operations. Data cannot be compressed during DML operations.

In 11g, Oracle extends table compression to OLTP workloads, such as the ability to compress data at insert time.

OLTP compression can save 50-70% of space. OLTP compression not only reduces write performance, but also increases read performance (reading compressed data directly).

Set Table compression

Normal compression table:

1. Create a compressed table using traditional methods

Sql> CREATE TABLE Ct1 (ID number) compress;

2.11G new syntax method to create a compressed table

 for direct_load operations;

3. Create an OLTP compression table (to compress data when DML operations)

 for all operations;

Monitoring table Compression

Select  from User_tables; table_name                     COMPRESS compress_for--------------------------------------------------DEPT                           DISABLEDCT3                            enabled  OLTPCT2                            enabled  BASICCT1                            enabled  BASIC

11G new Features-OLTP Table Compression

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.