IBM Db2 is a long-running enterprise relational database maintained by IBM. It sits around #26 in real-world usage (roughly 2.4%) โ still common on mainframes and large legacy corporate systems (banking, insurance, government), occupying a similar niche to Oracle.
Db2 uses standard SQL with IBM-specific extensions, commonly accessed via its CLI (CLP) or JDBC:
SELECT account_id, balance
FROM accounts
WHERE balance > 10000
FETCH FIRST 10 ROWS ONLY;
IBM offers a free Community Edition for local development, most commonly run via Docker:
# run Db2 Community Edition locally via Docker
docker run -d --name db2 -p 50000:50000 -e LICENSE=accept \
-e DB2INSTANCE=db2inst1 -e DB2INST1_PASSWORD=yourpassword \
icr.io/db2_community/db2