Professional Documents
Culture Documents
Legend
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
INSERT
INSERT INTO
INTO EMPLOYEE
EMPLOYEE
VALUES
VALUES (5,
(5, ‘Jack’,
‘Jack’, ‘Smith’);
‘Smith’);
COMMIT;
COMMIT;
OLTP Table Compression
5 Jack Smith
Local
Symbol Table
OLTP Table Compression
Header Header
John=W|Doe=X|Jane=Y|Smith=Z
Local
More Data
Symbol Table
Per Block
Table Compression Syntax
Storage Utilization
2500
2000
More than 70%
1500 Storage Savings
MB
1000
500
No Compression Compression
Real World Compression Results
0.4
Compression is
0.3
2.5x Faster
Time
(seconds) 0.2
0.1
No Compression Compression
Real World Compression Results
14000 Compression
12000 performs
10000 3.5x fewer reads
Physical 8000
Reads 6000
4000
2000
No Compression Compression
Real World Compression Results
0.03
No Performance
Impact on
0.02 Index Scans
Time
(seconds)
0.01
No Compression Compression
Real World Compression Results
DML Performance
Compression
35
has less than 3%
30 overhead
25
Time 20
(seconds)15
10
No Compression Compression
Introduction to SecureFiles
Secure Hash
Deduplication Syntax
CREATE TABLE images (
image_id NUMBER,
image BLOB)
LOB(image) STORE AS SECUREFILE
(TABLESPACE lob_tbs DEDUPLICATE);
Data Pump Compression
DataPump Syntax
PROMPT> expdp hr FULL=y
DUMPFILE=dpump_dir:full.dmp COMPRESS
<Insert Picture Here>
3500 Compression
3000 reduced backup
2500 size by 6x
GB 2000
1500
1000
500
200
150
100
50
200 Compression
150
100
50
200 Compression
150
100
50
Redo Shipping
• Redo Shipping
• Send redo data over network from primary to standby
• Size of redo data typically small (transactional) and not network-bound
• Gap Resolution
• After network outage – resynchronize standby
• Size of redo data much larger
Network Compression
Oracle Data Guard Redo Transport Services
• Fast re-sync of standby database after network outages
• Lower bandwidth networks (<100Mbps)
• 15-35% less time required to transmit 1 GB of data
• Bandwidth consumption reduced up to 35%
Competitive Analysis
Competitive Analysis – DB2
Oracle IBM DB2
Block level compression Table/partition level compression
dictionary
- Adaptive / dynamic compression - New data may not be
- Unlimited compression values compressed / offline rebuild
symbol table
- Max 4K values per table
Zero decompression overhead Some decompression overhead
6000
5000
4000
Size, MB 3000
2000
1000
0
Oracle No Competition No Oracle Competition
Compress Compress Compress Compress
Summary