1
Oracle Advanced Compression: Deep Dive into OLTP Table Compression Gregg Christman -- Senior Product Manager Vineet Marwah – Principal Member of Technical Staff
<Insert Picture Here> Program Agenda <Insert Picture Here> Data Growth Challenges OLTP Table Compression Customer Experience Thomson Reuters Questions and Answers 3
Data Growth Challenges Explosion in Data Volumes Government Regulations (Sarbanes-Oxley, etc) User Generated Content (Web 2.0) Application Consolidation IT Managers Must Support Larger Volumes of Data with Limited Technology Budgets Need to optimize storage consumption Also maintain acceptable application performance Intelligent and Efficient Compression Technology can Help Address These Challenges
Oracle Advanced Compression Option OLTP Table Compression SecureFiles Deduplication SecureFiles Compression Data Pump Data Compression RMAN Fast Backup Compression Data Guard Redo Transport Compression Relational Data Compression Unstructured Data Compression Backup Data Compression Network Data Compression Reduces resource requirements and costs Storage System Network Bandwidth Memory Usage
Introduced in Oracle Database 9i Release 2 Table Compression Introduced in Oracle Database 9i Release 2 Compression during bulk load operations (Direct Load, CTAS) Data modified using conventional DML not compressed Optimized compression algorithm for relational data Improved performance for queries accessing large amounts of data Fewer I/Os Buffer Cache efficiency Data is compressed at the database block level Compression enabled at either the table or partition level Completely transparent to applications
OLTP Table Compression Oracle Database 11g extends table compression for OLTP data Support for conventional DML Operations (INSERT, UPDATE) New algorithm significantly reduces write overhead Batched compression minimizes impact for OLTP transactions No impact on reads Reads may actually see improved performance due to fewer I/Os and enhanced memory efficiency
OLTP Table Compression Process Initially Uncompressed Block Compressed Block Partially Compressed Block Empty Block Legend Header Data Free Space Uncompressed Data Compressed Data
Block-Level Batch Compression Patent pending algorithm minimizes performance overhead and maximizes compression Individual INSERTs and UPDATEs do not cause recompression Compression cost is amortized over several DML operations Block-level (Local) compression keeps up with frequent data changes in OLTP environments Competitors use static, fixed size dictionary table thereby compromising compression benefits
OLTP Table Compression Initially Uncompressed Block Employee Table Smith John 3 Doe Jane 4 2 1 LAST_NAME FIRST_NAME ID Header 1•John•Doe 2•Jane• Doe 3•John•Smith 4• Jane • Doe Free Space INSERT INTO EMPLOYEE VALUES (5, ‘Jack’, ‘Smith’); COMMIT;
OLTP Table Compression Employee Table Block 1•• 2•• 3•• 4 • • 5•Jack• Free Space Compressed Block Doe Jane 4 Smith John 3 Jack 5 2 1 LAST_NAME FIRST_NAME ID Header John=|Doe=|Jane=|Smith= 1•John•Doe 2•Jane• Doe 3•John•Smith 4• Jane • Doe Free Space Local Symbol Table
Table Compression Syntax OLTP Table Compression Syntax: CREATE TABLE emp ( emp_id NUMBER , first_name VARCHAR2(128) , last_name VARCHAR2(128) ) COMPRESS FOR OLTP; Direct Load Compression Syntax (default): ) COMPRESS [BASIC];
Table Compression Advisor Estimate Potential Storage Savings Available in 11g Release 2 Available on OTN * Supports Oracle Database 9i Release 2 through 11g Release 1 Shows projected compression ratio for uncompressed tables Reports actual compression ratio for compressed tables (11g Only) * http://www.oracle.com/technology/products/database/compression/compression-advisor.html
Monitoring Table Compression View: DBA_TABLES, columns: COMPRESSION ( ENABLED / DISABLED ) COMPRESS_FOR ( OLTP / BASIC)
<Insert Picture Here> Table Compression Results
Oracle IT, Oracle’s Internal E-Business Application DB Oracle’s Internal E-Business Suite Production System deployed ACO in 2009 4-node Sun E25K RAC, 11gR1 Average overall storage savings 3x Table compression 4x Index compression 2x LOB compression 2.3x 231TB of realized storage savings primary, standby and test systems Additional benefits were also accrued in Dev clones and Backups Payroll, Order-2-Cash, AP/AR batch flows, Self-Service flows run without regression, Queries involving full table scans show speedup Hi Amit, Attaching a doc containing data relating to GSI Phase1 & IMG compression. For GSI: At present GSI has the following number of environments: - Eight test copies + 1 test standby - One production + 1 standby Total 9 +2 =11 copies (including production & standby) Phase1 space savings - 5.574 TB Phase2 space savings - 0.822 TB Total for GSI - 6.396 TB (say 6.5 TB) Space saved for 11 environments (including standby) = 6.5 * 11 *3 (including backups, mirroring) = 214.50 TB ~ 215 TB For Imaging Database: (primarily LOBs) Imaging has the following environments: Full sized test copy :1 Production + Standby: 2 Total full sized copies = 3 Space saved per environment: 1.832 TB (Say 1.8 TB) Total space saved (3 env) = 1.8 *3 * 3= 16.2 TB ~ 16 TB. (including backups, mirroring) Hope this helps. Thanks, Raji © 2009 Oracle Corporation - Confidential 16 16
Oracle IT, Oracle’s Internal Beehive Email DB Production system on 11gR1 & Exadata for Primary and Standby Using Exadata Storage Servers for storage Average Compression Ratio: 2x Storage savings add up with standby, mirroring, flash recovery area Compression went production in 2009 Consolidate 90K employees on this email server, more being migrated Savings As of April 2010 Beehive Saved 365TB of storage using Advanced Compression Incrementally saves 2.6TB/day based on db size growth Savings higher with Sun user migration Compression also helped improve performance by caching only compressed emails in memory and reducing I/O latencies © 2009 Oracle Corporation - Confidential 17 17
SAP R/3, BW, Leading Global Company Compression on SAP databases at Leading global company Tests done using Oracle database 11gR2 SAP R/3 DB 4.67TB Uncompressed 1.93 TB Compressed 2.4x savings factor SAP BW DB 1.38 TB Uncompressed .53 TB Compressed 2.6x savings factor Leverage 11g Compression for Tables, Indexes and LOB data © 2009 Oracle Corporation - Confidential 18 18
Metalink See Metalink Note #1061366.1 Lists recommended Advanced Compression patches applicable to all customers
Customer Experience
Comprehensive data compression capabilities for all types of data Summary Comprehensive data compression capabilities for all types of data Structured, Unstructured, Backup, Network Reduces storage consumption by 2 to 4 times Improves read performance Enhances memory, buffer cache utilization Complete application transparency Benefits diverse application workloads
Oracle Products Available Online Oracle Store Buy Oracle license and support online today at oracle.com/store 22 22
23