Installation methods that require manual configuration (Linux and UNIX) > Manually configuring DB2 servers after installation > Creating group and user IDs in a partitioned database environment >
Creating required users for a DB2 server
installation in a partitioned database environment (HP-UX)
Three users and groups are required to operate
a DB2® database. The user and
group names used in the following instructions are documented in the
following table. You can specify your own user and group names if
they adhere to your system naming rules and DB2 naming rules.
If you are planning to
use the DB2 Setup wizard to
install your DB2 product, the DB2 Setup wizard will create these
users for you.
Table 26. Required users and groups
Required user |
User name |
Group name |
Instance owner |
db2inst1 |
db2iadm1 |
Fenced user |
db2fenc1 |
db2fadm1 |
DB2 administration
server user |
dasusr1 |
dasadm1 |
If the DB2 administration
server user is an existing user, this user must exist on all the participating
computers before the installation. If you use the DB2 Setup wizard to create a new user for the DB2 administration server on the
instance-owning computer, then the new user is also created (if necessary)
during the response file installations on the participating computers.
If the user already exists on the participating computers, the user
must have the same primary group.
- Prerequisites
-
- You must have root authority to create users
and groups.
- If you manage users and groups with security software, additional
steps might be required when defining DB2 users
and groups.
- Restriction
- The user names you create must conform to both your operating
system's naming rules, and those of DB2.
To create all three of these users, perform the following
steps:
- Log on to the primary computer.
- Create a group for the instance owner (for example, db2iadm1),
the group that will run UDFs or stored procedures (for example, db2fadm1),
and the group that will own the DB2 administration
server (for example, dasadm1) by entering the following
commands:
groupadd -g 999 db2iadm1
groupadd -g 998 db2fadm1
groupadd -g 997 dasadm1
- Create a user that belongs to each group that you created
in the previous step using the following commands. The home directory
for each user will be the DB2 home
directory that you previously created and shared (db2home).
useradd -u 1004 db2iadm1 -d /db2home/db2inst1 -m db2inst1
useradd -u 1003 db2fadm1 -d /db2home/db2fenc1 -m db2fenc1
useradd -u 1002 dbasgrp -d /home/dasusr1 -m dasusr1
- Set an initial password for each user that you created
by entering the following commands:
passwd db2inst1 passwd db2fenc1 passwd dasusr1
- Log out.
- Log on to the primary computer as each user that you created
(db2inst1, db2fenc1, and dasusr1).
You might be prompted to change each user's password because this
is the first time that these users have logged onto the system.
- Log out.
- Create the exact same user and group accounts on each computer
that will participate in your partitioned database environment.
[ Top of Page | Previous Page | Next Page | Contents ]