2. 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;
3. 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
4. Roll No: Subject: Dataware Housing Date:
Installation Progress
Installation error
File not found
C:appAdministratorProducts11.2.0dbhome_1oc4jj2eeoc4j_applicationsapplicationsemem.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.
5. 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:
6. 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
7. 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
8. 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
9. 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.
10. 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.
11. 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.
12. 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.
13. Roll No: Subject: Dataware Housing Date:
In this step set sizing 16384 .and click on next
CLICK ON NEXT
CLICK ON NEXT
14. 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
15. Roll No: Subject: Dataware Housing Date:
Click on ok
INSTALL A DBCA GIVE A PASSWORD AND UNLOCK THE ACCOUNT:
16. 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:
17. 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
18. 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.
19. 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.
20. 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
21. Roll No: Subject: Dataware Housing Date:
Click NEXT Button
This step is to select a base language for the repository
22. Roll No: Subject: Dataware Housing Date:
NOTE:-IN THIS SELECT ANONYMOUS
We’re almost finished
24. 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
25. 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
26. Roll No: Subject: Dataware Housing Date:
Select Oracle Module and click on OK button
28. Roll No: Subject: Dataware Housing Date:
Click on Next Button
Click on Edit button and delete 1. Password is acme1234
29. 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
33. 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)
34. 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
35. 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
36. Roll No: Subject: Dataware Housing Date:
Click on Next Button.
Click on checkbox(English default) & Click on finish Button & click test data source
37. 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:appadminproduct11.2.0dbhome_1hsadmininitdg4odbc.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:appadminproduct11.2.0dbhome_1hsadminlistener.ora.sample contains
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=acmepos)
(ORACLE_HOME= C:appadminproduct11.2.0dbhome_1)
(PROGRAM=dg4odbc)
)
)
Cut the above code & paste it in
c:appadminproduct11.2.0dbhome_1networkadminlistener.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
38. 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
53. 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
54. Roll No: Subject: Dataware Housing Date:
Click on Create DB User button.
DBA Password: Oracle#123
New DB User Password: Oracle#123
59. 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
60. Roll No: Subject: Dataware Housing Date:
Click on Edit Button
User Name: ACME_DWH
Password : acme1234
61. Roll No: Subject: Dataware Housing Date:
Click on Test Connection Button.
Click On OK Button.
63. 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
89. Roll No: Subject: Dataware Housing Date:
Practical 4
Aim: Design & build the ETL Mapping.
Expand mapping and double click on DATE_DIM_MAP
90. Roll No: Subject: Dataware Housing Date:
Click on ok button
Create Staging Table Area
91. Roll No: Subject: Dataware Housing Date:
Give Name As POS_TRANS_STAGE
Click on Ok Button
Select Column Tab
92. Roll No: Subject: Dataware Housing Date:
Right click on mapping select new mapping
Click on Ok
93. 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.
94. Roll No: Subject: Dataware Housing Date:
Right click on joiner and select open detain from pop up menu
Click on Next
95. Roll No: Subject: Dataware Housing Date:
Define the groups for the JOINER
97. Roll No: Subject: Dataware Housing Date:
In Joiner Property Inspector click on Join Condition three dots … click on validate button
98. 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
99. Roll No: Subject: Dataware Housing Date:
OK btn
InTrim Operator Right click on INGRP1 select open details next btn
Next btn
100. 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
101. Roll No: Subject: Dataware Housing Date:
STORE MAPPING
Ok btn
Drag & drop POS_TRANS_STAGE from target also drag & drop Store from mapping
102. Roll No: Subject: Dataware Housing Date:
In Component palette drag & drop transform table
Select Trim and UPPER Operators
111. Roll No: Subject: Dataware Housing Date:
Practical 8
Aim: Import the cube in access and create pivot table and pivot
Chart.
Create User DSN
StartControl PanelAdministrative ToolsData Source (ODBC)
Click on Add
112. 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
113. Roll No: Subject: Dataware Housing Date:
Click StartAll programsMicrosoft OfficeMicrosoft Excel
Open Microsoft Excel
Click on Data and select From Other Sources
Select From Data Connection Wizard
114. Roll No: Subject: Dataware Housing Date:
Select ODBC DSN
Click Next
Select Pivot Data
Click Next
115. Roll No: Subject: Dataware Housing Date:
Give Password –Oracle#123
Click OK
Click On ALL_IV_CUBES
Click Finish