Upload
satyendra-singh
View
23
Download
5
Embed Size (px)
Citation preview
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
1
PRACTICAL NO. – 01
AIM :- Installation of Oracle 11g Release 2
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this Practical we will install Oracle 11g Release 2.
STEPS :- Click on Oracle 11g Release 2 setup
Then it will ask for email ID & Password
Skip this step Click on Next Button The whole installation process will take nine steps as given in following screen shots.
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
2
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
3
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
4
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
5
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
6
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
7
PRACTICAL NO. – 02
AIM :- Show the Configuration of Listener
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this Practical we will configure the Listener.
STEPS :- Run the Net Configuration Assistance as shown in below Fig to
Configure the Listener & Then follow the below screen shots to
Create Listener named as MY_LISTENER_01.
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
8
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
9
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
10
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
11
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
12
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
13
PRACTICAL NO. – 03
AIM :- Show the Creation of Database
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this Practical we will Create the New Database.
STEPS :- Run the Database Configuration Assistance as shown in below Fig to
Create the Database & Then follow the below screen shots to create
Database named as Satyendra.
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
14
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
15
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
16
For Ease of Access enter a common password for all Account(123456789)
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
17
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
18
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
19
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
20
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
21
During the installation we will be prompted with following popup with various information.
Click on Password Management button to unlock OWBSYS Schema.
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
22
In Password Management window just uncheck the blue tick beside the OWBSYS and
enter the password (123456789) And then click on OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
23
PRACTICAL NO. – 04
AIM :- Show the Workspace And Repository Configuration
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this Practical we will Configuration Workspace And repository.
STEPS :- Click on the Repository Assistant as shown in the below Screen Shot.
The Repository Assistant enables to create a Warehouse Builder Design
Repository in your database to store the metadata definitions that describe
your sources, targets, and ETL processes.
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
24
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
25
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
26
Enter Password for “SYSTEM” (123456789)
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
27
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
28
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
29
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
30
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
31
PRACTICAL NO. – 05
AIM :- Creation of Non-Oracle Module (SQL Server)
SOFTWARE :- Oracle 11g Release 2, SQL Server
PROCEDURE :- In this Practical we will create Non-Oracle module using SQL Server .
STEPS :- Open SQL Server 2008 Then the new window will prompt
After that provide the server name if not given (.\SQLExpress)
OR else simply press connect.
Now create New Database & Login ID as follows
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
32
Provide Database Name Then press OK
Now create New Login
Go to SecurityRight click on LoginsNew Login
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
33
Provide Login name Select SQL server Authentication &
Provide PasswordThen select Enforce password policy
After that Select Default Database(i.e.Satyendra)
Then go to User MappingSelect your Databasepress OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
34
Now go to Control Panel Select Administrative Tool
After that select ODBC Data Source
Go to System DSN click on Add
Then select SQL Server & Finish
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
35
After that provide Data Source Name & Select your Server Next
Now provide Your SQL Server Login ID & Password Next
Then Select your Database as default Database Next FinishOK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
36
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
37
Now Go to Design Center Login with your corresponding Account
Now Select your PROJECT Database Non-Oracle ODBCNew
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
38
Click on Edit Provide your Username & Password OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
39
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
40
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
41
PRACTICAL NO. – 06
AIM :- Creation of Oracle Source User & Source Module.
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this practical we will create a Source User & Source Module.
STEPS :- To Create Source User first Open SQL Plus & follow the steps
First provide Username as system
Then provide the password which was given at the time of creating
Repository Assistance
After that Create Source User by “create user S_user” command
Where S_user is the Source Name
Now provide the Password as “identified by Suser;” where Suser
Is the password for Source User
After creating User provide permission to the user by below command
“grant connect,resource to S_user; “
Now connect to Source by entering your Source Username &
Password as “connect S_user;” & " Suser"respectively
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
42
Click On Design Center to create Source Module
Now login with your respective account
Provide the User Name which is same as your Workspace User Name
And provide the same Password which is used in Database
Provide your LOCALHOST name.
Provide the Service Name which is same as your Database Name
Then press OK
Now create the Source Module
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
43
Follow the below steps shown in diagram
Provide the name of Source Module & Select Data Source Then Press Next
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
44
Now click on Edit
Now provide the User Name i.e Source User Name & It’s Password
Provide Service Name which is given at the time of database creation.
After that click on “Test Connection” if It’s “Successful” then click OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
45
Click on Next & then Finish
Source Module
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
46
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
47
PRACTICAL NO. – 07
AIM :- Creation of Oracle Target User & Target Module.
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this practical we will create a Target User & Target Module.
STEPS :- To Create Target User First open Design Center
Now login with your respective account
Provide the User Name which is same as your Workspace User Name
And provide the same Password which is used in Database
Provide your LOCALHOST name.
Provide the Service Name which is same as your Database Name
Then press OK
Now double click on Security
Then right click on User
Click on New
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
48
Click On “Create DB User”
Provide DBA Name as “System”& it’s Password
After that provide Target User Name & Password
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
49
Now select your Target user from DB user if it’s not selected
& Then press OK
As we can see the Target user is created
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
50
Now create “ TARGET MODULE ”
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
51
Provide the name of Source Module & Select Warehouse Target Press Next
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
52
Now click on Edit Button
Now provide the User Name i.e Target User Name & It’s Password
Provide Service Name which is given at the time of database creation.
After that click on “Test Connection” if It’s “Successful” then click OK
Click on Next & Then Finish
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
53
PRACTICAL NO. – 08
AIM :- Importing data from Oracle & creation of Flat File & Metadata.
SOFTWARE :- Oracle 11g Release 2
PROCEDURE :- In this practical we will create a Flat file & Meta data.
STEPS :- Create Notpad File OR Excel File as Follows
Username,Area,Contact_No
Satyendra,Ghatkopar,123456789
Shiva,Kamraj,789456123
Anand,Chembur,987654321
Roshan,Kurla,654987321
Sarvesh,Sion,023165478
Ravi,Dadar,5698321474
Save the file with .CSV (Comma Seperated Value)extension
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
54
Click On Design Center to create Source Module
Now login with your respective account
Provide the User Name which is same as your Workspace User Name
And provide the same Password which is used in Database
Provide your LOCALHOST name.
Provide the Service Name which is same as your Database Name
Then press OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
55
Creation Of Flat File Module
Right click on File Go to New
Then Next Provide Name to the Mapping File
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
56
Now click on Edit Button
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
57
Click on Browse button ,Then select the location of your file
Press OK Then Next Finish
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
58
Import Flat File to Create Meta Data
Click on File Right click on your Flat File Module Select Import
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
59
Now Select Your Flat File Next
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
60
Click on sample to see your Metadata
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
61
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
62
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
63
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
64
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
65
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
66
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
67
PRACTICAL NO. – 09
AIM :- Using a Target Structure Create a Dimension & Cube
SOFTWARE :- Oracle 11g release2
PROCEDURE :-In this practical we will add table in Source Module & Target Module
Using which we can create Dimension & Cube
STEPS :- Click On Design Center to create Source Module
Now login with your respective account
Provide the User Name which is same as your Workspace User Name
And provide the same Password which is used in Database
Provide your LOCALHOST name.
Provide the Service Name which is same as your Database Name
Then press OK
Now create Source Module & Target Module
Then add Table in both the Module as follows
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
68
After creating Source Module double click on Module
Go to Table Right click New
There are Three table in Source Module which is to be added
PRODUCT TABLE STORE TABLE SALES TABLE
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
69
Provide the name of the Table as PRODUCT Then go to column & provide
ATTRIBUTE i.e column name Save
For adding two more tables Go to Palette Relational Drag the table from it
After the below window will appear Select create new table Provide name to the table
STORE Then press OK After that add columns
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
70
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
71
Now add another table named as SALES Repeat the same
Process as above for creating New Table CTRL + S (save) Close the window
CREATING DIMENSION USING TARGET STRUCTURE (MODULE)
Go to Target Module & Create 3 dimensions (Time,Product & Store Dimensions)
Also create a Cube named as Sales_Cube Follow the below steps
First of all Create Time Dimension (T_ModuleDimensions New Using Time Wizard )
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
72
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
73
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
74
Select all the Check Boxes under Normal Hierarchy
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
75
After creating Time Dimension Create “Product Dimension”(select using wizard)
As follows
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
76
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
77
After that add some Attribute i.e.
(PRODUCT_STOCK_PER_UNIT (Make it Business Identifier) , PRODUCT_PRICE)
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
78
Now add some levels in PRODUCT_DIM (Department,Category,Product)
Check all the Check Boxes
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
79
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
80
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
81
Using same process create “Store Dimension”
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
82
After that add some Attribute i.e.(STORE_NUMBER & STORE_ADDRESS)
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
83
Now add some levels in STORE_DIM (STOCK,CITY,STORE_NAME)
Check all the Check Boxes
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
84
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
85
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
86
Dimensions are ready Now create the “CUBE”
In Terget Module Right click on Cube New Using wizard
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
87
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
88
Now select all the Dimensions from Source Module
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
89
After that add some Attributes(SALES_QUANTITY , SALES AMOUNT)
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
90
Double Click On "SALES_CUBE"
FINAL OUTPUT
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
91
PRACTICAL NO. – 10
AIM :- Creation of Stage Mapping using Mapping editor
SOFTWARE :- Oracle 11g release2
PROCEDURE :-In this practical we will perform mapping on given table
STEPS :- First of all Open Design Center & Login to your corresponding account
After that create Source User And Source Module If it is not created.
Same for Target User and Module
Now add some tables in Source Module as follows
(PRODUCT,STORE,TRANSACTION)
In Target Module add one Table i.e.( TARGET)
Now Go to Target Module And Follow the Steps
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
92
Now Go to Oracle on the left side Select your Source Module
In that Drag and Drop all the Source Tables
Now repeat the same process for Target Module Drop your Target table
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
93
Now for joining these two tables we require “JOINER”
Just Go to Palette Select JOINER Drag & Drop
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
94
Now we have 3 Source Table which is to be join with 1 Target Table
Therefore we require 3 INGROUP and 1 OUTGROUP
First of all double click on INGROUP Then Go to Group
And click on add button to add 3rd
INGROUP
After that provide Name to each INGROUP for proper understanding
& Then simply follow the steps
Now simply drag the arrow from Product Table to Joiner (Product) for connection
Same for Store Table and Transaction Table
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
95
After that Connect OUTGROUP of joiner to Target Table
FINAL OUTPUT USING JOINER
Now we have to use the “AGGREGATOR”
Drop the Aggrrgator from palette ,again connect the OUTGROUP of
Joiner to the INGROUP of AGGREGATOR
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
96
Now go to the Aggregator property on the left side
Then select Group By Clause
Except ‘ID’ i.e. Product_ID & Store_ID Add all the columns
By simply double click & each column must be separated with comma
After that click on Validate to check whether entered ‘Clause’ is properly validated or not
If it’s properly validated then it will shows the ‘Validation Successful ’ messageOK
After that Double click on OUTGROUP of Aggregator Go to Output Attributes
Then add Sales_Quantity and Sales_Amount If it is not present Then press OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
97
After that connect Outgroup of Aggregator to the Ingroup of Target Table
One To One Mapping for each field apart from ID which is not present
FINAL OUTPUT USING AGGREGATOR
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
98
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
99
PRACTICAL NO. – 11
AIM :- Import the data from (SQL SERVER) & Create Pivot Chart & Pivot Table.
SOFTWARE :- SQL Server 2008,Microsoft Excel
PROCEDURE :-In this practical we will create a table in SQL Server using which we create
Pivot Table and Pivot Chart
STEPS :- Open SQL Server 2008 Then the new window will prompted
After that provide the server name if not given (.\SQLExpress)
OR else simply press connect. Then click on New Query
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
100
Now create the database by using (create database Satyendradb) command where
‘Satyendradb’ is the database name & Then Execute the command.
After that ‘use’ the database by using(use satyendradb) command
& Then Execute the command
Now create the One Sample table named as Student_Data to make pivot chart and pivot Table
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
101
Now display the inserted table data by executing the command
Select * from Student_Data
Open Microsoft Excel
Then go to Data From Other source From SQL Server
After that new window will prompted
Provide Server name which is given initially in SQL server at the time on connection
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
102
Now select the Database which was created in SQL Server 2008
Now follow the Steps given below
Select check box
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
103
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
104
Select a table or range option ,which will open the selection option
Select the Data from Existing table by dragging the mouse over table to create pivot table
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
105
Now Select Existing worksheet option
To Drop the table & then press OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
106
FINAL OUTPUT :- PIVOT TABLE
Repeat the same process for PIVOT CHART (Select Pivot chart instead of Pivot Table)
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
107
PRACTICAL NO. – 12
AIM :- Create table in Excel & Create Pivot Chart & Pivot Table.
SOFTWARE :-Microsoft Excel
PROCEDURE :-In this practical we are creating a table in Excel using which we create
Pivot Table and Pivot Chart
STEPS :- Open Microsoft Excel Then create new table & Insert some records
After that Go to Insert tab & click on Pivot Table
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
108
Select a table or range option ,which will open the selection option,
Click on button (shown In round circle)
Select the Data from Existing table by dragging the mouse over table to create pivot table
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
109
Now Select Existing worksheet option
To Drop the table by clicking on location tab button &
Drag the mouse where we want to display the table
then press OK
Satyendra.Y Singh Data Warehousing (USIT603) 2016 -2017
110
FINAL OUTPUT :- PIVOT TABLE
Repeat the same process for Pivot Chart (Select Pivot chart instead of Pivot Table)
FINAL OUTPUT :- PIVOT CHART