You are on page 1of 115

Roll No: Subject: Dataware Housing Date:

Installation steps of Oracle database 11g Release 2.


 In this post I will describe the installation steps of Oracle database 11g Release 2
(32-bit) on Windows Server 2007 (32-bit).
--------------------------------------
- Download Oracle Database 11g release 2.

-http://www.oracle.com/technology/software/products/ warehouse/index.html.

- Run the setup.exe

 Provide your email address to be informed of security issues, install the product
and initiate Manager.

Select any of the following install steps.

1. Oracle Database 11g Release 2 introduces a new option that enables you to
specify the type of system on which the database is installed.
2. If you are installing on a laptop or a desktop, then select the Desktop Class
option;
Roll No: Subject: Dataware Housing Date:
3. otherwise, select the Server Class option to install on a server. This installation
class is for servers, such as you would find in a data center, or used to support
enterprise-level applications.

Typical install configuration.

Prequisite Checks
Roll No: Subject: Dataware Housing Date:
Installation Progress

Installation error
File not found
C:\app\Administrator\Products\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em.ear

The above errors came because I didn't unzip the 2 files in the same folder.

Download the Oracle win32_11gR2_database_1of2.zip andwin32_11gR2_database_2of2.zip unzip both


files in same folder and then run the setup again.
Roll No: Subject: Dataware Housing Date:

Installation of Oracle Database was successfull.


Enterprise Manager Database Control URL - (devendra11g)

Sql*Plus of 11g Release 2.

Configuring the listener


Run Net Configuration Assistant to configure the listener. It is available under the Oracle menu
on the Windows Start menu as shown in the following image:
Roll No: Subject: Dataware Housing Date:

The welcome screen will offer us four tasks that we can perform with this assistant.
We’ll select the first one to configure the listener, as shown here:

The next screen will ask you what we want to do with the listener. The four options are as
follows:
• Add
• Reconfigure
• Delete
• Rename
Roll No: Subject: Dataware Housing Date:

The next screen is the protocol selection screen. It will have TCP already selected for us, which is
what most installations will require.

To change or not change the default listener port 1521


Roll No: Subject: Dataware Housing Date:

last step.

It will ask us if we want to configure another listener.

Since we only need one, we’ll answer "no" and finish out the screens by clicking on the Finish
button back on the main
Roll No: Subject: Dataware Housing Date:

If selecting a create and configure the database the database is not install then
click on retry button and next click on skip button in final click on finish button

We have to try second option two install database configure assistance:

Go to the START Menu as shown in the following image:-

The first step is to specify what action to take


1. Since we do not have a database created, we’ll select the Create a Database option
2. If there was a database already created, the options for configuring a database or
deleting a database would be selectable
3. Templates can be managed with the Database Configuration Assistant application, which
are files containing preset options for various database configurations.
Roll No: Subject: Dataware Housing Date:

This step will offer the following three options for a database template to select:
° General Purpose or Transaction Processing
° Custom Database
° Data Warehouse

NOTE:-BUT WE HAVE TO SELECT A CUSTOM DATABASE

This step of the database creation will ask for a database name.

This step of the database creation process asks whether we want to configure Enterprise
Manager.
Roll No: Subject: Dataware Housing Date:

NOTE:-New in the 11gR2 version of the DBCA is the additional tab on this screen for the
Automatic Maintenance option.

On this screen we can set the database passwords on the system accounts using a
different one for each account, or by choosing one password for all four

 Click on the option to Use the Same Administrative Password for All Accounts and enter a
password

 This step is a combination now of the old steps 6 and 7 of the installation. It is
about storage and specifying the locations where database files are to be created.
Roll No: Subject: Dataware Housing Date:
CLICK ON NEXT

CLICK ON NEXT

The next screen is for configuring recovery options.

CLICK ON NEXT

This step is where we can have the installation program create some sample schemas in the
database for our reference, and specify any custom scripts to run

CLICK ON NEXT

The next screen is for Initialization Parameters.


Roll No: Subject: Dataware Housing Date:

In this step set sizing 16384 .and click on next

CLICK ON NEXT

CLICK ON NEXT
Roll No: Subject: Dataware Housing Date:

The final step has the following three options, and any or all can be selected for creating
the database:
° Create the database directly
° Save the creation options as a template for later use
° Save database creation scripts that can be used later to create the database

CLICK ON NEXT

The Next button is grayed out since this is the last screen. So click on the Finish button to
begin creating the database using the selections we’ve just chosen
Roll No: Subject: Dataware Housing Date:

Click on ok

INSTALL A DBCA GIVE A PASSWORD AND UNLOCK THE ACCOUNT:


Roll No: Subject: Dataware Housing Date:

CLICK ON OK AND EXIT

Configuring the repository and workspaces

1. We are going to use the Repository Assistant application to configure the repository,
create a workspace, and create the objects in the repository that are needed for OWB to
run.
2. The Repository Assistant application is available from the Start Menu under the
Warehouse Builder | Administration submenu of the Oracle program group as shown
here:
3. The Repository Assistant application is available from the Start Menu under the
Warehouse Builder | Administration submenu of the Oracle program group as shown
here:
Roll No: Subject: Dataware Housing Date:
CLICK ON REPOSITORY ASSISTENCE THEN CLICK ON
NEXT

We’ll launch the Repository Assistant application on the server (the only machine we’ve
installed it on) and the first step it is going to ask us for is the database connection
information—Host Name, Port Number, and Oracle Service Name — or a Net Service
Name for a SQL*Net connection.

Determining what port your listener is listening on


Open a command prompt window and type in the following command: C:\>lsnrctl

LSNRCTL> status

Finding your database instance name


window and type in the following command: C:\>lsnrctl
Roll No: Subject: Dataware Housing Date:
LSNRCTL> service

2. Now that we’ve determined the connection information for our database, we’ll move
along to step 2 of Repository Assistant. It asks us what option we’d like to perform of the
following:
° Manage Warehouse Builder workspaces

° Manage Warehouse Builder workspace users

° Add display languages to repository

° Upgrade Repository to current release of Warehouse Builder


° Manage J2EE User account ° Manage Optional Features

We’re going to select the first option to manage workspaces and move along to the next step.

This step asks us what we’d like to do with workspaces: create a new workspace or drop an
existing one.
Roll No: Subject: Dataware Housing Date:

This brings us to step 4 of the process, which is to specify an owner for the workspace

This step will depend on which option we specified in step 4. If we are creating a new user,
it will ask us for an existing user with DBA privileges in the database.
Roll No: Subject: Dataware Housing Date:

Step 6 is new with release 11gR2 of the Warehouse Builder.

This step will ask for the password for the OWBSYS user
Roll No: Subject: Dataware Housing Date:

Click NEXT Button

This step is to select a base language for the repository


Roll No: Subject: Dataware Housing Date:

NOTE:-IN THIS SELECT ANONYMOUS

We’re almost finished


Roll No: Subject: Dataware Housing Date:

Click on finish button


Roll No: Subject: Dataware Housing Date:
Practical 1
Aim: Importing the source data structures in oracle
First we run command in cmd
Open cmd
>Cd /
>cd 3449_code
>@create_acme_ws_orders.sql
>conn ACME_WS_ORDERS
PASSWORD:-acme1234
>select * from tab;
First we launch Design Center from start menu. Password is Oracle#123
Roll No: Subject: Dataware Housing Date:
To Rename the Project Name Right click on MY_PROJECT and select Rename option

Create a Module

To create an Oracle Database module right click on Databases | Oracle node in project Navigator

Select New from pop menu


Roll No: Subject: Dataware Housing Date:

Select Oracle Module and click on OK button


Roll No: Subject: Dataware Housing Date:

Click on Next button


Roll No: Subject: Dataware Housing Date:

Click on Next Button

Click on Edit button and delete 1. Password is acme1234


Roll No: Subject: Dataware Housing Date:

Click on Test connection button. Then Suessfully message box will display. Click on ok button

Then click next and last click on finish button.

IMPORT A SOURCE TABLE


Roll No: Subject: Dataware Housing Date:

CLICK ON NEXT
Roll No: Subject: Dataware Housing Date:

CLICK ON NEXT

CLICK ON >> ARROW


Roll No: Subject: Dataware Housing Date:

CLICK ON NEXT
Roll No: Subject: Dataware Housing Date:

CLICK ON FINISH

Creating a SQL Server database connection


Start menu  Control Panel  Administrative Tools  open Data
Sources(ODBC)
Roll No: Subject: Dataware Housing Date:

In System DSN tab Click on Add Button

Select SQL Server option of data source & Click on Finish Button
Roll No: Subject: Dataware Housing Date:

Click on Next Button

Give Login ID and Password (Login ID :acme_dw_user & Password: acme1234 ) & click on Next
button
Roll No: Subject: Dataware Housing Date:

Click on Next Button.

Click on checkbox(English default) & Click on finish Button & click test data source
Roll No: Subject: Dataware Housing Date:

Click on OK Button.

Configure Oracle to connect to SQL Server


1) Create a heterogeneous service configuration file:
In following file
C:\app\admin\product\11.2.0\dbhome_1\hs\admin\initdg4odbc.ora make following
changes and Save As it initacmepos.ora

HS_FDS_CONNECT_INFO=ACME_POS
HS_FDS_TRACE_LEVEL=0

2) Edit the listener.ora file


File C:\app\admin\product\11.2.0\dbhome_1\hs\admin\listener.ora.sample contains

SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=acmepos)
(ORACLE_HOME= C:\app\admin\product\11.2.0\dbhome_1)
(PROGRAM=dg4odbc)
)
)

Cut the above code & paste it in


c:\app\admin\product\11.2.0\dbhome_1\network\admin\listener.ora file & save it.
2.1 in hs open tns =name.ora file copy all thing and pate it network listener.ora file
2.2 restart listener in services.mac
Roll No: Subject: Dataware Housing Date:

Creating the Warehouse Builder ODBC module for SQL


Server
In Project Explorer of Design Center  right click on ODBC node select New

Press on OK Button
Roll No: Subject: Dataware Housing Date:

Click on Next Button


Roll No: Subject: Dataware Housing Date:
Click on Next button

Click on Edit Button and delete 1


Roll No: Subject: Dataware Housing Date:

Click on ok

Unclick on checkbox
Roll No: Subject: Dataware Housing Date:

Click on finish

Importing Source metadata from file


In Design Center  Project Navigator file node  select New select Flat File Module
Roll No: Subject: Dataware Housing Date:

Click on Next Button.


Roll No: Subject: Dataware Housing Date:

Click on Next Button.

Give path by clicking Browse… Button and select 3449_Code


Roll No: Subject: Dataware Housing Date:
Click on Test Connection Button and then click on OK button

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Finish
Roll No: Subject: Dataware Housing Date:

Click on Add Sample File


Roll No: Subject: Dataware Housing Date:
Navigate to C:\3449_Code\3449_Code

Select cunties.csv file

Click on Open Button

Click on Import Button


Roll No: Subject: Dataware Housing Date:

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Finish Button


Roll No: Subject: Dataware Housing Date:
Practical 2
Aim:- Design Target data structure using oracle.
1) Create target User

In Design Center  Global Navigator  Expand Security node  Right-click on Users node
 select New  launch Create User

Click On Next Button


Roll No: Subject: Dataware Housing Date:

Click on Create DB User button.

DBA Password: Oracle#123

New DB User Password: Oracle#123


Roll No: Subject: Dataware Housing Date:

Click on OK Button.
Roll No: Subject: Dataware Housing Date:

Select ACME_DWH and Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Finish Button.


Roll No: Subject: Dataware Housing Date:

2) Create a target Module

In Design Center  Project Navigator  right click on Databases  select Oracle Select
New  to launch the Create Module Wizard

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click on Edit Button

User Name: ACME_DWH

Password : acme1234
Roll No: Subject: Dataware Housing Date:

Click on Test Connection Button.

Click On OK Button.
Roll No: Subject: Dataware Housing Date:

Click on Finish Button.


Roll No: Subject: Dataware Housing Date:
Practical 3
Aim: Create the target structure in OWB.
Create dimensions in OWB

1) Time Dimension

In Design Center  Project Navigator  Expand Database Node Expand Oracle node 
Expand ACME_DWH  Right click on Dimensions  select New  launch Time
Dimension Wizard

Click on OK Button
Roll No: Subject: Dataware Housing Date:

Click on Next Button


Roll No: Subject: Dataware Housing Date:

Click On Next Button


Roll No: Subject: Dataware Housing Date:

Click On Next Button


Roll No: Subject: Dataware Housing Date:

Click On Next Button


Roll No: Subject: Dataware Housing Date:

Click On Next Button


Roll No: Subject: Dataware Housing Date:

Click On Next Button


Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:

Click On Next Button


Roll No: Subject: Dataware Housing Date:

Click On Finish Button


Roll No: Subject: Dataware Housing Date:

Product dimension with new dimension wizard


Roll No: Subject: Dataware Housing Date:

Click Next
Roll No: Subject: Dataware Housing Date:

Select ROLAP:Relational storage


Roll No: Subject: Dataware Housing Date:

Add attribute SKU & LIST_PRICE then click Next


Roll No: Subject: Dataware Housing Date:

Click Next
Roll No: Subject: Dataware Housing Date:

Select Do Not Keep History


Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:

Click on Finish
Roll No: Subject: Dataware Housing Date:
Creating the store dimension with then new dimension
wizard

Click Next
Roll No: Subject: Dataware Housing Date:

Give Name as STORE click Next


Roll No: Subject: Dataware Housing Date:

Select ROLAP:Relational Storage


Roll No: Subject: Dataware Housing Date:

Add Attributes

Country

Region

Store
Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:

Click on Finish
Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:
Practical 4
Aim: Design & build the ETL Mapping.
Expand mapping and double click on DATE_DIM_MAP
Roll No: Subject: Dataware Housing Date:

Click on ok button

Create Staging Table Area


Roll No: Subject: Dataware Housing Date:

Give Name As POS_TRANS_STAGE

Click on Ok Button

Select Column Tab


Roll No: Subject: Dataware Housing Date:

Right click on mapping select new mapping

Click on Ok
Roll No: Subject: Dataware Housing Date:

POS_TRANS_STAGE drag it and drop it

create sourcr to target

From source user to drag and drop all tables from table tab

Right click on IOOUTGROUP1 select open detail

Then change in table INGRP1, INGRP2, INGRP3, INGRP4, INGRP5

Then next go to right hand side pallet in these select joiner.


Roll No: Subject: Dataware Housing Date:

Right click on joiner and select open detain from pop up menu

Click on Next
Roll No: Subject: Dataware Housing Date:

Define the groups for the JOINER


Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:

In Joiner Property Inspector  click on Join Condition three dots …  click on validate button
Roll No: Subject: Dataware Housing Date:
Practical 5
Aim: - Perform the ETL process and transform it to data marts.
In Component palette  drag and drop aggregator  draw line from Joiner output to aggregator
input

In Component palette drag & drop transform table 


Roll No: Subject: Dataware Housing Date:

OK btn

InTrim Operator  Right click on INGRP1  select open details  next btn 

Next btn
Roll No: Subject: Dataware Housing Date:

Delete ORDER_DATE line by right clicking on that.

Draw a line from ORDER_DATE to Trim INGRP1 & also draw line from Trim Values To Aggrgator
orders_Date

In Aggregator Property Inspector  click onGroup By Condition three dots …  click on


validate button
Roll No: Subject: Dataware Housing Date:

STORE MAPPING

Ok btn

Drag & drop POS_TRANS_STAGE from target also drag & drop Store from mapping
Roll No: Subject: Dataware Housing Date:

In Component palette drag & drop transform table 

Select Trim and UPPER Operators


Roll No: Subject: Dataware Housing Date:

Click on Ok Button
Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:
Practical 6
Aim: - Creating a cube in OWB.

Click Next
Roll No: Subject: Dataware Housing Date:

Give Name Cube_1 and click Next


Roll No: Subject: Dataware Housing Date:

Select ROLAP:Relational Storage


Roll No: Subject: Dataware Housing Date:

Select Dimensions of the Cube-DATE_DIM,PRODUCT,STORE


Roll No: Subject: Dataware Housing Date:

Add Measures-QUANTITY & SALES_AMOUNT

Click Finish

Click on Cube in Project Navigator .


Roll No: Subject: Dataware Housing Date:
Roll No: Subject: Dataware Housing Date:
Practical 8
Aim: Import the cube in access and create pivot table and pivot
Chart.
Create User DSN
StartControl PanelAdministrative ToolsData Source (ODBC)

Click on Add
Roll No: Subject: Dataware Housing Date:
Select Oracle in OraDb11g_home1
Click on Finish

Give Data Source name, service name and user id


And Click on Test Connection

Give password as Oracle#123


Click Ok

Click Ok and close


Roll No: Subject: Dataware Housing Date:
Click StartAll programsMicrosoft OfficeMicrosoft Excel
Open Microsoft Excel

Click on Data and select From Other Sources

Select From Data Connection Wizard


Roll No: Subject: Dataware Housing Date:

Select ODBC DSN


Click Next

Select Pivot Data


Click Next
Roll No: Subject: Dataware Housing Date:

Give Password –Oracle#123


Click OK

Click On ALL_IV_CUBES
Click Finish
Roll No: Subject: Dataware Housing Date:

Click OK