DB2 Tutorial

  • Home
  • Start Here
  • Basics
  • Views
  • Triggers
  • Indexes
  • Functions
    • Aggregate Functions
    • Date Functions
    • String Functions
    • Window Functions
Home » Getting Started with Db2 » Install DB2

Install DB2

Summary: in this tutorial, you will learn how to install DB2 developer edition on Windows platform, which is freely used for developers and database administrators to build mission-critical applications.

Download IBM DB2 Developer Edition

Download the IBM DB2

After downloading the install file, you need to unzip the file into a directory e.g., c:\software\ as shown in the following picture:

IBM DB2 11.1

Install DB2 on Windows

Step 1. To install DB2, double click the setup.exe file, the DB2 setup launchpad will be launched:

Step 2. Click the Release information to get the release notes, what’s new and what’s changed in this version.

Step 3. If you upgrade from a previous version, click the upgrade information for more information on upgrading DB2 system:

Step 4. Click Install a Product to start DB2 11.1 version

Step 5. Scroll the scrollbar down and click the Install New button

Step 6. To start installing DB2, read the license agreement carefully, accept the terms, and click the Next button.

Step 7. Choose Typical in the install type list and click the Next button:

Step 8. Select the third option to create a response file and click Next button

Step 9. Select the installation folder, leave it as is and click Next button

Step 10. Select the IBM SSH server installation folder and startup option. Since we will use the DB2 solely on the current server, select Do not autostart the IBM SSH server.

Step 11. Setup username and password for the DB2 administration server

Step 12. Configure DB2 instances, leave it as DB2 and click Next button

Step 13. Setup notifications, uncheck the checkbox and click Next button

Step 14. Enable operation system security for DB2 objects, uncheck the Enable operating system security checkbox and click the Next button:

Step 15. Review the information click Finish button

Step 16. The setup launchpad starts copying files and installing DB2 server:

Step 17. You need to wait for a while before the setup completes. Once it is completed, click the Finish button:

DB2 First Steps

The first steps wizard gets you quickly up and running with DB2 by allowing to check for product updates, create a sample database, etc.

If you want to create a database named SAMPLE from IBM, you can click the create sample database button as shown in the following picture:

Select the driver to store the SAMPLE database and click the OK button:

It takes a while to create the selected sample database:

Once completed, click the OK button.

Click the Close button to close the first steps window.

In this tutorial, you have learned how to download IBM DB2 server developer edition and install it on Windows.

  • Was this tutorial helpful ?
  • YesNo
Previous What is Db2
Next DB2 Sample Database

Getting Started

  • What is Db2
  • Installing Db2 Database Server
  • Db2 Sample Database
  • Creating a Db2 Sample Database
  • Connecting to a Db2 Database
  • Interacting with Db2 using SQL Developer

Data Manipulation

  • SELECT
  • ORDER BY
  • WHERE
  • SELECT DISTINCT
  • AND
  • OR
  • BETWEEN
  • LIKE
  • IN
  • LIMIT
  • FETCH
  • Join
  • INNER JOIN
  • LEFT JOIN
  • RIGHT JOIN
  • FULL OUTER JOIN
  • Self-Join
  • CROSS JOIN
  • GROUP BY
  • Subquery
  • HAVING
  • UNION
  • INTERSECT
  • EXCEPT
  • Common Table Expression or CTE
  • INSERT
  • INSERT Multiple Rows
  • INSERT INTO SELECT
  • UPDATE
  • DELETE

Managing Database Objects

  • CREATE TABLE
  • Identity Columns
  • ALTER COLUMN
  • ADD COLUMN
  • DROP COLUMN
  • DROP TABLE
  • TRUNCATE TABLE
  • RENAME TABLE

Db2 Constraints

  • Primary Key
  • Foreign Key
  • DEFAULT
  • NOT NULL
  • CHECK
  • UNIQUE

Db2 Data Types

  • Integer
  • Decimal
  • VARCHAR
  • CHAR
  • DATE
  • TIME
  • TIMESTAMP

Useful Functions & Expressions

  • CAST
  • CASE Expression
  • COALESCE

About db2tutorial.com

The db2tutorial.com website provides you with a comprehensive IBM DB2 tutorial with many practical examples and hands-on sessions.

Recent Tutorials

  • Db2 Functions
  • Db2 RANK
  • Db2 ROW_NUMBER
  • Db2 Window Functions
  • What is Db2

Site Links

  • Home
  • About Us
  • Contact Us
  • Privacy Policy
Copyright © © 2021 by www.db2tutorial.com. All Rights Reserved.