Mais conteúdo relacionado Semelhante a Cómo construimos Oracle TimesTen (20) Mais de Software Guru (20) Cómo construimos Oracle TimesTen1. 1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
2. Cómo Construimos Oracle TimesTen
Ricardo Gonzalez
2
Senior Product Manager
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
3. Agenda
• Oracle <Insert Picture Here>
• Oracle MDC
• TimesTen In-Memory Database
• Q&A
3 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
4. 4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
5. Oracle in a Nutshell
• 35 años • RDBMS
• R $35.6 billones • TimesTen
• NI $8.5 billones • MySQL
• +100k colaboradores • SUN
5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
6. 6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
9. How is Oracle different
Product vs. Project Development
9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
10. Projects @ Oracle MDC
• Automatic • Gateways • XAP
Storage • Golden Gate • Enterprise Manager
Management • OLAP • Oracle Applications
• Clusterware* • Porting Lab
• Oracle Cloud File • Semantics • Real Application
System Clustering
• Spatial
• Quality of Service • Documentation
• TimesTen
• Database • Curriculum
Sustaining • Virtual Operating
Development
System
10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
12. The Quest for Response Time
Why is Response Time Important?
• 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
12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
13. Improving Application Response Time
Understanding Latency Requirements
er)
/S erv
t
s ray D s lien e
D isk he Ar e, SS trip e (C ta bas
tic ac ag und ach he Da
e
agn Disk
C
S to
r
rk r
o tC ac ry
M sh two lt -se ffer C emo
Fla Ne R esu Bu I n-M
L A T E N C Y
Slower Faster
• Define business requirements for latency
• Evaluate solutions
13 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
14. TimesTen In-Memory Database LOBs
Over a Decade of Innovation 2011 Cache Advisor
In-Memory Analytics
2010 Columnar Compression
Parallel Replication
ODP.NET Support
2009 Cache Grid for Scale Out
Oracle Clusterware Integration
2007 PL/SQL Support
Oracle Call Interface Support
2005
OEM & SQLDeveloper Integration
Oracle Database Data Types Support
2000 National Language Support
Integration with Oracle RAC
1998 Mid-tier Cache for Oracle DB
Online Upgrades
High Availability
1st Commercial In-Memory RDBMS
14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
15. Enabling The Real-Time World
Authorization, Market Data, eCommerce,
Real-Time Analytics - Personalization,
Online Charging, Market Events, Interactive Dashboard
Location-Based Order Matching, Real-Time Ad
Data Mart, Scorecard Serving
Services Trading Picture 10 Picture 11
Real-Time Applications
Instantly Responsive / Highly Scalable / Always-On
Picture 11
Large Capacity
Picture 6
Mainstream 64-bit Fast
Processors Networks RAM
Key Enabling Technology
15 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
16. What is Oracle TimesTen In-Memory Database
Memory Optimized Relational Database
Client-Server
Application
TimesTen
• Extremely fast
Client Lib
– Entire database in memory
Direct-Linked
Client/
Server Application – Microsecond response time
TimesTen Libraries
JDBC / ODBC / ADO.NET / OCI / PLSQL
• Compatible with Oracle Database
– Standard SQL and PL/SQL, Datatypes
– JDBC, ODBC, ODP.NET, OCI, Pro*C
Fast Checkpoint
data
access
Files
• Persistent and Recoverable
Transaction
– Transactional logging and checkpointing
Log Files
Memory-Resident • Easy to use and deploy
Database
16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
17. Lightning Fast Response Time
Average Response Time
TimesTen In-Memory Database
8
7
Microseconds
Millionths of
a second
4
1.78
Millionths of
a second One Exalogic
0
Read Transaction Update Transaction Compute Node
Oracle TimesTen In-Memory Database 11.2.2.0 - Intel Xeon 5670 2.93Ghz, 2 CPUs, 6 cores/CPU - Oracle Linux 5.6
17 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
18. Why is TimesTen In-Memory Database so fast?
Client-Server
Application
TimesTen
Client Lib
• In-Memory Optimizations
Direct-Linked
– Database in shared memory
Client/
Application
Server
TimesTen Libraries
– Memory optimized access methods
JDBC / ODBC / ADO.NET / OCI / PLSQL – Faster than fully-cached disk-based
databases
Fast Checkpoint • Direct-link for best performance
data Files
access – Shared memory mapped into
Transaction application process
Log Files
Memory-Resident – Eliminates networking overhead
Database
18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
19. 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
19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
20. Oracle In-Memory Database Cache
Telco Services Real-Time Analytics –
eCommerce, Dashboard, Scorecard
Financial Services Personalization Data Mart • Application-tier In-memory
RDBMS
• Accelerates applications
Application
Application
Application
• Uses standard SQL and PL/SQL
• Caches Oracle Database tables
• Read-write caching
IMDB Cache Grid
• Dynamic and static
• Automatic synchronization
• Scales up and scales out
• Built-in high availability
20 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
21. In-Memory Database Cache
Flexible Cache Group Configurations
Application
Transactions Cache Groups • 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 name
FROM owner.tab1 (col1, col2),
owner.tab2 (col1, col4)
Automatic Data
…
Synchronization
WHERE <predicate>
• Cache tables are regular database tables in
TimesTen
– Joins/search, insert/update/delete
21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
22. In-Memory Database Caching
Data Synchronization
Reads/Write
transactions Read-Write caching
Reads/Write
transactions Application
Reads/Write
transactions • Transactions committed in TimesTen
Application Application
cache
• Parallel write-through of committed
transactions to Oracle Database
Automatic
Data
Read-only caching
Synchronization • Transactions committed in Oracle
Database
• Multi-stream refresh of committed
transactions to TimesTen
22 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
23. In-Memory Database Cache Grid
Incremental Scalability
• Location transparency
Application Application
• Usage-driven, adaptive
Application Application
redistribution of cached data
• Online addition/removal of
cache nodes
• Scale out with growth
• Parallel searches
• Transactional consistency
23 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
24. 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
24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
25. What does TimesTen offer for high availability?
TimesTen Replication provides real-time replication of
transaction data between TimesTen databases
25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
26. Real-Time Transactional Replication
High Availability and Disaster Recovery
Application Application Reads
Transactions on Hot Standby
• High performance
– Synchronous / Asynchronous Active Standby
– Memory-to-memory replication
– Parallel send of log streams
– Parallel apply of changes on
Standby and Subscribers
Subscriber
• HA and DR support Read-Only Subscribers
- Reader Farm
Subscriber
Subscriber
• Online upgrades – no downtime - Disaster Recovery
26 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
28. Application Development
ADO.NET
ODBC
SQL
OCI, Pro*C
PL/SQL
ttClasses
Languages C/C++/C# Java/JDBC J2EE App Servers OR Mapping
28 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
29. 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
29 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
30. TimesTen team @ oracle mdc
30 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
31. TT Team
• Quality Assurance • Database Engine • Documentation
• 3 Software • 2 Software • 1 Technical Writer
Developers Developers
• 3 System &
Release Testing
Engineers • Replication, Cache, • Product
EM Plugin Management
• Management
• 4 Software • 1 Product Manager
• 1 Senior Developers
Development
Manager
31 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
32. Building Products
The oracle way
32 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
33. Lo que resaltan nuestros ingenieros del MDC
• Ambiente • El trabajo de cada • Jefe y Equipo tanto
• No hay uno afecta local como
Micromanagement empresas y internacional
personas a nivel
• Equipo
global
multidisciplinario, • Great Place to Work
internacional y • Más allá de horarios, Mexico
talentoso lo importante son los
objetivos
• Libertad para pensar • Facilities / Location
y ser creativo • Retador
• Proyectos Long • Motivación
Term constante
33 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
34. 34 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
35. 35 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
36. 36 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
37. 37 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
38. 38 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
40. Q&A
40 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
41. 41 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
42. 42 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.