DB2 Connect Quick Beginnings for UNIX**

Manually Installing DB2 Connect for HP-UX

We recommend that you use the db2setup utility to install DB2 Connect for HP-UX. If you prefer not to use this utility, you can install DB2 Connect manually using your HP-UX's swinstall command.

Before you install DB2 Connect you should update your system's kernel configuration parameters. For more information see Updating HP-UX Kernel Configuration Parameters.

To install your DB2 Connect for HP-UX product using the swinstall command:

  1. Log in as a user with root authority.
  2. Insert and mount the appropriate CD-ROM.
  3. Run the swinstall program using the following command:
       swinstall -x autoselect_dependencies=true
    

    This command opens the Software Selection window and the Specify Source window. If necessary, change the Source Host Name in the Specify Source window.

  4. In the Source Depot Path field enter /cdrom/db2/hpux11 where /cdrom represents the CD-ROM mount directory.
  5. Click OK to return to the Software Selection window.
  6. The Software Selection window contains a list of available software to install. Select the products you are licensed to install. Your Proof of Entitlement and License Information booklet identify the products for which you are licensed.

    DB2V7CAE
    DB2 Universal Database Run-Time Client for HP-UX

    DB2V7CONN
    DB2 Connect Enterprise Edition for HP-UX

    DB2V7SDK
    DB2 Application Development Client

    DB2V7HTML
    DB2 Universal Database Product Library in HTML (all locales).

    The DB2V7HTML product includes filesets for all the DB2 product documentation. A separate fileset exists for each language. For example, the fileset name for the DB2 product library in English is DB2V7HTML.en_US. Whenever you install a non-English DB2V7HTML fileset the English version is also installed. For a complete list of filesets in the DB2V7HTML product, see Contents of the DB2 Products for UNIX platforms.

    After installing a DB2V7HTML fileset you must uncompress and untar it before you can view the HTML files. See DBV7HTML fileset post-installation tasks for instructions.

    DB2V7MSG
    DB2 Universal Database Product Messages (all locales).

    The DB2V7MSG product includes a separate fileset for every locale in which DB2 Product Messages are available. There is no fileset for the English (en_US.iso88591 or en_US.roman8) locale since these messages are always installed with the base product. For example, to install the DB2 Product messages in the fr_FR.iso88591 locale, you need to install the fileset DB2V7MSG.fr_FR. For a complete list of filesets in the DB2V7MSG product, see Contents of the DB2 Products for UNIX platforms.

  7. Select Mark for Install from the Actions menu to choose the product to be installed.
  8. Select OK when the following message appears:
       In addition to the software you just marked, other software was
       automatically marked to resolve dependencies.  This message will
       not appear again.
    
  9. Select Install (analysis) from the Actions menu to begin product installation and to open the Install Analysis window.
  10. Select OK in the Install Analysis window when the Status field displays a Ready message.
  11. Select Yes in the Confirmation window windows to confirm that you want to install the software.

    View the Install window to read processing data while the software is being installed, until the Status field indicates Ready and the Note window opens. The swinstall program loads the fileset, and runs the control scripts for the fileset.

  12. Select Exit from the File menu to exit from swinstall.

DBV7HTML fileset post-installation tasks

After installing any DB2V7HTML fileset you must uncompress and untar it before you can view the HTML files. To uncompress and untar a DB2V7HTML fileset, run the /opt/IBMdb2/V7.1/doc/db2insthtml locale command where locale represents the language of the fileset you installed.

To recover disk space, you may want to remove the compressed tar files and product library filesets after installation. You will still be able to view the HTML books after the compressed tar files and filesets have been removed.
Note:The English DB2V7HTML fileset is always installed whenever a non-English fileset is installed. If you installed a non-English DB2V7HTML fileset, run the db2insthtml command against the en_US locale first, then re-run the command against all installed non-English DB2V7HTML filesets.

DB2 Connect for HP-UX Post-installation tasks

After manually installing your DB2 product, you should create a group and user IDs for the instance owner, Administration Server, and fenced user defined functions (UDFs) and stored procedures. Once you set up these IDs you can create an instance, create the Administration Server, install the license key, and create links for your DB2 files.

You do not have to perform these tasks if you used the db2setup utility to install DB2.

Creating group and user IDs for the instance owner, Administration Server, and UDFs

You should create group and user IDs for the instance owner, Administration Server, and UDFs and stored procedures. If you want to use existing user or group IDs, you can skip this section and proceed to creating an instance.

In addition to the rules imposed by the operating system for user names and groups, you must also adhere to the rules described in Appendix D, Naming Rules.

To create a group and user ID for the instance owner:

  1. Log in as a user with root authority.
  2. Enter the following command to make a new group:
    groupadd id=999 dbadmin1
     
    

    where 999 represents the group ID and dbadmin1 represents the group name. This new group is the SYSADM group for the instance.

  3. Enter the following command to make a new user:
    useradd -g dbadmin1 -d /home/db2instl -m db2inst1 passwd db2inst1
    

    where dbadmin1 represents the group you created in the previous step, /home/db2inst1 represents the user's home directory, and db2inst1 represents the username and instance name.

You should use a unique user ID for each instance you create. This allows for easier error recovery if a system error occurs.

To create group and user IDs for the Administration Server follow the same steps you used to create IDs for the instance owner. You must use different user IDs for the Administration Server and instance owner. For security reasons, we recommend you use a different group ID for the Administration Server and instance owner.

To create group and user IDs for UDFs and stored procedures, follow the same steps you used to create IDs for the instance owner. For security reasons, we recommend that you use different user IDs for UDFs and the instance owner. You will be asked to supply a UDF user ID when you create a DB2 instance.

Creating an instance

A DB2 instance is an environment in which you store data and run applications. Use the db2icrt command to create an instance. You must have root authority to enter this command. For more information about database instances, refer to the Administration Guide.

The db2icrt command is run with the following parameters:

   DB2DIR/instance/db2icrt -a AuthType -u FencedID InstName

where:

Creating the Administration Server

The Administration Server provides services to support tools that automate the configuration of connections to DB2 databases. The Administration Server also supports tools that administer DB2 from your server system or a remote client using the Control Center. For more information on the Administration Server, refer to the Administration Guide.

To create the Administration Server use the DB2DIR/instance/dasicrt ASName command

where DB2DIR = /usr/lpp/db2_07_01 on AIX


= /opt/IBMdb2/V7.1 HP-UX, PTX, SGI IRIX, or Solaris


= /usr/IBMdb2/V7.1 on Linux

and ASName represents the name of the Administration Server you want to create.

Updating the License Key

Your Proof of Entitlement and the License Information booklet identify the products for which you are licensed.

To update your DB2 product license key:

  1. Log in as a user with root authority.
  2. Update your DB2 product license with the following command:
       /opt/IBMdb2/V7.1/adm/db2licm -a filename
    

    where filename represents the full pathname and filename for the license file that corresponds to the product you have purchased.

    The DB2 product license key is added to the /var/ifor/nodelock file.

    The names of the license files for these products are:

    db2conee.lic
    DB2 Connect Enterprise Edition

    For example, if the CD-ROM is mounted in the /cdrom directory and the name of the license file is db2udbee.lic, the command should be as follows:

       /opt/IBMdb2/V7.1/adm/db2licm -a /cdrom/db2/license/db2udbee.lic
    

Creating links for DB2 Connect files

You can create links for the DB2 files to the /usr/lib directory, and for the include files to the /usr/include directory for a particular version and release level of the product.

You may want to create these links if you are developing or running applications and want to avoid having to specify the full path to the product libraries and include files.

To create links for DB2 files, log in as a user with root authority and run the /opt/IBMdb2/V7.1/cfg/db2ln command.

If there are existing links to the /usr/lib and /usr/include directories from previous versions of DB2, they will automatically be removed by entering the db2ln command to create links for this version of DB2. If you want to re-establish the links to the libraries of previous versions, then you must execute the db2rmln command from your previous version of DB2 before you execute the db2ln command from the previous versions of DB2. Links can be established for only one version of DB2 on a given system.


[ Top of Page | Previous Page | Next Page ]