0% found this document useful (0 votes)
79 views

Front Cover: DB2 For Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

Uploaded by

Jorge Garza
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

Front Cover: DB2 For Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

Uploaded by

Jorge Garza
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

V2.0.0.

cover

 Front cover

DB2 for Linux, UNIX, and


Windows Performance
Tuning and Monitoring
Workshop

(Course Code CF41)

Lab Set Up Guide


ERC 9.0

IBM Certified Course Material


Lab Set Up Guide

Trademarks
IBM® is a registered trademark of International Business Machines Corporation.
The following are trademarks of International Business Machines Corporation in the United
States, or other countries, or both:
AIX DB2 DB2 Universal Database
DRDA Informix MVS
MVS/ESA OS/2 OS/390
z/OS
Alerts® is a registered trademark of Alphablox Corporation in the United States, other
countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the
United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft
Corporation in the United States, other countries, or both.
Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron,
Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered
trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
UNIX® is a registered trademark of The Open Group in the United States and other
countries.
Linux® is a registered trademark of Linus Torvalds in the United States, other countries, or
both.
Other company, product, or service names may be trademarks or service marks of others.

December 2006 Edition

The information contained in this document has not been submitted to any formal IBM test and is distributed on an “as is” basis without
any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer
responsibility and depends on the customer’s ability to evaluate and integrate them into the customer’s operational environment. While
each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will
result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.

© Copyright International Business Machines Corporation 2001, 2006. All rights reserved.
This document may not be reproduced in whole or in part without the prior written permission of IBM.
Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions
set forth in GSA ADP Schedule Contract with IBM Corp.
V1.2.2
Lab Set Up Guide

TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v

Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii

Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Software Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hardware Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Student Machines: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Installation Procedures: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
LINUX Customizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Install DB2 9 for LINUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Install CF41 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Customization before Copying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Contact Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

© Copyright IBM Corp. 2001, 2006 Contents iii


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide

iv DB2 for Linux, UNIX, and Windows © Copyright IBM Corp. 2001, 2006
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V2.0
Lab Set Up Guide

TMK Trademarks
The reader should recognize that the following terms, which appear in the content of this
training document, are official trademarks of IBM or other companies:
IBM® is a registered trademark of International Business Machines Corporation.
The following are trademarks of International Business Machines Corporation in the United
States, or other countries, or both:
AIX® DB2® DB2 Universal Database™
DRDA® Informix® MVS™
MVS/ESA™ OS/2® OS/390®
z/OS®
Alerts® is a registered trademark of Alphablox Corporation in the United States, other
countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the
United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft
Corporation in the United States, other countries, or both.
Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron,
Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered
trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
UNIX® is a registered trademark of The Open Group in the United States and other
countries.
Linux® is a registered trademark of Linus Torvalds in the United States, other countries, or
both.
Other company, product, or service names may be trademarks or service marks of others.

© Copyright IBM Corp. 2001, 2006 Trademarks v


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide

vi DB2 for Linux, UNIX, and Windows © Copyright IBM Corp. 2001, 2006
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V2.0
Lab Set Up Guide

LSGp Purpose
This Lab Set Up Guide provides directions for installing, preparing, and verifying the lab
hardware and software in preparation for conducting a class of course CF41(CF412 in US).
The Requirements sections of this document may also be used to determine the specific
hardware and software needed to conduct a class.

© Copyright IBM Corp. 2001, 2006 Purpose vii


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide

viii DB2 for Linux, UNIX, and Windows © Copyright IBM Corp. 2001, 2006
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V2.0
Lab Set Up Guide

LSG
Requirements
Software Overview
• IBM DB2 9 for Linux UNIX and Windows (GA Level)

Hardware Configuration
• Authorized Classroom Locations: ALL
• Network Requirements: VPN Access
• TCP/IP: DHCP
• Bandwidth: 384K
• Server Machines: None

Student Machines:
1. Intel
Student machine is required for CF41.
Network connectivity is required. Either Token Ring or Ethernet can be used.
These are the minimum physical requirements for this machine:
• Processor: PIII
• Processor Speed: 1Ghz
• Memory: 1GB
• Storage: 20G
• Network Adapter: Ethernet
• Video: 1024 x 768
• Peripherals:

Software
• IBM DB2 9 for Linux UNIX and Windows
• RedHat Enterprise Linux ES 4

© Copyright IBM Corp. 2001, 2006 1


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide

Installation Procedures:
Student machine is required for CF41.
Overview of setup:
__ 1. Install Red Hat Enterprise Linux ES 4 (standard server installation). (See LINUX
installation below.)
__ 2. Perform Linux customizations.
__ 3. Users and Groups will be established during DB2 UDB Installation.
__ 4. Install Adobe Acrobat Reader
__ 5. Install IBM DB2 9 for Linux UNIX and Windows. See Install DB2 for LINUX below.
__ 6. Install CF41 Files (see Install CF41 Files below).
__ 7. Perform machine customizations prior to copying the machine (see Customization
before Copying below).
__ 8. Copy first machine out to other machines (if packcopy or ghosting procedures are
being used). This is where the ghost image should be made if ghosting is going to
be used.
__ 9. Perform post-installation customizations (see Post-installation Customizations
below).

LINUX Customizations
__ 1. Start the installation from your installation medium, for example, CD.
__ 2. You will get the Welcome screen, click NEXT.
__ 3. Select the correct Mouse Type and click NEXT.
__ 4. Select Automatically Partition and click NEXT.
__ 5. Confirm the Automatic Partitioning screen by clicking NEXT.
__ 6. Answer the Warning with YES.
__ 7. On the next screen, accept the proposed partitioning by clicking NEXT.
__ 8. Use the default Boot Loader Configuration, simply click NEXT.
__ 9. Set your Network configuration depending on your actual network settings and/or
location settings (automatically done via DHCP if possible). Click NEXT.
__ 10. On the Firewall screen, select No firewall and click NEXT.
__ 11. On the next screen, select your Language Support (for example, English USA) and
click NEXT.
__ 12. Select the appropriate Time Zone/Location and click NEXT.

2 DB2 for Linux, UNIX, and Windows © Copyright IBM Corp. 2001, 2006
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V2.0
Lab Set Up Guide

LSG
__ 13. On the next screen, set the root password: dalvm3 and click NEXT (it could take
some time till the next screen appears).
__ 14. Accept the current package list by clicking NEXT.
__ 15. On the next screen, confirm by clicking NEXT that the installation can be done.
__ 16. After the installation is done, you must select your graphical interface (normally
autodetect works fine, a setting will be proposed). Click NEXT.
__ 17. On the next screen, select your Monitor Configuration (here it might be, that the
LCD is not detected correctly). In this case, select Generic LCD Display and the
select the appropriate resolution. Click NEXT.
__ 18. On the Graphic configuration screen, you can accept the default by clicking NEXT.
__ 19. On the next screen (congratulations), the installation procedure would be finished as
soon as you click EXIT.
__ 20. Remove the installation CD if not automatically done.
__ 21. After an automatic reboot, your LINUX system will be ready.

Install DB2 9 for LINUX


__ 1. Log on as root.
__ 2. The CD-ROM drive should be mounted automatically on /mnt/cdrom. If not, mount
the CD-ROM drive using the command: mount /dev/cdrom /mnt/cdrom
__ 3. Change to the DB2 9 for Linux directory: cd /mnt/cdrom
__ 4. Decompress the product file: gzip -d product.tar.gz, where product is the name of
the product that you downloaded.
__ 5. Untar the product file: tar -xvf product.tar
__ 6. Change directory: cd ./product/disk1
__ 7. Issue the command: ./db2setup
__ 8. Select Install a Product and then select DB2 Enterprise Server Edition.
__ 9. Click Install New.
__ 10. The Setup-Wizard appears, click NEXT.
__ 11. Accept the Licence Agreement and click NEXT.
__ 12. Choose TYPICAL as the Installation Type and click NEXT.
__ 13. Install DB2 Enterprise Server Edition on this Computer should be selected, click
NEXT.
__ 14. Select Do Not create a DB2 instance and click NEXT.
__ 15. Select Finish to complete installation.

© Copyright IBM Corp. 2001, 2006 3


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide

Install CF41 Files


__ 1. Login as root.
__ 2. Create DAS user and DB2 Instance Owner for CF41.
Create a new group: groupadd adm01
Create new users: useradd -g adm01 dasusr1
passwd dasusr1
ibm2blue
useradd -g adm01 inst411
passwd inst411
ibm2blue
__ 3. Create new instance : ./opt/ibm/db2/V9.1/instance/db2icrt -u inst411 inst411
__ 4. Create DB2 DAS : ./opt/ibm/db2/V9.1/instance/dascrt -u dasusr1
__ 5. Make a database subdirectory in the home directory: mkdir /database
__ 6. Make a subdirectory fo automatic storage: mkdir /dbauto
__ 7. Set the correct ownership: chown inst411.adm01 /database
__ 8. Set the correct ownership for auto storage path: chown inst411.adm01 /dbauto
__ 9. Set the correct permissions: chmod 2775 /database
chmod 2775 /dbauto
__ 10. Login as db2inst1 user: su - inst411
__ 11. Obtain the tar file for the CF41 class called cf419labfiles.tar.
__ 12. Copy this file to the bin subdirectory of the home directory of the db2inst1 user:
cd $HOME/bin
cp <path to file>/cf419labfiles.tar ~inst411
__ 13. Extract the tar file: tar -xzvf cf419labfiles.tar
__ a. The following will be extracted to the home directory of the inst411 user:
The application multi
The SQL applications sqltp1*
The bind files for all applications, *,bnd
The command file to create the TP1 database tp1class
The multi configuration files tp1*.cfg
Other files needed to support the lab exercises
__ 14. Change user back to root: exit
__ 15. Install the additional libraries:
rpm -ivh ~inst411/*.rpm
__ 16. Login as inst411 user: su - db2inst1

4 DB2 for Linux, UNIX, and Windows © Copyright IBM Corp. 2001, 2006
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V2.0
Lab Set Up Guide

LSG Customization before Copying


__ 1. You still need to be logged in as inst411.
__ 2. Verify that DB2 is running: db2start (if not running already, it will be started)
__ 3. Change to the bin subdirectory: cd bin
__ 4. Create Automatic storage paths: mkdir /dbauto/path1
mkdir /dbauto/path2
__ 5. Run the command script to create the TP1 database (tp1class) this will run for 5-10
minutes. Enter tp1class.cmd.
__ 6. When prompted, answer yes to recreate the TP1 database.
__ 7. When the script is complete, make sure you can connect to the new database, enter
db2 connect to tp1.
__ 8. Exit the terminal session by typing, db2 terminate, and then type exit.

Contact Information
Course Owner: Charles McCain, [email protected], 877-418-3331

© Copyright IBM Corp. 2001, 2006 5


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide

6 DB2 for Linux, UNIX, and Windows © Copyright IBM Corp. 2001, 2006
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V2.0

backpg
Back page
®

You might also like