DB-EnginesDo you need a hard real time database?English
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > IBM Db2 vs. MongoDB vs. Oracle

System Properties Comparison IBM Db2 vs. MongoDB vs. Oracle

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameIBM Db2 infoformerly named DB2 or IBM Database 2  Xexclude from comparisonMongoDB  Xexclude from comparisonOracle  Xexclude from comparison
DescriptionCommon in IBM host environments, 2 different versions for host and Windows/LinuxOne of the most popular document stores available both as a fully managed cloud service and for deployment on self-managed infrastructureWidely used RDBMS
Primary database modelRelational DBMS infoSince Version 10.5 support for JSON/BSON documents compatible with MongoDBDocument storeRelational DBMS
Secondary database modelsDocument store
RDF store infoin Db2 LUW (Linux, Unix, Windows)
Spatial DBMS infowith Db2 Spatial Extender
Spatial DBMS
Search engine infointegrated Lucene index, currently in MongoDB Atlas only.
Time Series DBMS infoTime Series Collections introduced in Release 5.0
Document store
Graph DBMS infowith Oracle Spatial and Graph
RDF store infowith Oracle Spatial and Graph
Spatial DBMS infowith Oracle Spatial and Graph
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score159.19
Rank#7  Overall
#5  Relational DBMS
Score480.73
Rank#5  Overall
#1  Document stores
Score1287.74
Rank#1  Overall
#1  Relational DBMS
Websitewww.ibm.com/­analytics/­db2www.mongodb.comwww.oracle.com/­database
Technical documentationwww.ibm.com/­support/­knowledgecenter/­SSEPGGdocs.mongodb.com/­manualdocs.oracle.com/­en/­database
DeveloperIBMMongoDB, IncOracle
Initial release1983 infohost version20091980
Current release12.1, October 20165.0.8, April 202219c, February 2019
License infoCommercial or Open Sourcecommercial infofree version is availableOpen Source infoMongoDB Inc.'s Server Side Public License v1. Prior versions were published under GNU AGPL v3.0. Commercial licenses are also available.commercial inforestricted free version is available
Cloud-based only infoOnly available as a cloud servicenono infoMongoDB available as DBaaS (MongoDB Atlas)no
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
  • ScaleGrid for MongoDB: Fully managed hosting for MongoDB database on AWS, Azure and DigitalOcean with high availability and SSH access on the #1 multi-cloud DBaaS.
  • MongoDB Atlas: Global multi-cloud database with unmatched data distribution and mobility across AWS, Azure, and Google Cloud, built-in automation for resource and workload optimization, and so much more.
Implementation languageC and C++C++C and C++
Server operating systemsAIX
HP-UX
Linux
Solaris
Windows
z/OS
Linux
OS X
Solaris
Windows
AIX
HP-UX
Linux
OS X
Solaris
Windows
z/OS
Data schemeyesschema-free infoAlthough schema-free, documents of the same collection often follow the same structure. Optionally impose all or part of a schema by defining a JSON schema.yes infoSchemaless in JSON and XML columns
Typing infopredefined data types such as float or dateyesyes infostring, integer, double, decimal, boolean, date, object_id, geospatialyes
XML support infoSome form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.yes
Secondary indexesyesyesyes
SQL infoSupport of SQLyesRead-only SQL queries via the MongoDB Connector for BIyes infowith proprietary extensions
APIs and other access methodsADO.NET
JDBC
JSON style queries infoMongoDB compatible
ODBC
XQuery
proprietary protocol using JSONJDBC
ODBC
ODP.NET
Oracle Call Interface (OCI)
Supported programming languagesC
C#
C++
Cobol
Delphi
Fortran
Java
Perl
PHP
Python
Ruby
Visual Basic
Actionscript infounofficial driver
C
C#
C++
Clojure infounofficial driver
ColdFusion infounofficial driver
D infounofficial driver
Dart infounofficial driver
Delphi infounofficial driver
Erlang
Go
Groovy infounofficial driver
Haskell
Java
JavaScript
Lisp infounofficial driver
Lua infounofficial driver
MatLab infounofficial driver
Perl
PHP
PowerShell infounofficial driver
Prolog infounofficial driver
Python
R infounofficial driver
Ruby
Rust
Scala
Smalltalk infounofficial driver
Swift
C
C#
C++
Clojure
Cobol
Delphi
Eiffel
Erlang
Fortran
Groovy
Haskell
Java
JavaScript
Lisp
Objective C
OCaml
Perl
PHP
Python
R
Ruby
Scala
Tcl
Visual Basic
Server-side scripts infoStored proceduresyesJavaScriptPL/SQL infoalso stored procedures in Java possible
Triggersyesyes infoin MongoDB Atlas onlyyes
Partitioning methods infoMethods for storing different data on different nodesSharding infoonly with Windows/Unix/Linux VersionSharding infoPartitioned by hashed, ranged, or zoned sharding keys. Live resharding allows users to change their shard keys as an online operation with zero downtime.Sharding, horizontal partitioning
Replication methods infoMethods for redundantly storing data on multiple nodesyes infowith separate tools (MQ, InfoSphere)Multi-Source deployments with MongoDB Atlas Global Clusters
Source-replica replication
Multi-source replication
Source-replica replication
MapReduce infoOffers an API for user-defined Map/Reduce methodsnoyesno infocan be realized in PL/SQL
Consistency concepts infoMethods to ensure consistency in a distributed systemEventual Consistency
Immediate Consistency infocan be individually decided for each write operation
Immediate Consistency
Foreign keys infoReferential integrityyesno infotypically not used, however similar functionality with DBRef possibleyes
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDMulti-document ACID Transactions with snapshot isolationACID infoisolation level can be parameterized
Concurrency infoSupport for concurrent manipulation of datayesyesyes
Durability infoSupport for making data persistentyesyes infooptional, enabled by defaultyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.yes infoIn-memory storage engine introduced with MongoDB version 3.2yes infoVersion 12c introduced the new option 'Oracle Database In-Memory'
User concepts infoAccess controlfine grained access rights according to SQL-standardAccess rights for users and rolesfine grained access rights according to SQL-standard
More information provided by the system vendor
IBM Db2 infoformerly named DB2 or IBM Database 2MongoDBOracle
Specific characteristicsMongoDB’s application data platform provides developers a unified interface to power...
» more
Competitive advantagesThe MongoDB platform can be used by developers building transactional, operational,...
» more
Typical application scenariosInternet of Things and Time Series (Bosch, Jaguar Land Rover) Mobile (The Weather...
» more
Key customersADP, Adobe, Amadeus, AstraZeneca, Auto Trader, Barclays, BBVA, Bosch, Cisco, CERN,...
» more
Market metrics200+ million downloads, over 1.5M Atlas database clusters under management handling...
» more
Licensing and pricing modelsMongoDB database server: Server-Side Public License (SSPL) . Commercial licenses...
» more

We invite representatives of system vendors to contact us for updating and extending the system information,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services
3rd partiesPercona: Database problems? Not on your watch.
Databases run better with Percona.
» more

CData: Connect to Big Data & NoSQL through standard Drivers.
» more

Navicat for MongoDB gives you a highly effective GUI interface for MongoDB database management, administration and development.
» more
SQLFlow: Provides a visual representation of the overall flow of data. Automated SQL data lineage analysis across Databases, ETL, Business Intelligence, Cloud and Hadoop environments by parsing SQL Script and stored procedure.
» more

Navicat for Oracle improves the efficiency and productivity of Oracle developers and administrators with a streamlined working environment.
» more

We invite representatives of vendors of related products to contact us for presenting information about their offerings here.

More resources
IBM Db2 infoformerly named DB2 or IBM Database 2MongoDBOracle
DB-Engines blog posts