Last updated on FEBRUARY 15, 2017
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Information in this document applies to any platform.
***Checked for relevance on 15-Feb-2017***
This note shows how LOB columns can be compressed and storage savings can be gained by using Oracle 11g Advanced Compression features.
The example script calculates (1) space used, (2) space saved between an uncompressed LOB column and a compressed LOB column, and (3) space saved between a compressed LOB column and a compressed LOB column with the DEDUPLICATE option.
The below table shows space occupied by tables with different COMPRESS option after loading some data:
|BasicFile (no compress)||SecureFile (compress)||SecureFile (compress & deduplicate)|
|Space Used in Bytes||4423680||1236992||49152|
|Space Used in Blocks||540||151||6|
Note that a table can be compressed without compressing LOB data as both are stored in different segments.
Please refer to:
Oracle® Database Concepts
11g Release 2 (11.2)
Part Number E25789-01
Chapter 2 Tables and Table Clusters
Section 'Table Compression'
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms