Documente Academic
Documente Profesional
Documente Cultură
Copyright 2014, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential Internal/Restricted/Highly Restricted
Program Agenda
1
Program Agenda
1
PCI FLASH
DISK
~1280 GB/sec
58 GB/sec
In-memory delivers
12 GB/sec
Memory
SALES
SALES
Row
Format
Column
Format
T5-8 4TB
T4-1 512GB
T5-2 1TB
T5-4 2TB
Large Pool
Shared Pool
Other shared
Memory Components
Redo Buffer
In-Memory Area
NAME
-----------------Fixed Size
Variable Size
Database Buffers
Redo Buffers
In-Memory Area
VALUE
--------2927176
570426808
4634022912
13848576
1024483648
Controlled by INMEMORY_SIZE
parameter
Minimum size of 100MB
Must be large enough to
accommodate both column store and
meta-data area
INMEMORY_SIZE=0G
ERP
IMPDB1
Container Database
IMPDB2
INMEMORY_SIZE=2000G
11
IMPDB1
IMPDB2
Over subscription
is possible!
INMEMORY_SIZE=2000G
Container Database
12
eligible
Tables
Partitions
CREATE TABLE
PARTITION BY
(PARTITION
(PARTITION
customers
LIST
p1 INMEMORY,
p2 NO INMEMORY);
Subpartition
Materialized views
eligible
IOTs
Hash clusters
Out of line LOBs
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |
Pure OLTP
Features
memory requirements
Use DBMS_COMPRESSION
Applies MEMCOMPRESS to
sample set of data from a table
Returns estimated
compression ratio
Program Agenda
1
2x to 20x compression
IMCU
IMCU
IMCU
IMCU
IMCU
ora_wNNN_orcl
INMEMORY_MAX_POPULATE_SERVERS
IMCU
IMCU
IMCU
IMCU
IMCU
Column Format
first access)
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |
population
Different levels
FOR DML - Use on tables or
most tables
FOR CAPACITY - For less
INMEMORY
-------DISABLED
DISABLED
ENABLED
DISABLED
attribute
doesnt display
segment attributes for logical
objects
Both COSTS & SALES are
partitioned => logical objects
INMEMORY attribute also
reported in *_TAB_PARTITIONS
USER_TABLES
NAME
-----------PRODUCTS
SALES
STATUS
-------COMPLETED
STARTED
Program Agenda
1
Column
Format
IMCU
JOURNAL
Column
Format
Program Agenda
1
Policy is user-specifiable
Controlled by DISTRIBUTE
subclause
Distribute by partition
Distribute AUTO
Requires parallel_degree_policy=AUTO
Policy is user-specifiable
Controlled by DUPLICATE subclause
DUPLICATE
DUPLICATE ALL
Program Agenda
1
IM Column Store
X
X
X
X
X
RESULT
Column Format
Row Format
Min 4
Max 7
Min 8
Max 12
SALES
Column
Format
Min 13
Max 15
Example:
Find all sales
With PROMO_ID 9999
CPU
PROMO_ID
values
VECTOR
REGISTER
9999
Load
multiple
9999
9999
9999
Vector
Compare
all values
in 1 cycle
Amount
Datekey is
24122013
DateKey
DateKey
Date
DATE_DIM
Sum
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |
In-memory Joins
SELECT SUM(lo_extendedprice * lo_discount)
revenue
FROM
lineorder l,
date_dim d
WHERE l.lo_orderdate = d.d_datekey
AND
l.lo_discount BETWEEN 2 AND 3
AND
d.d_date='December 24, 2013';
DATADRIVEN
AGILE
EFFICIENT