SlideShare a Scribd company logo
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
Oracle NoSQL Database
Release 3.0 Summary
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3
Agenda
 Oracle NoSQL DB Overview
 Oracle NoSQL DB Release 3.0
 Best Practices
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
Big Data Architecture
Data WarehouseData Reservoir +
Oracle Big Data
Connectors
Oracle Data
Integrator
Oracle
Advanced
Analytics
Oracle
Database
Oracle Spatial
& Graph
Oracle NoSQL
Database
Cloudera Hadoop
Oracle R Distribution
Oracle Industry
Models
Oracle
GoldenGate
Oracle Data
Integrator
Oracle Event
Processing
Oracle Event
Processing
Apache
Flume
Oracle
GoldenGate
Oracle Advanced
Analytics
Oracle Database
Oracle Spatial
& Graph
Oracle Industry
Models
Oracle Data
Integrator
Oracle NoSQL
Database
Where does NoSQL fit?
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
 Simple Data Model
 Distributed, Replicated data
 Transparent load balancing
 Elastic configuration
 Simple administration
 Enterprise-ready Integration
 Commercial grade software and
support
Characteristics
Oracle NoSQL Database
Scalable, Highly Available, Key-Value Database
Application
Storage Nodes
Datacenter B
Storage Nodes
Datacenter A
Application
NoSQL DB Driver
Application
NoSQL DB Driver
Application
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
Features
Release
3.0
Oracle NoSQL Database
Scalable, Highly Available, Key-Value Database
Application
Storage Nodes
Datacenter B
Storage Nodes
Datacenter A
Application
NoSQL DB Driver
Application
NoSQL DB Driver
Application
 Key-value, JSON & RDF data
 Large Object API
 BASE & ACID Transactions
 Data Center Support
 Online Rolling Upgrade
 Online Cluster Management
 Table data model
 Secondary Indices
 Secondary Zones (Data Centers)
 Security
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
Scalability Architecture – Applications View
 Elastic Shards
(split, add, contract)
Store
Shard
M
Shard
M
R
Shard
M
R R
Application
NoSQL Driver
R R
R
 Writes to elected
node
 Reads from any
node in system
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
Oracle NoSQL Database
Predictability
Reliability & Support
Integration
When you need:
Web-Scale Transactions, Personalization
Sensor Data Management
Real-Time Event Processing
For Applications that do:
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
Agenda
 Oracle NoSQL DB Overview
 Oracle NoSQL DB Release 3.0
 Best Practices
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
Oracle NoSQL DB Release 3.0
Enterprise Ready
Ease of Adoption
Security
Business Continuity
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11
Oracle NoSQL DB Release 3.0
 Table data model support
– Simplifies data modeling & leverages existing “table” expertise
 Secondary indexing
– Allow indexing on any component of the record
– Huge performance benefit due to parallel, indexed data access
 Data centers
– Metro-area zones for disaster recovery and business continuity
– Secondary zones for read-only workloads
 Security
– Authentication and network-level encryption
Feature Summary
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12
Oracle NoSQL DB Release 3.0
 Lower barrier to adoption, shorter time to market
 Simplified application modeling
– Uses familiar table concepts
– Introduces strongly typed fields
– Easy to/from JSON with full type support and AVRO serialization
– Allows secondary indexing of non-key data
 Sets foundation for SQL query access from Oracle DB
 Previous Key/Value and JSON schema APIs still supported
Table Data Model Benefits
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13
Oracle NoSQL DB Release 3.0
 Layered on top of distributed key-value model
 Compatible with most Release 2.0 JSON schemas
 Defines JSON schema automatically
 Supports table evolution
 New access API’s with table terminology
 Retains flexible client access
 Administrative CLI for schema creation and evolution
Table Data Model Characteristics
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14
Oracle NoSQL DB Release 3.0
 Distributed Table records or “JSON Documents” – you choose
 Records grouped locally (by shard-key)
 ACID & BASE transactions
 Automatic mapping of Major/Minor key structure
 Enables future External Table improvements
 Rich queries
 Predicate push down
 SQL query language
Table Data Model Advantages
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15
Oracle NoSQL DB Release 3.0
table create -name Users
add-field -name userid -type integer
add-field -name lname -type string
add-field -name fname -type string
add-field -name email -type string
primary-key -field userid
shard-key -field userid
exit
plan add-table -name Users -wait
Simple Table Example
Can be specified as a JSON string
Must be proper subset of primary-key
By default shard-key == primary-key
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16
Oracle NoSQL DB Release 3.0
Simple Table Example
userId lname fname email
Table
Shard Key
Users
ValuePrimary Key
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17
Oracle NoSQL DB Release 3.0
table create -name Users
add-field -name userid -type integer
add-field -name lname -type string
add-field -name fname -type string
add-field -name email -type string
primary-key -field userid
exit
plan add-table -name Users –wait
table create -name Users.Folders
add-field -name foldername -type string
add-field -name msgcount -type integer
add-field -name favorite –type boolean
-default 'F'
primary-key -field foldername
exit
plan add-table -name Users.Folders -wait
Nested Table Example
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18
Oracle NoSQL DB Release 3.0
Table Data Model – Nested Tables
UserId lname fname email
Table
Users
Users.
Folders
[Value]Primary Key
…
[Value]
UserId Foldername msgcount favorite
Primary KeyShard Key
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.19
Oracle NoSQL DB Release 3.0
 Broader low latency use case support
– Primary and Secondary Indexes
– Indexes automatically maintained
– Provides sorted results
 Low resource cost with high performance
– Low cardinality matching, guaranteed consistent
– Shard-local indexing, low latency record access
– B-trees locally ordered, scanned in parallel, merged result set
– Improved index cache eviction
Secondary Index support
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20
 Get() API specifies index
 Equality or range searches
 Low order multi-value indexes
– Composite index on values
– Parallel Index Scan
– Ordered results
– Indexable single element arrays
Oracle NoSQL DB Release 3.0
Secondary Indexes
Index on (lname, fname)
UserId fname lname email
Table
Users
 Equality search on lname + fname
 Equality search on lname and range on fname
 Range or Equality search on lname by itself
 Can’t search on just fname
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21
Oracle NoSQL DB Release 3.0
plan add-index –table Users -name Users_idx1 –field lname –field fname
1. Defines index on all shards
2. In parallel (per shard) starts table scan via primary key, populates
index
3. Updates get populated into index automatically
4. When all shards are complete, index is available for access
Simple Example
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22
Secondary Index Storage
Pkey A Value A
F1 F2 F3 V1 V2 V3
Pkey B Value B
F1 F2 F3 V1 V2 V3
Skey A Pkey A
V2 V3 F1 F2 F3
Skey B Pkey B
V2 V3 F1 F2 F3
Skey A Pkey A
V1 F1 F2 F3
Skey B Pkey B
V1 F1 F2 F3
Primary Records
Secondary Indexes
Shard 1
Writes
Reads
Shard 2
Shard N
Index on (V1)
Index on (V2, V3)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23
Oracle NoSQL DB Release 3.0
 Metro-Local Quorum
– Low latency writes, HA
 2nd’ary Read-Only Zones
– Analytic workloads
– Report generation
– Asynchronous replication
 New Read Consistency: No Master
 Topology Aware Client Driver
 Provides business continuity and distributed workload management
Zones
DC1 DC2 DC3
Metropolitan Zones
Reports
Batch Analytics
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24
Oracle NoSQL DB Release 3.0
 Protected Access to Data
– Enforcement is configurable
 Authentication
– OS independent, password based user access
– Internal cluster components self authenticate (HA password distribution)
– Oracle Wallet integrated
– Admin utility to generate self-signed certificates
 Wire level data encryption
– All client-server, server-server channels SSL encrypted
Security Overview
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.25
Oracle NoSQL DB Release 3.0
 Port Restrictions for client and intra server communications
 SSL Certificates stored, protected and obfuscated at the server
 Client configured login-file or truststore for SSL credential management
 Authenticated client sessions have admin configurable time-out
 Auth Exceptions: AuthRequired, AuthFailed, AccessDenied
 Supports 2 roles: Admin & User
 System Admin manages security via Admin CLI
Security Features
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.26
Agenda
 Oracle NoSQL DB Overview
 Oracle NoSQL DB Release 3.0
 Best Practices
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.27
Choosing a Data Model
 Tables
– Highest level abstraction, simple to model, familiar to developers
– System managed Secondary indices, Table evolution support
– Future: Security per table, Query Language
 JSON
– Medium level abstraction, need to model keys (strings), appealing to JSON-centric applications
– Application managed Index Views, Schema evolution support
– Future: Limited security
 Raw Key-Value
– Lowest level abstraction, need to model keys (strings), application serialized data, maximum
flexibility
– Application managed Index Views, record evolution and security – roll your own
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.28
Metrics and Best Practices
 No overhead, performs same as JSON schemas with AVRO
serialization
 Use nested tables to encapsulate record types in a hierarchy
 Use Arrays and Arrays of Records to store self contained sets
 Record types can’t be indexed -> flatten into simple types if indexing is
required
Tables
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.29
Metrics and Best Practices
 Same rationale as an RDBMS
– Reduces time for lookups/range scans
– Increases overhead for updates
– Provides sorted results
– Add indexes when required
 No optimizer -- application picks index to be used
 Remember to calculate cache size requirement
 New CLI option for get: -reportsize tells you the size of a key. Use output with
DBCacheSize
Indexes
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.30
Metrics and Best Practices
 Data Centers may add write latency, depending on durability policy and
inter-data center latency
 Options for tuning:
– Consider reducing durability policy ACK requirement if latency is high
– Consider adding processing threads to use additional CPU
1. Allow Client Driver to perform load balancing
2. Use Secondary Zones for read-only, batch, analytical workloads
3. Use No-Master read consistency in the application
Data Centers/Zones
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.31
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.32

More Related Content

PPTX
A practical introduction to Oracle NoSQL Database - OOW2014
PDF
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
PDF
Application development with Oracle NoSQL Database 3.0
PDF
Database Cloud Services Office Hours : Oracle sharding hyperscale globally d...
PDF
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
PPTX
#dbhouseparty - Should I be building Microservices?
PDF
Database@Home : Data Driven Apps : Core-dev or Low Code UI
PDF
APEX – jak vytvořit jednoduše aplikaci
A practical introduction to Oracle NoSQL Database - OOW2014
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Application development with Oracle NoSQL Database 3.0
Database Cloud Services Office Hours : Oracle sharding hyperscale globally d...
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
#dbhouseparty - Should I be building Microservices?
Database@Home : Data Driven Apps : Core-dev or Low Code UI
APEX – jak vytvořit jednoduše aplikaci

What's hot (20)

PDF
Database@Home : The Future is Data Driven
PDF
Developer day v2
PDF
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
PDF
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
PPTX
DBCS Office Hours - Modernization through Migration
PPTX
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
PDF
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
PDF
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
PPTX
Biwa summit 2015 oaa oracle data miner hands on lab
PDF
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
PDF
Oracle IaaS Overview - AIOUG Hyderabad Chapter
PDF
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
PPTX
What to Expect From Oracle database 19c
PPTX
Understanding Oracle GoldenGate 12c
PDF
Avoid the Oracle SE2 Trap with EnterpriseDB & Palisade Compliance
 
PPTX
Oracle Database in-Memory Overivew
PDF
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
PDF
Oracle RAC - Roadmap for New Features
PPTX
The Oracle Autonomous Database
PDF
Database@Home - Maps and Spatial Analyses: How to use them
Database@Home : The Future is Data Driven
Developer day v2
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
#dbhouseparty - Spatial Technologies - @Home and Everywhere Else on the Map
DBCS Office Hours - Modernization through Migration
#dbhouseparty - Using Oracle’s Converged “AI” Database to Pick a Good but Ine...
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
Biwa summit 2015 oaa oracle data miner hands on lab
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Oracle IaaS Overview - AIOUG Hyderabad Chapter
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
What to Expect From Oracle database 19c
Understanding Oracle GoldenGate 12c
Avoid the Oracle SE2 Trap with EnterpriseDB & Palisade Compliance
 
Oracle Database in-Memory Overivew
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC - Roadmap for New Features
The Oracle Autonomous Database
Database@Home - Maps and Spatial Analyses: How to use them
Ad

Viewers also liked (20)

PPTX
Oracle's BigData solutions
KEY
NoSQL Databases: Why, what and when
PPTX
Oracle no sql release 3 4 overview
PPTX
2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
PPTX
VLDB Administration Strategies
PPT
NoSql Databases
PDF
Nosql databases for the .net developer
PPTX
Oracle Database 12c - Features for Big Data
PPT
NOSQL Database: Apache Cassandra
PPTX
Big Data and NoSQL for Database and BI Pros
PPTX
BIG DATA: Apache Hadoop
PPTX
Nosql databases
PPTX
An Intro to NoSQL Databases
PDF
Using Spring with NoSQL databases (SpringOne China 2012)
PDF
NoSQL-Database-Concepts
KEY
NoSQL databases and managing big data
PDF
Big data-analytics-ebook
PPTX
BIG DATA and USE CASES
PDF
Big Data: Myths and Realities
PPTX
How does Microsoft solve Big Data?
Oracle's BigData solutions
NoSQL Databases: Why, what and when
Oracle no sql release 3 4 overview
2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
VLDB Administration Strategies
NoSql Databases
Nosql databases for the .net developer
Oracle Database 12c - Features for Big Data
NOSQL Database: Apache Cassandra
Big Data and NoSQL for Database and BI Pros
BIG DATA: Apache Hadoop
Nosql databases
An Intro to NoSQL Databases
Using Spring with NoSQL databases (SpringOne China 2012)
NoSQL-Database-Concepts
NoSQL databases and managing big data
Big data-analytics-ebook
BIG DATA and USE CASES
Big Data: Myths and Realities
How does Microsoft solve Big Data?
Ad

Similar to Oracle NoSQL Database release 3.0 overview (20)

PDF
Solution Use Case Demo: The Power of Relationships in Your Big Data
PDF
Oracle NoSQL Database release 3.0 overview
PPTX
MySQL Quick Dive
ODP
The Adventure: BlackRay as a Storage Engine
PPTX
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
PPTX
Introduction to Oracle Database
PPTX
PHP Oracle
PPTX
1 extreme performance - part i
PDF
NonStop SQL/MX DBS Explained
PPTX
Whats new in Oracle Database 12c release 12.1.0.2
PPT
Virtuoso Universal Server Overview
PDF
Maruthi_YH_resume
PDF
Native tables in NonStop SQL database
PPT
Modern Database Development Oow2008 Lucas Jellema
ODP
Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services
PPTX
Azure Data platform
DOCX
Oracle DBA Trainer
PPTX
ORDBMS Comparative Report
PDF
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
PDF
DriverPack Solution Download Full ISO free
Solution Use Case Demo: The Power of Relationships in Your Big Data
Oracle NoSQL Database release 3.0 overview
MySQL Quick Dive
The Adventure: BlackRay as a Storage Engine
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Introduction to Oracle Database
PHP Oracle
1 extreme performance - part i
NonStop SQL/MX DBS Explained
Whats new in Oracle Database 12c release 12.1.0.2
Virtuoso Universal Server Overview
Maruthi_YH_resume
Native tables in NonStop SQL database
Modern Database Development Oow2008 Lucas Jellema
Creating Flexible Data Services For Enterprise Soa With Wso2 Data Services
Azure Data platform
Oracle DBA Trainer
ORDBMS Comparative Report
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
DriverPack Solution Download Full ISO free

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
sap open course for s4hana steps from ECC to s4
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Oracle NoSQL Database release 3.0 overview

  • 1. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
  • 3. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 Agenda  Oracle NoSQL DB Overview  Oracle NoSQL DB Release 3.0  Best Practices
  • 4. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4 Big Data Architecture Data WarehouseData Reservoir + Oracle Big Data Connectors Oracle Data Integrator Oracle Advanced Analytics Oracle Database Oracle Spatial & Graph Oracle NoSQL Database Cloudera Hadoop Oracle R Distribution Oracle Industry Models Oracle GoldenGate Oracle Data Integrator Oracle Event Processing Oracle Event Processing Apache Flume Oracle GoldenGate Oracle Advanced Analytics Oracle Database Oracle Spatial & Graph Oracle Industry Models Oracle Data Integrator Oracle NoSQL Database Where does NoSQL fit?
  • 5. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5  Simple Data Model  Distributed, Replicated data  Transparent load balancing  Elastic configuration  Simple administration  Enterprise-ready Integration  Commercial grade software and support Characteristics Oracle NoSQL Database Scalable, Highly Available, Key-Value Database Application Storage Nodes Datacenter B Storage Nodes Datacenter A Application NoSQL DB Driver Application NoSQL DB Driver Application
  • 6. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6 Features Release 3.0 Oracle NoSQL Database Scalable, Highly Available, Key-Value Database Application Storage Nodes Datacenter B Storage Nodes Datacenter A Application NoSQL DB Driver Application NoSQL DB Driver Application  Key-value, JSON & RDF data  Large Object API  BASE & ACID Transactions  Data Center Support  Online Rolling Upgrade  Online Cluster Management  Table data model  Secondary Indices  Secondary Zones (Data Centers)  Security
  • 7. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7 Scalability Architecture – Applications View  Elastic Shards (split, add, contract) Store Shard M Shard M R Shard M R R Application NoSQL Driver R R R  Writes to elected node  Reads from any node in system
  • 8. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8 Oracle NoSQL Database Predictability Reliability & Support Integration When you need: Web-Scale Transactions, Personalization Sensor Data Management Real-Time Event Processing For Applications that do:
  • 9. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9 Agenda  Oracle NoSQL DB Overview  Oracle NoSQL DB Release 3.0  Best Practices
  • 10. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10 Oracle NoSQL DB Release 3.0 Enterprise Ready Ease of Adoption Security Business Continuity
  • 11. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11 Oracle NoSQL DB Release 3.0  Table data model support – Simplifies data modeling & leverages existing “table” expertise  Secondary indexing – Allow indexing on any component of the record – Huge performance benefit due to parallel, indexed data access  Data centers – Metro-area zones for disaster recovery and business continuity – Secondary zones for read-only workloads  Security – Authentication and network-level encryption Feature Summary
  • 12. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12 Oracle NoSQL DB Release 3.0  Lower barrier to adoption, shorter time to market  Simplified application modeling – Uses familiar table concepts – Introduces strongly typed fields – Easy to/from JSON with full type support and AVRO serialization – Allows secondary indexing of non-key data  Sets foundation for SQL query access from Oracle DB  Previous Key/Value and JSON schema APIs still supported Table Data Model Benefits
  • 13. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13 Oracle NoSQL DB Release 3.0  Layered on top of distributed key-value model  Compatible with most Release 2.0 JSON schemas  Defines JSON schema automatically  Supports table evolution  New access API’s with table terminology  Retains flexible client access  Administrative CLI for schema creation and evolution Table Data Model Characteristics
  • 14. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 Oracle NoSQL DB Release 3.0  Distributed Table records or “JSON Documents” – you choose  Records grouped locally (by shard-key)  ACID & BASE transactions  Automatic mapping of Major/Minor key structure  Enables future External Table improvements  Rich queries  Predicate push down  SQL query language Table Data Model Advantages
  • 15. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15 Oracle NoSQL DB Release 3.0 table create -name Users add-field -name userid -type integer add-field -name lname -type string add-field -name fname -type string add-field -name email -type string primary-key -field userid shard-key -field userid exit plan add-table -name Users -wait Simple Table Example Can be specified as a JSON string Must be proper subset of primary-key By default shard-key == primary-key
  • 16. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16 Oracle NoSQL DB Release 3.0 Simple Table Example userId lname fname email Table Shard Key Users ValuePrimary Key
  • 17. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17 Oracle NoSQL DB Release 3.0 table create -name Users add-field -name userid -type integer add-field -name lname -type string add-field -name fname -type string add-field -name email -type string primary-key -field userid exit plan add-table -name Users –wait table create -name Users.Folders add-field -name foldername -type string add-field -name msgcount -type integer add-field -name favorite –type boolean -default 'F' primary-key -field foldername exit plan add-table -name Users.Folders -wait Nested Table Example
  • 18. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18 Oracle NoSQL DB Release 3.0 Table Data Model – Nested Tables UserId lname fname email Table Users Users. Folders [Value]Primary Key … [Value] UserId Foldername msgcount favorite Primary KeyShard Key
  • 19. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.19 Oracle NoSQL DB Release 3.0  Broader low latency use case support – Primary and Secondary Indexes – Indexes automatically maintained – Provides sorted results  Low resource cost with high performance – Low cardinality matching, guaranteed consistent – Shard-local indexing, low latency record access – B-trees locally ordered, scanned in parallel, merged result set – Improved index cache eviction Secondary Index support
  • 20. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20  Get() API specifies index  Equality or range searches  Low order multi-value indexes – Composite index on values – Parallel Index Scan – Ordered results – Indexable single element arrays Oracle NoSQL DB Release 3.0 Secondary Indexes Index on (lname, fname) UserId fname lname email Table Users  Equality search on lname + fname  Equality search on lname and range on fname  Range or Equality search on lname by itself  Can’t search on just fname
  • 21. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21 Oracle NoSQL DB Release 3.0 plan add-index –table Users -name Users_idx1 –field lname –field fname 1. Defines index on all shards 2. In parallel (per shard) starts table scan via primary key, populates index 3. Updates get populated into index automatically 4. When all shards are complete, index is available for access Simple Example
  • 22. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22 Secondary Index Storage Pkey A Value A F1 F2 F3 V1 V2 V3 Pkey B Value B F1 F2 F3 V1 V2 V3 Skey A Pkey A V2 V3 F1 F2 F3 Skey B Pkey B V2 V3 F1 F2 F3 Skey A Pkey A V1 F1 F2 F3 Skey B Pkey B V1 F1 F2 F3 Primary Records Secondary Indexes Shard 1 Writes Reads Shard 2 Shard N Index on (V1) Index on (V2, V3)
  • 23. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23 Oracle NoSQL DB Release 3.0  Metro-Local Quorum – Low latency writes, HA  2nd’ary Read-Only Zones – Analytic workloads – Report generation – Asynchronous replication  New Read Consistency: No Master  Topology Aware Client Driver  Provides business continuity and distributed workload management Zones DC1 DC2 DC3 Metropolitan Zones Reports Batch Analytics
  • 24. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24 Oracle NoSQL DB Release 3.0  Protected Access to Data – Enforcement is configurable  Authentication – OS independent, password based user access – Internal cluster components self authenticate (HA password distribution) – Oracle Wallet integrated – Admin utility to generate self-signed certificates  Wire level data encryption – All client-server, server-server channels SSL encrypted Security Overview
  • 25. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.25 Oracle NoSQL DB Release 3.0  Port Restrictions for client and intra server communications  SSL Certificates stored, protected and obfuscated at the server  Client configured login-file or truststore for SSL credential management  Authenticated client sessions have admin configurable time-out  Auth Exceptions: AuthRequired, AuthFailed, AccessDenied  Supports 2 roles: Admin & User  System Admin manages security via Admin CLI Security Features
  • 26. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.26 Agenda  Oracle NoSQL DB Overview  Oracle NoSQL DB Release 3.0  Best Practices
  • 27. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.27 Choosing a Data Model  Tables – Highest level abstraction, simple to model, familiar to developers – System managed Secondary indices, Table evolution support – Future: Security per table, Query Language  JSON – Medium level abstraction, need to model keys (strings), appealing to JSON-centric applications – Application managed Index Views, Schema evolution support – Future: Limited security  Raw Key-Value – Lowest level abstraction, need to model keys (strings), application serialized data, maximum flexibility – Application managed Index Views, record evolution and security – roll your own
  • 28. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.28 Metrics and Best Practices  No overhead, performs same as JSON schemas with AVRO serialization  Use nested tables to encapsulate record types in a hierarchy  Use Arrays and Arrays of Records to store self contained sets  Record types can’t be indexed -> flatten into simple types if indexing is required Tables
  • 29. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.29 Metrics and Best Practices  Same rationale as an RDBMS – Reduces time for lookups/range scans – Increases overhead for updates – Provides sorted results – Add indexes when required  No optimizer -- application picks index to be used  Remember to calculate cache size requirement  New CLI option for get: -reportsize tells you the size of a key. Use output with DBCacheSize Indexes
  • 30. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.30 Metrics and Best Practices  Data Centers may add write latency, depending on durability policy and inter-data center latency  Options for tuning: – Consider reducing durability policy ACK requirement if latency is high – Consider adding processing threads to use additional CPU 1. Allow Client Driver to perform load balancing 2. Use Secondary Zones for read-only, batch, analytical workloads 3. Use No-Master read consistency in the application Data Centers/Zones
  • 31. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.31
  • 32. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.32