Skip to main content

If you don't have an IBM ID and password, register here.

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. This profile includes the first name, last name, and display name you identified when you registered with developerWorks. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

Deploy your database applications and projects on the cloud

Using IBM DB2 data server and Amazon Elastic Compute Cloud (EC2)

Rav Ahuja (rsahuja@ca.ibm.com), Senior Product Manager, IBM
Rav Ahuja is a Senior Product Manager for Data Management at IBM and is based in the Toronto Lab. He has been working with DB2 since version 1, and he has held various roles in DB2 development, technical support, marketing, and product management. In addition to product strategy and evangelism, Rav spends his time helping customers and business partners around the globe benefit from DB2 solutions using emerging technologies and cloud computing. He is a frequent presenter at events in many countries, and he has written numerous papers, articles and books related to DB2. In his spare time, Rav helps maintain ChannelDB2.com, a social network that aggregates DB2 related videos, blogs, podcasts, and so on. Rav holds a Computer Engineering degree from McGill University and an MBA from University of Western Ontario.
Bradley Steinfeld (bsteinfe@ca.ibm.com), Software Developer, IBM
Bradley Steinfeld is a software developer and an open-source-software evangelist based out of the IBM Toronto Lab. He is one of the first IBMers to work with DB2 on the cloud, and he has become an expert on various cloud technologies (Amazon EC2, CloudBurst, Eucalyptus, and so on). He has a Bachelor of Mathematics from the University of Waterloo.

Summary:  Cloud computing is an increasingly popular paradigm that can significantly accelerate development and prototyping cycles. In this tutorial you will learn how you can easily deploy your database applications and projects on the cloud in just minutes using IBM® DB2® data server and Amazon Elastic Compute Cloud (EC2). No prior cloud computing or DB2 experience is necessary.

Date:  28 Jan 2010
Level:  Intermediate PDF:  A4 and Letter (2313 KB | 39 pages)Get Adobe® Reader®

Comments:  

C. Launching instances of Amazon Machine Images (AMIs) preloaded with DB2

Follow these steps to launch instances of AMIs preloaded with DB2.

  1. Go to the DB2 Express-C Development AMI web page.
  2. Click Register with Amazon and start using the development AMI for IBM DB2 Express C 9.7 32-bit, as shown in Figure 18.

Figure 18. Registering for AMIs
Shows registration option
  1. Click Purchase.
  2. Review the pricing details and click Place your order.
  3. Write down the activation key. You can generate a new activation key any time by visiting http://www.amazon.com/dp-activate.
  4. Optionally check your email to receive your confirmation message.
  5. Go back to the AWS Management Console (aws.amazon.com/console), and make sure you are in the EC2 dashboard, as shown in Figure 19.

Figure 19. EC2 dashboard
Shows dashboard
  1. Click Launch instance.
  2. Click the Community AMIs tab. The window that shows Community AMIs appears, as shown in Figure 20.

Figure 20. Launch instance wizard
Shows selecting Community AMIs
  1. Narrow your search criteria by entering db2 or express-c into the filtering text field.
  2. Click Select on the latest 32-bit DB2 Express-C image, for example ami-e826b89eb, as shown in Figure 21.

Figure 21. Selecting DB2 Express-C image
Shows selecting the image
  1. Enter the number of instances as 1, and select the Instance Type as Small.
  2. Accept other defaults for Instance details, including for Advanced Options, as shown in Figure 22, and click Continue.

Figure 22. Completing Request Instance wizard
Shows selecting values
  1. Select Create a new Key Pair and enter a name for it, for example demokey.
  2. Click Create & Download your Key Pair, as shown in Figure 23.

Figure 23. Creating the key pair
Shows entering name for the key pair and clicking the button to create
  1. Select Save to disk, and save the demokey.pem file into the $HOME/.ec2 folder.
  2. Click Continue.
  3. Hold down the Ctrl key to select both the db2 security groups and the default security groups, as shown in Figure 24.
  4. Click Continue.

Figure 24. Choosing security groups
Shows selecting db2 and default security groups
  1. Review your selections, as shown in Figure 25, and click Launch.

Figure 25. Review selections
Shows overview of selections
  1. Click Close when the message box appears that indicates Your instances are launching.

Your instance should now be starting up!

4 of 12 | Previous | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management,
ArticleID=465178
TutorialTitle=Deploy your database applications and projects on the cloud
publish-date=01282010
author1-email=rsahuja@ca.ibm.com
author1-email-cc=
author2-email=bsteinfe@ca.ibm.com
author2-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).