[iyunv@alandb2 ~]# groupadd dasadm1
[iyunv@alandb2 ~]# mkdir -p /home/dasusr1
[iyunv@alandb2 ~]# useradd -d /home/dasusr1 -g dasadm1 dasusr1
[iyunv@alandb2 ~]# passwd dasusr1
Changing password for user dasusr1.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
An invalid argument was entered for the dascrt command. Valid arguments
for this command are:
-d enters debug mode, for use with DB2 Service
-u ASUser
is the user the DAS will run under
User response:
For more information about this command, please refer to theQuick
Beginnings manual. Enter the command again as follows:
dascrt -u ASUser
Confirm that user IDs and group names used to create the DB2 instance
are valid. For information about naming rules, see the topic called
"User, user ID and group naming rules" in the DB2 Information Center.
我们来运行dascrt命令来创建名为dasusr1的DAS Instance
[iyunv@alandb2 instance]# ./dascrt -u dasusr1
SQL4406W The DB2 Administration Server was started successfully.
DBI1070I Program dascrt completed successfully.
创建完成后,我们可以看到dasusr1主目录下的Instance文件已经建好。
[dasusr1@alandb2 ~]$ pwd
/home/dasusr1
[dasusr1@alandb2 ~]$ ls
das
[dasusr1@alandb2 ~]$ cd das
[dasusr1@alandb2 das]$ ls
adm conv dasprofile java metadata usercshrc
bin ctrl dump lib msg userprofile
cfg dascshrc function log tmp