Business Intelligence Tutorial

Lesson 4. Defining warehouse security

In this lesson, you will define security for your warehouse.

The first level of security is the logon user ID that is in use when you open the Data Warehouse Center. Although you log on to the DB2 Control Center, the Data Warehouse Center verifies that you are authorized to open the Data Warehouse Center administrative interface by comparing your user ID to entries in the warehouse control database. The warehouse control database contains the control tables that are required to store Data Warehouse Center metadata. You initialize the control tables for this database when you install the warehouse server as part of DB2 Universal Database or use the Data Warehouse Center Control Database Management window. During initialization, you specify the ODBC name of the warehouse control database, a valid DB2 user ID, and a password. The Data Warehouse Center authorizes this user ID and password to update the warehouse control database. In the Data Warehouse Center, this user ID is defined as the default warehouse user.
Tip:The default warehouse user requires a different type of database and operating system authorization for each operating system that the warehouse control database supports. For more information, see DB2 Warehouse Manager Installation Guide.

The default warehouse user is authorized to access all Data Warehouse Center objects and perform all Data Warehouse Center functions. However, you probably want to restrict access to certain objects within the Data Warehouse Center and the tasks that users can perform on the objects. For example, warehouse sources and warehouse targets contain the user IDs and passwords for their corresponding databases. You might want to restrict access to those warehouse sources and warehouse targets that contain sensitive data, such as personnel data.

To provide this level of security, the Data Warehouse Center provides a security system that is separate from the database and operating system security. To implement Data Warehouse Center security, you define warehouse users and warehouse groups. A warehouse group is a named grouping of warehouse users and their authorization to perform functions. Warehouse users and warehouse groups do not have to match the DB users and DB groups that are defined for the warehouse control database.

For example, you might define a warehouse user that corresponds to someone who uses the Data Warehouse Center. You might then define a warehouse group that is authorized to access certain warehouse sources, and add the new user to the new warehouse group. The new user is authorized to access the warehouse sources that are included in the group.

There are various types of authorization that you can give users. You can include any of the different types of authorization in a warehouse group. You can also include a warehouse user in more than one warehouse group. The combination of the groups to which a user belongs is the user's overall authorization.

In this lesson, you will log on to the Data Warehouse Center as the default warehouse user, define a new warehouse user, and define a new warehouse group.


Reinitializing the warehouse control database

When you install the Data Warehouse Center as part of the default DB2 installation, the installation process registers the default warehouse control database as the active warehouse control database. However, you must use the TBC_MD database in the sample as the warehouse control database so that you can use the sample metadata. To make TBC_MD the active database, you must reinitialize it.

To reinitialize TBC_MD:

  1. Click Start --> Programs --> IBM DB2 --> Warehouse Control Database Management.

    The Data Warehouse Center - Control Database Management window opens.

  2. In the New control database field, type the name of the new control database that you want to use.
    TBC_MD
    
  3. In the Schema field, use the default schema of IWH.
  4. In the User ID field, type the name of the user ID that is required to access the database.
  5. In the Password field, type the name of the password for the user ID.
  6. In the Verify Password field, type the password again.
  7. Click OK.

    The window remains open. The Messages field displays messages that indicate the status of the creation and migration process.

  8. After the process is complete, close the window. TBC_MD is now the active warehouse control database.

Starting the Data Warehouse Center

In this exercise, you will start the Data Warehouse Center from the DB2 Control Center and log on as the default warehouse user. When you log on, you will use the TBC_MD warehouse control database. The default warehouse user for TBC_MD is the user ID that you specified when you created the Data Warehousing sample databases.

TBC_MD must be a local or a cataloged remote database on the workstation that contains the warehouse server. It must also be a local or cataloged remote database on the workstation that contains the Data Warehouse Center administrative client.

To start the Data Warehouse Center:

  1. Click Tools --> Data Warehouse Center in the DB2 Control Center window. The Data Warehouse Center Logon window opens.
  2. Click Advanced.

    The Advanced window opens.

  3. In the Control database field, type TBC_MD, the name of the warehouse control database that is included in the sample.
  4. In the Server host name field, type the TCP/IP host name for the workstation where the warehouse manager is installed.


    Figure db2tu035 not displayed.

  5. Click OK.

    The Advanced Logon window closes.

    The next time that you log on, the Data Warehouse Center will use the settings that you specified in the Advanced Logon window.

  6. In the User ID field of the Logon window, type the default warehouse user ID.
  7. In the Password field, type the password for the user ID.


    The Logon window

  8. Click OK.

    The Data Warehouse Center Logon window closes.


Defining a warehouse user

In this exercise, you will define a new user to the Data Warehouse Center.

The Data Warehouse Center controls access with user IDs. When a user logs on, the user ID is compared to the warehouse users that are defined in the Data Warehouse Center to determine whether the user is authorized to access the Data Warehouse Center. You can authorize additional users to access the Data Warehouse Center by defining new warehouse users.

The user ID for the new user does not require authorization to the operating system or the warehouse control database. The user ID exists only within the Data Warehouse Center.

To define a warehouse user:

  1. In the left side of the main Data Warehouse Center window, click the Administration folder.
  2. Expand the Warehouse Users and Groups tree.
  3. Right-click the Warehouse Users folder and click Define.

    The Define Warehouse User notebook opens.

  4. In the Name field, type the business name of the user:
    Tutorial User
    

    The name identifies the user ID within the Data Warehouse Center. This name can be up to 80 characters-including spaces.

  5. In the Administrator field, type your name as the contact for this user.
  6. In the Description field, type a short description of the user:
    This is a user that I created for the tutorial.
    
    Tip:You can use the Description and Notes fields to provide metadata about the definitions for your warehouse. You can then publish this metadata in an information catalog for the warehouse. Users of the warehouse can search the metadata to find the warehouse that contains the information they need to query.
  7. In the User ID field, type the new user ID:
    tutuser
    

    The user ID must be no longer than 60 characters and cannot contain spaces, dashes, or special characters (such as @, #, $, %,>, +, =). It can contain the underscore character.

  8. In the Password field, type the password:
    password
    

    Passwords must be a minimum of six characters and cannot contain spaces, dashes, or special characters.
    Tip:You can change your password on this page of the user notebook.

  9. In the Verify Password field, type your password again.
  10. Verify that the Active User check box is selected.
    Tip:You can clear this check box to temporarily revoke a user's access to the Data Warehouse Center, without deleting the user definition.

    The Define Warehouse User notebook
  11. Click OK to save the warehouse user and close the notebook.

Defining the warehouse group

In this exercise, you will define a warehouse group that will authorize the Tutorial User that you just created to perform tasks.

To define the warehouse group:

  1. From the main Data Warehouse Center window, right-click the Warehouse Groups folder and click Define.

    The Warehouse Groups notebook opens.
    The Define Warehouse Group notebook

  2. In the Name field, type the name for the new group:
    Tutorial Warehouse Group
    
  3. In the Administrator field, type your name as the contact for this new group.
  4. In the Description field, type a short description of the new group:
    This is the warehouse group for the tutorial.
    
  5. From the Available privileges list, click >> to select all privileges for your group.

    The Administration and Operations privileges move to the Selected privileges list. Your group now has the following privileges.

    Administration
    Users in the warehouse group can define and change warehouse users and warehouse groups, change Data Warehouse Center properties, import metadata, and define which warehouse groups have access to objects when they are created.

    Operations
    Users in the warehouse group can monitor the status of scheduled processing.
  6. Click the Warehouse Users tab.
  7. From the Available warehouse users list, select the Tutorial User.
  8. Click >.

    The Tutorial User moves to the Selected warehouse users list.
    Figure db2tu037 not displayed.
    The user is now part of the warehouse group.

    Skip the Warehouse sources and targets page and the Processes page. You will create these objects in subsequent lessons. You will authorize the warehouse group to access objects as you create the objects.

  9. Click OK to save the warehouse user group and close the notebook.

What you just did

In this lesson, you logged on to the Data Warehouse Center, created a new user, and defined a warehouse group. In subsequent lessons, you will authorize the warehouse group to access the objects that you will define.


[ Top of Page | Previous Page | Next Page ]