Showing posts with label Exadata Compression. Show all posts
Showing posts with label Exadata Compression. Show all posts

Exadata Hybrid Columnar Compression (EHCC)

Let's see how EHCC help us to reduce storage space with performance database improvement.

Here we have created three tables with same data as per below.

1. Test  with no compression
2. Test_hcc_archive with archive high compression
3. Test_hcc_query with query high compression


#### List of tables with compression types ####


SQL> select table_name,compression,compress_for
  2    from user_tables
  3   where table_name in ('TEST','TEST_HCC_QUERY','TEST_HCC_ARCHIVE');


TABLE_NAME                 COMPRESS COMPRESS_FOR                            
------------------------------ -------- ------------                            
TEST                           DISABLED                                         
TEST_HCC_ARCHIVE      ENABLED    ARCHIVE HIGH                            
TEST_HCC_QUERY         ENABLED    QUERY HIGH                              


#### Each Tables are with 100000 row data ####


SQL> select count(*) from test;


  COUNT(*)                                                                      
----------                                                                      
    100000                                                                      

Elapsed: 00:00:00.11




SQL> select count(*) from test_hcc_query;

  COUNT(*)                                                                      
----------                                                                      
    100000                                                                      

Elapsed: 00:00:00.10



SQL> select count(*) from test_hcc_archive;

  COUNT(*)                                                                      
----------                                                                      
    100000                                                                      

Elapsed: 00:00:00.10

#### Checking the size of data for each tables ####