Skip to menu

Korea Oracle User Group

Guru's Articles

Hybrid Columnar Compression Common Questions

By Gregg Christman-Oracle on Feb 26, 2016

Similar to last week, in this blog we’re going to discuss some of the most common, user asked, questions related to Hybrid Columnar Compression (HCC), these questions include:

  • How to enable Hybrid Columnar Compression for existing tables and partitions?

  • Which applications (OLTP or Data Warehouse) are best for Hybrid Columnar Compression?

  • Does Hybrid Columnar Compression require a separate license?

For existing tables and partitions, there are three best practice approaches to enabling Hybrid Columnar Compression. Both methods enable Hybrid Columnar Compression for existing data and will compress future data loaded via bulk loads, the difference between the methods is whether the table remains accessible while HCC compression is being enabled.

- Online Redefinition (DBMS_REDEFINITION)

Table remains online for both read/write activity while the statement is executing. See here for more information regarding the restrictions that apply to the online redefinition of tables.

- ALTER TABLE … MOVE PARTITION … ONLINE

Partition/subpartition remains online for both read/write activity while the statement is executing.

- ALTER TABLE … MOVE COLUMN STORE COMPRESS FOR …

ALTER TABLE MOVE does not permit DML, against the table, while the statement is executing.

Which method should you choose? Well, it’s really up to you. If you want to keep tables and partitions online and available while compression is being enabled, then using online redefinition or ALTER TABLE MOVE PARTITION ONLINE would be best. If you are taking some downtime to compress, then use ALTER TABLE MOVE – but no matter which is used, all will provide the same level of compression.

The question regarding which type of application is best suited for HCC actually isn’t really a common question, but it should be because it is important to understand the answer to this question. HCC compression can be used in both OLTP and Data Warehouse applications, but, and this is important, it is recommended that HCC be enabled only tables or partitions with no, or infrequent, DML INSERT/UPDATE operations. While data in Hybrid Columnar compressed tables can be modified using conventional Data Manipulation Language (DML) operations - INSERT, UPDATE, DELETE - performing such operations could result in a reduction of the HCC compression ratio – and if performed frequently, could degrade the HCC compression ratio over time (requiring the table/partition be re-compressed). If frequent DML operations are planned on a table or partition, then Advanced Row Compression is better suited for such data.

Whether or not HCC requires a separate license is also often misunderstood by users. To use HCC you must be running Oracle Database Enterprise Edition (11.2.0.3 and above) and, this is also important, you must be using a HCC supported Oracle platform, including Exadata, SuperCluster, ZFS Storage Appliance or FS Flash Storage System.

Much more information regarding Hybrid Columnar Compression best practices is available. Please see this Hybrid Columnar Compression white paper (pages 6 to 8) for more information.

The database storage optimization adventure continues in the next blog, in which we will discuss how Advanced Row Compression and Hybrid Columnar Compression are directly related to Information Lifecycle Management (ILMbest practices.

 

출처 : https://blogs.oracle.com/DBStorage/entry/hybrid_columnar_compression_common_questions

No. Subject Author Date Views
Notice Guru's Article 게시판 용도 ecrossoug 2015.11.18 608
44 Explain the Explain Plan: Join Methods 명품관 2021.02.10 749
43 Explain the Explain Plan: Access Methods 명품관 2021.02.10 960
42 Explain the Explain Plan: Cardinality Estimates 명품관 2021.02.09 618
41 Explaining the Explain Plan – How to Read and Interpret Execution Plans 명품관 2021.02.09 492
40 SQL Window Functions Cheat Sheet 명품관 2020.05.26 440
39 SQL Tuning Workshop 명품관 2020.02.20 8158
38 New initialization parameters, data dictionary views & dynamic performance views in Oracle Database 19c 명품관 2019.02.08 1913
37 More New Features in Oracle Database 19c 명품관 2019.02.08 6593
36 New Features of Performance Tuning in Oracle Database 19c 명품관 2019.02.08 918
35 New Features of RAC & ASM in Oracle 19c 명품관 2019.02.08 953
34 New Features of Data Guard in Oracle Database 19c 명품관 2019.02.08 2004
33 New Features of Security in Oracle Database 19c 명품관 2019.02.08 5049
32 Patch conflicts 명품관 2019.02.07 974
31 New Features in Oracle Multitenant 19c 명품관 2019.02.07 744
30 New Features of Backup & Recovery in Oracle Database 19c 명품관 2019.02.07 432
29 New Features in Oracle Database 19c 명품관 2019.02.02 544
28 Different MOS Notes for xTTS PERL scripts – Use V4 scripts 명품관 2019.01.29 531
27 V$EVENT_NAME 뷰의 Name 컬럼에 정의된 event name에서 오는 오해 명품관 2017.03.08 371
26 Can I apply a BP on top of a PSU? Or vice versa? 명품관 2016.06.01 398
25 How to change the database name in 12c 명품관 2016.05.31 1994
Up