SlideShare a Scribd company logo
7
Most read
8
Most read
13
Most read
Migrating Oracle Databases To Cassandra
BY UMAIR MANSOOB
Why Cassandra
 Lower Cost of ownership makes it #1 choice for Big Data OLTP Applications.
 Unlike Oracle, Cassandra can store structured, semi-structured, and unstructured data.
 Cassandra is the right choice when you need availability and performance at scale, normally costs
80-90+% less than just Oracle’s enterprise edition alone.
 Oracle is not architected to tackle the new wave of big data, online applications developed today
 Provide continuous availability with redundancy in both data and function across one or more
locations/ Data Centers vs. simple failover for the Oracle database.
 Can handle high velocity data coming in via sensors, mobile devices, and the like, and have extreme
right speed and low latency query speed.
 Support all types of workload without needing to ETL data in different data model.
 Built-in data compressed up to 80% without performance overhead.
Migrating Oracle Databases To Cassandra Umair Mansoob
Who’s Using Cassandra
Migrating Oracle Databases To Cassandra Umair Mansoob
Comparing Cost Oracle vs Cassandra
Above cost combine with lack of support for unstructured Data can be no brainer for many
companies
Migrating Oracle Databases To Cassandra Umair Mansoob
Comparing with Other NoSQL Databases
Migrating Oracle Databases To Cassandra Umair Mansoob
Cassandra Architecture
Migrating Oracle Databases To Cassandra Umair Mansoob
Oracle vs Cassandra
Name Oracle Cassandra
Database Schema’s Yes Schema Free
Secondary Indexes Yes Limited
SQL Yes CQL ( DDL, DML)
Db Scripting Yes ( PL/SQL) No
Partitioning Methods Horizontal Partitioning Sharding
Consistency Immediate Eventual / Immediate
Concurrency Yes Yes
Durability Yes Yes
Multi-DataCenter Capabilities No Yes
Data Consistency Model CAP Theorem ACID
Data Compression Various Types of compression Built-in
Data modeling 3rd Normal Form 1st or 2nd Normal Form
Migrating Oracle Databases To Cassandra Umair Mansoob
When Cassandra Is not Right
 ACID-compliant transactions, with nested transactions, commits/rollbacks, and full referential
integrity required
 If you cannot avoid join operations and you cannot code join using programs.
 If you application only has structured data , No even semi unstructured data is needed.
 When application load is in the range of low – medium , where MYSQL might be a better
choice.
 No requirement for a single database/cluster to span many different data centers.
 High availability requirements can be accomplished via a synchronous replication architecture
that is primarily maintained at a single data center.
Migrating Oracle Databases To Cassandra Umair Mansoob
CAP vs ACID consistency
 CAP stands for "consistency, availability, and partition tolerance.
 The CAP theorem, states that, at most, only two of these properties can obtain in any shared-
data system
 ACID (atomicity, consistency, isolation, durability) properties of a traditional relational
database management system (RDBMS Oracle)
 ACID consistency is all about database rules. If a schema declares that a value must be unique,
then a consistent system will enforce uniqueness.
CAP consistency promises that every replica of the same logical value, spread across nodes in a
distributed system, has the same exact value at all times.
Migrating Oracle Databases To Cassandra Umair Mansoob
Achieving Data Consistency
 Data written to a database cluster is first written to a commit log in the same fashion that
nearly every popular RDBMS does.
 Cassandra offers tunable data consistency. This means a developer or administrator can
choose how strong they wish consistency across nodes to be.
 The strongest form of consistency is to mandate that any data modifications be made to all
nodes.
 Cassandra provides consistency in the CAP sense, in that all readers will see the same values.
 Cassandra supports different type of consistency models (Strict consistency, Causal
consistency, Eventual consistency).
Migrating Oracle Databases To Cassandra Umair Mansoob
Data Modeling Best Practices
 Don’t optimize your data model to minimize the Writes, they are cheap in Cassandra.
 Don’t optimize your data model to minimize Data duplication, duplication is good for efficient
reads.
 Focus on spread data evenly around the cluster by picking good primary key for table.
 Focus on minimizing number of partition reads, ideally 1 partition per read because each
partition might reside in different nodes.
 The way to minimize partition reads is to model your data to fit your queries.
 In General you will use roughly one table per query pattern. If you need to support multiple
query patterns, you usually need more than one table.
 Remember, data duplication is okay. Many of your tables may repeat the same data.
Migrating Oracle Databases To Cassandra Umair Mansoob
Migrating Data to Cassandra
 Using Cassandra’s High-Speed Loader : Data from Oracle can be extracted into flat files that are
delimited in some way and then loaded into Cassandra tables via the CQL COPY command.
 Using Sqoop : DataStax Enterprise supports Sqoop, which is a utility designed to transfer data
directly from an RDBMS like Oracle into Cassandra
 Pentaho’s Data Integration product call Kettle with a free community edition.
 Use Spark to Load Oracle Data into Cassandra.
 ETL tools - there are a spread of ETL equipment (e.g. Informatica) that aid Cassandra as both a
supply and goal facts platform.
Migrating Oracle Databases To Cassandra Umair Mansoob
What parts of an Oracle database cannot
be migrated Cassandra
 Stored procedures
 Views
 Triggers
 Functions
 Security privileges
 Referential integrity constraints
 Rules
 Partitioned table definitions
Migrating Oracle Databases To Cassandra Umair Mansoob
Thank You
Umair Mansoob
773-297-2061
umairmansoob@gmail.com
http://blog.umairmansoob.com/
Migrating Oracle Databases To Cassandra

More Related Content

PPT
Design principles of scalable, distributed systems
PPTX
Top 10 cloud service providers
PDF
Cloud Computing Using OpenStack
PPTX
Cloud sim
PPTX
Dockers and containers basics
PDF
Cassandra Database
PPT
presentation on Docker
PPTX
Cluster computing
Design principles of scalable, distributed systems
Top 10 cloud service providers
Cloud Computing Using OpenStack
Cloud sim
Dockers and containers basics
Cassandra Database
presentation on Docker
Cluster computing

What's hot (20)

PDF
Introduction to Oracle Cloud Infrastructure Services
PPTX
AWS PPT.pptx
PPTX
Spark rdd vs data frame vs dataset
PPTX
cloud computing
PPTX
PDF
Migration Best Practices: From RDBMS to Cassandra without a Hitch
PDF
Cloud Computing - An Introduction
PDF
A Hands-On Introduction To Docker Containers.pdf
PDF
Aws Architecture Fundamentals
PPTX
Cloud computing hybrid architecture
PPTX
Cloud Computing Fundamentals
PDF
Cloud Computing Architecture
PPTX
cluster computing
PDF
Introduction to Cloud Computing
PPTX
Introduction to GCP (Google Cloud Platform)
PDF
Introduction to Vacuum Freezing and XID
PDF
Cloud computing
PDF
A Tour of Google Cloud Platform
PDF
Terraform -- Infrastructure as Code
PPT
Cloud management (IBM)
Introduction to Oracle Cloud Infrastructure Services
AWS PPT.pptx
Spark rdd vs data frame vs dataset
cloud computing
Migration Best Practices: From RDBMS to Cassandra without a Hitch
Cloud Computing - An Introduction
A Hands-On Introduction To Docker Containers.pdf
Aws Architecture Fundamentals
Cloud computing hybrid architecture
Cloud Computing Fundamentals
Cloud Computing Architecture
cluster computing
Introduction to Cloud Computing
Introduction to GCP (Google Cloud Platform)
Introduction to Vacuum Freezing and XID
Cloud computing
A Tour of Google Cloud Platform
Terraform -- Infrastructure as Code
Cloud management (IBM)
Ad

Similar to Migrating Oracle database to Cassandra (20)

PPTX
Migrating from a Relational Database to Cassandra: Why, Where, When and How
PDF
Moving from a Relational Database to Cassandra: Why, Where, When, and How
PPTX
Does it Mix? Cassandra and RDBMS working together!
PDF
data-modeling-paper
PPTX
Cassandra Learning
PPTX
Cassandra for mission critical data
PPTX
Firebird to Cassandra Migration – Ask On Data (1).pptx
ODP
Cassandra Data Modelling
PDF
Firebird to Cassandra Migration – Ask On Data (1).pdf
PDF
Scylla Summit 2017: Migrating to Scylla From Cassandra and Others With No Dow...
DOCX
Firebird to Cassandra Migration – Ask On Data.docx
PPTX
Learning Cassandra NoSQL
PPTX
Simple Way for MySQL to NoSQL
PDF
Helsinki Cassandra Meetup #2: From Postgres to Cassandra
DOCX
Cassandra data modelling best practices
PDF
Cassandra NoSQL Tutorial
PPTX
Firebird to Cassandra Migration - Ask On Data
DOCX
Firebird to Cassandra Migration - Ask On Data
PDF
Firebird to Cassandra Migration - Ask On Data
PDF
Slides: Relational to NoSQL Migration
Migrating from a Relational Database to Cassandra: Why, Where, When and How
Moving from a Relational Database to Cassandra: Why, Where, When, and How
Does it Mix? Cassandra and RDBMS working together!
data-modeling-paper
Cassandra Learning
Cassandra for mission critical data
Firebird to Cassandra Migration – Ask On Data (1).pptx
Cassandra Data Modelling
Firebird to Cassandra Migration – Ask On Data (1).pdf
Scylla Summit 2017: Migrating to Scylla From Cassandra and Others With No Dow...
Firebird to Cassandra Migration – Ask On Data.docx
Learning Cassandra NoSQL
Simple Way for MySQL to NoSQL
Helsinki Cassandra Meetup #2: From Postgres to Cassandra
Cassandra data modelling best practices
Cassandra NoSQL Tutorial
Firebird to Cassandra Migration - Ask On Data
Firebird to Cassandra Migration - Ask On Data
Firebird to Cassandra Migration - Ask On Data
Slides: Relational to NoSQL Migration
Ad

More from Umair Mansoob (6)

PDF
Migrating Oracle database to PostgreSQL
PDF
Exadata Deployment Bare Metal vs Virtualized
PDF
Migrate database to Exadata using RMAN duplicate
PDF
Exadata deployment life cycle
PDF
Key to a successful Exadata POC
PDF
Exadata Implementation strategy
Migrating Oracle database to PostgreSQL
Exadata Deployment Bare Metal vs Virtualized
Migrate database to Exadata using RMAN duplicate
Exadata deployment life cycle
Key to a successful Exadata POC
Exadata Implementation strategy

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PPTX
MYSQL Presentation for SQL database connectivity
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced Soft Computing BINUS July 2025.pdf
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced IT Governance
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
MYSQL Presentation for SQL database connectivity
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
cuic standard and advanced reporting.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced Soft Computing BINUS July 2025.pdf
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Chapter 3 Spatial Domain Image Processing.pdf
Advanced IT Governance
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx

Migrating Oracle database to Cassandra

  • 1. Migrating Oracle Databases To Cassandra BY UMAIR MANSOOB
  • 2. Why Cassandra  Lower Cost of ownership makes it #1 choice for Big Data OLTP Applications.  Unlike Oracle, Cassandra can store structured, semi-structured, and unstructured data.  Cassandra is the right choice when you need availability and performance at scale, normally costs 80-90+% less than just Oracle’s enterprise edition alone.  Oracle is not architected to tackle the new wave of big data, online applications developed today  Provide continuous availability with redundancy in both data and function across one or more locations/ Data Centers vs. simple failover for the Oracle database.  Can handle high velocity data coming in via sensors, mobile devices, and the like, and have extreme right speed and low latency query speed.  Support all types of workload without needing to ETL data in different data model.  Built-in data compressed up to 80% without performance overhead. Migrating Oracle Databases To Cassandra Umair Mansoob
  • 3. Who’s Using Cassandra Migrating Oracle Databases To Cassandra Umair Mansoob
  • 4. Comparing Cost Oracle vs Cassandra Above cost combine with lack of support for unstructured Data can be no brainer for many companies Migrating Oracle Databases To Cassandra Umair Mansoob
  • 5. Comparing with Other NoSQL Databases Migrating Oracle Databases To Cassandra Umair Mansoob
  • 6. Cassandra Architecture Migrating Oracle Databases To Cassandra Umair Mansoob
  • 7. Oracle vs Cassandra Name Oracle Cassandra Database Schema’s Yes Schema Free Secondary Indexes Yes Limited SQL Yes CQL ( DDL, DML) Db Scripting Yes ( PL/SQL) No Partitioning Methods Horizontal Partitioning Sharding Consistency Immediate Eventual / Immediate Concurrency Yes Yes Durability Yes Yes Multi-DataCenter Capabilities No Yes Data Consistency Model CAP Theorem ACID Data Compression Various Types of compression Built-in Data modeling 3rd Normal Form 1st or 2nd Normal Form Migrating Oracle Databases To Cassandra Umair Mansoob
  • 8. When Cassandra Is not Right  ACID-compliant transactions, with nested transactions, commits/rollbacks, and full referential integrity required  If you cannot avoid join operations and you cannot code join using programs.  If you application only has structured data , No even semi unstructured data is needed.  When application load is in the range of low – medium , where MYSQL might be a better choice.  No requirement for a single database/cluster to span many different data centers.  High availability requirements can be accomplished via a synchronous replication architecture that is primarily maintained at a single data center. Migrating Oracle Databases To Cassandra Umair Mansoob
  • 9. CAP vs ACID consistency  CAP stands for "consistency, availability, and partition tolerance.  The CAP theorem, states that, at most, only two of these properties can obtain in any shared- data system  ACID (atomicity, consistency, isolation, durability) properties of a traditional relational database management system (RDBMS Oracle)  ACID consistency is all about database rules. If a schema declares that a value must be unique, then a consistent system will enforce uniqueness. CAP consistency promises that every replica of the same logical value, spread across nodes in a distributed system, has the same exact value at all times. Migrating Oracle Databases To Cassandra Umair Mansoob
  • 10. Achieving Data Consistency  Data written to a database cluster is first written to a commit log in the same fashion that nearly every popular RDBMS does.  Cassandra offers tunable data consistency. This means a developer or administrator can choose how strong they wish consistency across nodes to be.  The strongest form of consistency is to mandate that any data modifications be made to all nodes.  Cassandra provides consistency in the CAP sense, in that all readers will see the same values.  Cassandra supports different type of consistency models (Strict consistency, Causal consistency, Eventual consistency). Migrating Oracle Databases To Cassandra Umair Mansoob
  • 11. Data Modeling Best Practices  Don’t optimize your data model to minimize the Writes, they are cheap in Cassandra.  Don’t optimize your data model to minimize Data duplication, duplication is good for efficient reads.  Focus on spread data evenly around the cluster by picking good primary key for table.  Focus on minimizing number of partition reads, ideally 1 partition per read because each partition might reside in different nodes.  The way to minimize partition reads is to model your data to fit your queries.  In General you will use roughly one table per query pattern. If you need to support multiple query patterns, you usually need more than one table.  Remember, data duplication is okay. Many of your tables may repeat the same data. Migrating Oracle Databases To Cassandra Umair Mansoob
  • 12. Migrating Data to Cassandra  Using Cassandra’s High-Speed Loader : Data from Oracle can be extracted into flat files that are delimited in some way and then loaded into Cassandra tables via the CQL COPY command.  Using Sqoop : DataStax Enterprise supports Sqoop, which is a utility designed to transfer data directly from an RDBMS like Oracle into Cassandra  Pentaho’s Data Integration product call Kettle with a free community edition.  Use Spark to Load Oracle Data into Cassandra.  ETL tools - there are a spread of ETL equipment (e.g. Informatica) that aid Cassandra as both a supply and goal facts platform. Migrating Oracle Databases To Cassandra Umair Mansoob
  • 13. What parts of an Oracle database cannot be migrated Cassandra  Stored procedures  Views  Triggers  Functions  Security privileges  Referential integrity constraints  Rules  Partitioned table definitions Migrating Oracle Databases To Cassandra Umair Mansoob