You are on page 1of 1

Follow the following commands one by one in the DB2 command Editor:

1. Create a Database
Create database ADMINREG
2. Connect to the database using the username and password for your DB2
Connect to ADMINREG user "Username" using "password"
3. Create a table USER in the database
Create table USER(UserID varchar(50), Description varchar(255),DN varchar(100),
FirstName varchar(20), LastName varchar(20))
4. Create a table Group in the database
Create table GROUP(GroupID varchar(50), Description varchar(255), DN varchar(100
))
5. Create a table USERGroup in the database
Create table USERGROUP(UserID varchar(50), GroupID varchar(50))
6. Insert a record in table USER
Insert into USER values('wpsadmin', 'wpsadmin is a admin user', 'uid=wpsadmin,cn
=users,o=default organization', 'wps', 'admin')
7. Insert a record in table USER
Insert into USER values('wasadmin', 'wasadmin is a admin user', 'uid=wasadmin,cn
=users,o=default organization', 'was', 'admin')
8. Insert a record in table USER
Insert into USER values('admin', 'admin is a admin user', 'uid=admin,cn=users,o=
default organization', 'admin', 'admin')
9. Insert a record in table GROUP
Insert into GROUP values('wpsadmins','wpsadmins is administrators group','uid=wp
sadmins,cn=groups,o=default organization')
10. Insert a record in table USERGROUP
Insert into USERGroup Values('wpsadmin', 'wpsadmins')

You might also like