Quick Beginnings

Before You Begin

Before you begin the installation, be sure that you have the following items and information:

  1. Ensure that your system meets all of the memory, hardware, and software requirements to install your DB2 product. For more information, see Planning for Installation.
  2. Have a file system that is available to all of the systems that will participate in your partitioned database system. This file system will be the home file system for the instance owner and the Administration Server. To create a file system, perform the following steps:

    Step  a.

    Select a disk partition or logical volume and use a utility like newfs to create this file system. For more information, enter the man newfs command.

    Step  b.

    Mount this file system locally and add an entry to the /etc/vfstab file so that this file system is mounted each time the system is rebooted.

  3. Create three separate groups and user accounts for the:

    The usernames you create must conform to both your operating system's naming rules, and those of DB2. You can have the DB2 Installer create these usernames, or you can create them manually. For more information on naming rules, see Appendix C, Naming Rules.

    To create all three of these users, perform the following steps:

    Step  a.

    Log on to the system as a user with root authority.

    Step  b.

    Create a group for the instance owner (for example, db2iadm1), the user that will execute UDFs or stored procedures (for example, db2fadm1), and the Administration Server (for example, db2asgrp) by entering the following commands:

       groupadd -g 999 db2iadm1
       groupadd -g 998 db2fadm1
       groupadd -g 997 db2asgrp
    


    Figure 00002674 not displayed.

    If you are using NIS or NIS+, secondary groups must be created for the DB2 instance owner and the Administration Server on the NIS server. You must then add the primary group of the instance owner to the secondary Administration Server group. Likewise, you must add the primary Administration Server group, to the secondary group for the instance owner.

    Step  c.

    Create a user that belongs to each group that you created in the previous step by entering the following commands:

       useradd -g db2iadm1 -u 1004 -d /home2/db2inst1 -m db2inst1 
       useradd -g db2fadm1 -u 1003 -d /home2/db2fenc1 -m db2fenc1
       useradd -g db2asgrp -u 1002 -d /home2/db2as    -m db2as
    

    Step  d.

    Set an initial password for each user that you created by entering the following commands:

       passwd db2inst1
       passwd db2fenc1
       passwd db2as
    

    Step  e.

    Log out.

  4. Update the Kernel Configuration Parameters. In order to run DB2 EEE you should update your kernel configuration parameter by performing the following steps:

    Figure 00002674 not displayed.

    For changes to the kernel configuration parameters to take effect, you will be required reboot the system.

    Step  a.

    Log on to the system as a user with root authority.

    Step  b.

    Update the kernel configuration parameters as follows:

    Table 6. PTX Kernel Configuration Parameters (Recommended Values)
    Kernel Parameter Physical Memory
    512MB+
    msgmap
    msgmax(1)
    msgmnb(1)
    msgmni
    msgssz
    msgtql
    msgseg(2)
    semmni
    semmap
    semmnu
    semmns
    semume
    shmmax(3)
    shmseg
    shmmni
    shm_lock_ok
    shm_lock_uid
    

    514
    65535
    65535
    512
    64
    1024
    32767
    1024
    514
    2048
    2048
    80
    2147483647
    16
    300
    1
    -1
     
    

    Notes:

    1. The msgmax and msgmnb must be set to 65535 or larger.

    2. The msgseg parameter must be set no higher than 32767.

    3. The shmmax must be set to 2147483647 or larger.

To modify your PTX kernel configuration parameters, perform the following steps:

Step  1.

Log on as a user with root authority.

Step  2.

Enter the menu command.

Step  3.

Press A to select the System Administration option.

Step  4.

Press C to select the Kernel Configuration option.

Step  5.

Press Ctrl+F in the Change Kernel Configuration Disk form. If you want to build the new kernel in a disk other than the root disk, enter the disk and press Ctrl+F.

Step  6.

In the Compile, Configure, or Remove a Kernel window, select the kernel configuration type with which your current kernel is built and press K.

Step  7.

In the Configure a kernel with site specific parameters form, go down one page (press Ctrl+D), press A for All in the Visibility level for parameter changes and then press Ctrl+F.

Step  8.

In the Configure Files With Adjustable Parameters window select ALL (press Ctrl+T) and press Ctrl+F.

Step  9.

In the Tunable Parameters window, use arrow keys to navigate. Press Ctrl+T to select the parameter you want to change and press Ctrl+F.

Step 10.

In the Detail of Parameter Expression(s) window, press s to set the new value.

Step 11.

In the Add site specific 'set' parameter form, enter the new value and press Ctrl+F.

Step 12.

Repeat steps 9 through 11 to change the values of all other parameters that you want to change.

Step 13.

Once you are done changing all the parameters, press Ctrl+E from the Tunable Parameters window.

Step 14.

Compile the kernel.

Step 15.

Press Ctrl+X to exit the menu.

Step 16.

Reboot the system so that the changes can take effect.


[ Top of Page | Previous Page | Next Page ]