7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 1/24
<Insert Picture Here>
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 2/24
<Insert Picture Here>
Oracle Advanced Compression: Deep Dive into OLTP
Table Compression
Gregg Christman -- Senior Product Manager
Vineet Marwah – Principal Member of Technical Staff
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 3/24
3
<Insert Picture Here>
Program Agenda
•
Data Growth Challenges• OLTP Table Compression
• Customer Experience
•Thomson Reuters
• Questions and Answers
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 4/24
4
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 Datawith Limited Technology Budgets
– Need to optimize storage consumption
– Also maintain acceptable application performance
• Intelligent and Efficient Compression Technology canHelp Address These Challenges
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 5/24
5
Oracle Advanced Compression Option
• Reduces resource requirements and costs
– Storage System
– Network Bandwidth
– Memory Usage
Relational DataCompression
Unstructured DataCompression
Backup DataCompression
Network DataCompression
• OLTP Table
Compression
• SecureFiles
Dedupl icat ion
• SecureFiles
Compression
• Data Pump Data
Compression
• RMAN Fast B ackup
Compression
• Data Guard Redo
Transpor t
Compress ion
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 6/24
6
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 largeamounts 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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 7/247
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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 8/248
OLTP Table Compression Process
InitiallyUncompressed
Block
Compressed
Block
PartiallyCompressed
Block
Compressed
Block
Empty
Block
Legend
Header Data
Free Space
Uncompressed Data
Compressed Data
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 9/249
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 therebycompromising compression benefits
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 10/2410
OLTP Table Compression
SmithJohn3
DoeJane4
DoeJane2
DoeJohn1
LAST_NAMEFIRST_NAMEID
Employee TableInitially Uncompressed
Block
INSERT INTO EMPLOYEE
VALUES (5, ‘Jack’, ‘Smith’);
COMMIT;
1•John•Doe 2•Jane•
Doe 3•John•Smith 4•Jane • Doe
Free Space
Header
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 11/2411
OLTP Table Compression
Block
John=|Doe=|Jane=|Smith=
Header
DoeJane4
SmithJohn3
SmithJack5
DoeJane2
DoeJohn1
LAST_NAMEFIRST_NAMEID
Employee Table
1•John•Doe 2•Jane•
Doe 3•John•Smith 4•Jane • Doe
Free Space
1•• 2•• 3•• 4 •
•
5•Jack•
Free Space
Compressed Block
Local
Symbol Table
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 12/2412
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):
CREATE TABLE emp (
emp_id NUMBER
, first_name VARCHAR2(128), last_name VARCHAR2(128)
) COMPRESS [BASIC];
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 13/2413
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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 14/2414
Monitoring Table Compression
• View: DBA_TABLES, columns:
– COMPRESSION ( ENABLED / DISABLED ) – COMPRESS_FOR ( OLTP / BASIC)
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 15/2415
<Insert Picture Here>
Table Compression Results
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 16/24
16
© 2009 Oracle Corporation - Confidential 16
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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 17/24
17
© 2009 Oracle Corporation - Confidential 17
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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 18/24
18
© 2009 Oracle Corporation - Confidential 18
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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 19/24
19
Metalink
• See Metalink Note #1061366.1
– Lists recommended Advanced Compression patches
applicable to all customers
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 20/24
20
Customer Experience
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 21/24
21
Summary
•Comprehensive data compression capabilities for alltypes 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
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 22/24
22
Oracle Products Available Online
Oracle Store
Buy Oracle license and support
online today atoracle.com/store
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 23/24
23
7/30/2019 11g Advanced Compression 2
http://slidepdf.com/reader/full/11g-advanced-compression-2 24/24
24