You are on page 1of 36

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Cibertec Peru SAC

Introduction

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

(e

rr
e
m
l

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Objectives
After completing this lesson, you should be able to do the
following:
Discuss the goals of the course
Identify the appendixes in this course
Identify the environments, database schemas, and tables
that are used in the course
Identify some of the Oracle 11g data warehousing
documentation and resources

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
Objectives
de
E
u
o
t
S
c
S course organization. You identify the appendixes,
il to the
In this lesson, you
JOare introduced
a
schemas, and the three
gmSQL environmentsOracle SQL*Plus and Oracle SQL Developer tool
@
al in the course. You briefly review and use the SQL Developer tool. You also
that are available
v
o
r Oracle Database 11g documentation page and the online SQL Developer tutorial as
rthe
access
e
m
l
(eneeded.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 2

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Questions About You


To ensure that the class can be customized to meet your
specific needs and to encourage interaction among all, answer
the following questions:
Which organization do you work for?
What is your role in your organization?
What is your level of data warehousing and database
administrative expertise?
What Oracle versions do you use?
What do you hope to receive from this class?

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
Questions About You
de
E
u
o
t
S
c
ilthis class ifSyou know the backgrounds of your classmates and the
You can benefit
most from
JO
a
issues that they face
ginmthe development and management of a data warehouse. Each student has
@
al
unique perspectives,
experience, and knowledge from which you all can learn.
v
o
r
er
m
l
(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 3

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Lesson Agenda

Course objectives, course prerequisites and suggested


prerequisites, and suggested course schedule
The schemas, appendixes, SQL environments, and data
warehousing tools used in this course
Oracle 11g documentation and additional resources

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 4

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Course Objectives
After completing this course, you should be able to do the
following:
Describe the role of data warehousing and business
intelligence (BI) in todays marketplace
Define the terminology and explain the basic concepts of
data warehousing
Define the decision support purpose and end goal of a
data warehouse
Develop familiarity with the various technologies required
to implement a data warehouse
MA o use
A
t
Identify the technology and tools from OracleRtoRimplement
e
s
a successful data warehouse
DE licen
L
VA ble
Identify data warehouse modelingZconcepts
a

E fer
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 5

this

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Course Objectives

Describe methods and tools for extracting, transforming,


and loading data
Identify the tools for accessing and analyzing warehouse
data
Identify the features of Oracle Database 10g that aid in
implementing the data warehouse
Describe the online analytical processing (OLAP) and data
mining techniques and tools
Explain the implementation and organizational issues
surrounding a data warehouse project
MA use

RA se to
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 6

this

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Prerequisites and Suggested Prerequisites

Required prerequisites:
No required prerequisite

Suggested prerequisites:
Working knowledge of SQL and general knowledge in data
warehouse concepts

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 7

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Suggested Course Schedule

Day 1:
1. Introduction
2. Data Warehousing, Business Intelligence, OLAP, and Data
Mining
3. Defining Data Warehouse Concepts and Terminology
4. Business, Logical, Dimensional, and Physical Modeling

Day 2:
5. Database Sizing, Storage, Performance, and Security
Considerations
6. The ETL Process: Extracting Data
MA
A
7. The ETL Process: Transforming Data
RR nse
E
D lice
8. The ETL Process: Loading Data
AL

Z V rable
E
U sfe
G
I
R -tran
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 8

s
to u

is
h
t
e

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Suggested Course Schedule

Day 3:
9. Refreshing the Warehouse Data
10. Materialized Views
11. Leaving a Metadata Trail
12. Data Warehouse Implementation Considerations

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 9

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Lesson Agenda

Course objectives, course prerequisites and suggested


prerequisites, and suggested course schedule
The schemas, appendixes, SQL environments, and data
warehousing tools used in this course
Oracle 11g documentation and additional resources

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 10

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Some of the Sample


Schemas Used in the Course
The sample schemas that are used in this course are:
Sales History (sh) schema
Data Mart (dm) schema

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
Ein themCourse
)
Sample Schemas Used
de
E
u
o
t
S
c
S Database Sample Schemas operates worldwide to
il by Oracle
The sample company
JO portrayed
a
fulfill orders for several
gm different products. The company has several divisions, including the
@
l
adivision
Sales History
that tracks business statistics to facilitate business decisions.
v
o
r
Eacheofr these divisions is represented by a schema.
lm
(eAll
scripts necessary to create the SH schema usually reside in the following folder if installed

by your DBA:
$ORACLE_HOME/demo/schema/sales_history
Note
Appendix B: Table Descriptions contains more information about the sample schemas.
The code examples and the practices in this course specify the schema that needs to be
used.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 11

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Sales History (sh) Schema


PROMOTIONS
promo_id
promo_name
promo_subcategory
promo_subcategory_id
promo_category
promo_category_id
promo_cost
promo_begin_date
promo_end_date
promo_total
promo_total_id

COSTS

SALES

prod_id
time_id
promo_id
channel_id
unit_cost
unit_price

prod_id
cust_id
time_id
channel_id
promo_id
quantity_sold
amount_sold

TIMES
time_id
day_name
day_number_in_week
day_number_in_month
calendar_week_number
fiscal_week_number
week_ending_day
week_ending_day_id
calendar_month_number
fiscal_month_number
calendar_month_desc
calendar_month_id
fiscal_month_id
days_in_cal_month
days_in_fis_month
end_of_cal_month
end_of_fis_month
calendar_month_name
fiscal_month_name
calendar_quarter_desc
calendar_quarter_id
fiscal_quarter_desc
fiscal_quarter_id
days_in_cal_quarter
days_in_fis_quarter
end_of_cal_quarter
end_of_fis_quarter
calendar_quarter_number
fiscal_quarter_number
calendar_year
calendar_year_id
fiscal_year
fiscal_year_id
days_in_cal_year
days_in_fis_year
end_of_cal_year
end_of_fis_year

is
h
t
e

MA o us
A
CHANNELS
R se t
R
DE licen
L
PRODUCTS
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
Sales History (sh)ESchema
de
u
o
t
S
c
S
l
ivolume
The company does
of business,
so it runs business statistics reports to aid in
JO a high
a
m
decision support. Many
g of these reports are time based and nonvolatile. That is, they analyze
@
l
past data trends.
va The company loads data into its data warehouse regularly to gather statistics for
o
r
the reports.
er The reports include annual, quarterly, monthly, and weekly sales figures by product.
m
l
(eThe company also runs reports on the distribution channels through which its sales are delivered.
channel_id
channel_desc
channel_class
channel_class_id
channel_total
channel_total_id

When the company runs special promotions on its products, it analyzes the impact of the
promotions on sales. It also analyzes sales by geographical area.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 12

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Sales History (sh) Schema

COSTS

SALES

PRODUCTS
prod_id
prod_name
prod_desc
prod_subcategory
prod_subcategory_id
prod_subcategory_desc
prod_category
prod_category_id
prod_category_desc
prod_weight_class
prod_unit_of_measure
prod_pack_size
supplier_id
prod_status
prod_list_price
prod_min_price
prod_total
prod_total_id
prod_src_id
prod_eff_from
prod_eff_to
prod_valid

SALES

CUSTOMERS
cust_id
cust_first_name
cust_last_name
cust_gender
cust_year_of_birth
cust_marital_status
cust_street_address
cust_postal_code
cust_city
cust_city_id
cust_state_province
cust_state_province_id
country_id
cust_main_phone_number
cust_income_level
cust_credit_limit
cust_email
cust_total
cust_total_id
cust_src_id
cust_eff_from
cust_eff_to
cust_valid

COUNTRIES
country_id
country_iso_code
country_name
country_subregion
country_subregion_id
country_region
country_region_id
country_total
country_total_id
country_name_hist

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

is
h
t
e

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 13

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Class Account Information

Your account IDs are sh and dm.


The password matches your account ID.

Each machine has a stand-alone installation of Oracle


Database 11g Enterprise Edition for Linux with access to
the sh and dm sample schemas.

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 14

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Appendixes in the Course

Appendix A: Practice Solutions


Appendix B: hr and sh Tables Descriptions and Data

Appendix C: Using SQL Developer


Appendix D: Using SQL*Plus
Appendix E: Basic Linux and vi Commands

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 15

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

SQL Environments Available in the Course


This course setup provides the following tools for you to
execute SQL statements:
Oracle SQL*Plus
Oracle SQL Developer

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E min)the Course
SQL Environments Available
de
E
u
o
t
S
c
O that
l
iprovide
There are manyJtools
an S
environment to execute SQL statements. Oracle provides
a
m
several tools that can
g be used to execute SQL statements. Some of the tools that are available for
@
l
use in this course
va are:
o
r
r SQL*Plus: A window or command-line application
eOracle
m
l
(e Oracle SQL Developer: A free graphical tool
Note: The code and screen examples presented in the course are from the output in the SQL
Developer environment.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 16

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Entering SQL Statements Using Oracle SQL*Plus

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E Using
) OracledeSQL*Plus
Entering SQL Statements
m
E
o
tu
S ilc
S
Oracle SQL*Plus
application
that enables you to submit SQL statements and
JOis a command-line
a
m
PL/SQL blocks forgexecution and receive the results in an application or command window.
l@
a
SQL*Plus
is:
v
rro with the database
eShipped
Installed on the database server system and is accessed from an icon or the command line
(elm

Oracle Database 11g: Data Warehousing Fundamentals 1 - 17

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

What Is Oracle SQL Developer?

Oracle SQL Developer is a free graphical tool that


enhances productivity and simplifies database
development tasks.
You can connect to any target Oracle database schema by
using standard Oracle database authentication.
You use SQL Developer in this course.

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
SQL Developer
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
What Is Oracle SQL E
Developer?
de
u
o
t
S
c
S tool designed to improve productivity and simplify the
Oracle SQL Developer
JO ais ialfree graphical
development of everyday
gm database tasks. With a few clicks, you can easily create and debug
@
al test SQL statements, and view optimizer plans.
stored procedures,
v
o
rr
SQLeDeveloper,
the visual tool for database development, simplifies the following tasks:
m
l
e
( Browsing and managing database objects
Executing SQL statements and scripts
Editing and debugging PL/SQL statements
Creating reports
You can connect to any target Oracle database schema by using standard Oracle database
authentication. When connected, you can perform operations on objects in the database.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 18

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Creating Schema Objects

You can create any schema object in Oracle SQL


Developer by using one of the following methods:
Executing a SQL statement in the SQL Worksheet
Using the context menu

Edit the objects by using an edit dialog box or one of the


many context-sensitive menus.
View the data definition language (DDL) for adjustments
such as creating a new object or editing an existing
schema object.

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

is
h
t
e

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 19

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Data Warehousing Tools Used in this Course

Oracle Warehouse Builder (OWB) 11g


Oracle Analytic Workspace Manager (AWM) 11g
Oracle Application Express (APEX) 3.1

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 20

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Lesson Agenda

Course objectives, course prerequisites and suggested


prerequisites, and suggested course schedule
The schemas, appendixes, SQL environments, and data
warehousing tools used in this course
Oracle 11g documentation and additional resources

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 21

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Oracle 11g Useful Documentation

Oracle Database 2 Day + Data Warehousing Guide 11g


Oracle Database Data Warehousing Guide 11g
Oracle Database SQL Developer Users Guide
Oracle Database Reference 11g
Oracle Database New Features Guide 11g
Oracle Database SQL Language Reference 11g
Oracle Database Concepts 11g
Oracle Database Sample Schemas 11g
Oracle Database VLDB and Partitioning Guide
MA o
A
R se t
Oracle Database Performance Tuning Guide
R
DE licen
L
Oracle Database Utilities
VA ble
Z
Oracle OLAP Users Guide UE
fera

is
h
t
e

us

RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
Oracle 11g Useful Documentation
de
E
u
o
t
S
c
S
Navigate to http://www.oracle.com/pls/db111/homepage
and click the Master Book List link in
JO ail
m
the left frame.
g
@
l
You can o
also
vause the http://www.oracle.com/technology/documentation/index.html URL.
r
er
m
l
(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 22

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Oracle 11g Useful Documentation

Warehouse Builder Users Guide


Application Express Users Guide
2 Day + Application Express Developers Guide

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 23

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Continuing Your Education:


Recommended Follow-Up Classes

Oracle Database 11g: Analytic SQL for Data Warehousing


Oracle Database 11g: Administer a Data Warehouse
Oracle Database 11g: OLAP Essentials
Oracle Warehouse Builder 11g: Implementation Parts 1
and 2
Oracle Database 11g: Administration Workshop I
Oracle Database 11g: Performance Tuning

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 24

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Oracle Technology Network (OTN)

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m
)
Oracle Technology Network
(OTN)
de
E
u
o
t
S
c
S
OTN (http://www.oracle.com/technology/index.html)
hosts the latest news about Oracle
JO ail
m
technology and products.
g Additionally, OTN provides peer-to-peer forums, white papers,
@
l
security bulletins,
va and other information vital to an Oracle professional.
o
r
er to tips and techniques to get the most out of your Oracle software, you can download
In addition
m
l
(ethe software from OTN. All software downloads are free, and each comes with a development
license that allows you to use full versions of the products only when you develop and make
prototypes of your applications.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 25

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Oracle by Example (OBE):


http://www.oracle.com//technology/obe

A set of hands-on, step-by-step instructions


Over 100 database OBEs grouped by focus area:
Installation, BI, Availability, Manageability, Security,
Application development, and Extended data management

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
Oracle by Example (OBE)
de
E
u
o
t
S
c
S
l
ihands-on,
The OBE seriesJO
provides
step-by-step
instructions on how to use various new features
a
m
of Oracle products.gOBEs help to reduce the time spent on learning a new product capability and
l@ understanding of how the feature can be implemented in their environment.
a
enhance thevusers
rroOBEs are available for Oracle Database, Oracle Application Server, and Oracle
Currently,
e
lm
Suite. OBEs can be accessed at http://www.oracle.com/technology/obe.
(eCollaboration

Oracle Database 11g: Data Warehousing Fundamentals 1 - 26

Cibertec Peru SAC

Oracle Warehouse Builder OBEs:

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

http://www.oracle.com/technology/obe/11gr1_owb/index.htm

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 27

Cibertec Peru SAC

Analytic Workspace Manager (AWM) OBEs:

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

http://www.oracle.com/technology/products/bi/olap/olap.html

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 28

Cibertec Peru SAC

Oracle Application Express (APEX) OBEs:

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

http://www.oracle.com/technology/obe/hol08/apex31nf/apexusr31
/apexusr31_otn.htm

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 29

Cibertec Peru SAC

Technical Support: My Oracle Support:

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

https://metalink.oracle.com/CSP/ui/index.html

Access to My Oracle Support is included in your annual support


maintenance fees. In addition to the most up-to-date technical
information, My Oracle Support gives you access to:
Service requests (SRs)
Certification matrices
Technical forums monitored by Oracle experts
Software patches
Bug reports

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
)
Technical Support: E
MyE
Oracle
Support:
de
m
u
o
t
S
c
S
https://metalink.oracle.com/CSP/ui/index.html
JO ail
m answers to the most common issues that Oracle administrators and
My Oracle Supportgprovides
@
al and gives resources to solve many of those issues.
developersvface,
o
rr Technology Network, My Oracle Support includes the most recent headlines about
Likee
Oracle
m
l that affect the Oracle professional.
(eissues

Oracle Database 11g: Data Warehousing Fundamentals 1 - 30

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Summary
In this lesson, you should have learned how to:
Discuss the goals of the course
Identify the appendixes in this course
Identify the environments that can be used in this course
Describe the database schemas and tables that are used
in the course
List the documentation and resources

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
E m)
de
E
u
o
t
S
c
S
JO ail
gm
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 31

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Practice 1: Overview
This practice covers the following topics:
Reviewing the SQL Developer resources
Starting SQL Developer, creating new database
connections, and browsing tables in the HR and SH
schemas tables
Setting some SQL Developer preferences
Executing SQL statements by using the SQL Worksheet
Accessing and bookmarking the Oracle Database 11g
documentation and other useful Web sites

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O onAll rights reserved.
CopyrightR
2009, Oracle.
e
n
d
i
R
a
ME has nt Gu
L
)
Practice 1: OverviewE E
de
m
u
o
t
S
c
S to execute SQL statements to examine data in the HR
O useaSQL
In this practice,Jyou
il Developer
schema.
gm
@
al
Note
v
o
rr written practices use SQL Developer as the development environment. Although it is
eAll
m
(el recommended that you use SQL Developer, you can also use the SQL*Plus environment

that is available in this course.


All practices in this course and the practice solutions assume that you run scripts by using
the SQL Worksheet area in SQL Developer.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 32

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Cibertec Peru SAC

Practice 1-1
This is the first of many practices in this course. The solutions (if you require them) can be
found in Appendix A: Practices and Solutions. Practices are intended to cover most of the
topics that are presented in the corresponding lesson.
In this practice, you review the available SQL Developer, Oracle Analytic Workspace
Manager (AWM) 11g, Oracle Warehouse Builder (OWB) 11g, and Oracle Application
Express 3.1 resources.
Identifying the Available SQL Developer, Oracle Analytic Workspace Manager (AWM)
11g, Oracle Warehouse Builder (OWB) 11g, Oracle Application Express 3.1, and Oracle
Database 11g Documentation Resources
1. Familiarize yourself with Oracle SQL Developer, as needed, using Appendix C: Using
SQL Developer.
2. Access the online SQL Developer home page on OTN at:
http://www.oracle.com/technology/products/database/sql_developer/index.html
is
3. Bookmark the page for easier future access.
h
t
MA o use
4. Access the online SQL Developer tutorial at:
A
t
http://st-curriculum.oracle.com/tutorial/SQLDeveloper/index.htmRR
e
s
n tutorial as
DE licinethe
L
5. Preview and experiment with the available links and demonstrations
A le
Vand
needed, especially the Creating a Database Connection
Data links.
b
Z
E feraAccessing
U
6. Access the online Oracle OLAP home page
at:
s
IGon OTN
n
R
a
r
t
D
http://www.oracle.com/technology/products/bi/olap/olap.html
O on- e
R
nWorkspace
7. To view a demonstration on R
the Analytic
id Manager, click the Analytic
a
u
E
s
G
Mlink inhthe
a Demonstration
Workspace Manager L
11g
section of the page.
t
n
E
)
e
d
m access.
E forcfuture
8. Bookmark theSpage
u
o
t
S

O
il Warehouse Builder page on OTN at:
J online aOracle
9. Access the
m
g
http://www.oracle.com/technology/products/warehouse/index.html
@
l
va the Warehouse Builder Oracle by Example tutorials, click the Oracle Warehouse
o
10. To
access
r
r
eBuilder
m
11g By Example Course Now Available link.
l
(e
11. To view any of the Oracle Warehouse Builder tutorials, click the tutorial link in the List of
Tutorials section of the page.
12. Access the Oracle Database 11g Release documentation Web page at:
http://www.oracle.com/pls/db111/homepage
13. Bookmark the page for future access.
14. Display the complete list of books available for Oracle Database 11g Release 1.

Oracle Database 11g: Data Warehousing Fundamentals 1 - 33

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Cibertec Peru SAC

Practice 1-1 (continued)


15. Make a note of the following documentation references that you use in this course as
needed:
a. Oracle Database 2 Day + Data Warehousing Guide 11g Release 1 (11.1)
b. Oracle Database Data Warehousing Guide 11g Release 1 (11.1)
c. Oracle Database SQL Developer Users Guide Release 1.2
d. Oracle Database Reference 11g Release 1 (11.1)
e. Oracle Database New Features Guide 11g Release 1 (11.1)
f. Oracle Database SQL Language Reference 11g Release 1 (11.1)
g. SQL*Plus Users Guide and Reference Release 11.1
h. Oracle Database SQLJ Developers Guide and Reference 11g Release 1 (11.1)
i. Oracle Database Concepts 11g Release 1 (11.1)
j. Oracle Database Sample Schemas 11g Release 1 (11.1)

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O on e
R
R s a n uid
E
LM ) ha ent G
E
SE ilcom Stud
O
J
ma
g
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 34

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Practice 1-2
Creating and Using New SQL Developer Database Connections
In this practice, you create two new database connections for the sh and dm schemas.
1. Start up SQL Developer.
2. Create a database connection by using the following information:
a. Connection Name: SH Schema
b. Username: sh
c. Password: sh
d. Hostname: Enter the host name as provided by the instructor.
e. Port: 1521
f. SID: orcl
3. Test the new connection. If the Status is Success, connect to the database by using the new
connection.
a. Double-click the SH Schema icon on the Connections tabbed page.
b. Click the Test button in the New/Select Database Connection window. If the status is
is
Success, click the Connect button.
h
t
MA o use
4. Create a new database connection named DM Schema.
A
t select the
R treesand
a. Right-click the DM Schema connection in the Object Navigation
e
R
DE licen
Properties menu option.
L
VAas theblusername
e
b. Enter DM Schema as the connection name and dm
and password,
Z
a
E
and click Save. This creates the new connection.
U sfer
G
I
c. Repeat step 3 to test the new DM Schema
connection.
R
ran

OD on-t e
R
R s a n uid
E
LM ) ha ent G
E
SE ilcom Stud
O
J
ma
g
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 35

Cibertec Peru SAC

Unauthorized reproduction or distribution prohibited Copyright 2013, Oracle and/or its affiliates

Practice 1-3
Browsing the sh and dm Schemas Tables
1. Browse the structure of the SALES_FACT table in the dm schema and display its data.
a. Double-click the DM Schema database connection.
b. Expand the Tables node by clicking the plus sign next to it.
c. Display the structure and data of the SALES_FACT table.
2. Use the SQL Worksheet to select the SALES_FACT rows, where the SALES is greater
than $10,000. Use both the Execute Statement (F9) and the Run Script (F5) icons to
execute the SELECT statement. Review the results of both methods of executing the
SELECT statements on the appropriate tabbed pages.
Note: Familiarize yourself with the data or consult Appendix B: Table Descriptions,
which provides the description and data for all tables in the sh and dm schemas that you
use in this course.

is
h
t
e

MA o us
A
R se t
R
DE licen
L
VA ble
Z
E fera
U
RIG -trans
D
O on e
R
R s a n uid
E
LM ) ha ent G
E
SE ilcom Stud
O
J
ma
g
@
val

rr
e
m
l

(e

Oracle Database 11g: Data Warehousing Fundamentals 1 - 36

You might also like