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

PPT
Introduction of Oracle
PPTX
An Introduction To Oracle Database
PPT
Introduction to Oracle
PDF
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
PPTX
Introduction to Oracle Database
PPT
Oracle archi ppt
PPTX
Oracle & sql server comparison 2
Introduction of Oracle
An Introduction To Oracle Database
Introduction to Oracle
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Introduction to Oracle Database
Oracle archi ppt
Oracle & sql server comparison 2

What's hot (20)

PPTX
Oracle Database | Computer Science
PPTX
Oracle's history
PDF
Oracle advanced queuing
PPTX
Generating Code with Oracle SQL Developer Data Modeler
DOCX
Obia with odi
PPS
Overview of oracle database
PDF
All Oracle-dba-interview-questions
PDF
Oracle developer interview questions(entry level)
PDF
MOUG17: SQLT Utility for Tuning - Practical Examples
DOC
Oracle vs. MS SQL Server
PPTX
Introduction to oracle database (basic concepts)
PPTX
Getting to know oracle database objects iot, mviews, clusters and more…
PDF
Sql interview questions and answers
PPT
Introduction to ado
PPT
Less07 schema
PPTX
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
PPTX
Oracle Office Hours - Exposing REST services with APEX and ORDS
PDF
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
PDF
MySQL 8.0 - Security Features
Oracle Database | Computer Science
Oracle's history
Oracle advanced queuing
Generating Code with Oracle SQL Developer Data Modeler
Obia with odi
Overview of oracle database
All Oracle-dba-interview-questions
Oracle developer interview questions(entry level)
MOUG17: SQLT Utility for Tuning - Practical Examples
Oracle vs. MS SQL Server
Introduction to oracle database (basic concepts)
Getting to know oracle database objects iot, mviews, clusters and more…
Sql interview questions and answers
Introduction to ado
Less07 schema
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle Office Hours - Exposing REST services with APEX and ORDS
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
MySQL 8.0 - Security Features
Ad

Viewers also liked (6)

PDF
Dell PowerEdge M420 and Oracle Database 11g R2: A Reference Architecture
PDF
3. (mjk) otd maa
PPTX
Python and EM CLI: The Enterprise Management Super Tools
PDF
Time for Change: Migrate your Non-RAC Database to RAC
PPTX
Convert single instance to RAC
PPTX
Oracle golden gate 12c New Features
Dell PowerEdge M420 and Oracle Database 11g R2: A Reference Architecture
3. (mjk) otd maa
Python and EM CLI: The Enterprise Management Super Tools
Time for Change: Migrate your Non-RAC Database to RAC
Convert single instance to RAC
Oracle golden gate 12c New Features
Ad

Similar to The Power of Relationships in Your Big Data (20)

PDF
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
PDF
Solution Use Case Demo: The Power of Relationships in Your Big Data
PDF
Oracle NoSQL Database release 3.0 overview
PDF
Con8862 no sql, json and time series data
PDF
NoSQL, Growing up at Oracle
PDF
NoSQL Databases for Enterprises - NoSQL Now Conference 2013
PPTX
A practical introduction to Oracle NoSQL Database - OOW2014
PPTX
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
PDF
Ohio Linux Fest -- MySQL's NoSQL
PPTX
TDC2016SP - Trilha NoSQL
PDF
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
PPTX
Manage online profiles with oracle no sql database tht10972 - v1.1
PDF
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
PDF
FOSDEM 2015 - NoSQL and SQL the best of both worlds
PDF
Beyond Relational Databases
PDF
NoSQL and MySQL
PDF
Oracle no sql database bigdata
PDF
MySQL Cluster as Transactional NoSQL (KVS)
PDF
NoSQL no MySQL 5.7
PDF
Oracle's Take On NoSQL
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Solution Use Case Demo: The Power of Relationships in Your Big Data
Oracle NoSQL Database release 3.0 overview
Con8862 no sql, json and time series data
NoSQL, Growing up at Oracle
NoSQL Databases for Enterprises - NoSQL Now Conference 2013
A practical introduction to Oracle NoSQL Database - OOW2014
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
Ohio Linux Fest -- MySQL's NoSQL
TDC2016SP - Trilha NoSQL
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
Manage online profiles with oracle no sql database tht10972 - v1.1
NoSQL & SQL - Best of both worlds - BarCamp Berkshire 2013
FOSDEM 2015 - NoSQL and SQL the best of both worlds
Beyond Relational Databases
NoSQL and MySQL
Oracle no sql database bigdata
MySQL Cluster as Transactional NoSQL (KVS)
NoSQL no MySQL 5.7
Oracle's Take On NoSQL

More from Paulo Fagundes (10)

PDF
Oracle exalytics deployment for high availability
DOCX
Backup and Restore of database on 2-Node RAC
PDF
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
PDF
PPTX
MongoDB for the SQL Server
ODP
MongoDB - Javascript for your Data
PPTX
Capacityplanning
PDF
The Little MongoDB Book - Karl Seguin
PPTX
PDF
Oracle NoSQL Database Compared to Cassandra and HBase
Oracle exalytics deployment for high availability
Backup and Restore of database on 2-Node RAC
Zero Downtime for Oracle E-Business Suite on Oracle Exalogic
MongoDB for the SQL Server
MongoDB - Javascript for your Data
Capacityplanning
The Little MongoDB Book - Karl Seguin
Oracle NoSQL Database Compared to Cassandra and HBase

Recently uploaded (20)

PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
modul_python (1).pptx for professional and student
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PDF
Introduction to Data Science and Data Analysis
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPTX
A Complete Guide to Streamlining Business Processes
PPTX
Leprosy and NLEP programme community medicine
PDF
Oracle OFSAA_ The Complete Guide to Transforming Financial Risk Management an...
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
SAP 2 completion done . PRESENTATION.pptx
PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPT
Predictive modeling basics in data cleaning process
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Data_Analytics_and_PowerBI_Presentation.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
modul_python (1).pptx for professional and student
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
Introduction to Data Science and Data Analysis
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Galatica Smart Energy Infrastructure Startup Pitch Deck
STERILIZATION AND DISINFECTION-1.ppthhhbx
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
A Complete Guide to Streamlining Business Processes
Leprosy and NLEP programme community medicine
Oracle OFSAA_ The Complete Guide to Transforming Financial Risk Management an...
IBA_Chapter_11_Slides_Final_Accessible.pptx
SAP 2 completion done . PRESENTATION.pptx
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Predictive modeling basics in data cleaning process
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb

The Power of Relationships in Your Big Data

  • 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