Top Banner
Andy Rivenes Database In-Memory Product Management Oracle Corporation Email: [email protected] Twitter: @TheInMemoryGuy Blog: blogs.oracle.com/in-memory Oracle Database In-Memory By Example Copyright © 2019 Oracle and/or its affiliates.
12

Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Jun 04, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Andy RivenesDatabase In-Memory Product Management

Oracle Corporation

Email: [email protected]: @TheInMemoryGuy

Blog: blogs.oracle.com/in-memory

Oracle Database In-Memory By Example

Copyright © 2019 Oracle and/or its affiliates.

Page 2: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Safe harbor statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions.

The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation.

Copyright © 2019 Oracle and/or its affiliates.

Page 3: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

What is Database In-Memory?

Copyright © 2019 Oracle and/or its affiliates.

Page 4: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Row Format Databases vs. Column Format Databases

Rows Stored Contiguously

• Transactions run faster on row format– Example: Query or Insert a sales order– Fast processing few rows, many columns

Columns Stored

Contiguously

•Analytics run faster on column format– Example : Report on sales totals by region– Fast accessing few columns, many rows

SALES

Until Now Must Choose One Format and Suffer Tradeoffs

Query

SALES

Query

Query

Copyright © 2019 Oracle and/or its affiliates.

Page 5: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

• BOTH row and column formats for same table

• Simultaneously active and transactionally consistent

• Analytics & reporting use new in-memory Column format

• OLTP uses proven row format

Breakthrough: Dual Format Database

Buffer CacheNew In-Memory

Column Store

SALES SALESRow

FormatColumnFormat

Copyright © 2019 Oracle and/or its affiliates.

SALES

Page 6: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Oracle In-Memory: Simple to Implement

1. Configure Memory Capacityinmemory_size = XXX GB

2. Configure tables or partitions to be in memoryalter table | partition … inmemory;

3. Later drop analytic indexes to speed up OLTP

Copyright © 2019 Oracle and/or its affiliates.

Page 7: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Database In-Memory By Example Details

Copyright © 2019 Oracle and/or its affiliates.

Page 8: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

In-Memory By Example - Schema Overview

• Star schema based on TPCH benchmark• Lineitem & Orders tables

combined to create fact table• Schema built with a 3GB scale

factor

Copyright © 2019 Oracle and/or its affiliates.

Page 9: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

In-Memory By Example

• Virtual Box on my laptop – 12GB memory size• Set of SQL scripts to show how Database In-Memory works• SGA size = 10000M• IM column store size = 5504M• Keep pool size = 4000M (cache row store tables)• Tables have "cache" attribute set• Each script connects as a new session

Demonstration Details

Copyright © 2019 Oracle and/or its affiliates.

Page 10: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Where Can You Get More Information?

Copyright © 2019 Oracle and/or its affiliates.

Page 11: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

https://blogs.oracle.com/in-memory/dbim-resources

Copyright © 2019 Oracle and/or its affiliates.

Page 12: Oracle Database In-Memory · In-Memory By Example • Virtual Box on my laptop – 12GB memory size • Set of SQL scripts to show how Database In-Memory works • SGA size = 10000M

Database In-Memory Resources

Copyright © 2019 Oracle and/or its affiliates.

Database In-Memory Blog

Database In-Memory Resources Page

oracle.com – Database In-Memory

Database In-Memory YouTube Channel

Ask TOM Database In-Memory Office Hours

Database In-Memory Guid (Documentation)