old-www/HOWTO/DB2-HOWTO/installing.html

758 lines
16 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Installing DB2 Express-C</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="IBM DB2 Express-C for Linux HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Installation considerations and planning"
HREF="planning.html"><LINK
REL="NEXT"
TITLE="Installing DB2 Express-C on Red Hat Enterprise Linux (RHEL) 4"
HREF="rhel4.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>IBM DB2 Express-C for Linux HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="planning.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="rhel4.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="installing"
></A
>6. Installing DB2 Express-C</H1
><P
>This chapter covers a typical setup scenario for installing DB2
Express-C on a 32-bit Linux system, using the <B
CLASS="command"
>db2setup</B
>
installation method.
</P
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN333"
></A
>6.1. db2setup installation</H2
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN335"
></A
>6.1.1. Prerequisites</H3
><P
>&#13; <P
></P
><UL
><LI
><P
>Ensure that your system meets the software, memory, and disk
requirements outlined in <A
HREF="planning.html"
>Section 5</A
>.</P
></LI
><LI
><P
>You require root authority to perform the installation.</P
></LI
><LI
><P
>The DB2 Setup Launchpad is a graphical installer. You must have
X Window System software capable of rendering a graphical user
interface for the DB2 Setup Launchpad to run on your machine.</P
></LI
></UL
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN346"
></A
>6.1.2. Procedure</H3
><P
>To install DB2 Express-C 9:
<P
></P
><OL
TYPE="1"
><LI
><P
>Log on to the system as a user with root authority.</P
></LI
><LI
><P
>If you are installing from a CD or DVD, enter the command to
mount the DB2 installation media. For example,
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>mount /media/cdrom</PRE
></FONT
></TD
></TR
></TABLE
>
If you are using a downloaded tar.gz file, extract the contents of
this archive to a location on your harddrive. For example, presuming
the tar.gz file was downloaded to the <TT
CLASS="filename"
>/tmp</TT
> directory:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>cd /tmp
tar zxf db2exc_912_LNX_x86.tar.gz</PRE
></FONT
></TD
></TR
></TABLE
>
</P
></LI
><LI
><P
>Change to the install directory.
For the CD/DVD install:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>cd /media/cdrom/exp/disk1</PRE
></FONT
></TD
></TR
></TABLE
>
For the downloaded and extracted tar.gz file:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>cd /tmp/exp/disk1</PRE
></FONT
></TD
></TR
></TABLE
>
</P
></LI
><LI
><P
>Run the <B
CLASS="command"
>db2setup</B
> command.
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>./db2setup</PRE
></FONT
></TD
></TR
></TABLE
>
</P
></LI
><LI
><P
>When the IBM DB2 Setup Launchpad opens, select "Install a
Product".</P
></LI
><LI
><P
>Select the "<B
CLASS="command"
>Install New</B
>" button in the main
window.</P
></LI
><LI
><P
>When the Welcome to the DB2 Setup wizard window appears, click
"<B
CLASS="command"
>Next</B
>".
</P
></LI
><LI
><P
>Read the license agreement and select the
"<B
CLASS="command"
>Accept</B
>" button if you accept the terms (the
"<B
CLASS="command"
>Decline</B
>" button is selected by default). Click
"<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
>On the <B
CLASS="command"
>Select the installation type</B
>window,
select the type of installation you want to perform. You have three
installation options:
<P
></P
><UL
><LI
>Typical: 460&#8211;560 MB. This option installs and
configures most of the DB2 components, using a typical
configuration with default values. This option includes all of the
core features, along with ODBC support, and commonly used tools
such as the Control Center. You can select the "<B
CLASS="command"
>View
Features</B
>" button to see what components get installed
with this option.
</LI
><LI
>Compact: 380&#8211;460 MB. This option installs and
configures only the basic DB2 components, with minimal
configuration performed on your computer. With this option you get
the base server and client support, along with Java and SQL
procedure support. Again, you can click
the "<B
CLASS="command"
>View Features</B
>" button for more
information.
</LI
><LI
>Custom: 320&#8211;820 MB. This option allows you to install
only those components that you select; and to create and customize
a basic DB2 instance.
</LI
></UL
><P
>Make your choice and click "<B
CLASS="command"
>Next</B
>". (The remainder
of these instructions are based on the Custom installation option).
</P
></LI
><LI
><P
>On the <B
CLASS="command"
>Select the installation action</B
>
window, choose the "<B
CLASS="command"
>Install DB2 Express on this
computer</B
>" radio button. You can also choose to save your
installations settings in a response file by selecting "<B
CLASS="command"
>Save
your settings in a response file</B
>". You should choose this
option if you plan to install DB2, with these same settings, on other
computers in your environment.</P
></LI
><LI
><P
>Choose the DB2 elements you want on the <B
CLASS="command"
>Select
the features to install</B
> window. You can preview each
component by selecting it and reading the corresponding description in
the <B
CLASS="command"
>Description</B
> section.</P
><P
>&#13; You can also choose where to install the DB2 program files. By
default for a first time installation, this location is <TT
CLASS="filename"
>/opt/ibm/db2/V9.1/</TT
>
Once you have decided what features you want to install and the
destination, click "<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>Select what languages you want installed for the messages and
user interface on your computer in the <B
CLASS="command"
>Languages</B
>
window. English is always installed, regardless of other language
choices. Click "<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>In the <B
CLASS="command"
>Specify the location of the DB2 Information
Center</B
> window, select how you want to access the DB2
Information Center. The DB2 Information Center contains documentation
for DB2 and other related DB2 products. The "<B
CLASS="command"
>On the IBM Web
site</B
>" button is selected by default. By choosing this
option, DB2 is configured to access documentation on the Web using your
browser. If you have a copy of the DB2 Information Center installed
elsewhere on an intranet server, you can choose the "<B
CLASS="command"
>On the
following intranet server</B
>" button. Specify the values in
the <B
CLASS="command"
>Host name</B
> and <B
CLASS="command"
>Port
number</B
> text fields (the default value for the port number
is <TT
CLASS="literal"
>51000</TT
>). Click the "<B
CLASS="command"
>Help</B
>"
button for more information, otherwise click
"<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>Fill out the information for the user that will administer the
DB2 Administration Server in the <B
CLASS="command"
>Set user information for
the DB2 Administration Server</B
> window. Select either the
"<B
CLASS="command"
>New user</B
>" button, or the "<B
CLASS="command"
>Existing
user</B
>" button. The <B
CLASS="command"
>Password</B
> and
<B
CLASS="command"
>Confirm password</B
> text boxes are outlined in red
indicating required fields that must be filled in for the installation
to continue. If you choose to create a new user, a user account
will be created (including a home directory) on your Linux system.
Click "<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>If you want to create a new basic DB2 instance to store your
database, then select the "<B
CLASS="command"
>Create a DB2 instance</B
>"
button on the <B
CLASS="command"
>Set up a DB2 instance</B
> window.
Otherwise, select the "<B
CLASS="command"
>Defer this task until after
installation is complete</B
>" button. If you select this
second option, you will need to create a new instance after the
installation
by using the <B
CLASS="command"
>db2icrt</B
> command. Click
"<B
CLASS="command"
>Help</B
>" for more information, otherwise click
"<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>If you create a new instance, fill out the information for the
DB2 instance owner on the <B
CLASS="command"
>Set user information for the DB2
instance owner</B
> window. Select either the "<B
CLASS="command"
>New
user</B
>" button, or the "<B
CLASS="command"
>Existing user</B
>"
button. The <B
CLASS="command"
>Password</B
> and <B
CLASS="command"
>Confirm
password</B
> text boxes are outlined in red indicating required
fields that must be filled in for the installation to continue. Again,
if you choose to create a new user, a user account will be
created (including a home directory) on your Linux system. Click
"<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>Fill out the information for the DB2 fenced user on the
<B
CLASS="command"
>Set user information for the fenced user</B
> window.
Select either the "<B
CLASS="command"
>New user</B
>" button, or the
"<B
CLASS="command"
>Existing user</B
>" button. The
<B
CLASS="command"
>Password</B
> and <B
CLASS="command"
>Confirm
password</B
> text boxes are outlined in red indicating required
fields that must be filled in for the installation to continue. For
more information on fenced users, and how fenced users relate to
fenced and non-fenced user-defined functions (UDFs) and stored
procedures, click "<B
CLASS="command"
>Help</B
>". Otherwise, click
"<B
CLASS="command"
>Next</B
>" to continue.</P
></LI
><LI
><P
>Configure the DB2 instance for TCP/IP communications on the
<B
CLASS="command"
>Configure instance IP communication and startup</B
>
window. You may either accept the default values found in the
<B
CLASS="command"
>Service name</B
> and <B
CLASS="command"
>Port number</B
>
fields, or select your own. If you want to configure the instance
properties at a later time, select the "<B
CLASS="command"
>Do not configure at
this time</B
>" button. This service name and port are added to
the services file for the system, typically found in
<TT
CLASS="filename"
>/etc/services</TT
>.</P
><P
>You can also choose whether to start up
this instance at system startup. This is recommended if you are
planning on running your system as a DB2 server. Click
"<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>On the <B
CLASS="command"
>Prepare the DB2 tools catalog</B
> window,
select the "<B
CLASS="command"
>Prepare the DB2 tools catalog</B
>" button
if you want to use the Task Center or Task Scheduler. This option
creates a local database that stores task metadata. If you do not have
this task repository, the scheduler will not function. If you want to
create a DB2 tools catalog after you finish the installation, select
the "<B
CLASS="command"
>Do not prepare the DB2 tools catalog</B
>"
button. You can create the DB2 tools catalog later
manually by using the <B
CLASS="command"
>CREATE TOOLS CATALOG</B
> command.
Click "<B
CLASS="command"
>Next</B
>".</P
><P
>If you decide to create a DB2 tools catalog, you can specify
which instance, database, and schema in which to store the DB2 tools
catalog. The DB2 tools catalog will be placed in the home directory of
the instance owner. Click "<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
><P
>Specify a notification mail server and contact list on the
<B
CLASS="command"
>Set up notifications</B
> window. This allows DB2 to
notify administrators if a database requires attention.
Either create a new contact list that is stored locally, or use an
existing global contact list that resides on a remote DB2 server. Use
an available SMTP server that will accept an unauthenticated SMTP
message for e-mail notifications. You may also choose to skip this
step; DB2 will still record all administration notifications in the
log files. Click "<B
CLASS="command"
>Next</B
>".</P
></LI
><LI
>If you specified a new local list for contacts in the previous
step, then in the Specify a contact for health monitor notification, you
can add a name and email address where DB2 Health Center messages will
be sent for any health alerts from DB2 databases.
</LI
><LI
><P
>On the <B
CLASS="command"
>Start copying files</B
> window, review
the installation settings, and then click
"<B
CLASS="command"
>Finish</B
>" to complete the installation. The
<B
CLASS="command"
>Current settings</B
> panel provides a summary of your
installation and configuration settings.</P
></LI
></OL
>
While the files are being copied to your computer, you will see two status
bars on the <B
CLASS="command"
>Installing DB2 Express</B
> window, one
indicating the progress of each individual installation task, and one for
the overall installation progress. When the installation is finished, the
<B
CLASS="command"
>Setup Complete</B
> window indicates what, if any,
post-installation steps need to be taken, along with a tab (labelled "Log
File") that shows the log file report for the installation. Click
"<B
CLASS="command"
>Finish</B
>" to close this window and the Setup
Launchpad.</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="planning.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="rhel4.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Installation considerations and planning</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Installing DB2 Express-C on Red Hat Enterprise Linux (RHEL) 4</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>