Documente Academic
Documente Profesional
Documente Cultură
Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
What is
Oracle Database In-Memory
Accelerate Mixed
Workload
Transactions
Enable Real-Time
business Decisions
Risk-Free
Trivial to Implement
Proven Scale-Out,
Availability, Security
No Application Changes
Not Limited by Memory
Analytics
Run analytic on
operational Systems
New In-Memory
Format
SALES
Row
Format
Column
Format
SALES
Program Agenda
1
Copyright 2015, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
Large Pool
Shared Pool
Other shared
Memory Components
Redo Buffer
In-Memory Area
NAME
VALUE
------------------ --------Fixed Size
2927176
Variable Size
570426808
Database Buffers
4634022912
Redo Buffers
13848576
In-Memory Area
1024483648
Controlled by INMEMORY_SIZE
parameter
Minimum size of 100MB
IMCU
IMCU
IMCU
IMCU
IMCU
IMCU
SMU
SMU
SMU
SMU
SMU
SMU
SMU
IMCU
Metadata
Column Format Data
13
IMCU header
ROWID
Column CUs
EMPID
DEPT
NAME
SALARY
Employee Table
Extent #1
Blocks 1-120
Extent #2
Blocks 160-182
Extent #3
Blocks 201-301
.
.
.
.
.
.
Extent #13
Blocks 140-159
Extent #14
Blocks 382-490
IMCU header
Extent #15
Blocks 310-381
ROWID
Column CUs
EMPID
NAME
DEPT
SALARY
14
Tips To Remember
Configuring In-Memory Column Store
IMCU
IMCU
IMCU
IMCU
IMCU
IMCU
What is a store?
A static pool of memory
SMU
SMU
SMU
SMU
SMU
SMU
SMU
SMU
IMCU
Metadata
18
Tables
Partitions
Subpartition
CREATE TABLE
PARTITION BY
(PARTITION
(PARTITION
customers
LIST
p1 INMEMORY,
p2 NO INMEMORY);
Materialized views
Pure OLTP
Features
columns
Two phase approach
1.
2.
21
ora_w001_orcl
Number of processes
controlled by parameter
INMEMORY_MAX_POPULATE_SERVERS
Default CPU_COUNT
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
Faster Population
Slower Population
populated controlled by
PRIORITY subclause
5 levels Critical - None
Default None (populates on
first access)
population
New compression techniques
Controlled by MEMCOMPRESS
Multiple levels of compression
Possible to use a different level for
PARTITION BY RANGE
(PARTITION p1
INMEMORY MEMCOMPRESS FOR CAPACITY HIGH
PARTITION p2
INMEMORY MEMCOMPRESS FOR QUERY LOW,
PARTITION p3
INMEMORY MEMCOMPRESS FOR DML,
:
PARTITION p200
NO INMEMORY
);
Different levels
FOR DML
ILM strategy
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
TABLE_NAME INMEMORY
------------------CHANNELS
DISABLED
COSTS
CUSTOMERS
DISABLED
PRODUCTS
ENABLED
SALES
TIMES
DISABLED
POPULATE_STATUS
--------------STARTED
COMPLETED
INMEM_PRIORITY INME_SIZE
BYTES_NOT_POPULATED
------------- ------------ ------------------HIGH
196606
2434886912
CRITICAL
135790592
0
Tips To Remember
Populating In-Memory Column Store
memory requirements
Use DBMS_COMPRESSION
Applies MEMCOMPRESS to
sample set of data from a table
Returns estimated
compression ratio
RESULT
Row Format
34
RESULT
RESULT
Column Format
X
X
X
X
X
35
Min 4
Max 7
Min 8
Max 12
SALES
Column
Format
Min 7
Max 15
36
REGION
Example:
Find sales in
region of CA
CPU
Vector Register
CA
Load
multiple
region
values
CA
CA
Vector
Compare
all values
an 1 cycle
CA
37
39
Etc ..
40
Sales
Type=Outlet
Amount
StoreID in
15, 38, 64
Store ID
Store ID
Type
Stores
Sum
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
41
In-Memory
Report Outline
Sales
report outline
Then report outline filled-in
Stores
Outlets
Footwear
Footwear
$
$$
$
$$$
Sales
43
Hash Group By
Vector Group By
Tips To Remember
Querying In-Memory Column Store
Tips To Remember
Querying In-Memory Column Store
Traditional cost model assumes all scan operations will read data from disk
12.1.0.2 the cost model was expanded to account for In-Memory scans too
Cost is now computed based on statistics maintained on
Objects: tables, columns, indexes, partitions etc.
System: CPU speed, IO throughput, etc.
In-Memory tables: In-Memory specific statistics
48
# IM Rows
# IM Transaction Journal Rows
49
52
53
Title
Location
Speaker
Moscone South
Room 104
Maria Colgan
Product Manager, Oracle
Moscone South
Room 103
Juan Loaiza
Senior Vice President, Oracle
Moscone South
Room 102
Moscone South
Room 103
Tirthankar Lahiri
Vice President, Oracle
Monday
14:00
Tuesday
08:45
Wednesday 08:45
Thursday 09:30
Hotel Nikko
Room Peninsula
Nikko Hotel
Hands-on Labs
WE ARE HERE
Moscone South
Additional
Resources
Join the Conversation
https://twitter.com/db_inmemory
https://blogs.oracle.com/in-memory/
https://www.facebook.com/OracleDatabase
http://www.oracle.com/goto/dbim.html
Related Videos
In-Memory YouTube Channel
Managing Oracle Database In-Memory
Database In-Memory and Oracle Multitenant
Industry Experts Discuss Oracle Database In-Memory
Software on Silicon
Any Additional Questions
Oracle Database In-Memory Blog
My email: maria.colgan@oracle.com
Copyright 2015, Oracle and/or its affiliates. All rights reserved. |
57