Data Warehouse Center Administration Guide
DB2 Universal Database provides a data warehousing sample that you can
use to familiarize yourself with the Data Warehouse Center. It includes
sample data and metadata that you can run to create tables in a warehouse
database.
Install and run the sample to learn about the relationships between source
and target data, and the definitions in the Data Warehouse Center that move
and transform the data.
The sample defines a star schema in the Data Warehouse Center. The
star schema has three dimension tables:
It has one fact table, named FACT TABLE.
You can install the Data Warehousing sample on Windows NT only.
The sample is installed as part of the typical installation of DB2 Universal
Database on Windows NT. You can also install the sample by selecting
the Getting Started component, or the First Steps and
Sample Databases subcomponents of the Getting Started
component, in a custom installation.
You must install the sample on the same workstation as the warehouse
server.
You must create the sample databases after you install the files for
the sample. To create the databases:
- Open the First Steps window.
- Click Create Sample Databases.
The Create SAMPLE Databases window opens.
- Select the Data Warehousing sample check box.
- Click OK.
- If you are installing the data warehousing sample, a window opens for the
DB2 user ID and password to use to access the sample.
- Type the user ID and password that you want to use. You must
specify a valid DB2 user ID and password.
- Click OK.
A progress window opens. When the databases are created, click
OK.
The databases that you created are registered with ODBC.
The following databases are created:
- DWCTBC
- Contains the operational source tables that are required for the Data
warehousing section of the tutorial.
- TBC_MD
- Contains metadata for the Data Warehouse Center.
You need to create a database for the data that is generated when you
run the sample.
To create the database:
- Start the DB2 Control Center:
- Right-click the Databases folder, and click Create
--> Database Using Wizard. The Create Database wizard
opens.
- In the Database name field, type the name of the
database:
SAMPWHS
If you use a different name, you must change the name of the database in
the TBC Sample Targets warehouse target. Otherwise the sample will not
run.
- From the Default drive list, select a drive for the
database.
- In the Comments field, type a description of the
database:
Sample warehouse database
- Click Finish. All other fields and pages in this wizard
are optional. The SAMPWHS database is created and is listed in the DB2
Control Center.
There are several ways that you can register a database with ODBC.
You can use the Client Configuration Assistant on Windows NT, the DB2 Command
Line Processor, or the ODBC32 Data Source Administrator on Windows NT.
The following instructions apply to the Client Configuration Assistant.
For more information about the Command Line Processor, see the DB2
Universal Database Command Reference. For more information about
the ODBC32 Data Source Administrator, see the online help in the
Administrator.
To register the SAMPWHS database with ODBC on Windows NT:
- Start the Client Configuration Assistant by clicking Start
--> Programs --> IBM DB2 --> Client Configuration
Assistant. The Client Configuration Assistant window
opens.
- Select SAMPWHS from the list of databases.
- Click Properties. The Database Properties window
opens.
- Select Register this database for ODBC. Use the default
selection of As a system data source, which means that the data is
available to all users on the system.
- Click OK. All other fields are optional. The
SAMPWHS database is registered with ODBC.
The DWCTBC database contains the source tables for the sample
warehouse. It contains the following tables:
- SALES
- INVENTORY
- PRODUCTION_COSTS
- GEOGRAPHIES
- SCENARIO
- TIME
- PRODUCT
To view the data in these tables:
- From the DB2 Control Center, expand the objects in the DWCTBC database
until you see the Tables folder.
- Click the folder. In the right pane, you see all the tables for the
database.
- Find the table that you want to view. Right-click it, and click
Sample Contents.
Up to 200 rows of the table are displayed. The column names are
displayed at the top of the window. You might need to scroll to the
right to see all the columns and scroll down to see all the rows.
To access the sample, you must log on to the Data Warehouse Center,
specifying TBC_MD as the warehouse control database.
If the TBC_MD database is not local to the workstation that contains the
warehouse server, you must catalog it as a remote database on the
workstation. If it is not local to the workstation that contains the
Data Warehouse Center administrative client, you must catalog it on that
workstation as well.
To log on to the Data Warehouse Center:
- Click Tools --> Data Warehouse Center in the DB2 Control
Center. The system will automatically try to log on to the Data
Warehouse Center using your DB2 Control Center user name and password.
The Data Warehouse Center Logon window opens.
- Click Advanced.
The Advanced window opens.
- In the Control database field, type TBC_MD, the name
of the warehouse control database that is included in the sample.
- In the Server host name field, type the TCP/IP host name for
the workstation where the warehouse server is installed.
- 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. If you first
log on to the DB2 Control Center with a user ID that is defined to the Data
Warehouse Center, then the Data Warehouse Center will use the same user ID to
log you on automatically when you click Tools --> Data Warehouse
Center.
- In the User ID field of the Logon window, type the user ID that
you specified when you created the Data Warehousing sample databases.
- In the Password field, type the password for the user
ID.
- Click OK.
The Data Warehouse Center Logon window closes, and you are now logged on to
the Data Warehouse Center.
After you log on to the Data Warehouse Center, you can view and modify the
properties of the sample metadata:
- Expand the Warehouse Sources folder.
The TBC Sample Sources warehouse source is displayed.
- Right-click the TBC Sample Sources warehouse source and click
Properties to view the properties of the warehouse source.
- In the System Name field of the Database page, specify the host
name of the workstation on which the sample database exists.
This step is optional and is used only if you are using a database or file
that has the same name as another database or file on a different
workstation.
- In the User ID field, type the user ID that you specified when
you created the sample database.
- In the Password field, type the password for the user
ID.
- Type the password again in the Verify Password field.
- Click OK to close the notebook.
- Click the Tables folder. The tables in the warehouse
source are displayed on the right-hand side of the window.
The warehouse source contains the following tables:
- INVENTORY
- PRODUCT
- SCENARIO
- TIME
- PRODUCTION_COSTS
- SALES
- Right-click a table, and click Properties to view its
properties.
- Click OK or Cancel to close the notebook.
- Expand the Warehouse Targets folder.
The TBC Sample Targets warehouse target is displayed.
- Right-click the TBC Sample Targets warehouse target and click
Properties to view the properties of the warehouse target.
- In the System Name field of the Database page, specify the host
name of the workstation on which the sample database exists.
This step is optional and is used only if you are using a database or file
that has the same name as another database or file on a different
workstation.
- In the User ID field, type the user ID that you specified when
you created the sample database.
- In the Password field, type the password for the user
ID.
- Type the password again in the Verify Password field.
- Click OK to close the notebook.
- Expand the Subject Area folder.
An icon for the TBC Sample subject area is displayed.
- Right-click the TBC Sample subject area and click
Properties to view the properties of the subject area.
- After you have finished viewing the properties, click OK or
Cancel to close the notebook.
- Expand the TBC Sample subject area tree.
- Expand the Processes folder.
Four processes are displayed under the folder:
- Sample Fact Table
- Sample Product
- Sample Scenario
- Sample Time
- Right-click the Sample Fact Table process, and click
Open.
The Process Model window opens.
The process contains the following objects:
- Three sources:
- SALES
- PRODUCTION_COSTS
- INVENTORY
- An SQL step named Fact Table SQL. The SQL step joins the sources in
the process, and adds three columns: CITY_ID, TIME_ID, and
SCENARIO_ID.
- A target table named TARGET FACT TABLE.
- A shortcut to the Select Time step. This shortcut is used in
scheduling the sequence of steps to run in this sample.
To view the metadata for an object in a process, right-click the object and
click Properties. Click OK or Cancel
to close the notebook.
- Right-click the Sample Product process, and click
Open.
The Process Model window opens.
The process contains the following objects:
- A source named PRODUCT.
- An SQL step named Select Product. The SQL step selects all the
columns from the source.
- A generated target table named TARGET PRODUCT.
- A shortcut to the Select Scenario step. This shortcut is used in
scheduling the sequence of steps to run in this sample.
To view the metadata for an object in a process, right-click the object,
and click Properties. Click OK or
Cancel to close the notebook.
- Right-click the Sample Scenario process, and click
Open.
The Process Model window opens.
The process contains the following objects:
- A source named SCENARIO.
- An SQL step named Select Scenario. The SQL step selects all the
columns from the source.
- A generated target table named TARGET SCENARIO.
- A shortcut to the Select Time step. This shortcut is used in
scheduling the sequence of steps to run in this sample.
To view the metadata for an object in a process, right-click the object and
click Properties. Click OK or Cancel
to close the notebook.
- Right-click the Sample Time process, and click
Open.
The Process Model window opens.
The process contains the following objects:
- A source named TIME.
- An SQL step named Select Time. The SQL step selects all the columns
from the source.
- A generated target table named TARGET TIME.
- A shortcut to the Fact Table SQL step. This shortcut is used in
scheduling the sequence of steps to run in this sample.
To view the metadata for an object in a process, right-click the object,
and click Properties. Click OK or
Cancel to close the notebook.
- Expand the Warehouse Schemas folder.
- Right-click the warehouse schema and click Open.
The Warehouse Schema Model window opens. It contains a join of the
following tables:
- TARGET FACT TABLE
- TARGET PRODUCT
- TARGET SCENARIO
- TARGET TIME
Before you run the steps, you must promote them to test mode, and then
to production mode. You must promote them in the order in which they
will run:
- Select Product
- Select Scenario
- Select Time
- Fact Table SQL
To promote the steps to test mode:
- Right-click the Sample Product process, and click
Open.
- Right-click the Select Product step, and click Mode
--> Test.
The Data Warehouse Center starts to create the target table, and displays a
progress window. Wait until the Data Warehouse Center finishes
processing before you start the next procedure.
- Repeat steps 1 and 2 for the rest of the steps to promote the steps to
test mode:
- The Select Scenario step in the Sample Scenario process.
- The Select Time step in the Sample Time process.
- The Fact Table SQL step in the Sample Fact Table process.
To promote the steps to production mode:
- Right-click the Sample Product process, and click
Open.
- Right-click the Select Product step, and click Mode
--> Production.
The Data Warehouse Center starts to create the target table, and displays a
progress window. Wait until the Data Warehouse Center finishes
processing before you start the next procedure.
- Repeat steps 1 and 2 for the rest of the steps to promote the
steps to production mode:
- The Select Scenario step in the Sample Scenario process.
- The Select Time step in the Sample Time process.
- The Fact Table SQL step in the Sample Fact Table process.
To run the steps, you run the Sample Product step. The rest of
the steps start, in sequence, after the Sample Product step finishes
processing.
To run the Sample Product step:
- From the main Data Warehouse Center window, click Warehouse
--> Work in Progress.
The Work in Progress window opens. You use the Work in Progress
window to monitor the progress of all steps in the Data Warehouse Center that
are running or scheduled.
- Click Work in Progress --> Run New Step.
The Run New Step window opens.
- Select the Sample Product step, and click >.
- Click OK.
You should see an entry for the step that is running. While the step
is running, it has a status of Populating. When it finishes running, it
should have a status of Successful. As one step in the sequence
finishes processing, the next step starts to run and has a status of
Populating.
The SAMPWHS database that you created contains the results of the step
processing. It contains the following tables:
- TARGET FACT TABLE
- TARGET PRODUCT
- TARGET SCENARIO
- TARGET TIME
To view the data in these tables:
- From the DB2 Control Center, expand the objects in the SAMPWHS database
until you see the Tables folder.
- Click the folder. In the right pane, you see all the tables for the
database.
- Find the table that you want to view. Right-click it, and click
Sample Contents.
Up to 200 rows of the table are displayed. The column names are
displayed at the top of the window. You might need to scroll to the
right to see all the columns and scroll down to see all the rows.
[ Top of Page | Previous Page | Next Page ]