42
1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Cómo construimos Oracle TimesTen

Embed Size (px)

DESCRIPTION

En esta conferencia, hablaremos de nuestro producto Oracle TimesTen, el cual es una base de datos relacional que funciona completamente en memoria y por lo tanto es muy rápida. Conoceremos los fundamentos del mismo, y veremos como Oracle diseña y construye este producto, en territorio Mexicano con talento Mexicano.

Citation preview

Page 1: Cómo construimos Oracle TimesTen

1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 2: Cómo construimos Oracle TimesTen

2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Ricardo GonzalezSenior Product Manager

Cómo Construimos Oracle TimesTen

Page 3: Cómo construimos Oracle TimesTen

3 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

Agenda

• Oracle

• Oracle MDC

• TimesTen In-Memory Database

• Q & A

Page 4: Cómo construimos Oracle TimesTen

4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 5: Cómo construimos Oracle TimesTen

5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• RDBMS

• TimesTen

• MySQL

• SUN

• 35 años

• R $35.6 billones

• NI $8.5 billones

• +100k colaboradores

Oracle in a Nutshell

Page 6: Cómo construimos Oracle TimesTen

6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 7: Cómo construimos Oracle TimesTen

7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Why Guadalajara, Mexico ?

Page 8: Cómo construimos Oracle TimesTen

8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Oracle México Development Center

Page 9: Cómo construimos Oracle TimesTen

9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

How is Oracle differentProduct vs. Project Development

Page 10: Cómo construimos Oracle TimesTen

10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Projects @ Oracle MDC

• Gateways

• Golden Gate

• OLAP

• Porting

• Semantics

• Spatial

• TimesTen

• Virtual Operating System

• Automatic Storage Management

• Clusterware*

• Oracle Cloud File System

• Quality of Service

• Database Sustaining

• XAP

• Enterprise Manager

• Oracle Applications Lab

• Real Application Clustering

• Documentation

• Curriculum Development

Page 11: Cómo construimos Oracle TimesTen

11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

TimesTen In-Memory Database

Page 12: Cómo construimos Oracle TimesTen

12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

The Quest for Response Time

• Failure to meet service level agreements (SLA)– Due to long response time

• Customer churns– Competitive products offer better response time

• Decreased user productivity and decreased customer satisfaction– Unhappy customers

• Loss of revenue and decreased profitability– Effect of lost business and opportunities

Why is Response Time Important?

Page 13: Cómo construimos Oracle TimesTen

13 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Improving Application Response Time

• Define business requirements for latency

• Evaluate solutions

Understanding Latency Requirements

Magnetic Disks

Disk Cache Array

Flash Storage, SSD

Buffer Cache

Result-set Cache (C

lient/Server)

In-Memory Database

L A T E N C Y L A T E N C Y

Slower

Network round trips

Faster

Page 14: Cómo construimos Oracle TimesTen

14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

TimesTen In-Memory DatabaseLOBs

Cache AdvisorIn-Memory Analytics

Columnar CompressionParallel Replication

ODP.NET SupportCache Grid for Scale Out

Oracle Clusterware IntegrationPL/SQL Support

Oracle Call Interface SupportOEM & SQLDeveloper Integration

Oracle Database Data Types SupportNational Language Support

Integration with Oracle RACMid-tier Cache for Oracle DB

Online UpgradesHigh Availability

1st Commercial In-Memory RDBMS

2011

1998

2000

2009

2005

2007

2010

Over a Decade of Innovation

Page 15: Cómo construimos Oracle TimesTen

15 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Enabling The Real-Time World

Real-Time ApplicationsInstantly Responsive / Highly Scalable / Always-On

Key Enabling TechnologyKey Enabling Technology

Mainstream 64-bitProcessors

Large Capacity RAM

FastNetworks

Authorization,Online Charging,Location-Based

Services

Real-Time Analytics -Interactive DashboardData Mart, Scorecard

eCommerce,Personalization,Real-Time Ad

Serving

Market Data,Market Events,Order Matching,

Trading

Page 16: Cómo construimos Oracle TimesTen

16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

What is Oracle TimesTen In-Memory Database

• Extremely fast – Entire database in memory– Microsecond response time

• Compatible with Oracle Database– Standard SQL and PL/SQL, Datatypes

– JDBC, ODBC, ODP.NET, OCI, Pro*C

• Persistent and Recoverable– Transactional logging and checkpointing

• Easy to use and deploy

Direct-Linked Application

TimesTen Libraries

Client-Server ApplicationTimesTen Client Lib

Memory-Resident Database

Client/Server

JDBC / ODBC / ADO.NET / OCI / PLSQL

Checkpoint Files

Transaction Log Files

Fast data access

Memory Optimized Relational Database

Page 17: Cómo construimos Oracle TimesTen

17 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Lightning Fast Response Time

0

4

8M

icro

seco

nds

Read Transaction Update Transaction

Average Response TimeTimesTen In-Memory Database

7Millionths ofa second

1.78Millionths of

a second

Oracle TimesTen In-Memory Database 11.2.2.0 - Intel Xeon 5670 2.93Ghz, 2 CPUs, 6 cores/CPU - Oracle Linux 5.6

One ExalogicCompute Node

Page 18: Cómo construimos Oracle TimesTen

18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Why is TimesTen In-Memory Database so fast?

• In-Memory Optimizations– Database in shared memory– Memory optimized access methods– Faster than fully-cached disk-based

databases

• Direct-link for best performance– Shared memory mapped into

application process– Eliminates networking overhead

Direct-Linked Application

TimesTen Libraries

Client-Server ApplicationTimesTen Client Lib

Memory-Resident Database

Client/Server

JDBC / ODBC / ADO.NET / OCI / PLSQL

Checkpoint Files

Transaction Log Files

Fast data access

Page 19: Cómo construimos Oracle TimesTen

19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

What If .. you have an existing Oracle Database?How to enable your application to use in-memory technology?

Use TimesTen as an In-Memory Database Cache Oracle In-Memory Database Cache A product option for Oracle Database Enterprise Edition

Page 20: Cómo construimos Oracle TimesTen

20 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Oracle In-Memory Database CacheTelco ServicesFinancial Services

Real-Time Analytics –Dashboard, Scorecard

Data MarteCommerce,

Personalization

ApplicationApplication

Application

IMDB Cache GridIMDB Cache Grid

• Application-tier In-memory RDBMS

• Accelerates applications• Uses standard SQL and PL/SQL• Caches Oracle Database tables

• Read-write caching• Dynamic and static• Automatic synchronization

• Scales up and scales out• Built-in high availability

Page 21: Cómo construimos Oracle TimesTen

21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

In-Memory Database CacheFlexible Cache Group Configurations

Application Transactions Cache Groups

Automatic Data Synchronization

• Cache Group describes the data in the Oracle database to cache

• Collection of related tables– All or subset of rows and columns– Defined via SQL clause

CREATE CACHE GROUP nameFROM owner.tab1 (col1, col2), owner.tab2 (col1, col4)…WHERE <predicate>

• Cache tables are regular database tables in TimesTen

– Joins/search, insert/update/delete

Page 22: Cómo construimos Oracle TimesTen

22 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

In-Memory Database Caching

Read-Write caching• Transactions committed in TimesTen

cache• Parallel write-through of committed

transactions to Oracle Database

Read-only caching• Transactions committed in Oracle

Database• Multi-stream refresh of committed

transactions to TimesTen

Automatic Data

Synchronization

Data Synchronization

Application Application

Application

Reads/Write transactions

Reads/Write transactions

Reads/Write transactions

Page 23: Cómo construimos Oracle TimesTen

23 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

In-Memory Database Cache Grid

• Location transparency • Usage-driven, adaptive

redistribution of cached data • Online addition/removal of

cache nodes• Scale out with growth• Parallel searches• Transactional consistency

Application

Application

Application

Application

Incremental Scalability

Page 24: Cómo construimos Oracle TimesTen

24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Flexible Caching Options

• Read-Write and Read-only• Pre-loading of cache

– Data set pre-determined

• On-demand loading of cache– Data set not pre-determined or too large

• Performance driven – Locality optimized for consistent response time– Globally shared across all nodes for application transparency– Scale-out horizontally with processing capacity

Page 25: Cómo construimos Oracle TimesTen

25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

What does TimesTen offer for high availability?

TimesTen Replication provides real-time replication of transaction data between TimesTen databases

Page 26: Cómo construimos Oracle TimesTen

26 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Real-Time Transactional Replication

• High performance – Synchronous / Asynchronous

– Memory-to-memory replication

– Parallel send of log streams

– Parallel apply of changes on Standby and Subscribers

• HA and DR support• Online upgrades – no downtime

High Availability and Disaster Recovery

Read-Only Subscribers

- Reader Farm

- Disaster Recovery

ApplicationTransactions

Active

Application Reads on Hot Standby

Standby

SubscriberSubscriber

Subscriber

Page 27: Cómo construimos Oracle TimesTen

27 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Application Programming Interfaces

And Tools

Page 28: Cómo construimos Oracle TimesTen

28 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Application Development

SQL

PL/SQL

Languages C/C++/C#

ODBC

ttClasses

OCI, Pro*C

ADO.NET

J2EE App Servers OR MappingJava/JDBC

Page 29: Cómo construimos Oracle TimesTen

29 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Minimal Application Changes

• PL/SQL support– PL/SQL engine implemented inside TimesTen database– Same Oracle PL/SQL language; subset of packages

• C/C++ support– Standard ODBC interface

• Java support– Standard JDBC interface

• Oracle APIs: ODP.NET, OCI, Pro*C/C++– Support identical API signatures as used for the Oracle Database; subset of functions

• Minimal application changes

Page 30: Cómo construimos Oracle TimesTen

30 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

TimesTen team @ oracle mdc

Page 31: Cómo construimos Oracle TimesTen

31 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

• Quality Assurance

• 3 Software Developers

• 3 System & Release Testing Engineers

TT Team• Database Engine

• 2 Software Developers

• Replication, Cache, EM Plugin

• 4 Software Developers

• Documentation

• 1 Technical Writer

• Product Management

• 1 Product Manager• Management

• 1 Senior Development Manager

Page 32: Cómo construimos Oracle TimesTen

32 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

The oracle wayBuilding Products

Page 33: Cómo construimos Oracle TimesTen

33 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Lo que resaltan nuestros ingenieros del MDC• Ambiente

• No hay Micromanagement

• Equipo multidisciplinario, internacional y talentoso

• Libertad para pensar y ser creativo

• Proyectos Long Term

• El trabajo de cada uno afecta empresas y personas a nivel global

• Más allá de horarios, lo importante son los objetivos

• Retador

• Motivación constante

• Jefe y Equipo tanto local como internacional

• Great Place to Work Mexico

• Facilities / Location

Page 34: Cómo construimos Oracle TimesTen

34 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 35: Cómo construimos Oracle TimesTen

35 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 36: Cómo construimos Oracle TimesTen

36 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 37: Cómo construimos Oracle TimesTen

37 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 38: Cómo construimos Oracle TimesTen

38 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 39: Cómo construimos Oracle TimesTen

39 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

For More Information

• Technology white papers

• Quick Start Guide and tutorials

• Discussion Forum

• And more..

http://www.oracle.com/technetwork/database/timesten

Ricardo GonzalezSenior Product [email protected]

Page 40: Cómo construimos Oracle TimesTen

40 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Q&A

Page 41: Cómo construimos Oracle TimesTen

41 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Page 42: Cómo construimos Oracle TimesTen

42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.