Practical 1
Practical 1
Click next on the welcome screen to proceed with the database configuration
Step-3:-
The first step after clicking on next button of the welcome screen is to specify what
action to take,since we do not have a database ,we will select the Create a
Database option in step 1 and click on next button.
Step-4:-
This step will offer the following three options for a database template to select:-
Select the Data Warehouse option for our purposes and click on next button to
proceed with installation
Step-5:-
This step will ask for the database name it must be between 1 to 8 characters,any
more then that will generate an error.
Give the database name as MCCDW, the same name will be automatically assigned
as SID i.e Oracle System Identifier and click on the next button
Step-6:-
The next step of the database creation process will ask whether we want to
configure enterprise manager.
This step is for setting the Database passwards on the system accounts.
In this step for Ease of Access we enter a common password for all Account in our
case password is oracle.
Step-8:-
This step is about storage so select the default option that is the file system and
click on next button
Step-9:-
This step is for specifying the locations where database files are to be created.
Select the flash recovery option and leave the flash recover area and flash recovery
size as default
Step-11:-
The next step is for Creating sample schemas in the database for our reference.
select the sample schema option and proceed with the installation
Step-12:-
We are going to leave the default settings on the screen and proceed with the
installation.
Step-13:-
We are going to leave the default settings on the screen and proceed with next
button
Step-16:-
The final step has following three options as shown on the screen.
Step-17:-
From the List we can see Oracle Warehouse Builder is installed and a database
named MCCDW will be created. If you want you can save the list as HTML file
Step-19:-
In Password Management window just uncheck the blue tick beside the OWBSYS
and enter the password you want. In our case it is oracle. And click on OK
PRACTICAL-2:-
Step-2:-
Click next on the welcome screen to proceed with the configuration
Step-3:-
This step will ask you for the database connection information.
The host name is the name assigned to the computer on which database has
been installed leave it as LOCALHOST.
The port number is the one we had assigned to the listener,leave it as default
that is 1521.
For the oracle service name enter the name that was assigned to the
database that is MCCDW
Step-4:-
The next step is to determine the connection information for the database
Select manage warehouse builder workspaces from the following options given on
the screen shot.
Step-5:-
The next step will ask that what we have to do with workspaces.
Step-6:-
Step-7:-
This step will ask for the username and passward of the database DBA
Step-8:-
This step will ask to enter the new username, passward ,and workspace name for
the system.
Step-9:-
This step will ask for the passward for the OWBSYS user
Step-10:-
This step is for specifying the tablespace name for the OWBSYS schema
Step-11:-
This step is to specify a base language for the repository
Step 12:-
The final step is to specify any workspace users from existing database users.
This is optional step click on next button to proceed with the installation.
Step-13:-
Step 1:-
Run the Net Configuration Assistance as shown in above Fig to Configure the
Listener
Follow the Below Screen Shots to Create a Listener
Step-2:-
The next step will ask you what you want to do with the listener,the four options
available are given on the below screen shot
It will have tcp already selected for us so leave the default setting and proceed
further
Step-6:-
This step will ask you whether you wnt to configure another listener
Select no and click on next button and then finish button on the main screen to
complete with configuration of the listener
PRACTICAL-4:-Importing the source metadata
Step-1:-
@ create_ws_orders.sql
Then enter
Step-3
Right click on the oracle node under database node and then select new
Step-4:-
Select oracle Module and Click on ok to proceed further
Step-5:-
Click next on the welcome screen.
Step-6:-
Give name as ACME_WS_ORDERS and proceed further
Step-7:-
Fill the details as given in below screenshot
Password: acme1234
Step-8:-
Click on test connection if it is successful then click on ok to proceed
Step-9:-
Since we want to import the tables, select the tables checkbox and click on next to
proceed.
Step-11:-
Select >> this node to select all tables ad click on next to proceed
Step-12:-
Click finish to proceed
Step-13:-
Click ok to proceed
Step-14:-
The tables will created under ACME_WS_ORDERS in the tables list
FLAT FILES
Step-1:-
Expand the MCC_PRJ. Right-click the Files node and select New
Step-2:-
The Create Module Wizard: Welcome page appears. Click Next
Step-3:-
On the Create Module Wizard: Name and Description page, enter SOURCE as the
name for the module. Click Next.
Step-4:-
The Create Module Wizard: Connection Information page appears. In a flat file
source module, Location is the path or the directory in the file system where the flat
files reside.
On the Create Module Wizard: Connection Information page, OWB creates a default
location, SOURCE_LOCATION1. Click Edit and you will see Edit File System
Location1 window Pop Up
Step-5:-
The Edit File System Location: SOURCE_LOCATION1 window appears.
In the Edit File System Location: SOURCE_LOCATION1 window, rename the default
name SOURCE_LOCATION1 to SOURCE_LOCATION.
Click Browse and locate the folder named sourcefiles In my case the folder is in
D: drive which consist of two CSV files named expense_categories.csv and
export.csv
Click OK
Step-6:-
In the Connection Information window, ensure that Import after finish is selected.
Selecting this option launches the Import Metadata Wizard. Click Next
Tip: If the check box is not selected, the Import Metadata Wizard does not launch
automatically. To launch the Import Metadata Wizard manually, in Project Explorer,
expand Files, right-click the SOURCE module, and select Import
Step-7:-
On the Import Metadata Wizard: Filter Information page, accept the default selection
All Data Files and click Next.
Step-10:-
On the Import Metadata Wizard: Object Selection page; expand the D:\sourcefiles
node
A list of files is displayed. Use >> (Add All) to move all file definitions from the
Available list to the Selected list. Click Next
Step-11:-
Before importing, Warehouse Builder needs to know the structure of these files.
Through the sampling process, information about the structure is gathered.
Step-13:-
Accept the defaults on this page. This file has two columns: Expense Type and
Expense Categories. The wizard makes assumptions about the structure of the flat
file.
The lower portion of the dialog box displays a sample of how OWB imports the rows
of the flat file data into columns in a table. Click Next.
Step-16:-
On the Flat File Sample Wizard: Record Organization page, accept the default option
of Records delimited by carriage return (<CR>). Click Next.
Step-17:-
On the Flat File Sample Wizard: File Format page, accept the default option of
Delimited for file format. Click Next.
Step-18:-
On the Flat File Sample Wizard: File Layout page, accept the default values of 0 for
Skip Rows.
Step-19:-
On the Flat File Sample Wizard: Field Properties page, select Use the first record
as the field names
Step-20:-
In the following screenshot, notice that the field names have changed.
Click Next.
Step-21:-
Review the summary specifications that you have defined for the
expense_categories_csv file. On the Flat File Sample Wizard: Summary page, click
Finish
Step-22:-
On the Import Metadata Wizard: Summary and Import page, in the Status field for
expense_categories_csv, the green check mark indicates that
expense_categories_csv has been sampled.
Now select the export_csv file if not already selected. Click Sample and follow
the same process as followed for expense_categories_csv
Step-23:-
Now there is an error because date is a reserved word and you have not yet
renamed the date field.
On the Flat File Sample Wizard: Field Properties page, select Date.
From the Type drop-down list, select Date. In the Mask column, enter dd-mon-yy
Step-24:-
We can see Date is used as Column name which is a reserved keyword in Oracle
Step-25:-
Rename the Column name to Expense_Date.
Step-26:-
We encounter another error here On the Flat File Sample Wizard: Field Properties
page
Step-27:-
Rename Reimbursable_Amount_(USD) to Reimbursable_Amount From the Type
drop-down list, select Decimal External
Step-28:-
Click Next. The Flat File Sample Wizard: Summary page appears
Step-29:-
Review the summary specifications that you defined for the EXPORT_CSV file. On
the Flat File Sample Wizard: Summary page, click Finish
Step -30:-
On the Import Metadata Wizard Summary and Import page, the green check mark in
the Status field for both EXPENSE_CATEGORIES_CSV and EXPORT_CSV indicates
that both the files have been sampled.
On the Import Metadata Wizard: Summary and Import page, click Finish.
Step -31:-
In Project Explorer, expand Files > SOURCE. You see the two tables
(EXPENSE_CATEGORIES_CSV and EXPORT_CSV) you just sampled and imported.
In the Design Center, click Save All on the toolbar. In the Warehouse Builder Warning
window, click Yes to commit your work.
PRACTICAL-5
Target modules contain the metadata definition of the target objects you design.
Therefore, before you create a Warehouse Builder target module, you need to
create a target schema that will physically store your target objects on deployment.
Then, you make sure that the target module references this target schema by
assigning an appropriate location.
To set up your target warehouse module, you perform the following steps:
Step-1:-
In the Global Explorer panel, expand the Security node. Right-click the Users
node and select New
Step-2:-
In the Create Database User dialog box, enter system as username and <your
system account password> as the password.
Enter EXPENSE_WH as the username for the new DB user and enter the password
you want. Accept the defaults for the tablespace properties. Click OK
Step-4:-
Observe EXPENSE_WH has been added to the Selected Users list. Click OK
Step-5:-
Examine the Users node. You find the EXPENSE_WH user added to the list of existing target users.
Also, in the Connection Explorer panel, expand the Oracle Locations node and note
that a new location, EXPENSE_WH_LOCATION, has been added.
You have created a new target schema, EXPENSE_WH, which will physically store
your target warehouse objects.
Step-1:-
In the MCC_PRJ project, expand the Databases node, right-click the Oracle node, and
select New
Step-2:-
The Create Module Wizard is launched. Click Next on the Welcome page.
Step-3:-
On the Name and description page, enter EXPENSE_WH as the name of the
module.
Accept Development as the module status and ensure that Warehouse Target is
selected as the module type. Click Next
Step-4:-
Enter the Details as shown in below Screenshot and Click on Test Connection
After Successful Test Result Click OK
Step-5:-
Observe that all the information is already filled with the location,
EXPENSE_WH_LOCATION
Examine the details and click Finish
Step-6:-
Observe that the EXPENSE_WH target module has been added under the Oracle
node of the MCC_PRJ project. Expand EXPENSE_WH and examine its contents.
The User and the location created are highlighted in above Screenshot.
Practical-6
1. Dimension Attributes
2. Levels
3. Level Attributes
4. Hierarchies
Step-1:-
In project explore window we are going to expand the database node under
ACME_DW_PROJECT,and then ACME_DWH.
Right-click on the dimension node and select NEW,Using TIME WIZARD to launch the
time dimension wizard
Step-2:-
This step will ask us what type of storage to be used for our new dimension select
ROLAP Relational Storage and proceed
Step-6:-
Step-7:-
In this step we choose the hierarchy and levels for our time dimension
Select all the checkboxes within Normal Hierarchy and click next to proceed
Step-8:-
In this step the wizard will provide us the details about what it is going to create.
The time dimension progress panel will be showed click next to proceed
Step-10:-
Step-1:-
In project explore window we are going to expand the database node under
ACME_DW_PROJECT,and then ACME_DWH.
Right-click on the dimension node and select NEW,Using WIZARD to launch the
create dimension wizard
Step-2:-
Step-5:-
In the next step we will make the following changes
a) Enter SKU in the name column on line 4 and leave the data type as
VARCHAR2, but change the length to 50. Scroll the window to the
right if any columns are not visible that need to be changed. We can
also expand the dialog box to show additional columns.
b) Enter LIST_PRICE in the name column on line 5, leave the data type
as NUMBER, and leave the precision and scale as eight and two as it
suggested.
In this step For our dimension, we'll enter DEPARTMENT, CATEGORY, BRAND, and
ITEM in that order from top to bottom.that is the hierarchy and click next to proceed
Step-7:-
In this step leave the default settings and click on next button
Step-8:-
In these step we get to choose the SLOWLY CHANGING DIMENSION that is SCD
Select do not keep history and proceed with the next button
Step-9:-
This step provides the summary click on next to proceed
Step-10:-
The product dimension progress panel will be showed click next to proceed
Step-11:-
Step-1:-
Step-2:-
Step-3:-
\
Step-4:-
Step-5:-
In this step make the following changes:-
Step-8:-
Step-9:-
Step-10:-
Step-11:-
Step-12:-
CREATING A CUBE IN OWB:-
Step-1:-
Right-click on the Cubes node under the ACME_DWH module in Project Explorer,
select New, and then Using Wizard... to launch the cube-creation wizard.
Step-2:-
Click next on the welcome screen to proceed
Step-3:-
In this step we have to name the cube
Step-4:-
In these step we will specify the storage type that is ROLAP and proceed further
Step-5:-
In this step, we will choose the dimensions to include with our cube.
Step-6:-
Click on >> to add the dimensions to the selected dimension window and click
on next button
Step-7:-
Moving on to the last step, we will enter the measures we would like the cube to
contain. When we enter QUANTITY for the first measure and SALES_AMOUNT for the
second one, we end up with a screen that should look similar to this with the dialog box
expanded to show all the columns.
Step-8:-
Step-9:-
Clicking on FINISH on this screen will exit the dialog box, and the cube will be created and will be
accessible in the Project Explorer window.
MAPPING:-
Step-1:-
In these step double click on TIME_DIMENSION_!
Step-2:-
Go to project explorer
Step-4:-
Step-11:-
Practical-7:-
Aim:-DEPLOYMENT OF DATAWAREHOUSE
Deploying Objects in the Target Warehouse
Deployment is the process of creating your target system from the logical
design or model.
The process includes generating scripts, such as DDL that creates data objects
(such as tables, views, and dimensions).
The process also includes generating SQL, PL/SQL, and SQL*Loader scripts that
load data into data objects.
When you deploy ETL mappings, the deploy procedure only generates a PL/SQL
script. You need to explicitly execute the scripts to perform ETL.
To deploy objects, Oracle Warehouse Builder provides two options: you can either
use the Control Center Manager or you can deploy objects directly from the
Project Explorer in the Design Center.
In the Control Center Manager, you can view the deployment history of an object.
The deployment history is also used to automatically determine the default
deployment action.
These options are not available if you deploy objects from the Project Explorer
tree in the Design Center.
Step-1:-
To deploy, you must launch the Control Center Manager. From the Tools menu,
select Control Center Manager.
Step-2:-
In the navigation tree on the left, expand and select External Tables.
In the Object Details panel on the right, check whether the Design Status is set
to New for both external tables, EXPENSE_CATEGORIES and EXPENSE_DATA.
Step-4:-
Click Default Actions (highlighted in the screenshot) and observe that Deploy
Action is changed to Create.
Step-5:-
Step-7:-
To deploy the selected external tables, from the File menu, select Deploy > To
Control Center or click the Deploy
Step-8:-
You have now successfully deployed the two external tables to the
EXPENSE_WH schema.
The deploy status will change to success from not deployed.
Check all the data from the Flat files are loaded into External Table.
Step-11:-
We can see here 1,425 Rows are inserted into EXPENSE_DATA External Table.
PRACTICAL-8:-
PivotTables are one of the most powerful features of Microsoft Excel. They allow
large amounts of data to be analyzed and summarized in just a few mouse clicks.
How to Create a PivotTable
Step-1:-
First, ensure that you have some raw data in a worksheet in Excel. So we start Excel
and we load such a list.
Step-2:-
Once we have the list open in Excel, were ready to start creating the PivotTable.
Click on any one single cell within the list:
Step-3:-
What data should your new PivotTable be based on, and where should it be created?
Because we already clicked on a cell within the list (in the step above), the entire
list surrounding that cell is already selected for us.
We also need to select whether we want our new PivotTable to be created on a new
worksheet, or on an existing one. In this example we will select a new one:
Step-4:-
The new worksheet is created for us, and a blank PivotTable is created on that
worksheet:
Step-5:-
The list of fields in the top part of the box is actually the collection of column
headings from the original raw data worksheet.
The four blank boxes in the lower part of the screen allow us to choose the way we
would like our PivotTable to summarize the raw data.
It's important to understand how the PivotTable field List works and the ways that
you can arrange different types of fields so that you can achieve the results that you
want when you create the field layout of a PivotTable or PivotChart report.
Step-6:-
So far, there is nothing in those boxes, so the PivotTable is blank. All we need to do
is drag fields down from the list above and drop them in the lower boxes.
A perfect candidate for this this Value box in our sample data is the Amount
field/column.
Notice that (a) the Amount field in the list of fields is now ticked, and Sum of
Amount has been added to the Values box, indicating that the amount column
has been summed.
If we examine the PivotTable itself, we indeed find the sum of all the Amount
values from the raw data worksheet.
Step-8:-
Now if we would like to see a summary of our data, where we have a row heading
for each of the different salespersons in our company, and a total for each
salesperson.
To achieve this, all we need to do is to drag the Salesperson field into the Row
Labels box:
Step-9:-
Using Payment Method as a column heading. Simply drag the Payment Method
heading to the Column Labels box:
This allows us to filter our report based on which holiday package was being
purchased.
Step-11:-
We only want to see cheque and credit card transactions (i.e. no cash transactions),
then we can deselect the Cash item from the column headings.
Click on the drop-down arrow next to Column Labels, and un-tick Cash:
Step-1:-
The Create PivotTable with PivotChart box appears, asking you two questions:
1.What data should your new PivotTable be based on, and where should it be
created?
Because we already clicked on a cell within the list (in the step above), the entire
list surrounding
that cell is already selected for us.
2.We also need to select whether we want our new PivotChart to be created on a
new worksheet, or on an existing one. In this example we will select a new one:
Step-3:-
Use the PivotChart Filter Pane to sort and filter the underlying data and change
the appearance of the PivotChart report.
Axis fields (Categories) box: This displays items from the Row label of the
associated PivotTable report that form individual categories for which data points
are charted. Categories appear on the horizontal (category) axis, also called the x-
axis, of the PivotChart report.
Legend fields (Series) box: This displays items from the Column label of the
associated PivotTable report that form the individual data series. The names of the
series appear in the legend of the PivotChart report.
The Report Filter box: If the associated PivotTable report has one or more report
filters, you can use the Report Filter box as a convenient way to summarize and
quickly focus on a subset of data without modifying your series and category
information.
Step-4:-
To start with a pivot chart lets drag the Amount field from the Field List into the
Values Box, notice that a chart is created with a label of Sum of Amount and
total amount is displayed.
Step-5:-
Now drag Salesperson from field list and drop into the Axis Field box and notice
that salesperson is listed on the X-axis with total Amount on Y-Axis
Step-6:-
Similarly you have to drag Package from the Field List into the Report Filter box
and Payment method into the Legend Fields box.
Step-7:-
You can filter the data according to Payment Method by clicking on the link on the
chart and filter out the data by ticking appropriate options.