AdvancedCompression 11gR2-1
AdvancedCompression 11gR2-1
2
Challenges
3
Oracle Advanced Compression Option
Unstructured
Relational Data Backup Data Network Data
Data
Compression Compression Compression
Compression
4
Oracle Advanced Compression Option
5
Table Compression
6
OLTP Table Compression
7
OLTP Table Compression Process
Legend
8
Block-Level Batch Compression
9
OLTP Table Compression
Initially Uncompressed
Employee Table
Block
ID FIRST_NAME LAST_NAME Header
1 John Doe
1•John•Doe 2•Jane•
2 Jane Doe
Doe 3•John•Smith 4•
3 John Smith Jane • Doe
4 Jane Doe Free Space
10
OLTP Table Compression
5 Jack Smith
Local
Symbol Table
11
Table Compression Syntax
12
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
13
Monitoring Table Compression
• View: DBA_TABLES, columns:
• COMPRESSION ( ENABLED / DISABLED )
• COMPRESS_FOR ( FOR ALL OPERATIONS / DIRECT LOAD ONLY )
14
<Insert Picture Here>
15
Oracle’s Internal E-Business Suite DB
• Overall database storage savings: 3x
• Table compression 4x
• Index compression 2x
• LOB compression 2.3x
• 95 TB of Total Storage Savings!
• Primary, standby, test, dev, and backup
• Payroll, Order-2-Cash, AP/AR batch flows, Self-Service
flows run without regression, Queries involving full table
scans show speedup
16
Oracle’s Internal Beehive Email DB
17
SAP R/3, BW, Leading Global Company
18
Real Networks
19
CERN
20
Oracle Advanced Compression Option
Unstructured
Relational Data Backup Data Network Data
Data
Compression Compression Compression
Compression
21
Introduction to SecureFiles
22
SecureFiles Deduplication
Secure Hash
23
SecureFiles Compression
• Significant storage savings for unstructured data
• Three levels of compression (LOW/[MEDIUM]/ HIGH ) provide desired
ratios
• 2-3x compression for typical files (combination of doc, pdf, xml)
• Compression Level LOW (NEW in 11.2)
• Compression algorithm optimized for high performance
• 3x less CPU utilization than default SecureFiles Compression
• Maintains 80% compression of default SecureFiles Compression
24
SecureFiles Compression Syntax
Compression Syntax
CREATE TABLE t1 (a CLOB)
LOB(a) STORE AS SECUREFILE (
COMPRESS
CACHE
);
Deduplication Syntax
CREATE TABLE t1 (a CLOB)
LOB(a) STORE AS SECUREFILE (
DEDUPLICATE
CACHE
);
25
Oracle Advanced Compression Option
26
Data Pump Compression
27
Advanced Compression
New in Oracle Database 11g Release 2
• RMAN Backup Compression
• Compression Level LOW (New in 11.2)
• Fastest compression algorithm
• Best suited when backup is constrained by CPU
• Compression Level MEDIUM (New in 11.1)
• Balance between CPU usage and compression ratio
• Formerly Fast RMAN Backup Compression
• 11.1 syntax supported in 11.2
• Compression LEVEL HIGH (New in 11.2)
• Best compression ratio and highest CPU utilization
• Best suited when backup is constrained by network or I/O
28
Backup Compression Syntax
29
<Insert Picture Here>
30
RMAN Compression Overview
31
Backup Compression Results
Compression
reduced backup
size by 6x
GB
32
Backup Compression
Backup Speed Comparison
Slow I/O (Tape)
11g Compression
is almost 2.5x
faster than 10g
Time (Seconds)
Compression
33
Backup Compression
Backup Speed Comparison
Fast I/O (Disk)
11g Compression
is almost 2.5x
faster than 10g
Time (Seconds)
Compression
34
Oracle Advanced Compression Option
35
Network Compression
Data Guard Redo Transport Services
• Compress network traffic between primary and standby databases
• Lower bandwidth networks (<100Mbps)
• 15-35% less time required to transmit 1 GB of data
• Bandwidth consumption reduced up to 35%
• High bandwidth networks (>100 Mbps)
• Compression will not reduce transmission time
• But will reduce bandwidth consumption up to 35%
• Syntax:
LOG_ARCHIVE_DEST_3='SERVICE=denver SYNC
COMPRESSION=ENABLE|[DISABLE]'
• Ref. MetaLink 729551.1 Redo Transport Compression in a Data
Guard Environment
36
Redo Transport Compression
2X Compression !
5X Compression !
37
Summary
38
For More Information
search.oracle.com
advanced compression
Or
OTN: http://www.oracle.com/technology/products/database/compression/index.html
39
40
41