1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Ricardo GonzalezSenior Product Manager
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
4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
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
6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Why Guadalajara, Mexico ?
8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Oracle México Development Center
9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
How is Oracle differentProduct vs. Project Development
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
11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
TimesTen In-Memory Database
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
27 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Application Programming Interfaces
And Tools
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
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
30 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
TimesTen team @ oracle mdc
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
32 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
The oracle wayBuilding Products
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
34 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
35 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
36 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
37 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
38 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
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]
40 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Q&A
41 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.