Before you start
IBM DB2® is a leading enterprise-proven data server for managing relational and XML data. Amazon Web Services (AWS) is one of the most popular public cloud computing environments. Amazon and IBM teamed up to make running DB2 on Amazon EC2 quick, easy, and inexpensive.
This tutorial shows you how to get started with DB2 on Amazon EC2. You will walk through:
- Creating an Amazon Web Services (AWS) account
- Securing your Amazon Elastic Compute Cloud (EC2) environment
- Launching instances of Amazon Machine Images (AMIs) preloaded with DB2
- Performing initial configuration of your DB2 AMI instances
- Working with your database
- Creating a snapshot of your database volumes on Elastic Block Storage (EBS)
- Shutting down your DB2 instances and deleting EBS volumes and snapshots
You can also watch a 5-minute video version of this tutorial.
There is a lot of flexibility for running DB2 on EC2. You can bring your existing DB2 licenses to Amazon EC2 and create your own DB2-based Amazon Machine Images (AMIs), or you can use pre-built DB2 AMIs offered by IBM and Amazon Web Services (AWS). Two types of pre-built DB2 AMIs are available:
- Production-ready (paid) AMIs
- Development-use (free) AMIs
Production-ready AMIs are available for DB2 Express and DB2 Workgroup. When you use these AMIs, you are effectively renting DB2 by the hour. An hourly charge is associated with using these AMIs, which includes the DB2 license fee, the operating system fee, and the EC2 instance charges. The pricing for these AMIs is based on a pay-per-use model. That is: you only pay when the DB2 instances are running.
Development-use AMIs for DB2 are based on DB2 Express-C, the free edition of DB2. So, when you use the IBM development-use AMIs, you do not incur any DB2 license charges. Therefore you are effectively just paying for EC2 instance usage and any other AWS services you use.
This tutorial describes how to use the DB2 Express-C 9.7 development-use AMIs from a Linux® workstation. The steps to use other DB2 AMIs from Windows® systems are similar.