Logo

dev-resources.site

for different kinds of informations.

COBOL Tutorial Series: Install the DB2 on Windows/Linux - Session 6

Published at
11/5/2024
Categories
cobol
db2
development
ibm
Author
ngtduc693
Categories
4 categories in total
cobol
open
db2
open
development
open
ibm
open
Author
9 person written this
ngtduc693
open
COBOL Tutorial Series: Install the DB2 on Windows/Linux - Session 6

Hello

I'm Duke and I come back.

IBM DB2 is a family of data management products, including database servers, developed by IBM. It provides a relational database management system (RDBMS) that supports both structured and unstructured data. DB2 is designed to handle large volumes of data and offers features like high availability, scalability, and advanced data security.

Today I will show you how to install the DB2 Community Edition Docker image on Linux systems

1.Download Docker Desktop for Ubuntu here

2.Install Docker Desktop on Ubuntu here

3.Pull the DB2 image

sudo docker pull icr.io/db2_community/db2
Enter fullscreen mode Exit fullscreen mode

DB2 image

4.Create an environment variables file: vi .env_list

LICENSE=accept
DB2INSTANCE=db2inst1
DB2INST1_PASSWORD=password
DBNAME=testdb
BLU=false
ENABLE_ORACLE_COMPATIBILITY=false
UPDATEAVAIL=NO
TO_CREATE_SAMPLEDB=false
REPODB=false
IS_OSXFS=false
PERSISTENT_HOME=true
HADR_ENABLED=false
ETCD_ENDPOINT=
ETCD_USERNAME=
ETCD_PASSWORD=
Enter fullscreen mode Exit fullscreen mode

5.Create and run the container

sudo docker run -h db2server --name db2server --restart=always --detach --privileged=true -p 50000:50000 --env-file .env_list -v /Docker:/database icr.io/db2_community/db2
Enter fullscreen mode Exit fullscreen mode

Run the container

Tada, you can use the Db2Client or DBeaver to connect it right now

DBeaver

cobol Article's
30 articles in total
Favicon
Modernizing COBOL Applications for Free: A Practical Guide with GnuCOBOL
Favicon
COBOL Interpreter
Favicon
COBOL Tutorial Series: DB2 vs SQL Server Architecture Comparison - Session 7
Favicon
COBOL Tutorial Series: Install the DB2 on Windows/Linux - Session 6
Favicon
COBOL Tutorial Series: Working with Database - Session 5
Favicon
COBOL Tutorial Series: Condition (IF, ELSE) statement - Session 3
Favicon
COBOL Tutorial Series: A calculation program - Session 2
Favicon
COBOL Tutorial Series: Loop statements - Session 4
Favicon
COBOL Tutorial Series: Developing Without a Mainframe - Session 1
Favicon
Warum?
Favicon
Awesome COBOL!
Favicon
#12in24: Learning COBOL in 1h.
Favicon
The World Depends on 60-Year-Old Code No One Knows Anymore ๐Ÿ‘ด๐Ÿป๐Ÿš€
Favicon
Tests Everywhere - COBOL
Favicon
COBOL: El Lenguaje de Programaciรณn que Desafรญa el Paso del Tiempo
Favicon
Entiende de una vez los lenguajes de alto y bajo nivel
Favicon
How Did You Get Started with COBOL?
Favicon
How to make an XML element optional in a Cobol provider webservice (DFHLS2WS), based on a Cobol structure
Favicon
How to create a flexible number of xml-elements in a cobol provider webservice (DFHLS2WS), starting from a cobol-structure.
Favicon
Advent of Code, but differently
Favicon
Covid led me to my first open-source contribution
Favicon
Test Driven Design in COBOL
Favicon
OpenCobolIde "no compiler found or not working"
Favicon
Mainframe Interview Experience with XYZ Bank | Jan 2022
Favicon
100 Languages Speedrun: Episode 50: COBOL
Favicon
COBOL gets a hip replacement
Favicon
How to deal with COBOL REDEFINES?
Favicon
They're still talking COBOL
Favicon
Video and Q&A: Learn how COBOL and open source are used in modern mainframe ecosystem
Favicon
Programming language full forms and definition

Featured ones: