Académique Documents
Professionnel Documents
Culture Documents
Administrators
nly
e O
Us
AI
& O
al
ern
Int
47212GC30
e
Production 3.0
cl
February 2001
ra
O
D31669
Author Copyright Oracle Corporation, 2001, 2000. All rights reserved.
The information in this document is subject to change without notice. If you find
Publisher any problems in the documentation, please report them in writing to Education
Products, Oracle Corporation, 500 Oracle Parkway, Box SB-6, Redwood Shores,
Kelly Sargent CA 94065. Oracle Corporation does not warrant that this document is error-free.
All other products or company names are used for identification purposes only
and may be trademarks of their respective owners.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Contents
.....................................................................................................................................................
Preface
Profile xiii
Typographic Conventions xiv
e O
s
Designing Business Areas 2-15
Creating Business Areas 2-22
I U
Bulk Load Defaults 2-33
Object Property 2-35
OA
l &
a
Exporting and Importing 2-36
rn
Practice 2-2 Overview 2-43
e
Int
Providing Security to Business Areas 2-45
Summary 2-51
cle
Practice 2-3 Overview 2-52
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators iii
Contents
.....................................................................................................................................................
e O
s
Using Joins 5-5
Using Complex Folders 5-19
I U
Using Custom Folders 5-25
Summary 5-32
OA
l &
a
Practice 5-1 Overview 5-33
ern
Lesson 6: Creating Analytical and Aggregate Items
Int
Objectives 6-3
le
Overview 6-4
c
a
Analytical Functions 6-5
Or
.....................................................................................................................................................
iv Oracle iDS: Discoverer for Administrators
Contents
.....................................................................................................................................................
e O
s
Different Types of Summary Management 8-9
Creating Summary Folders by Using EUL Items 8-13
I U
Creating Summary Folders by Using Query Statistics 8-24
Registering External Summary Tables 8-29
OA
l &
a
Managing Summary Folders 8-34
rn
Summary Combination Strategies 8-39
e
Int
Summary Management in Applications Mode 8-42
Summary 8-43
cle
Practice 8-1 Overview 8-44
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators v
Contents
.....................................................................................................................................................
e O
s
Effects of Database Changes 11-5
Managing Folders and Business Areas 11-9
I U
Migrating from Development to Production 11-13
Moving only Workbooks 11-15
OA
l &
a
Analyzing the End User Layer 11-17
r
Summary 11-18
e n
Int
Practice 11-1 Overview 11-19
Practice 11-1 11-20
cle
ra
O
.....................................................................................................................................................
vi Oracle iDS: Discoverer for Administrators
Contents
.....................................................................................................................................................
ly
Discoverer 4i Viewer 13-28
Configuring Discoverer 4i Viewer 13-29
On
e
Customization 13-31
Summary 13-32
Us
Practice 13-1 Overview 13-33
AI
O
Practice 13-1 13-34
l
Lesson 14: Case Study
&
na
Overview CS-3
r
te
Entity Relationship Diagram (ERD) for the Summit Sporting Goods
n
I
Company CS-6
cle
Table Design for Database Tables CS-7
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators vii
Contents
.....................................................................................................................................................
Worksheets CS-14
& O
l
Additional Structures Loaded Using the EUL Gateway C-6
na
Developing Gateways C-7
r
e
Loading Objects Using the EUL Gateway C-8
Int
Loading Oracle Designer Objects C-9
le
Loading Oracle Designer Objects C-10
c
a
Loading Oracle Designer Objects C-11
Or
.....................................................................................................................................................
viii Oracle iDS: Discoverer for Administrators
Contents
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators ix
Contents
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
x Oracle iDS: Discoverer for Administrators
Preface
.................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Profile
.....................................................................................................................................................
Profile
Before You Begin This Course
Before you begin this course, you should have working experience with a relational
database or have working experience with the User Edition interface.
Prerequisites
Introduction to Oracle and Discoverer 3.1 for End Users
Introduction to Oracle: SQL and PL/SQL
e O
Lesson 12: Administering Multiple End User Layers and Automating Tasks
Us
I
Lesson 13: Configuring Discoverer for the Web
Case Study
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators xiii
Preface
.....................................................................................................................................................
Typographic Conventions
Typographic Conventions in Text
Convention Element Example
Bold italic Glossary term (if The algorithm inserts the new key.
there is a glossary)
Caps and lowercase Buttons, Click the Executable button.
check boxes, Select the Cant Delete Card check box.
triggers,
Assign a When-Validate-Item trigger . . .
windows
Open the Master Schedule window.
Courier new, Code output, Code output: debug.seti(I,300);
case sensitive directory names, Directory: bin (DOS), $FMHOME (UNIX)
(default is filenames,
Filename: Locate the init.ora file.
lowercase) passwords,
pathnames, Password: Use tiger as your password.
URLs, Pathname: Open c:\my_docs\projects
user input, URL: Go to http://www.oracle.com
usernames User input: Enter 300
Username: Log on as scott
Initial cap Graphics labels Customer address (but Oracle Payables)
(unless the term is a
proper noun)
Italic Emphasized words Do not save changes to the database.
and phrases, For further information, see Oracle7 Server
ly
titles of books SQL Language Reference Manual.
n
and courses,
Enter user_id@us.oracle.com, where
O
variables
user_id is the name of the user.
Quotation marks Interface elements
se
Select Include a reusable module
with long names
U
component and click Finish.
I
A
that have only This subject is covered in Unit II, Lesson 3,
O
initial caps; lesson Working with Objects.
&
and chapter titles in
al cross-references
n
COURIER NEW SQL column Use the SELECT command to view
n
functions, schemas, column of the EMP table.
e I table names
cl
ra
O
.....................................................................................................................................................
xiv Oracle iDS: Discoverer for Administrators
Typographic Conventions
.....................................................................................................................................................
ly
you through Oracle Applications.
On
e
(N) Invoice>Entry>Invoice Batches Summary (M) Query>Find
(B) Approve
Us
AI
O
This simplified path translates to the following:
&
1 (N) From the Navigator window, select Invoice>Entry>Invoice Batches
Summary.
al
rn
2 (M) From the menu bar, select Query>Find.
e
Int
3 (B) Click the Approve button.
cle
N = Navigator, M = Menu, B = Button
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators xv
Preface
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
xvi Oracle iDS: Discoverer for Administrators
1
.................................
Introduction
to Discoverer 4.1
Administration
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
1-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Course Objectives
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-3
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
APPLICATION
D ATAB ASE
S E RV E R
ly
Oracle 9i Application Server (9i AS)
Oracle 9i Developer Suite (9i DS)
On
e
Oracle 9i Development Suite provides one development suite. It contains leading
Oracle application development tools, business intelligence tools, and enterprise portal
Us
building tools into a single suite.
AI
O
Oracle 9i Developer Suite includes the following:
&
E-Business Portal
Oracle Portal
al
rn
Complete Application Development
e
nt
Oracle Forms Developer
I
e
Oracle Designer
cl
Oracle JDeveloper and Business Components for Java
ra
Business Intelligence
O
Oracle Reports Developer
Oracle Discoverer (Administration Edition)
.....................................................................................................................................................
1-4 Oracle iDS: Discoverer for Administrators
Discoverer in Oracles Internet Platform
.....................................................................................................................................................
Portals
Oracle
Database Applications
HTTP
Server
Business Intelligence DATABASE
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-5
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Positioning Discoverer
Data Warehouse
A data warehouse is an enterprise-structured repository of subject-oriented, time-
variant, historical data used for information retrieval and decision support. A data
mart contains data warehouse data for a business functional area or department. Many
data marts can make up a logical data warehouse. The workload on data warehouse
ly
varies not just on a daily basis, but may even be affected by other forces such as
seasonal variations. The data can be summarized at multiple levels of granularity.
Summarized data is data that has been aggregated or transformed from the detail
On
(atomic) level.
se
I U
A
Online Transaction Processing (OLTP) Systems
OLTP systems contain the day-to-day information needed to maintain and run a
business process. These systems are predictable, because you can assess the workload
& O
al
on a daily basis and thus plan and prepare accordingly. Typically, OLTP systems allow
rn
full read and write access to the users by way of different applications.
e
Int
cle
ra
O
.....................................................................................................................................................
1-6 Oracle iDS: Discoverer for Administrators
Positioning Discoverer
.....................................................................................................................................................
Discoverer provides:
Business areas
Date hierarchies
Summarized data
ly
Discoverer 4.1 supports Open Database Connectivity (ODBC) access to non-Oracle
n
based databases.
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-7
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
.....................................................................................................................................................
1-8 Oracle iDS: Discoverer for Administrators
Integration of Business Intelligence Tools
.....................................................................................................................................................
An Integrated Environment
for Business Intelligence
Seamless Interoperability/Migration
Operational Reports
data
Warehouse
Legacy Discoverer
data
ly
analytical tools.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-9
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Oracle Express
An advanced calculation engine and
multidimensional data cache for online analytical
processing (OLAP)
Oracle Discoverer
An ad hoc query, reporting, and analysis tool
Oracle Reports
A sophisticated enterprise production reporting
tool to build and distribute high-quality reports
.....................................................................................................................................................
1-10 Oracle iDS: Discoverer for Administrators
Discoverer 4.1 Components
.....................................................................................................................................................
Discoverer
Discoverer Discoverer
Administration
Plus (User edition) Viewer
Edition
I
complexity of the underlying database so that users can interact with the database
A
O
without having to know database commands. This allows the users to use the
&
business language they are familiar with.
al
n
About Databases A database is an organized collection of information. This
er
information can be anything relevant to your particular business requirements.
t
n
Information in a database is stored in a central server and accessed by many users.
e I
l
About Relational Databases The term relational refers to the structure of the
c
a
database. Information is stored in relations, which are also known as tables and have
r
O
columns and rows. Oracle has relational databases.
To access information stored in a relational database, you generally use a
programming language, such as structured query language (SQL). Discoverer 4.1
generates for you the SQL statement, which classifies Discoverer as an end-user tool.
End users are not exposed to SQL.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-11
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Administration
Application Server
Edition
End User
Layer
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
1-12 Oracle iDS: Discoverer for Administrators
Discoverer 4.1 Components
.....................................................................................................................................................
ly
rich set of defaults to aid report building.
The metalayer structure of the EUL preserves the databases data integrity. Whatever
the administrator or the end user does with Discoverer, it affects only the metadata in
On
the EUL and not the database.
se
U
The EUL is a collection of approximately 50 tables in the database. These are the only
I
A
tables that can be modified through the Discoverer Administration Edition. Business
al
You can have more than one set of EUL tables in any database by creating an EUL
rn
under different schemas.
e
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-13
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Key Terminology
Key Terminology
Business areas
Folders
Items
Joins
Data types
Business Areas
A business area is a set of folders containing information related by a common
business purpose. For example, information about sales and revenues might be stored
in one business area, and information about employees might be stored in another.
ly
Folders
Folders are similar to tables. For example, all details about employees of an
On
e
organization might be stored in one folder, and information about customers might be
stored in another. Folders map to database tables or views. Complex folders are like
Us
I
database views and provide a way of grouping items together from multiple folders.
Items
OA
l
Folders consist of items, which map to columns in a database table. Each item has a
&
rna
name and contains a specific type of information. For example, a folder containing
details about employees might include items such as employee name, start date, and
te
department. When you include an item in a query, it is usually displayed as a report
n
I
column. An item can also be calculated or derived, based on a formula using other
e
l
items, functions, or operators.
c
ra
O
.....................................................................................................................................................
1-14 Oracle iDS: Discoverer for Administrators
Key Terminology
.....................................................................................................................................................
Items (continued)
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-15
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Employees
Hierarchies
Joins
Data dictionary
emp_data
emp_code
view_mgr
Database
Discoverer Administrator
To be successful, every Discoverer installation requires a data administrator. As
administrator, you are responsible for maintaining the EUL and the conceptual view of
the database. The conceptual view helps the end user navigate through the data more
easily when performing queries. The EUL contains enhanced definitions of folders
ly
and their items, as well as the relationships among the folders and other constructs that
help users explore their data.
On
e
The data administrator should understand and anticipate user requirements, have
knowledge of the application database, and be able to set up the relational structure in
Us
I
the EUL to best display the application data.
The role of the Discoverer administrator includes the following tasks:
OA
&
Identifying user requirements
al
Selecting the database tables that best meet user requirements
rn
Assigning meaningful names for objects in the EUL
e
Int
Controlling user access to the EUL
e
Creating a usable relational structure in the EUL with joins and complex folders
cl
Creating conditions and drills for end-user data analysis
ra
Creating summary tables to improve performance
.....................................................................................................................................................
1-16 Oracle iDS: Discoverer for Administrators
Role of the Data Administrator
.....................................................................................................................................................
Implementing Discoverer
Implementing Discoverer
You can implement the Discoverer application simply by installing the Administration
Edition and loading a default EUL based on the tables that you want to query. The
EUL provides many facilities that you can configure that will increase the value of
using Discoverer. The success of an implementation largely depends on how closely
the structure of the EUL reflects users requirements for accessing information.
e O
s
1 Understand your users requirements.
I U
2 Design business areas based on logical groupings of tables, and assign meaningful
A
names and descriptions to each business area.
3 Load objects into the EUL.
& O
l
4 Provide folder names, item names, and descriptions that are meaningful to your
n
end users.
r a
e
5 For each business area that you create, assign database users or roles to access
Int
them. These steps are discussed in detail in the next lesson.
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-17
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
ly
can modify the business requirements at any time to support new requirements, it is
important to have a good idea of the business requirements of the users on which to
base future changes. Often the biggest changes are requested by users once a system is
On
implemented. When users see what Discoverer can do for them, they soon have
se
suggestions for other areas where it could be useful.
I U
A
Some guidelines for determining your end users requirements are as follows:
O
Interview key users to establish the kinds of queries that they want to perform.
&
l
Be prepared to do some relational design to work out the result sets needed.
na
Help users meet as many of their own requirements as possible by using the
r
e
Discoverer Plus. There may still be some standard reports that you need to create
nt
on their behalf. You can provide these in the form of public queries.
I
le
Remember that to have a successful system, you start with a simple
racimplementation and modify it over time based on user feedback, rather than
attempting to deliver an entire enterprise data warehouse in one single
O implementation.
.....................................................................................................................................................
1-18 Oracle iDS: Discoverer for Administrators
Role of the Data Administrator
.....................................................................................................................................................
Administering Discoverer
Administering Discoverer
After you implement Discoverer, end users can build queries by using the EUL that
you created. However, the following functions will enhance the value of the EUL:
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-19
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
1-20 Oracle iDS: Discoverer for Administrators
Role of the Data Administrator
.....................................................................................................................................................
Create drills
Refine relational structure
Create conditions
Create summary tables
Create calculated items
Grant access*
* Mandatory
ly
complex folders, and adding calculations and conditions. It is much like building a
set of views.
On
e
3 Edit names, descriptions, and other formatting information so that data is easily
understood.
Us
4 Create item classes in simple folders.
5 Create hierarchies to simplify drill-down operations.
AI
& O
6 Create summary tables or register existing summary tables so that queries will run
faster.
al
rn
7 Define optional conditions that provide shortcuts for users.
e
Int
8 Grant access to users or roles. This step is mandatory.
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-21
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Database Tables
The SALES_FACTS table contains numeric data on sales for all products sold.
SALES_FACTS is joined to STORES, which contains detailed information on each
nly
store. SALES_FACTS is also joined to TIMES, which contains the date of each sales
e O
transaction, and to PRODUCTS, which contains detailed information on each of the
Us
I
products sold. The DAYS table is used to order the DAY_OF_WEEK column in the
TIMES table.
Object Type Object Name Rows
OA
Table
l
PRODUCTS 141
&
Table
e
Table STORES 12
Table
Int TIMES 547
e
Table DAYS 7
cl
ra
O
.....................................................................................................................................................
1-22 Oracle iDS: Discoverer for Administrators
Training Business Areas
.....................................................................................................................................................
Dates Stores
Store and Sales
Detail
Days
Simple Folders
Sales Facts: Simple folder based on the SALES_FACTS table
Times: Simple folder based on the TIMES table
nly
Stores: Simple folder based on the STORES table
e O
s
Products: Simple folder based on the PRODUCTS table
Days: Simple folder based on the DAYS table.
I U
the TIMES folder. The folder will not be visible to users.
OA
This folder is used to define an alternative sort for the Day_of_ Week column in
l &
a
Complex Folders
rn
Video Analysis: Complex folder containing items from the Sales Facts, Times,
e
Int
Stores, and Products folders
Store and Sales Detail: Complex folder containing a predefined or custom
cle
selection of items from the Sales Facts, Times, Stores, and Products folders
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-23
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
1-24 Oracle iDS: Discoverer for Administrators
Administrator HR Business Area
.....................................................................................................................................................
Salgrade
EUL-defined Emp
Salgrade>Emp join conditions
Emp1
Dept
Emp1>Emp
Sec_Dept (Sec Level)
Employment
Records
Calculated item using
registered PL/SQL function
Corporate
Employees
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-25
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
Emp Id Emp Id
Last Name Last Name
First Name First Name
Job Job
Name Mgr
Location Hiredate
Manager Id Salary
Manager Comm
Eastern Offices Grade
Western Offices Hiredate YY
Hiredate QQ
Hiredate Mon
Security Condition
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
1-26 Oracle iDS: Discoverer for Administrators
Summary
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 1-27
Lesson 1: Introduction to Discoverer 4.1 Administration
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
1-28 Oracle iDS: Discoverer for Administrators
2
.................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
The End User Layer contains the end-user view of the database. Its contents are used
to create business areas. This lesson outlines the minimal steps necessary to create the
EUL and control user access to it. You will also learn how to export and import
business areas.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-3
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Overview
Overview
Create an EUL* Edit formatting properties
Create drills
Refine relational structure
Create conditions
Create summary tables
Create calculated items
Grant access*
* Mandatory
Overview
Before you can create a business area, you must have access to at least one EUL.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-4 Oracle iDS: Discoverer for Administrators
Creating an End User Layer
.....................................................................................................................................................
Connecting to Discoverer
Connecting to Discoverer
Select the Administration Edition from Oracle Discoverer 4 Program Group in the
Start menu to start Discoverer Administration Edition.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-5
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
New
user
Adams
Blake Scott
EUL1 EUL2
(private) (public)
Database
Public EULs
Each database can have one or more public EULs to which all users have access. Most
systems need only one public EUL. A single public EUL requires little database
administration or additional setup, and new users automatically have access to it.
Private EULs
ly
Each database can have one or more private EULs. Users can access a private EUL
n
only if they have been granted authority by the owner of the private EUL.
EULs can switch between private and public through privileges. You can change a
e O
s
private EUL to a public EUL by changing the privileges.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
2-6 Oracle iDS: Discoverer for Administrators
Creating an End User Layer
.....................................................................................................................................................
Security in an EUL
Security in an EUL
The EUL owner maintains his or her EUL. The owner of the EUL can grant access to
other users so that they can either use or make changes to the EUL.
You can create an EUL for an existing user or a new user in the database. The owner
of the EUL must have the following database privileges:
Create Session
Create Table
nly
O
Create View
Create Sequence
se
Create Procedure
I U
A
Note: Additional privileges are required to set up summary management and batch
scheduling.
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-7
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
.....................................................................................................................................................
2-8 Oracle iDS: Discoverer for Administrators
Creating the Initial EUL
.....................................................................................................................................................
4
3
5
6
ly
5 After creating the EUL, Discoverer prompts you to install the tutorial data. You
can choose to install the tutorial now or at a later time.
On
e
6 As a final step, Discoverer prompts you to connect to the EUL that you just
created. You can click Yes to reconnect as the new EUL owner or you can click No
Us
I
to continue working in the current database connection.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-9
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
rn
Connect to standard EULs: The Oracle Applications User check box is not
e
Int
displayed in the Connect dialog.
e
Connect to applications EULs: The Oracle Applications User check box is
cl
displayed in the Connect dialog box, and you will need to login using your
ra
Applications username/password and Oracle Applications database connect
O
string.
Connect to both standard and application EULs: The Oracle Applications User
check box is displayed in the Connect dialog box, and you can login both as
standard and Oracle Applications user.
.....................................................................................................................................................
2-10 Oracle iDS: Discoverer for Administrators
Discoverer in Application Mode
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-11
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
.....................................................................................................................................................
2-12 Oracle iDS: Discoverer for Administrators
Practice 2-1 Overview
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-13
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Practice 2-1
1 Launch the Administration Edition by using the username and password and
database connect string provided by your instructor.
2 Create a new private EUL for user oraxxa (where xx is provided by the
instructor) on the database instance provided by your instructor.
Note: When prompted to create the tutorial, be sure to click No.
a The first time that you connect to Discoverer, you are prompted to create an
EUL. When prompted, click Yes to display the EUL Manager dialog box.
b Click Create an EUL to create a new EUL. The Create EUL dialog box is
displayed.
c Clear the Grant access to PUBLIC check box to create a private EUL.
d Clear the New EUL is for use by Oracle Applications users ONLY check
box, because you are creating a standard EUL.
e Click Finish.
f If prompted to install the tutorial, click No.
g When prompted to connect as the owner of the new EUL, click Yes.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-14 Oracle iDS: Discoverer for Administrators
Designing Business Areas
.....................................................................................................................................................
Business Areas
Business Areas
A business area is a logical set of folders. Business areas are used to group information
about a common subject togetherfor example, Sales Analysis, Human Resources, or
Stock Control. They are important from the point of view of the end user because they
are visible and provide the starting point for building a query.
Business areas are the unit of access control in Discoverer, although users can see
nly
O
folders in a business area only if they have database access to the tables referenced in
e
the folders. This database access check can actually be overridden by setting the
following registry entry:
Us
\\HKEY_CURRENT_USER\Software\Oracle\Discoverer\Database\
AI
O
ObjectsAlwaysAccessible
&
If set to 0, then the accessibility check is not done, which makes the display of the
l
folders in the Discoverer Plus faster. This is useful on systems where granting access
a
n
changes rarely. If a user selects a folder for which there is no database access, then an
er
error message is displayed when the query is run.
t
In
You should consider assigning a folder to a business area as temporary and
le
changeable. Folders are not owned by business areas and can appear in more than one
rac
business area. With multiple folders, there is one definition of the folder, which is
simply assigned to multiple business areas.
O
Folders can also be removed from business areas so that they are not associated with
any business area. However, these orphan folders are not accessible to anyone using
the Discoverer Plus.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-15
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Folders
Folders
Folders represent a result set of data, much like a database view. It is useful to think of
a folder as an SQL statement that returns the result set. In fact, the SQL is actually
stored in the EUL and is used in SQL generation. When designing folders, consider
what you want the result set to be.
Simple folders are created by loading a folder from the database and mapping it
ly
directly to a table or view. Items in simple folders represent columns or calculations on
other items in the folder.
Complex folders are folders that contain items from other folders (simple or complex).
On
Folders can be nested to any depth. Items in complex folders have formulas that
se
reference the items in the source folders. Because these items may themselves be
I U
A
calculations, there is a dependency hierarchy in the EUL, so that changing the formula
on one item may affect other items that use the formula.
& O
l
If complex folders combine multiple folders, the folders must be joined. Complex
rna
folders can represent several joined folders.
e
Whether a folder is complex or simple makes no visible difference to the end user.
nt
Even in the Administration Edition, there is very little difference in the behavior of the
I
two types of folders. In fact, they can both use calculations, joins, conditions,
le
summaries, and hierarchies.
c
ra
O
.....................................................................................................................................................
2-16 Oracle iDS: Discoverer for Administrators
Designing Business Areas
.....................................................................................................................................................
SCOTT.DEPT DEPT
DEPTNO Deptno
DNAME Dname
LOC Loc
ly
The process that Discoverer uses to define metadata is an incremental bottom-up
easy to use and reflects the end-user requirements. Metadata should be modified as
On
approach, starting with the table definitions and then refining the metadata so that it is
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-17
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
ly
that have meaning for the end user.
& O
identify which tables are required. It is probably wise not to select all the tables,
al
because this might confuse end users by presenting them with too many choices.
rn
Instead, you should select the set of tables that satisfies the requirements of most users.
e
Int
By sharing folders among business areas, administrators can set up multiple business
areas at different levels of detail. For example:
cle
Sales Analysis: 1 folder
ra
Sales Details: 6 folders
O
Sales Transaction: 30 folders
.....................................................................................................................................................
2-18 Oracle iDS: Discoverer for Administrators
Designing Business Areas
.....................................................................................................................................................
SCOTT.DEPT DEPT
DEPTNO Deptno
DNAME Dname
LOC Loc
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-19
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
SCOTT.DEPT Departments
DEPTNO DeptId
DNAME Dept Name
LOC Location
ly
As administrator, one of your main tasks is to provide meaningful names for folders
and items in a business area. You can do this at any time based on user feedback, but it
is better to present the data in the most meaningful way as early as possible so that end
On
users do not have to deal with changing terminology.
se
I
Folders and items are identified in the EUL by unique identifiers, so that changing the
U
name of an item in Discoverer has no effect on any other aspect of the item. The
O
customization is maintained even if you migrate the buisness area to a different EUL.A
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
2-20 Oracle iDS: Discoverer for Administrators
Designing Business Areas
.....................................................................................................................................................
Employees
Human Resources
EmpNo
Emp Name Employees
Job Departments
Salary Benefits
DeptNo Profit sharing
Vacation
Finance
Departments Budget
DeptId Departments
Dept Name Resources
Location Legal
nly
Often organizations identify core data, such as a list of employees or products, that is
commonly used in many applications and therefore appears in more than one business
area.
e O
Us
Note: Only one copy of the folder definition exists in the EUL and it is shared by all
AI
the business areas in which it appears. When you modify the folder definition, those
O
changes are automatically reflected in all the business areas in which that folder exists.
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-21
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
ly
Invoking the Load Wizard
You can invoke the Load Wizard to create a new business area in several ways:
On
e
Click Create Business Areas on the Administration Tasklist dialog box.
Select File>New from the menu bar if no business areas are currently loaded.
Us
Select the New Business Area icon on the toolbar.
AI
Select Insert>Business Area>From Database. To use this menu option, you
must have a business area already opened.
& O
al
Select New Business Area from Database from the right mouse menu in the
Data tab.
ern
nt
Select Insert>Business Area>New from the menu bar.
I
e
Select New Business Area from the right mouse menu in the Data tab.
cl
ra
Opening an Existing Business Area
O
To open an existing business area, select File>Open from the menu bar.
.....................................................................................................................................................
2-22 Oracle iDS: Discoverer for Administrators
Creating Business Areas
.....................................................................................................................................................
Loading from the Online Dictionary This option allows you to load tables and
views from the standard Oracle dictionary to which the owner has SELECT privileges.
A business area can contain tables from more than one schema.
nly
O
Loading from the EUL Gateway Lists the gateways for other metadata registered
e
with the EUL. The gateway provides a mechanism for populating the EUL with
metadata from the Designer Repository or from other metadata sources. You can use
Us
I
the gateway to access data from other sources:
Data warehouse, and extraction, transformation, and transfer (ETT) tools
OA
&
Conversion kits for query tools such as Business Objects
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-23
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Selecting the Database Link The database name in the text box is the default
database for the current username. You can change the database link by selecting
another from the drop-down list, which lists the databases that apply to the current
connection.
You can have access to multiple databases through DBLink. DBLink sets up a
connection from one database to another. If you have access to other databases
nly
O
through DBLink, the name will appear in the list. DBlinks in case of Oracle databases,
are created by your database administrator.
se
Selecting Users to Load The next step in loading the metadata into the EUL is to
I U
select the owners of the tables and views that you want to load. You can click Select
All to select all the users or click Clear All to select users individually.
OA
l &
rna
Selecting the Type of Tables and Views to Load
To select the type of tables and views that you want to load, click Options to display
te
the On-Line Dictionary Options dialog box. The dialog box options are described as
n
follows:
e I
cl
Tables owned by user: Loads all or a subset of database objects belonging to the
ra
selected user.
O
Tables accessible by user: Loads all or a subset of database objects to which the
selected user has been granted SELECT access.
Public tables: Selects tables and views in the selected users schema to which the
user has been granted public access.
.....................................................................................................................................................
2-24 Oracle iDS: Discoverer for Administrators
Creating Business Areas
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-25
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Table A
Private Table F
Table B
Table G
Public Table C
Table H
Table D Table I
Partial
Table E Table J Database
ly
Public tables: C Public tables: I
Partially restricted tables: D, E Partially restricted tables: J
On
Private tables: A, B Private tables: F, G, H
se
U
Tables accessible by user: Bob Tables accessible by user: Betty
Public tables: C, I Public tables: C, I
AI
Partially restricted tables: J, D, E Partially restricted tables: D,E, J
& O
l
Private tables: A, B Private tables: F, G, H
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
2-26 Oracle iDS: Discoverer for Administrators
Creating Business Areas
.....................................................................................................................................................
Selecting the Tables and Views to Load After you select the users and search
criteria, a list of available database tables and views is displayed in the third step of the
Load Wizard. There are several methods for selecting tables and views for loading:
Select the objects to be loaded in the Available box and click the move (>) button
to move the objects to the Selected box.
Drag an object from the Available box to the Selected box.
nly
Double-click an object in the Available box to move it automatically to the
e O
s
Selected box.
I U
Note: For tables and views to appear in the list of tables and views, you must have one
A
of the following:
SELECT access on the tables and views in the underlying database
& O
l
DBA privileges
na
SELECT ANY TABLE privilege
r
.
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-27
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
ly
include capitalizing names, replacing underscore characters
n
O
with spaces, and removing all column prefixes.
e
Creating joins Provides options for creating joins. Selecting the Primary/
s
foreign key constraints option retains the data model from the
U
I
database. Selecting the Matching column names option
A
creates joins between two tables with identical column names.
Generating summaries
O
Provides option to let Discoverer generate summaries after the
&
load process. Selecting this option will slow down the Bulk
t
hierarchies, default default date hierarchy, to generate lists of values for selected
In
aggregate on data point, types of items (except data points and dates), and to specify the
le
and list of values for default aggregate type for data points. LOVs are created from
c
items of type the values in the associated database column and are generated
ra at run time.
.....................................................................................................................................................
2-28 Oracle iDS: Discoverer for Administrators
Creating Business Areas
.....................................................................................................................................................
Naming the Business Area In the fifth step of the Load Wizard, you provide a
meaningful name for the business area and optionally add a description of it. This
name is used throughout Discoverer Plus to identify the business area to the end user.
Click Finish to begin loading the metadata into the business area
Note: Character items are loaded as axis items; integers (numbers with no precision)
are loaded as axis items; number items with precision are loaded as data points or
nly
O
measures and have a default aggregate applied according to the selection made by the
administrator.
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-29
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Business area
Folder
Axis item
Data point
item
Join
Work Area Tabs The work area contains four tabs, which are described as follows:
ly
Data: Defines the relational structure, including business areas, folders, items,
n
conditions, calculations, and joins
Hierarchies: Defines items and date hierarchies for items in the current business
e O
s
areas
Item Classes: Defines lists of values, alternative sorts, and drill-to-detail links
I U
Summaries: Lists the summary folders and summary tables used in the current
business areas
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
2-30 Oracle iDS: Discoverer for Administrators
Creating Business Areas
.....................................................................................................................................................
ly
windows, select Windows>New Window.
You can select multiple items and make the same change on them in one operation.
For example, you can select all the primary key items and set the Visible property
On
to No to make them invisible to the end user. You can select multiple items using
se
the [Ctrl] key.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-31
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Administration Tasklist
Administration Tasklist
You can use the Administration Tasklist as a checklist for performing administrative
tasks. Double-click an icon in the tasklist to invoke the appropriate wizard or to open
the appropriate window.
Invoking the Administration Tasklist When you first start the Administration
Edition, Discoverer automatically displays the Administration Tasklist dialog box. To
close the Administration Tasklist window, click Close. To reopen the tasklist after it
nly
O
has been closed, select Tasklist from the View menu.
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
2-32 Oracle iDS: Discoverer for Administrators
Bulk Load Defaults
.....................................................................................................................................................
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-33
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
ly
DefaultDomainMaxColLength
O
supplied with Discoverer and enables users to drill through date items from years to
&
quarters, to months, to days.
al
The effect of selecting the date hierarchies option when doing a bulk load is:
rn
Additional (calculated) items are inserted into the folder. An extra item is added
e
Int
for every date item, for every node in the date hierarchy. For example, a date
hierarchy of Year, Quarter, Month, and Day applied to a table with three date
le
columns generates 12 extra items in the folder.
c
a
An date hierarchy is created that allows the end user to easily drill through the
r
O
hierarchy
Note: Date and item hierarchies are discussed in detail later.
.....................................................................................................................................................
2-34 Oracle iDS: Discoverer for Administrators
Object Property
.....................................................................................................................................................
Object Property
Object Property
Object Property
Every item in the EUL has a set of properties associated with it. Item properties can be
viewed by clicking the item icon. Some of the properties can be updated in the
property dialog box. Items can be uniquely identified by unique identifiers.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-35
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Fine Granular Export Exporting and importing has been greatly enhanced in
Discoverer 4.1. In earlier versions you could only export a business area, but now you
can export the following items individually or together, using the command line
ly
syntax:
Business areas
On
e
Folders
Items
Us
Items classes
AI
O
Hierarchies
PL/SQL function definition
l &
Summaries
rna
e
Workbooks
ASM policies
Int
cle
Import as Refresh In this case EUL items are updated or created based on the
ra
imported files.
O
Import Multiple Files
business areas.
You can import multiple files to create or update your
.....................................................................................................................................................
2-36 Oracle iDS: Discoverer for Administrators
Exporting and Importing
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-37
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
3 4
AI
O
To export multiple business areas to a single file, select the business areas that you
&
want to export while holding down the [Ctrl] key, and then select File>Export from
the menu bar.
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-38 Oracle iDS: Discoverer for Administrators
Exporting and Importing
.....................................................................................................................................................
2
4
ly
3 Select the file to import.
4 Click Next and select the desired import option.
On
e
Note: When you import a business area file, Discoverer imports only the business
s
definitions; it does not import the database, EUL tables, or database objects referenced
U
I
by the business area definitions.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-39
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Selecting an Import Option You can select one of the following import options:
Rename the imported object (default): If the incoming object names conflict with
existing names, a suffix is added to the incoming object.
Rename the existing object: If the incoming object names conflict, a suffix is
added to the existing object.
nly
O
Do not import the matching object: If the incoming objects already exist in the
EUL, Discoverer does not import the incoming object.
se
U
Refresh the object: The incoming object avoids the creation of a new item. You can
update or create an EUL object based on the contents of an .eex file. It is similar
AI
O
to Refresh from the database, except that the source for the refresh is an .eex file
&
and not the data dictionary. While refreshing you can choose to maintain any
l
customization done on the item.
a
ern
Matching Objects During an import it is important to match the incoming object
nt
with the correct target EUL object. Objects can be matched by their Identifier or
I
e
Display Name. By default they are matched by Identifiers.
cl
ra
O
.....................................................................................................................................................
2-40 Oracle iDS: Discoverer for Administrators
Exporting and Importing
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-41
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-42 Oracle iDS: Discoverer for Administrators
Practice 2-2 Overview
.....................................................................................................................................................
ly
To import the solution file, you should do the following:
n
1 Select File>Import.
2 Click Add.
e O
3 Select the relevant practice .eex file from the Open dialog box and click Open.
Us
4 Click Next.
5 Select Refresh the object option.
AI
6 Click Next.
& O
al
7 Click Start. If no error, click Finish.
rn
8 Select Tools>Security and grant access to your oraxxb. Revoke access to any
e
Int
other users.
9 Check registered PL/SQL functions. Select Tools>Register PL/SQL functions
cle
and delete any unwanted functions.
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-43
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Practice 2-2
1 Use the Load Wizard to create a new business area with data from the online
dictionary.
a Select Insert>Business Area>from Database to invoke the Load Wizard.
b Load the SALES_FACTS, TIMES, STORES, PRODUCTS, and DAYS tables
owned by the VIDEOCUT user.
c Accept the default renaming options, use the primary and foreign key
definitions to create join definitions, accept the default date hierarchy, and
accept SUM as the default aggregate type. Create LOVs automatically for items
of all types, except Decimal and Integer. Make sure you do not check
Automatically generate: Summaries based on folders that are created.
d Specify Video Stores as the name of the business area and add a description, if
desired.
2 Create a second business area with data from the online dictionary.
a Select Insert>Business Area>from Database to invoke the Load Wizard.
b Load the EMP, EMP_HIST, and SEC_OBJECT tables owned by the
VIDEOCUT user.
c Accept the default renaming options, use the primary and foreign key
definitions for join definitions, accept the default date hierarchy, and accept
SUM as the default aggregate type. Make sure you do not check
Automatically generate: Summaries based on folders that are created
and do not create LOVs automatically.
d Specify Human Resources as the name of the business area and add a
ly
description, if desired.
3 Expand the Video Stores business area in the work area and view the default item
On
e
names and lists of values.
4 Collapse the Video Stores business area in the work area and expand the Human
Us
Resources business area. View the default item names. How many folders are
there in Human Resources?
AI
5 In the Administration Edition, export the Human Resources business area as
& O
HR.EEX.
al
rn
6 Import the Human Resources business area from HR.EEX file and the Salgrade
e
t
folder from SALGRADE.EEX. Do not load objects that already match from
In
HR.EEX file. Place the Salgrade folder under the Human Resources business area.
le
How many folders are there now under Human Recourses?
c
ra
O
.....................................................................................................................................................
2-44 Oracle iDS: Discoverer for Administrators
Providing Security to Business Areas
.....................................................................................................................................................
e
or more business areas.
Note: Users cannot view a folder unless they have been granted SELECT access on
Us
PL/SQL functions used in the folder.
AI
the underlying tables used in the folder and have been granted EXECUTE access to any
& O
You can grant a business area to all users who have access to the EUL in a single step
l
by granting access to the user PUBLIC (PUBLIC is not a database user ID).
a
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-45
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Manage business
areas:
Create
Edit
Format
Set privileges
Manage scheduled
workbooks
ly
Format Business Area: Customize the business area, its folders, items, joins, and
so on.
On
e
Create/Edit Business Area: Create and edit new business areas, folders, joins,
calculations, conditions, hierarchies, and item classes. Users can also import
Us
I
business areas.
Create Summaries: Create summaries. Without this privilege, the Summary
Wizard and edit dialogs are unavailable. Users must also have resource privileges
OA
l
in the database in order to create summary tables.
&
na
Set Privilege: Grant or revoke EUL privileges. Granting this privilege to a user
r
e
gives that user full access to the Administration Edition. Any user granted this
nt
privilege can, in turn, grant administration privileges on a business area to another
I
e
user, so that administration can be shared. Although a business area can be
cl
administered by multiple users, you should have one administrator for each
ra
business area to make control easier.
O
Manage Scheduled Workbooks: Maintain scheduled workbooks.
The owner of an EUL is automatically granted every privilege. These privileges
cannot be revoked. The EUL owner is a superuser.
.....................................................................................................................................................
2-46 Oracle iDS: Discoverer for Administrators
Providing Security to Business Areas
.....................................................................................................................................................
Queries
Create and edit
Collect statistics
Workbooks
Create
Grant access
Schedule
Save to database
Use item drills
Drill out
ly
this privilege, users can run only prebuilt workbooks.
Collect Query Statistics: Collect query statistics to determine which summary
On
e
tables will improve performance.
Us
Item Drill: Drill up or down or drill to an associated item. Without this privilege,
all drill options except Drill Out are disabled.
AI
O
Drill Out: Drill out to another application.
&
Grant Workbook: Share workbooks saved to the database in the Discoverer Plus.
al
Schedule Workbooks: Create and edit scheduled workbooks.
rn
Save Workbooks to Database: Save workbooks to the database. Otherwise, users
e
Int
can save workbooks only in their file system.
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-47
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Governing Queries
Governing Queries
The Query Governor tab in the Privileges dialog box enables you to set limits on the
queries performed by end users. You can set limits for a particular user or for a
particular role.
ly
The Query Governor tab components are described as follows:
Show query limits for: Indicates whether the limits are for a user or for a role or
both.
On
Warn user if predicted time exceeds: Displays a warning message to the end user if
se
the predicted query time exceeds the time specified in minutes and seconds. This
I U
A
limit cannot be superseded by the end user.
Prevent queries from running longer than: Cancels queries if they run longer than
& O
l
the time specified in minutes and seconds. This limit cannot be superseded by the
end user.
rna
e
Limit retrieved data to: Indicates the maximum number of rows that can be
nt
retrieved by a query. This limit cannot be overridden by the end user.
I
e
Note: Managing scheduled workbooks will be covered in detail later in Lesson 9,
cl
Managing Batch Scheduling.
ra
O
.....................................................................................................................................................
2-48 Oracle iDS: Discoverer for Administrators
Providing Security to Business Areas
.....................................................................................................................................................
Data-Access Requirements
for Administrators
e O
s
ANALYZE ANY privilege to analyze tables for summaries
CREATE MATERIALIZED VIEW privilege for creating, dropping, and altering
I U
A
Materialized Views in Oracle 8.1.6 or higher database.
O
Global query rewrite enabled on the database to redirect queries to Materialized
&
l
Views for better query performance.
na
For detailed information on setting up these features and troubleshooting, see the
r
e
Release Notes.
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-49
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
Data-Access Requirements
for End Users
ly
to schedule workbooks if they are using the batch repository owner. Batch repository
owners will be discussed in Lesson 9.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
2-50 Oracle iDS: Discoverer for Administrators
Summary
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-51
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-52 Oracle iDS: Discoverer for Administrators
Practice 2-3
.....................................................................................................................................................
Practice 2-3
1 Grant the end user oraxxb (where xx is provided by the instructor) access to the
new business areas.
Hint: Use Tools>Security.
2 Grant oraxxb all the privileges to the Discoverer Plus (including the User
Edition).
Note: You may experience a slight delay in response when privileges are applied.
3 Launch the Discoverer Plus as oraxxb and create a new workbook.
4 Create and edit a table query as follows:
a Select Sales SUM and Unit Sales SUM from the Sales Facts folder, Region from
the Stores folder, and Transaction Date Year from the Times folder.
b Drill down from Transaction Date Year to Quarter in Year without replacing
Transaction Date Year. Why does this drill hierarchy exist? Are the default
positions of the axis items meaningful?
c Duplicate the query so that the table layout is a page-detail crosstab.
d Check Show Page Item. Pivot the items so that Region is on the side axis,
Transaction Date Year is on the page axis, and the remaining items are on the
top axis.
e Click a cell in the worksheet and open the Drill dialog box. What other drills
are available?
5 Save the workbook on your computer as workbook1.dis and exit Discoverer
Plus.
ly
6 In the Administration Edition, restrict oraxxb so that the only function that can
be performed is to run saved queries and collect query statistics.
On
e
7 Reconnect to Discoverer Plus as oraxxb and verify the restriction. What options
are available?
Us
8
AI
In the Administration Edition, allow oraxxb the privilege of editing queries.
O
9 Reconnect to Discoverer Plus as oraxxb. What options are available now? Open
&
the first worksheet of the saved workbook. What functions are not available?
10
al
Restore all Discoverer Plus privileges except for Schedule Workbooks to oraxxb.
11
rn
In the Administration Edition, restrict oraxxb from running queries when the
e
t
predicted time exceeds 10 seconds.
In
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 2-53
Lesson 2: Creating the End User Layer and Business Areas
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
2-54 Oracle iDS: Discoverer for Administrators
3
.................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
3-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
As the Discoverer administrator, one of your primary tasks is to enhance the
capabilities of the user in accessing the data and creating queries.
In this lesson, you use item classes to create lists of values for axis items and
alternative sorts. You also create optional and mandatory conditions.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-3
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Overview
Overview
Load business area*
Create joins
Create drills
Create calculated items
Create conditions
Create summary tables
Create complex folders
Grant access*
* Mandatory
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
3-4 Oracle iDS: Discoverer for Administrators
Using Item Classes
.....................................................................................................................................................
Item Classes
Item Classes
An item class enables you to define properties once for a specified item and then
assign the item class to other items that share similar properties. You create an item
class to enable the following features:
Lists of values (LOVs)
Alternative sorts
nly
Drill-to-detail links (hyperdrills)
e O
s
Item classes do not belong to a folder or business area but are associated with an item
U
that provides the list of values. You can associate other items with a specific item
I
A
class.
O
Note: Drill-to-detail item classes are covered in detail in Lesson 7, Creating Drills.
&
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-5
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
List of values
Alternative sort
Drill to detail
ly
Alternative sort: An alternative sort enables you to sort values of an item in a
nonalphanumeric sequence. An example of this is financial periods: M1, M2, M3,
. . . M10, M11, M12. If these values were sorted alphabetically, they would appear
On
as M1, M10, M11, M12, M2, M3, and so on.
se
Drill to detail: Drill-to-detail links help users to navigate through detail and
I U
summary-level data and to drill to other related data.
OA
Invoking the Item Class Wizard
l &
rna
These are several ways to display the Item Class Wizard:
e
Select Insert>Item Class from the menu bar.
Int
Click the New Item class icon on the toolbar.
le
Select Create item classes from the Administration Tasklist.
c
a
Select the Item Class tab in the work area and New Item Class from the right-
r
mouse menu.
O
.....................................................................................................................................................
3-6 Oracle iDS: Discoverer for Administrators
Creating Lists of Values
.....................................................................................................................................................
LOVs
LOVs
Typically, you generate lists of values when you first create the business area and then
optimize them later for performance or share them with other items using the Item
Class Wizard.
Providing end users with lists of values enables them to easily set conditions and
parameter values without having to type values manually or remember what values are
nly
O
contained in the database.
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-7
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
ly
click Next to go to the next step.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
3-8 Oracle iDS: Discoverer for Administrators
Creating Lists of Values
.....................................................................................................................................................
ly
to complete the creation of the new item class attribute.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-9
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Managing LOVs
ly
the appropriate right-mouse menu option.
O
the item that you want to edit. Next, click the Select Items tab and select the desired
&
items that you want to use with the item class.
al
ern
Int
cle
ra
O
.....................................................................................................................................................
3-10 Oracle iDS: Discoverer for Administrators
Creating Lists of Values
.....................................................................................................................................................
ly
seconds, the user is warned that the list may take some time to retrieve. The warning
n
message is always displayed the first time a list is created, so it is a good idea to open
all newly created LOVs in the Administration Edition, so that end users never see this
message.
e O
Us
Speeding Up List Retrieval
AI
O
The query used to fetch the list of values is a SELECT DISTINCT type query. If the
&
list is defined against an item in a folder with a large number of rows compared with
l
the number of distinct values, then such a query can be inefficient. It is much better to
a
n
drive the list from a small dimension table attached to the FACT table, rather than
er
using the FACT table itself. If such tables do not exist, you may want to consider
t
n
creating them to speed up the LOV retrieval.
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-11
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Alternative Sorts
Alternative Sorts
You use alternative sorts when you want the values of an item to sort in a
nonalphanumeric sort sequence. An alternative sort affects queries only when sorting.
It does not affect the original values in the database.
ly
Example of an Alternative Sort
An example of this is financial periods, with values such as M1, M2, M3, and M10.
On
e
When these values are sorted alphabetically, they appear as follows:
M1, M10, M11, M12, M2, M3 . . .
Us
When an alternative sort is used, these values appear in a more natural sequence:
AI
O
M1, M2, M3, M4, . . . M10, M11 . . .
Using an alternative sort involves at least two items:
l &
rna
The item that you want sortedfor example, Financial Period
e
The item that contains the correct sort sequencefor example, Sort Date
Int
cle
ra
O
.....................................................................................................................................................
3-12 Oracle iDS: Discoverer for Administrators
Creating Alternative Sorts
.....................................................................................................................................................
Alternative Sorts
Default sort order
ly
together. One item defines the sort order and the other defines the item to be sorted.
Alternative sorts require no action by the end user. In fact, end users are unaware that
the sorts exist.
On
se
When a user chooses to sort on an item, it is sorted by the alternative sort, if available.
U
The SQL that is generated always fetches the alternative sort item when you select the
I
A
item, even if you do not choose to sort. This behavior means that a local sort can be
& O
performed later, if required, without accessing the database a second time. The SQL
that is generated creates a join (or a self-join) and can affect performance of large
al
result sets. You should always index columns specified in alternative sorts.
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-13
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Creating an Alternative Sort by Using the Wizard: Step 1 After the Item Class
nly
Wizard is launched, the first step is to select the Alternative sort option in the first
e O
s
screen of the wizard. Click Next to go to the next step.
Creating an Alternative Sort by Using the Wizard: Step 2 The second step is to
I U
select the item that generates the list of values (for example, Monday, Tuesday,
OA
&
Wednesday, Thursday, Friday, Saturday, and Sunday). Select the item and click Next
l
to go to the next step.
a
ern
Int
cle
ra
O
.....................................................................................................................................................
3-14 Oracle iDS: Discoverer for Administrators
Creating Alternative Sorts
.....................................................................................................................................................
Creating an Alternative Sort by Using the Wizard: Step 3 The third step is to
select the item that contains the alternative sort (for example, 1, 2, 3, 4, 5, 6, and 7).
Select the desired item and click Next to go to the next step.
Creating an Alternative Sort by Using the Wizard: Step 4 The fourth step is to
nly
O
select the item or items that will use the item class. Select the desired items and click
e
Next to go to the next step.
Us
I
Creating an Alternative Sort by Using the Wizard: Step 5 The final step is to
A
give the alternative sort a name and description that is meaningful. Click Finish to
create the item and exit the Item Class Wizard.
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-15
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Using Conditions
Conditions
Conditions:
Reduce amount of information retrieved in a
query
Can be placed on one or more items
Are associated with a folder
Can be optional (visible) or mandatory
(hidden)
Items in the condition:
Must exist in the folder
Can be hidden
About Conditions
A condition is a filter that you place on a folder to restrict the number of rows returned
from a query. For example, an end user may want to view sales information for all
states in the North region. To do this, you create a condition that returns information
for all states in the North region.
Types of Conditions As administrator, you can define two types of item conditions:
nly
mandatory and optional.
e O
Mandatory condition: A condition that is automatically applied to every query that
Us
I
the user creates based on items in the folder that contains the condition. It is
transparent in Discoverer Plus.
Optional condition: A condition that is applied only when the user selects it. An
OA
l
optional condition appears in the item selector as a filter icon.
&
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
3-16 Oracle iDS: Discoverer for Administrators
Using Conditions
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-17
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Optional Conditions
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
3-18 Oracle iDS: Discoverer for Administrators
Using Conditions
.....................................................................................................................................................
Mandatory Conditions
Note
Complex folders and how conditions work in them will be discussed in Lesson 5,
Creating Complex and Custom Folders.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-19
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Conditional Operators
Conditional Operators
Conditions are a way of reducing the information contained in a particular row set. For
example, you may select videos as an item in a query, though in fact you want to see
only science fiction videos:
Video = Science Fiction
A conditional operator shows how an item is to be compared. The following table
ly
describes the different available operators:
Operator Description
On
e
= Equality test
<,>,<=,>=,!=, ^= Inequality test
Us
IN Value is equal to any member of the test set
AI
O
NOT IN Value is not equal to any member of the test set
&
IS NULL Value is null
IS NOT NULL
n
BETWEEN Value is between two values
NOT BETWEEN
ter Value is not between two values
LIKE
In Value matches a case-sensitive pattern
NOT LIKE
ra
O
.....................................................................................................................................................
3-20 Oracle iDS: Discoverer for Administrators
Using Conditions
.....................................................................................................................................................
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-21
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
nly
O
a calculation) from the pull-down menu in the Item field.
5 Select the appropriate operator from the Condition pull-down menu.
se
U
6 Select the Values pull-down menu. Your choices depend on what item class you
have selected. Valid choices include the following:
AI
O
Select Item
Select Multiple Values
l &
rna
Create Calculation
e
The List of values belonging to the item class
Int
7 Click OK. The condition and an icon are added to the folder in the business area.
le
Note: If you select the Match case check box, then the search is case sensitive. If
c
the check box is not selected, then the UPPER function is applied to both the item
ra
and the value.
.....................................................................................................................................................
3-22 Oracle iDS: Discoverer for Administrators
Using Conditions
.....................................................................................................................................................
Adding Conditions
When you select Advanced, the New Condition window is modified to include the
original condition and buttons that enable you to add, delete, or group conditions. To
add a condition, follow these steps:
1 Click Add. A blank condition field is added.
2 Enter the new condition.
3 Click OK to validate the condition.
nly
Changing Operators
e O
By default, Discoverer combines conditions using the AND operator. Clicking inside
Us
I
the Group field toggles among the AND, OR, and NOT operators.
Copying Conditions
OA
l &
To copy or edit an existing condition, choose Select Condition from the drop-down list
rna
in the Item field, select a condition in the specified folder, and click Advanced to copy
it into the Advanced New Condition dialog.
nte
I
Nesting Conditions
e
l
You can build complex conditions from simpler ones by nesting them. To do this,
c
a
select two or more conditions and then select the appropriate group operator. There is
r
O
no limit to the depth that conditions can be nested.
You can also create complex conditions or change the status of an existing condition
by using the Select Condition command from the drop-down list in the Item field.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-23
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
3-24 Oracle iDS: Discoverer for Administrators
Practice 3-1 Overview
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 3-25
Lesson 3: Creating LOVs, Alternative Sorts, and Conditions
.....................................................................................................................................................
Practice 3-1
1 In the Administration Edition, open the Video Stores and Human Resources
business areas, if they are not already opened.
2 The Dept folder was loaded without specifying that LOVs be automatically
created. Create two item classes to generate LOVs for the Name and Location
items in the Dept folder.
3 View the values of the Name and Location items in the Data tab.
4 Create the following conditions in the Video Stores business area:
a Create an optional condition on the Age category in the Products folder that
includes all ages and over 12. Name the condition Family Films.
b Create a mandatory condition on Region in the Stores folder that restricts
Region to only the East region. Name the condition Eastern Region.
5 Create the following conditions in the Human Resources business area:
a Create an optional condition on Location in the Dept folder that restricts
locations to Boston or New York. Name the condition Eastern Offices.
b Create an optional condition on Location in the Dept folder that restricts the
location to San Jose. Name the condition Western Office.
6 The days of the week are currently sorted in alphabetical order. Create an item
class that specifies an alternative sort (Monday, Tuesday, Wednesday, Thursday,
Friday, Saturday, Sunday) for the days of the week:
a Create an alternative sort for the Days of Week item in the Days folder.
b Apply the item class to the Day of Week item in the Times folder.
ly
c Name the item class Sorted days of week.
d In the Item Classes tab, show the user-defined alternative sort.
On
e Expand the list of values to view the values sorted by the alternative sort key.
se
U
f Expand the list of items by using the Sorted days of week item class.
7
AI
Show all the user-defined item classes in the Item Classes tab for the Video Stores
O
and Human Resources business areas.
8 Launch Discoverer Plus as oraxxb, open a new workbook, and create new
l &
a
queries that use the conditions and alternative sort. Save the queries as
rn
workbook3-1.dis.
e
Int
cle
ra
O
.....................................................................................................................................................
3-26 Oracle iDS: Discoverer for Administrators
4
.................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
4-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
In this lesson, you learn how to edit properties to provide more meaningful names for
business areas, folders, and items. You also learn how to create calculated items and
how to make user-defined PL/SQL functions available to Discoverer users.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-3
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
Overview
Overview
Load business area*
Create joins
Create drills
Create calculated items
Grant access*
* Mandatory
Copyright Oracle Corporation, 2001. All rights reserved.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
4-4 Oracle iDS: Discoverer for Administrators
Folder and Item Properties
.....................................................................................................................................................
e O
s
Select Edit Item Properties from the Administration Tasklist dialog box.
I U
A
About Identifiers Sometime Discoverer needs to know which elements in EULs
O
refer to the same EUL objects, (known as Conceptually Identical Objects). To do this,
&
Discoverer compares either the elements Display Name or the elements Identifier.
l
Identifiers are unique names that are used by Discoverer to identify EUL elements and
a
ern
workbooks uniquely. This is useful when the display names of folders and items are
t
customized, because it allows Discoverer to continue to open workbooks or perform
In
import operations even when the display names have been changed. These operations
e
use the identifier to locate the right elements and therefore are unaffected by changes
cl
in the display names.
ra
For example, if you have a folder named Sales in a production EUL with its
O
component items, add a new calculated item Projected Cost to the Sales folder in the
development EUL, and then export this folder. When you import the folder using the
Refresh option to the production EUL, the Projected Cost item will be added to the
existing Sales folder.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-5
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
4-6 Oracle iDS: Discoverer for Administrators
Folder and Item Properties
.....................................................................................................................................................
Folder Properties
Name
Description
User visibility
Database
Table owner
Table name
Optimizer hint
Identifier
Folder Properties
You use the Folder Properties dialog box to customize the properties of a folder.
Commonly modified attributes are described in the following table:
Attribute Name Description
Name Specifies the name of the folder as it appears in the work area
ly
Description Specifies the description of the folder as it appears in the
n
description line of Query Wizard in Discoverer Plus
O
Visible to user Specifies whether the folder is visible in Discoverer Plus
Database
e
Specifies the name of the source database that stores the table
s
U
corresponding to the folder
Owner
I
Specifies the table or view owner corresponding to the folder
A
O
Object Specifies the name of the database object that corresponds to the
folder
l
Optimizer hint
&
Places a specific optimizer hint against the folder (The hint is
e
Identifiers Identifies folder uniquely across the EUL, a property that is static
Int across EUL instances. The property is not visible to the users.
cle
Note: The Optimizer hint property is not available with ODBC data sources.
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-7
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
General Tab The General tab lists the attributes of the underlining table (or view),
including the name and description that will be used in Discoverer Plus. Attributes that
cannot be changed by the Discoverer administrator are dimmed to indicate that their
values cannot be modified.
nly
Dependents Tab The Dependents tab shows the relevant types of information on
e O
which the object depends. In this slide example, Sales Fact is joined to three other
Us
I
folders: Product, Store, and Time.
Renaming and Adding Descriptions to Folders You should give each folder in a
OA
business area a meaningful name. Folders are the basic elements with end users work
l &
rna
in Discoverer Plus. To modify a folder name, select the Name attribute and enter the
new name. To modify a folder description, select the Description attribute and enter a
new description
nte
e I
cl
ra
O
.....................................................................................................................................................
4-8 Oracle iDS: Discoverer for Administrators
Folder and Item Properties
.....................................................................................................................................................
Name
Description
Data type
Formula
Visibility to user
Default position
Default aggregate
Format mask
ly
Formula Displays the formula for the selected item; can be modified if the
Visible to user
selected item is derived
On
Specifies whether the item is visible in Discoverer Plus; dimmed
se
in Administration Edition if value is set to No
Item class
I U
Specifies the name of the item class used by the selected item
A
Date hierarchy Specifies the date hierarchy used by the selected item
Default position
O
Specifies the default axis on which the item will be displayed
&
l
Default aggregate Sets the aggregate type if no aggregate type is specified for a data
Heading
rna point
Specifies the name of the item as it appears in the results set
te
Format mask
n
Specifies the default display format for the selected item
e I
l
Demonstration
c
a
Show participants how you can view and modify the intersecting properties of more
r
O
than one item by using the [Shift] key. Explain the use of the Automatically save
changes after each edit option.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-9
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
Alignment
Word wrap
Case storage*
Display case
Default width
Replace NULL with*
Content type
Max char fetched (longs)
Identifier
* Affects SQL generation
Copyright Oracle Corporation, 2001. All rights reserved.
ly
large amounts of data, a Yes setting may slow down performance
Case storage
in Discoverer Plus
On
Indicates how the text data is stored in the database, independent
of how it is displayed
se
Display case
U
Provides choices for displaying text or character data as
I
A
uppercase, lowercase, or initial capitals in end-user workbooks
O
Default width Specifies the default width of an item in Discoverer Plus
&
worksheets, as expressed in the number of characters
Content type
al Identifies whether data can be used to launch an external
n
application
ter
Replace NULL with Specifies the string to display for a cell with a null value
In
Max char fetched Specifies the maximum amount of characters retrieved in a SQL
le
call to the database; use for LONG data types
rac
Identifier Identifies the item uniquely across the EUL, and is static across
EUL instances.
.....................................................................................................................................................
4-10 Oracle iDS: Discoverer for Administrators
Item Calculations
.....................................................................................................................................................
Item Calculations
Item Calculations
RowSecurity(dept_id)
Item Calculations
An item calculation is used to create a new item when there is no underlying database
column that contains the data required. Calculations can be simple, such as Sal*12,
or they can be complex mathematical or statistical or analytical expressions.
& O
l
When you use arithmetic expressions in a calculation, the multiply and divide
na
operators are executed first, regardless of their position in the calculation. If you have
r
e
more than one operator of the same precedence, they are evaluated from left to right.
Int
For example, the calculation Price - Discount * Quantity will be evaluated as Discount
e
multiplied by Quantity and then subtracted from Price. If you place parentheses
cl
around the subtraction expression, (Price - Discount), then Price is subtracted from
ra
Discount first, and the result is then multiplied by Quantity.
O
Calculations can also use CHAR and DATE items, SQL and PL/SQL functions, and
literals, as well as the concatenation operator ||.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-11
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
Invoking the New Item Dialog Box You can invoke the New Item dialog box in
several ways:
Select Insert>Item from the menu bar, which displays a dialog box for selecting
the folder.
ly
Click the New Item icon on the toolbar, which displays a dialog box for selecting
the folder.
On
e
Select New Item from the Administration Tasklist dialog box, which displays a
dialog box for selecting the folder.
Us
Select an item or folder in the work area and select New Item from the right mouse
menu.
AI
& O
l
Creating a Calculated Item
na
1 Enter the calculation in one of the following ways:
r
e
If you know the calculation syntax, enter it directly in the Calculation box.
Int
Build the calculation by pasting items from the Items list box and functions
le
from the Functions list box into the Calculation box. (Select the Functions
rac
option to display a list of available functions.)
Use a combination of pasting items and entering text.
O
2 Enter a name in the Name field for the calculation that is meaningful to end users.
3 Click OK to create the calculated item. If the calculation contains an error, the
calculation is not created and a message is displayed informing you of the error in
the formula. Note that default aggregate function for a calculated item is Detail.
Usually, you will want to change this property value to SUM.
.....................................................................................................................................................
4-12 Oracle iDS: Discoverer for Administrators
Item Calculations
.....................................................................................................................................................
ly
not appear in the list of available functions.
Note: For details on SQL functions see the Oracle SQL Reference Manual or visit the
Oracle OTN Web site: technet.oracle.com.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-13
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
A.
e O
s
Conversion: Single-row functions that convert one data type to the same or another
data type.
I U
A
Database: Contains user-defined PL/SQL functions. These functions are registered
by the administrator and are discussed later in this lesson.
& O
l
Date: Calculates arithmetic operations on dates.
na
Group: Calculates the reporting functions.
r
e
Numeric: Single-row numeric functions that return numeric values. For example,
Int
ABS calculates the absolute value of a number.
le
Other: Single-row functions that do not apply to any other grouping. For example,
c
DECODE compares an expression to a search criterion and returns a value. You
ra
can include multiple search criteria and return expressions.
O
String: Single-row character functions that return character values.
Note: Aggregate calculations are discussed in detail in Lesson 5, Creating
Complex and Custom Folders.
.....................................................................................................................................................
4-14 Oracle iDS: Discoverer for Administrators
Item Calculations
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-15
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
Analytical Functions
Analytical Functions
Oracle 8.1.6 and higher versions provide analytical functions that enable rankings,
moving window calculations, lead/lag, and statistical functions. Using Discoverer you
can use these functions in calculations. You can also create calculated items based on
these functions.
Ranking functions are very useful to answer questions such as, Who are my absolute
best and worst customers?
nly
Windowing functions are useful for calculating cumulative and moving averages.
e O
s
Reporting functions help to calculate shares, for example market share for a product.
Lead/lag functions are useful for comparing values in different time periods, for
I U
A
example sales for March 1999 to March 2000.
You can use statistical functions to compute covariance, correlation, and linear
& O
l
regression statistics.
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
4-16 Oracle iDS: Discoverer for Administrators
Registering PL/SQL Functions
.....................................................................................................................................................
User-Defined Functions
In addition to the PL/SQL functions supported by Oracle, you can create custom PL/
SQL functions to meet the requirements of your users. For a user-defined PL/SQL
function to be accessible in Discoverer, you must register it in the End User Layer.
After you register a user-defined function, it appears in the list of functions that is
ly
displayed when you expand the Database folder in the New Item function list box.
User-defined functions can be used for creating or editing calculation items in the
same way as the standard functions.
On
Note: You cannot create user-defined PL/SQL functions directly in the Administration
se
Edition. To create PL/SQL functions, use SQL*Plus or a procedural editor (for
I U
example, Procedure Builder).
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-17
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
Registration methods:
Import (version 7.3 requires SELECT on
ALL_ARGUMENTS)
Manual (must use uppercase)
EXECUTE privilege on the function required
.....................................................................................................................................................
4-18 Oracle iDS: Discoverer for Administrators
Registering PL/SQL Functions
.....................................................................................................................................................
2
3
AI
O
3 Select the functions to import and click OK.
&
4 (Optional) Select the Available in User Edition check box to enable users to create
al
calculated items using the function.
ern
What Is Imported When you import a function, all the relevant information about
nt
each function is imported, such as the name of the function, the owner of the function,
I
e
the name of the package containing the function, the name of the database containing
cl
the function, the data type of the return value, a list of arguments, and a description of
ra
the function.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-19
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
Using the Arguments Tab Components The following components can be used to
AI
reorder arguments when registering a function:
& O
l
New/Delete: Create new arguments or delete an incorrectly entered argument.
a
rn
Move Up/Move Down: Move the selected argument up or down the argument list.
e
t
This is useful when you want to reorder an argument or when the function is
In
modified and you want to update the function registration.
le
Description: Enter text describing the argument.
c
ra
O
.....................................................................................................................................................
4-20 Oracle iDS: Discoverer for Administrators
Summary
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-21
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
4-22 Oracle iDS: Discoverer for Administrators
Practice 4-1
.....................................................................................................................................................
Practice 4-1
1 In the Administration Edition, open the Human Resources and Video Stores
business areas, if they are not already opened.
2 Using the appropriate property sheet, make the following formatting changes:
a Make all primary and foreign key items invisible to end users.
Hint: Examples of primary keys are: Time Key, Product Key, Store Key, Emp Id,
and so on. All primary keys are in bold and foreign keys are in italics.
b Make the Days folder invisible to end users.
c In the Dates folder, change the name and heading of Transaction Date Year to
Year, Transaction Date Quarter to Quarter, Transaction Date Month to Month,
and Transaction Date Day to Day.
d In the Stores folder, change the default position of the Region item to the side
axis and specify that the values be displayed in initial capital letters.
3 Create a new calculated item in the Emp folder called Full Name that concatenates
the First Name item and the Last name item.
Hint: To create a space between two concatenated items, enclose a blank space in
single quotes.
4 Create an LOV for the Full Name item in the Emp folder. View the values of Full
Name in the Data tab.
5 Create the previously defined SEC_DEPT function by running the
SEC_DEPT.SQL script. The SEC_DEPT function compares the security level
value passed to it against the security level of the username in the SEC_LEVEL
ly
column of the SEC_OBJECT table. It returns 0 if the users security level is less
n
than the passed value; otherwise, it returns the value that was passed to it.
a Connect to SQL*Plus as the EUL owner, oraxxa, using the same password
e O
s
and database connect string that you use to connect to the Administration
Edition.
I U
A
b Compile the SEC_DEPT.SQL function (your instructor will provide the
location of the SEC_DEPT.SQL file).
& O
l
c Return to the Administration Edition and register the SEC_DEPT function in
rna
the EUL.
e
6 The SEC_OBJECT table in the VIDEOCUT schema contains usernames and their
nt
security level. The DEPT table has a SEC_LEVEL column that indicates the
I
security level of a department. Create a new item in the Dept folder by using the
cleformula Sec_Dept(Sec Level). Specify the formula as the name of the item.
r
7
a Change the default aggregate for the Sec_Dept(Sec Level) item to Sum.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 4-23
Lesson 4: Creating Calculated Items and Registering PL/SQL Functions
.....................................................................................................................................................
10 In Discoverer Plus, create a new table query that includes all items from the Dept
folder except the Western and Eastern Offices optional conditions.
a Compare the results of the item Sec Level to the results of item
Sec_Dept(Sec Level).
b Based on your comparison of these two items, which departments have a value
of zero for item Sec_Dept(Sec Level)?
c Which departments would be returned if you restrict the rows returned from
the query when Sec_Dept(Sec Level) equals Sec Level?
d Does the EUL owner have the highest security level? What is the security
level?
11 Reconnect to Discoverer Plus as oraxxb. Why does the Dept folder not appear in
the Human Resources business area?
12 Enable the oraxxb user to view the Dept folder.
a Log into SQL*Plus as the EUL owner.
b Grant oraxxb the EXECUTE privilege on the SEC_DEPT function by issuing
the following statement:
ly
GRANT EXECUTE ON SEC_DEPT TO oraxxb;
13 Reconnect to Discoverer Plus as oraxxb. Create a table query that includes all
On
e
items from the Dept folder except the Eastern and Western Offices optional
conditions.
Us
a Compare the results of item Sec Level to the results of item
Sec_Dept(Sec Level).
AI
b Based on your comparison of these two items, which departments have a value
& O
l
of zero for item Sec_Dept(Sec Level)?
a
rn
c Which departments would be returned if you restrict the rows returned from
e
t
the query when Sec_Dept(Sec Level) equals Sec Level?
In
d Does oraxxb have the highest security level?
cle
ra
O
.....................................................................................................................................................
4-24 Oracle iDS: Discoverer for Administrators
5
.................................
Creating Complex
and Custom Folders
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
In this lesson, you learn how to create joins, how to create and manage complex and
custom folders.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-3
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
Overview
Overview
Load business area*
Create item classes
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-4 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
Using Joins
Joins
Joins
Joins are a basic relational construct for combining information from two tables. In the
End User Layer, joins are created between folders and are specified by an expression
that uses items in both folders. The most common type of join is a many-to-one join,
where one row in the master folder is joined to multiple rows in the detail folder.
ly
Another type of join is a one-to-one join, which is created occasionally. The last type
of join is a many-to-many join, which is not directly supported in Discoverer (or in any
relational system), although this type of join can usually be broken down into pairs of
On
many-to-one joins.
se
I U
A
Importance of the Master-Detail Structure It is important to make sure that you
& O
define the correct folders at the master and detail end of the join. The master end of the
join is the folder that has one row (Department) for which there are several detail
(Emp) rows.
al
rn
If the join relationship is not set up correctly, what folders a user can combine in a
e
Int
single query is affected, which in cases of queries with three or more folders can
sometimes result in misleading or incorrect results being returned. In some
le
circumstances, it will also affect whether summary tables are used to speed up queries.
c
a
To view the master-detail relationship of a join, look at its properties. If the master-
Or
detail ends are wrong, then edit the join and swap the items.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-5
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
Join Expressions
Join Expressions
To allow a greater variety of ways to join folders, Discoverer uses join expressions
rather than simple primary or foreign key constraints. You can use the greater than (>)
and less than (<) operators, as well as the equal (=) sign, to combine columns.
Tips
You can hide items in joins so that end users do not see them but can still make use
ly
of joined folders.
You can create a join only between items; functions or literals cannot be used in
On
e
joins. The way around this is to create calculated items that include the functions
or literals that you want, and then specify these items in the join.
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-6 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
New Join Dialog Box Components The New Join dialog box components are
nly
described as follows:
e O
Master Folder: Select the master folder from the pull-down list of items.
Us
Operator: Select an equijoin operator or nonequijoin operator.
AI
O
Detail Folder: Select the detail item (foreign key) by selecting the folder and then
&
selecting the detail item.
al
Multi-Item: Used to create a join condition where more than one item needs to be
rn
joined to satisfy the criteria.
e
Int
Options: Displays a dialog box that you can use to specify different types of joins.
Note: End users cannot create joins. However, if more than one join exists between
le
two folders, end users can select the particular join that they want to use.
c
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-7
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
.....................................................................................................................................................
5-8 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
Join Options
Join Options
Use the Join Options dialog box to define outer join conditions. To access the dialog
box, click Options in the New Join dialog box. These options are discussed on the
following pages.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-9
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
EMP_HIST
DEPT Emp Id
Dept Id Last Name
Name Title
Location Salary
Sec Level Dept Id
Dept.Dept
Dept.Dept Id
Id == Emp_Hist.Dept_Id
Emp_Hist.Dept_Id (+)
(+)
Copyright Oracle Corporation, 2001. All rights reserved.
Demonstration
Using SQL*Plus, create a query joining Dept and Emp_Hist, without an outer join
on Emp_Hist.
nly
SELECT dept.dept_id, name, emp_id, last_name
e O
FROM Dept, Emp_hist
Us
WHERE dept.dept_id=emp_hist.dept_id
AI
O
Next, show the same query with an outer join on Emp_Hist.
&
SELECT dept.dept_id, name, emp_id, last_name
FROM
al
Dept, Emp_hist
WHERE
Int
cle
ra
O
.....................................................................................................................................................
5-10 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
ly
foreign key can have null values option. Selecting this option populates the Detail
n
item values attribute in the Join Properties dialog box with Might not exist in Master
O
folder.
Demonstration
se
Using SQL*Plus, create a query joining Dept and Emp_Hist without an outer join
I U
on Dept.
OA
&
SELECT dept.dept_id, name, emp_id, last_name
FROM
al Dept, Emp_hist
WHERE
ern dept.dept_id=emp_hist.dept_id
t
Next, show the same query with an outer join on Dept.
In
SELECT dept.dept_id, name, emp_id, last_name
a
WHERE dept.dept_id (+)=emp_hist.dept_id
Or
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-11
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
EMP_HIST
DEPT Emp Id
Dept Id Last Name
Name Title
Location Salary
Sec Level Dept Id
&
summary tables.
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-12 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
EMP_HIST
DEPT Emp Id EmpSummary
Dept Id Last Name Name
Name Title Title
Location Salary SUM(Salary)
Sec Level Dept Id
Join Options: Detail Foreign Key Can Have Null Values (continued)
Selecting the Detail foreign key can have Null values option has an effect only when
all of the following conditions are satisfied:
You have created a summary folder that contains items from both Emp and Dept.
and
Emp and Dept are joined with the Detail foreign key can have Null values option
and
nly
A user issues a query that requires items only from the Emp folder.
e O
s
In this scenario, the summary table will not be used to satisfy the query because there
is no guarantee that the row set is the same in both cases.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-13
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
EMP_HIST
DEPT Emp Id
Dept Id Last Name
Name Title
Location Salary
Sec Level Dept Id
ly
no effect on the SQL that Discoverer generates, because SQL does not know about the
cardinality of joins. It affects only the fan-trap detection (discussed later), because true
one-to-one joins do not result in Cartesian products. It does allow you to query a
On
master with multiple detail folders, provided all but one of the detail folders are joined
se
with one-to-one joins.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
5-14 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
ly
table in a join relationship is listed first. For example, in the join Products>Sales
Facts, Products is the master folder and Sales Facts is the detail folder.
2 Double-click the join icon to display its properties.
On
se
Modifying a Join Relationship
I U
A
To edit an existing join relationship, click the General tab in the Join Properties dialog
box, and double-click the Formula property value. The Edit Join dialog box is
displayed. You can use this dialog box to make any changes.
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-15
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
employees locations
ly
to implement. Once installed, users queries will automatically be rewritten.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
5-16 Oracle iDS: Discoverer for Administrators
Using Joins
.....................................................................................................................................................
ly
select L.location, D.dept_id, count (E.ename), sum (E.sal)
n
from emp E, dept D, location L
where D.dept_id = E.dept_id AND D.dept_id = L.dept_id
e O
s
group by L.location, D.dept.id;
This query would return the following rows:
I U
A
LOCATION DEPT ID COUNT (E. NAME) SUM (E. SAL)
London 10 3
& O 8750
l
San Francisco 10 3 8750
Paris
rna
Munich
20
20
1
1
3000
3000
nte
I
Notice that the total number of employees returned is eight even though there are only
e
l
four employees. This occurs because the query resulted in a Cartesian product, which
c
a
is not the result that you want. To prevent querying a Cartesian product, Discoverer
Or
disallows this sort of query.
As administrator, you can avoid this situation by setting up one-to-one joins or by
creating complex folders. However, users can turn off fan-trap detection in Discoverer
Plus.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-17
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
Disable Multiple Join Path Detection By default, if more than one join definition
ly
exists between two folders, end users can choose to always use the default join or
select from a list of joins created by the administrator. To disable this feature, end
users can select the Disable multiple join path detection check box in the Advanced
On
tab in the Options dialog box in Discoverer Plus.
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
5-18 Oracle iDS: Discoverer for Administrators
Using Complex Folders
.....................................................................................................................................................
Complex Folders
Complex Folders
A complex folder is like a viewit is based on one or more folders, which in turn may
be simple, complex, or custom folders. Often complex folders are used to provide
joined views of data from two or more simple folders.
ly
For two items from different folders to belong to a complex folder, a join condition
n
must exist between the two folders.
&
tables, enables a user to select from one folder rather than two and hides the actual
l
relational joins from the user.
a
ern
Why Nest Complex Folders?
Int
Complex folders are primarily used to prejoin multiple folders. However, all new
e
folders that you create in Discoverer automatically become complex folders, even if
cl
they are based on a single folder. The exception is when a folder is copied.
ra
There are some situations where this is really useful, for example, to create aggregate
O
derived items (calculations created in a complex folder that aggregate items in one or
more folders) and nested aggregates. In fact, this is the only way to create these
constructs, and they can be very powerful in data analysis.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-19
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
Sales Fact
Dollar Sales
Dollar Profit
Customer Count
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-20 Oracle iDS: Discoverer for Administrators
Using Complex Folders
.....................................................................................................................................................
ly
dimension tables. Users can then query and analyze by any item.
There are advantages and disadvantages to using complex folders. Whether a complex
O
folder is useful in any given case depends on the requirements of your users. If ease ofn
use is important, consider using complex folders.
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-21
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
ly
use. Views are also complicated to maintain, requiring grants, synonyms, and so on.
Complex folders are managed entirely within Discoverer and thus do not require any
SQL expertise.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
5-22 Oracle iDS: Discoverer for Administrators
Using Complex Folders
.....................................................................................................................................................
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-23
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
ly
assigned in the complex folder.
Note: Folders represent row sets. If you apply a mandatory condition to a folder, then
its row set is changed and any complex folder built using this folder works from the
On
se
restricted row set of the source folder. If you later remove the condition, the change is
reflected in the complex folder.
I U
Copying Items Versus Assigning Items When you drag an item to a complex
OA
&
folder, the formula of the source item is inherited by the new item. The new item is
al
treated in all respects as a completely separate item, except that its formula references
rn
the item in the original folder. Any changes made to the formula in the source item are
e
t
reflected in the referenced item.
In
cle
ra
O
.....................................................................................................................................................
5-24 Oracle iDS: Discoverer for Administrators
Using Custom Folders
.....................................................................................................................................................
Custom Folders
Custom Folders
Folders represent a result set of data, much like a database view. Simple and complex
folders refer to SQL statements that are stored in the End User Layer.
You can use the Discoverer custom folder feature to create a folder based on arbitrary
SQL statements that are manually entered directly against the underlying database.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-25
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-26 Oracle iDS: Discoverer for Administrators
Using Custom Folders
.....................................................................................................................................................
4
3 5
Invoking the Custom Folder Window There are two ways to display the Custom
Folder window:
Select Insert>Folder>Custom from the menu bar.
Select the business area in the Data tab. Select New Custom Folder from the right
ly
mouse menu.
How to Create a Custom Folder To create a custom folder, follow these steps:
On
1 Open the Custom Folder window.
se
2 Enter the desired SQL statements in the window.
I U
OA
3 Click Validate SQL. A message window is displayed. If the statement is invalid,
click OK to close the prompt, correct the statement, and click Validate SQL again.
If the statement is valid, then click OK to continue.
l &
rna
4 Enter a meaningful name for the folder in the Name field.
e
5 Click OK.
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-27
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-28 Oracle iDS: Discoverer for Administrators
Using Custom Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-29
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-30 Oracle iDS: Discoverer for Administrators
Using Custom Folders
.....................................................................................................................................................
Custom LOVs
Example
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-31
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-32 Oracle iDS: Discoverer for Administrators
Practice 5-1 Overview
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-33
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
Practice 5-1
1 Launch the Administration Edition and open the Video Stores business area and
the Human Resources business area, if they are not already opened.
2 In the Human Resources business area, create a multiple item nonequijoin named
Multi-join Salgrade>Emp that joins the Losal and Hisal items in the Salgrade
folder to the Salary item in the Emp folder. Create the join so that Salary is greater
than or equal to Losal and less than or equal to Hisal and give it a meaningful
description, such as Emp.Salary <= Salgrade.Hisal.
3 In the Human Resources business area, create a complex folder named
Employment Records, and give it the description Employee records with row-
level security.
Hints: Use the Property dialog box to enter a description.
4 Add the following items to the Employment Records folder:
5 In the Video Stores business area, create a complex folder named Video Analysis
nly
O
and give it the description Video Analysis Information.
6 Add the following items to the Video Analysis folder:
se
Folder Source Items
I U
Sales Facts Sales, Unit Sales, Cost, Profit
OA
&
Products Department
Stores
al Region, City, Store Name
Times
nt
7 Create a complex folder named Store and Sales Details and give it the description
I
e
Detail information on each sale and store.
cl
8 Add the following items to the Store and Sales Details folder:
ra
O
.....................................................................................................................................................
5-34 Oracle iDS: Discoverer for Administrators
Practice 5-1 Overview
.....................................................................................................................................................
9 In the Human Resources business area, duplicate the Emp folder and keep the
default folder name of Emp1. Change the name and heading of the Emp Id item to
Manager Id, and the name and heading of the Mgr item to Manager.
10 Create a complex folder in the Human Resources area using the following
parameters:
a Name the folder Corporate Employees.
b Give it the description Employment information available to all employees.
c Add the Emp Id, Last Name, First Name, Job, and Mgr items from the Emp
folder to the new folder.
d Add the Manager Id and Manager items from the Emp1 folder to the new
folder. Why did the copy fail?
11 Create a new equijoin between the Manager Id item in the Emp1 folder and the
Mgr item in the Emp folder. Name the join Emp1>Emp and accept the default
description. Allow null values in the detail row.
12 Add the Manager Id and Manager items from the Emp1 folder and the Name and
Location items from the Dept folder to the Corporate Employees folder.
ly
13 Change the Visible to User property to No for all simple folders in the Human
Resources business area and to Yes for Emp Id, Mgr and Manager Id items of
On
e
Corporate Employees folder.
14 Delete the mandatory Eastern Region condition from the Stores folder.
Us
15 Launch Discoverer Plus as oraxxb and do the following:
AI
O
a Verify that only the complex folders are visible in the Human Resources
&
business area.
al
b Create a table query that includes all items in the Corporate Employees folder.
rn
Are the Mgr and Manager Id items the same? Who is the president of the
e
t
company?
In
c Using the Video Stores business area, create a page-detail crosstab that
le
includes the Region, Department, Year, Profit SUM, and Sales SUM items from
c
a
the Video Analysis folder. Display Department as the page item and Region as
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-35
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
ly
19 In the Human Resources business area, create a custom folder named Pensioned
Employees as the UNION of the following common items in the Emp and
On
e
Emp_Hist folders. Note that JOB and TITLE are similar items.
Hint: Use SELECT col_name FROM table_name UNION.
Us
AI
O
VIDEOCUT.EMP VIDEOCUT.EMP_HIST
&
last_name last_name
first_name
al first_name
job
ern title
t
salary salary
dept_id
In dept_id
cle
ra
O
.....................................................................................................................................................
5-36 Oracle iDS: Discoverer for Administrators
Practice 5-1 Overview
.....................................................................................................................................................
ly
d Save the worksheet to a file, naming it Workbook5-2.dis.
23 Return to the Administration Edition and make the Managers condition mandatory.
24 Reconnect to Discoverer Plus as oraxxb, open the Workbook5-2.dis
On
workbook, and create a new query on all the items in the Pensioned Employees
se
folder. Notice that the Managers condition has been applied automatically.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 5-37
Lesson 5: Creating Complex and Custom Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
5-38 Oracle iDS: Discoverer for Administrators
6
.................................
Creating Analytical
and Aggregate Items
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
In this lesson, you learn how to create analytical and aggregate items.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-3
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
Overview
Overview
Load business area*
Create item classes
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-4 Oracle iDS: Discoverer for Administrators
Analytical Functions
.....................................................................................................................................................
Analytical Functions
Analytical Functions
Advanced analysis require high-end OLAP tools. SQL databases until now did not
provide such tools. High-end tools traditionally require data in their own proprietary
format such as Multi Dimensional Cubes.
Oracles Enhance SQL language provide greater analytical power from Oracle 8.1.6
and higher database. Discoverer provides support for these analytical functions.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-5
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
Ranking
Window aggregate
Lag and lead
Reporting aggregate
Statistical aggregate
Ranking Functions A ranking function computes the rank of a record with respect
to other records in the dataset based on the values of a set of measures. Ranking
functions help to answer questions such as, Who are my top 10 customers?
e
cumulative totals such as year -to-date sales figures or comparing sales over two years.
Us
I
Lag and Lead Functions The Lag and Lead functions are useful for comparing
values in different time periodsfor example March 1999 to March 2000.
OA
Reporting Aggregate Functions Reporting aggregate functions return the same
l &
a
aggregate value for every row in a partition. These functions include SUM, AVG,
rn
MIN, MAX, COUNT, STDEV, and VARIANCE. Reporting functions help to calculate
e
t
shares, such as market share for a product.
In
le
Statistical Aggregate Functions These functions compute covariance, correlation,
c
and linear regression. They can also be used as windowing and reporting functions.
ra
O
.....................................................................................................................................................
6-6 Oracle iDS: Discoverer for Administrators
Analytical Functions
.....................................................................................................................................................
& O
l
Cannot be dragged into a complex folder.
na
Cannot have further aggregation functions applied to them in Discoverer Plus.
r
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-7
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
Administration Calculations
SUM(Sales)/SUM(Units). .
. . . . . . . . . . . . SUM(Sales/Units). . . . . . . .
. . . Monthly Sales Per Store
AVG(Monthly Sales per Store)
Administration Calculations
When an end user creates a calculation that includes aggregate functions, such as SUM
or AVG, it is aggregated based on the axis items in the query.
However, when you create an aggregate calculation in the Administration Edition, you
do not know what axis items will be included in the end users query. Thus, you may
want to create calculations that allow users to select the number of rows to aggregate
nly
O
and calculations that are computed independently of the axis items selected by end
e
users.
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-8 Oracle iDS: Discoverer for Administrators
Creating Aggregate Calculations
.....................................................................................................................................................
Derived items
Aggregate calculations
Derived aggregates
Nested aggregates
Derived Items A derived item is a nonaggregate calculation that appears and acts
exactly like any other item in the folder. An example of a nonaggregate calculation is
Profit*Units Sold.
ly
aggregate or group function such as SUM, AVG, MAX, MIN, or COUNT, and the items it
example of an aggregate calculation is SUM(Profit). Note that the icon of the new
On
aggregates are in the current folder, the item is created as an aggregate calculation. An
al
ern
Nested Aggregates A nested aggregate is a combination of a derived item and an
t
aggregate item, combining static and dynamic aggregation into a single item. It
In
contains an inner static aggregation and an outer dynamic aggregation. Consider the
e
computation Average Monthly Sales per Store. The inner (static) calculation is the
cl
sum of sales, which is aggregated over Month, Store, and Department. The outer
ra
(dynamic) calculation is the Average. Its value is based on the axis items selected in
O
the complex folder, such as Region, Year, and so on.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-9
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-10 Oracle iDS: Discoverer for Administrators
Creating Aggregate Calculations
.....................................................................................................................................................
Aggregate Calculations
ly
Administrator-Defined Aggregate Calculations Aggregate calculations defined in
the Administration Edition can be either static or dynamic, depending on the source
O
folder of the calculation. End users can define calculations based only on source foldern
items in a query.
se
I U
A
Aggregate Calculation Restrictions Unlike derived items, aggregate calculations
are restricted as follows:
Aggregate calculations must reference items in the current folder.
& O
al
Aggregate calculations cannot be used in a join, mandatory condition, or
rn
hierarchy, or have an item class.
e
nt
Aggregate calculations cannot be dragged into a complex folder.
I
e
The end user cannot apply further aggregation functions to aggregate calculations
cl
in the User Edition.
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-11
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
ly
is a requirement to nest aggregate functions.
Note: When you create a calculation in a complex folder using an item from a
component folder, Discoverer displays a warning that a GROUP BY will be created for
On
the complex folder. Queries using any item in the complex folder will return results
se
using the GROUP BY. If this is your desired result, click Yes to create the calculation.
I U
If you want to create the calculation without affecting the other items in the folder,
copy the item from the source folder into the complex folder. Then use the new item to
OA
l
create the calculation.
&
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
6-12 Oracle iDS: Discoverer for Administrators
Creating Aggregate Calculations
.....................................................................................................................................................
Nested aggregate
ly
query.
Note: The Total Sales per Store item can be aggregated by the end user in a query. If
the user applies the AVG aggregate to Total Sales per Store, the computation is exactly
On
the same as selecting the Average Sales per Store item.
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-13
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
Nested Aggregates
AVG(SUM(x)
Dynamic Calculation
Fixed
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-14 Oracle iDS: Discoverer for Administrators
Creating Aggregate Calculations
.....................................................................................................................................................
Example 1 A query is created using the Video Analysis Information folder in the
Video Stores Tutorial that displays the Regional Profit Margin by year. The end user
nly
O
creates a query that includes the Region, Year, Profit, and Sales items and defines the
calculation Profit Margin = Profit SUM/Sales SUM.
se
Example 2 A query is created that displays the monthly profit margin by
I U
OA
department. The end user creates a query that includes the Department, Month, Profit,
and Sales items and defines the calculation Profit Margin = Profit SUM/Sales SUM.
l
The result is seen in the slide.
&
na
Profit Margin is computed differently because the number of rows specified for the
r
e
aggregation differ between Example 1 and Example 2. How do you define this type of
nt
calculation in the Administration Edition?
I
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-15
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-16 Oracle iDS: Discoverer for Administrators
Summary
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-17
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-18 Oracle iDS: Discoverer for Administrators
Practice 6-1
.....................................................................................................................................................
Practice 6-1
1 In the Video Stores business area, create an analytical function item Rank Sales by
Year, Region that will rank cities in each Region for each Year based on the Sales
amount.
a Create the item in Video Analysis folder as:
RANK() OVER(PARTITION BY Video Analysis."Year",Video
Analysis.Region ORDER BY SUM(Video Analysis.Sales)
DESC )
2 Launch Discoverer Plus and connect as oraxxb and create the following reports:
a Create a Page-detail tabular workbook with the Year, Region, City, Sales
SUM, and Rank Sales by Year, Region from the Video Analysis folder.
MakeYear a Page item. Make a group sort on Region and sort Sales SUM in
descending order. Format Rank Sales by Year, Region item.
b Edit the above report and include Department.
c Save the workbook as Workbook6-1.dis.
3 In the Administration Edition, in the Video Stores business area, create an
analytical function item Cumulative Total that will calculate the cumulative total
of sales for each city in a region.
a Create the item in Video Analysis folder as:
SUM(SUM(Video Analysis .Sales)) OVER(PARTITION BY Video
Analysis ."Year",Video Analysis .Region ORDER BY
SUM(Video Analysis .Sales) DESC RANGE UNBOUNDED
PRECEDING ).
4 Launch Discoverer Plus and connect as oraxxb.
nly
a Open the workbook Workbook6-1.dis.
e O
s
b Create a Page-detail table worksheet with Year, Region, City, Sales SUM, and
U
I
Cumulative Total from the Video Analysis folder. Make Year a Page item.
A
Make a group sort on Region. Format Cumulative Total to currency.
5
& O
In the Administration Edition, in Video Stores business area, create the following
l
aggregate calculations:
na
a In the Video Analysis folder, create a new item that will compute the profit per
r
e
unit, SUM(Profit)/SUM(Unit Sales). Name it Administration
e
b Create the same calculation in the Video Analysis folder, but select the items
cl from the Sales Facts folder. Name it Derived Aggregate Profit Per Unit. What
ra icon is displayed?
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 6-19
Lesson 6: Creating Analytical and Aggregate Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
6-20 Oracle iDS: Discoverer for Administrators
7
.................................
Creating Drills
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 7: Creating Drills
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
In this lesson, you learn how to create hierarchies that enable users to drill down on
data for more detail, drill up for summary data, and perform associated data drills. You
learn how to create date drills for drilling down over time periods. You will also learn
how to enable users to read binary large objects stored in the database.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-3
Lesson 7: Creating Drills
.....................................................................................................................................................
Overview
Overview
Load business area*
Grant access*
* Mandatory
Overview
As administrator, you can set up drills to help users navigate through their data. You
do not actually need to set up hierarchies for a user to perform a drill-down operation.
If you do, however, any items that are drillable are marked with the drill symbol in
Discoverer Plus, and the user can drill down with a single mouse click. Also, setting
ly
up date hierarchies makes it easy for the user to analyze information over time,
without having to know about date masks and date functions.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
7-4 Oracle iDS: Discoverer for Administrators
Using Drills
.....................................................................................................................................................
Using Drills
Drill Facilities
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-5
Lesson 7: Creating Drills
.....................................................................................................................................................
Drill Facilities
Drill Structures
The administrator can set up a number of different drill structures that enable users to
analyze their data more thoroughly. These structures are relationships that exist among
items in the End User Layer, enabling users to drill up or down through their data to
see a different level of detail. The different types of drill facilities are discussed in the
following slides.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-6 Oracle iDS: Discoverer for Administrators
Using Drills
.....................................................................................................................................................
Expand
Replace
End-User Drilling Options You select the Options button to get the following
nly
available drill options:
e O
Expand: Adds the less aggregated information below the selected drill item
Us
item
AI
Replace: Replaces the currently selected drill item with the less aggregated drill
rn
Table: Displays the result as a table in case of a new sheet
e
Int
Crosstab: Displays the result as a crosstab in case of a new sheet
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-7
Lesson 7: Creating Drills
.....................................................................................................................................................
Expand Replace
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-8 Oracle iDS: Discoverer for Administrators
Using Drills
.....................................................................................................................................................
Filtering Drills
Filtered Unfiltered
Filtering Drills
Users use the LOV that you create to drill on selected values of an item.
Filtered Drill You use a filtered drill to drill on a selected value of an item within a
single level. For example, you might drill down from the value Region Name: East to
City Name for the Eastern region only. Discoverer Plus rebuilds the output and
displays the city names for East region only.
nly
O
Unfiltered Drill An unfiltered drill enables you to drill on all values of an item
e
within the selected level. For example, you might drill down from Region Name to
City Name. Discoverer Plus rebuilds the output and displays the city names for every
Us
I
region.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-9
Lesson 7: Creating Drills
.....................................................................................................................................................
Item Hierarchies
An item hierarchy is a fixed static structure that links multiple items in a chain to
denote a logical hierarchy, such as year to quarter, quarter to month, and month to day.
The items that compose the hierarchy can be from a single folder or from multiple
folders, provided the folders are joined.
When you drill down using an item hierarchy, you add the item to which you are
nly
drilling into the current sheet. You can also add a condition, depending on whether
you did a conditional drill, by clicking on an axis item. New data is returned for all the
e O
data points in the sheet and is aggregated at a lower level (the level of the added item).
Us
For example, if you are drilling down from region data to state data, new data is
AI
O
returned at the state level, not the region level. If you invoke the drill menu, and drill
down to City, you can drill into a new sheet or let City replace Region.
l &
a
Item hierarchies are exposed only on the axis items (not on data points). Users have
ern
the ability to toggle items between the axis and data points. However, an item
t
belonging to a hierarchy is not available for drilling if the user makes it a data point in
the query.
In
cle
ra
O
.....................................................................................................................................................
7-10 Oracle iDS: Discoverer for Administrators
Designing and Creating an Item Hierarchy
.....................................................................................................................................................
Invoking the Hierarchy Wizard You use the Hierarchy Wizard to build item or
date hierarchies. There are several ways to invoke the Hierarchy Wizard:
Select Insert>Hierarchy from the menu bar.
Select Create item and date hierarchies from the Administration Tasklist dialog
ly
box.
Click the Hierarchies tab in the work area, and then select New Hierarchy from the
right-mouse menu.
On
se
U
Creating an Item Hierarchy by Using the Wizard: Step 1 After you launch the
I
Hierarchy Wizard, your first step is to select the type of hierarchy that you want to
A
O
create: item or date. Click Next to continue.
l
Creating an Item Hierarchy by Using the Wizard: Step 2 The second step is to
&
na
select the items that you want to include in the hierarchy. You can use the following
r
e
components to move or group items within the hierarchy:
Int
Promote: Moves the selected item up one level in the hierarchy.
le
Demote: Moves the selected item down one level in the hierarchy.
c
a
Group: Places all selected items on the same level in the hierarchy. Grouping items
Or enables the user to drill to more items in the same level. For example, a user could
drill from City to Store Name and Floor Plan type.
Ungroup: Ungroups the selected items so that they are not grouped at the same
level in the hierarchy.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-11
Lesson 7: Creating Drills
.....................................................................................................................................................
Discoverer
Plus Edition
Creating an Item Hierarchy by Using the Wizard: Step 3 The third step is to give
the hierarchy a name and, optionally, a description. Although the name of the
hierarchy is not seen by the end user, you can change the names that the user sees in
step 2 of the wizard. To complete the hierarchy definition, click Finish.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-12 Oracle iDS: Discoverer for Administrators
Designing and Creating an Item Hierarchy
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-13
Lesson 7: Creating Drills
.....................................................................................................................................................
ly
drill to any one of them.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
7-14 Oracle iDS: Discoverer for Administrators
Creating a Drill to Detail
.....................................................................................................................................................
1998
SELECT year, state,
Tape CD Laser
product, SUM(order)
CA 420 450 424
FROM table_A,
OR 312 315 311
table_B ...
WA 354 3345 349
Using Hyperdrills
Users can drill to detail from an aggregated data item in a cross-tab report. The target
folder can be either the default folder or an associated folder. To do this, double-click a
cell. In this example, double-clicking the cell containing the 450 value launches the
Drill dialog box. Click OK in the Drill dialog box, and the results will contain all items
ly
in the current query plus the items from the default folder with the aggregate removed.
This drill requires no setup by the administrator.
On
e
Users drill to detail in associated folders by using the same Drill dialog box as a drill to
s
detail in the default folder. The user must choose from the list of associated folders
U
I
before clicking OK in the Drill dialog box. The results will contain all items from the
associated folder with the aggregate removed.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-15
Lesson 7: Creating Drills
.....................................................................................................................................................
Default folder
Show Component Rows Option The Show components rows option is always
available and requires no additional setup. When a user selects this option, a new sheet
is built that queries the folders in the current sheet, applies a condition for each axis
nly
O
item in the selected row, and displays the data points without any aggregation.
You can display the new sheet as a tabular (default) or a cross-tab report, or you can
se
U
choose to display the new information in the current sheet rather than a new sheet.
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-16 Oracle iDS: Discoverer for Administrators
Creating a Drill to Detail
.....................................................................................................................................................
ly
There are options to make the new sheet tabular (default) or cross-tab and an option to
include the information in the current sheet, rather than creating a new sheet.
On
e
You can use these drill-to-detail links for exploring data in a very interactive wayfor
example, moving from actuals to budgets for the same department, then looking at the
Us
I
department employee details, then drilling to their salary and training histories, then
drilling to the job grades structure, and so on.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-17
Lesson 7: Creating Drills
.....................................................................................................................................................
ly
to select the item that will generate the list of values. If you do not select the List
of values option, the second step of the wizard prompts you to select the items
that will use the item class.
On
Note: If you do not select the List of values option, you will need to apply the item
se
class to the specific items later.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
7-18 Oracle iDS: Discoverer for Administrators
Creating a Drill to Detail
.....................................................................................................................................................
ly
following folders: Products (detail folder), Video Analysis, and Store and Sales
Details (complex folders).
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-19
Lesson 7: Creating Drills
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-20 Oracle iDS: Discoverer for Administrators
Creating a Drill to Detail
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-21
Lesson 7: Creating Drills
.....................................................................................................................................................
Double-click
ly
spreadsheet, or Web browser. The application must be installed on the end users
machine, and the file type must be registered in the Windows registry. Each cell that
has an external drill contains an icon of the application that Windows will launch for
On
that file type.
se
I U
A
Drilling to an External Application for End Users To drill to an external
O
application, double-click the cell. The application is launched, displaying the contents
&
of the file.
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-22 Oracle iDS: Discoverer for Administrators
Using Hyperdrill Plug-Ins
.....................................................................................................................................................
Content Type Property You must set the Content type property of the item to one
of the following:
nly
FILE: Indicates that the column contains a filename.
e O
s
File extension: Indicates the application that should process the data. Examples of
supported file extensions are avi, wav, and jpg.
I U
A
The content type setting helps Discoverer recognize that an item is to be used for a
hyperdrill plug-in.
& O
l
The application that is launched when you drill out depends on the file extension and
rna
on access to the associated application on your system.
e
Note: If an item has a data type of VARCHAR, then the Content type property will
nt
contain the values None and FILE. If an item has a data type of LONG RAW, then the
I
Content type property will display None and a list of application file extensions.
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-23
Lesson 7: Creating Drills
.....................................................................................................................................................
ly
can select another Date Hierarchy template, if you have one, instead of the default
Date Hierarchy template.
On
e
When you create a new date hierarchy, Discoverer automatically creates an associated
template. An option in the Load Wizard allows you to select the default date hierarchy
Us
I
template supplied by Discoverer, or to select a custom-defined date hierarchy as the
default date hierarchy template.
When you assign a date item in a folder to a date hierarchy, or when you use the Load
OA
l
Wizard, a set of items is generated in the folder, one for each node in the date
&
na
hierarchy template. These items are calculations, using the EUL_DATE_TRUNC
r
e
function that truncates the date to the right amount of detail (Year, Quarter, Month,
Day).
Int
le
Date Hierarchy Dependencies
c
ra
Date hierarchies introduce dependencies in the EUL. For example, when you delete a
O
date hierarchy, the date items that were created from it are also deleted. If you delete
the date item on which a hierarchy is based, the generated date items and the items
date hierarchy are also deleted. When you edit a date hierarchy template, the
corresponding date hierarchies are regenerated.
You can view the dependencies of a data hierarchy in the Folder Properties dialog box
and by selecting the Impact option when you delete a hierarchy or dependent item.
.....................................................................................................................................................
7-24 Oracle iDS: Discoverer for Administrators
Creating the Date Hierarchy
.....................................................................................................................................................
Month
Year Quarter
Week Day
Quarter
Year
Month Week
ly
sales information displayed by week instead. To do this, you must create a date drill
that includes the format WEEK-YYYY within the data drill structure.
When a date hierarchy is applied to a date column, a new date item is created for each
On
se
format mask in the hierarchy. For example, if the default date hierarchy is used, four
new date items are created using the appropriate format masks: YYYY, QQ, Mon,
I U
A
DD. As a result, the user is selecting the most appropriate format mask, as opposed to
selecting the date item and then changing the format mask.
& O
l
Discoverer uses the EUL_DATE_TRUNC function to create date items, so that,
rna
regardless of the level, the item retains its date data type. This means that you can then
use any date format mask that you like when displaying the date item, and the item
te
will sort correctly, without requiring an alternative sort.
n
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-25
Lesson 7: Creating Drills
.....................................................................................................................................................
.....................................................................................................................................................
7-26 Oracle iDS: Discoverer for Administrators
Creating the Date Hierarchy
.....................................................................................................................................................
Promoting and Demoting Items Use the Promote button to move a selected item
up one level in the hierarchy. Use the Demote button to move a selected item down
nly
O
one level in the hierarchy.
Formatting Date Items By default, Discoverer uses the item name as a label for
se
I U
each level in the hierarchy. To change this label, select the date item and enter a new
New Format. The New Date Format dialog box is displayed. Use this dialog box to
OA
label in the Name box. To change the default date format for a particular item, click
l
enter your own customized date formats.
&
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-27
Lesson 7: Creating Drills
.....................................................................................................................................................
ly
to complete the creation of the new date hierarchy. Click the Hierarchies tab in the
n
work area to view the new hierarchy. You can also specify that the date hierarchy be
used as the default date hierarchy by selecting the Set as default date hierarchy
check box.
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-28 Oracle iDS: Discoverer for Administrators
Creating the Date Hierarchy
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-29
Lesson 7: Creating Drills
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-30 Oracle iDS: Discoverer for Administrators
Using a Nonstandard Calendar
.....................................................................................................................................................
Requirement:
Analyze sales by fiscal year, which begins in
June 1999 and ends in May 2000.
Nonstandard Calendars
Many organizations use fiscal calendars rather than annual calendars. For example,
one common fiscal calendar starts in June and ends in May the following year. This
means that for you to produce financial reports by fiscal period, you must define a
hierarchy that drills from FY00 to Q1 to June, July, and August, where June 1999 is
ly
the first month in the year and is also in Q1. The last month in Q4 FY00 would be May
2000.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-31
Lesson 7: Creating Drills
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-32 Oracle iDS: Discoverer for Administrators
Using a Nonstandard Calendar
.....................................................................................................................................................
Solution:
1. Create a calculated item:
Fiscal Date = Add_months(Transaction
Date,7)
2. Apply the default date hierarchy to the Fiscal Date.
3. Edit the Fiscal Date item hierarchy:
Fiscal Date FY YY
Fiscal Date Q Q
Transaction Date Mon
Transaction Date DD
4. Delete unwanted items from the
Fiscal Date hierarchy and
hide the Fiscal Date.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-33
Lesson 7: Creating Drills
.....................................................................................................................................................
ly
Applying the default date hierarchy to the Fiscal Date item generates four extra items:
Fiscal Date Year
On
Fiscal Date Quarter
se
U
Fiscal Date Month
Fiscal Date Day
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-34 Oracle iDS: Discoverer for Administrators
Using a Nonstandard Calendar
.....................................................................................................................................................
ly
each order. Setting up the hierarchy simply enables users to drill between these items
easily.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-35
Lesson 7: Creating Drills
.....................................................................................................................................................
BLOB Support
BLOB Support
BLOB Support
When a user selected the drill, the appropriate application was launched, opening the
filename designated in the reference stored in the database.
Discoverer allows the actual data to be stored in the database, with a reference to the
application data type specified in the Content Type property of an item.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-36 Oracle iDS: Discoverer for Administrators
BLOB Support
.....................................................................................................................................................
BLOB Setup
Administrator Edition
User Edition
BLOB Setup
To set up the workbook to view images, follow these steps.
In the Administrator Edition:
1 Create a folder and associate it to a database table with a BLOB column. The
image in the BLOB column should already be loaded in the database table.
2 In the image item Properties dialog box enter the content type for the image.
In Discoverer Plus:
nly
1 Create a worksheet with the image item.
e O
s
2 Select Tools>Options. In the General tab, associate the file type as image. Enter
the path for the viewer application.
I U
A
Note: Discoverer will remember the path if \ is present at the end.
Double-click the column with the image in the worksheet. The image should be
& O
l
displayed.
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-37
Lesson 7: Creating Drills
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-38 Oracle iDS: Discoverer for Administrators
Practice 7-1 Overview
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-39
Lesson 7: Creating Drills
.....................................................................................................................................................
Practice 7-1
1 Create a geographical item hierarchy in the Video Analysis folder that enables
users to drill from Region to City to Store Name. Name the hierarchy Video
Analysis Geography.
2 Expand the Video Analysis Geography hierarchy in the Hierarchies tab in the
work area and edit the hierarchy as follows:
a Change Video Analysis.Region to Region.
b Change Video Analysis.City to City.
c Change Video Analysis.Store Name to Store Name.
3 Create a geographical item hierarchy in the Stores folder that enables users to drill
from Region to City to Store Name and Reports, where Store Name and Reports
are grouped. Name the hierarchy Store Geography.
4 Create an item hierarchy in the Products folder that enables users to drill from
Product Type to Department to Product Category to Description and Full
Description, where Description and Full Description are grouped. Name the
hierarchy Product Hierarchy.
5 Edit the Store Geography as follows:
a Change Stores.Region to Region.
b Change Stores.City to City.
c Change Stores.Store Name, Stores.Reports to Store Name, Reports.
6 Edit the Product Hierarchy as follows:
a Change Products.Product Type to Product Type.
b Change Products.Department to Department.
nly
O
c Change Products.Product Category to Product Category.
d Change Products.Description, Products.Full Description to Description, Full
se
U
Description.
7 Create a date hierarchy named Custom Date that drills from YYYY to QQ to
AI
O
Mon. Apply the Custom Date to the Hiredate item in the Employment Records
&
folder and to the Transaction Date item in the Video Analysis folder.
8
al
Change the Content Type property of the Full Description item in the Products
rn
folder and the Reports item in the Stores folder to FILE at the same time.
e
9
Int
Create a drill-to-detail item class that will allow drills from the Department item to
any of the following folders: Products, Video Analysis, and Store and Sales Detail.
le
Name the item class Department Item Class.
c
ra
O
.....................................................................................................................................................
7-40 Oracle iDS: Discoverer for Administrators
Practice 7-1
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 7-41
Lesson 7: Creating Drills
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
7-42 Oracle iDS: Discoverer for Administrators
8
.................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-2 Oracle iDS: Discoverer for Administrators
Objectives
.....................................................................................................................................................
Objectives
Objectives
Lesson Aim
In this lesson, you will learn about Discoverer summary tables and Materialized
Views. You will also learn how to create and manage summary folders manually and
efficiently, and how to access existing summary tables.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-3
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Overview
Overview
Load business area*
Create joins
Create drills
Create calculated items
Create conditions
Create summary tables
Create complex folders
Grant access*
* Mandatory
Summary Management
Summary management is one of the most important features of Discoverer. When
used correctly, it can speed query response time significantly, resulting in queries that
take seconds rather than hours. Managing summaries is the key to good performance
with Discoverer implementations.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-4 Oracle iDS: Discoverer for Administrators
Summary Tables and Folders
.....................................................................................................................................................
Summary Tables
Summary tables hold preaggregated and prejoined data. A query directed to a
summary table may return results in a few seconds, but that same query directed
against the base data tables may require a three- or four-table join and an aggregation
over thousands or millions of rows, which would take considerably longer. Both
ly
queries, however, would produce the same results. Summary tables are used to provide
a rapid response time for commonly run queries.
On
Summary Folders
se
Summary folders hold information about the summary tables and the EUL items that
I U
can use them. Summary folders improve performance by directing queries to run
OA
against the preaggregated and prejoined data of the summary tables. The process is
&
automatic from the end users viewthat is, to the user it is not apparent that the query
l
rna
is being handled by the summary folder, rather than the base data tables. The net result
is quick response times for queries and accurate results.
te
Note: End users can control whether they access summary or detail data by setting
n
I
either of the three options in Discoverer Plus:
e
cl
Always, when available
ra
Only when summary data is not out of date (stale)
O
Never
These options are available under Tools>Option>Query Governor.
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-5
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Summary Tables
ly
Materialized Views
If you are running Discoverer against Oracle 8.1.6 or higher database, Materialized
On
e
Views will be created and subsequent queries are redirected to the appropriate
Materialized Views.
Us
Summaries created using materialized views can be used by other database
applications.
AI
The SQL Inspector/Explain Plan in Discoverer Plus Edition shows you whether the
& O
l
SQL generated to run a query used a summary table or a Materialized View.
a
ern
Int
cle
ra
O
.....................................................................................................................................................
8-6 Oracle iDS: Discoverer for Administrators
Different Types of Summary Tables
.....................................................................................................................................................
Consume Storage Space Unlike ordinary views, Materialized Views contain data
resulting from a query against one or more detail tables.
e
incremental (fast refresh) or complete. Materialized Views can be refreshed either on
demand or at regular time intervals. Alternatively a Materialized View in the same
Us
I
database as the detail tables can be refreshed whenever a transaction commits its
changes to the detail tables.
OA
Transparent to Users Query rewrite transforms a SQL statement expressed in
l &
rna
terms of the detail table into a statement accessing one or more Materialized Views
that are defined on the detail tables. The transformation is transparent to the users.
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-7
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Full Refresh Refreshes by recalculating the full result set from the detail tables.
Refresh on Demand
nly
Refreshes only when a user manually executes a refresh or
O
schedules a refresh.
OA
Refresh Outside Discoverer Since Discoverer now creates Materialized Views as
l &
rn
applications.a
summary tables, these Materialized Views can also be used by other database
nte
e I
cl
ra
O
.....................................................................................................................................................
8-8 Oracle iDS: Discoverer for Administrators
Different Types of Summary Management
.....................................................................................................................................................
Summary Management
Summary Management
You can let Discoverer automatically create and maintain summaries, or you can
create the summaries manually.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-9
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
e
object_type=PACKAGE;
The user creating the summaries must have CREATE TABLE, CREATE VIEW,
Us
CREATE PROCEDURE, CREATE SESSION, and CREATE SEQUENCE
privileges and sufficient QUOTA in the tablespace for the summary tables to be
AI
created.
& O
l
The Oracle database parameter file, init<SID>.ora, should have the following
a
n
parameters included:
ter
job_queue_processes = 2
In
job_queue_interval = 600
le
timed_statistics = TRUE
c
ra
O
.....................................................................................................................................................
8-10 Oracle iDS: Discoverer for Administrators
Different Types of Summary Management
.....................................................................................................................................................
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-11
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Summary Wizard
Summary Wizard
In Discoverer there are two ways to create and manage summaries:
Automatic Summary Management: Discoverer recommends and manages the
summary tables for you.
Manual: You can create and maintain your own summaries.
ly
Invoking the Summary Wizard You can launch the Summary Wizard in one of the
following ways:
Select Insert>Summary from the menu bar.
On
Select New Summary from the right mouse menu in the Summaries tab.
se
Select Create summary folders from the Administration Tasklist.
I U
Select the Summary icon from the toolbar.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-12 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using EUL Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-13
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Summary Wizard: Step 2 After selecting the option that lets you create your own
nly
summaries, select the summary option that you want on how to create the summary
e O
s
folder. To create a summary folder from items in the EUL, select the From items in
the End User Layer option. This generates a new table or a set of tables in the
I U
A
database. Click Next to go to the next screen.
Note: The first two options in the Summary Wizard Step 2 create internally managed
summary folders.
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-14 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using EUL Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-15
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Summary Wizard: Step 4 In the fourth step, you select the summary combinations
that should be prebuilt and managed by the EUL. In each row, select the check box for
nly
O
each axis item and combination to create a specific summary table for that choice. The
EUL will always build data for that table and use it when an end user selects that
se
U
query.
Use the following dialog box components to add or remove item combinations:
AI
O
Add Combination: Adds a new summary combination row.
Remove Combination: Deletes the selected summary combination row.
l &
rna
Estimate Space: Displays an estimate of the disk space required to store the
selected summary combination. Space estimates cannot be calculated unless LOVs
te
exist for each item in the combination.
n
I
Properties: Allows you to view and edit database storage properties for the
e
cl
selected combination.
ra
When you finish selecting combinations, select Next to go to the next screen.
O
Note: All data points in the summary folder are included in all summary
combinations. The control is in setting which combinations of axis items are required.
.....................................................................................................................................................
8-16 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using EUL Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-17
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
ly
property, the table is dropped and re-created. The following table lists some of the
database storage properties:
Property Description
On
Table Name Displays the current name of the table
se
Table Owner Displays the owner of the table
I U
Tablespace
Status
Displays the name of the tablespace for the summary table
Shows the current status of the summary refresh
OA
Error
l &
Displays an error message when a refresh is incomplete or fails
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-18 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using EUL Items
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-19
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-20 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using EUL Items
.....................................................................................................................................................
Property Description
ly
Refresh Type Can be either Full or Incremental.
Refresh Can be on demand or on transaction commit.
On
e
Incremental Load Shows the type of inserts available for the detail table.
Stale
s
When the summary table is out of syncronization with the data
U
I
in the detail tables.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-21
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
e O
s
Click Next to go to the next screen.
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-22 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using EUL Items
.....................................................................................................................................................
Cr
ly
want to build.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-23
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-24 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using Query Statistics
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-25
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
ly
query statistics table and updates the Queries list in the lower-left corner of the dialog
box.
From the Queries list, select a row to display the folders, items, and joins included in
On
the query. Click Next to go to the next step in the Summary Wizard.
se
Note: When a summary already exists for a query, Discoverer displays a cube in the
I U
first column.
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-26 Oracle iDS: Discoverer for Administrators
Creating Summary Folders by Using Query Statistics
.....................................................................................................................................................
ly
managed by the EUL. Click Next to go to the next screen.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-27
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
ly
The final step is to name the summary folder and schedule its build times. When you
are finished, click Finish to proceed with the creation of the summary folder.
On
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-28 Oracle iDS: Discoverer for Administrators
Registering External Summary Tables
.....................................................................................................................................................
Registering External
Summary Tables
ly
about these tables, so they can be used to improve query performance.
Registered external summary folders map to tables created and populated by a method
On
e
external to Discoverer. Data values in external summaries are not controlled or
managed by the EUL. They must be updated independently by some other application.
Us
I
External summaries are created by mapping to an existing summary table in the
database.
To create and register external summaries:
OA
l
1 Identify the set of axis items and data points that you want to summarize.
&
rna
2 Specify the aggregation method for the data points.
te
3 Create the corresponding summary tables.
n
I
4 Add indexes and storage parameters for the populated table.
e
cl
5 Use the Discoverer Summary Wizard to register the external summary table.
ra
6 Set the refresh interval in the final step of the Summary Wizard if the summary
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-29
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
.....................................................................................................................................................
8-30 Oracle iDS: Discoverer for Administrators
Registering External Summary Tables
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-31
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Managing the Refresh with External Tables If you do not select the Manage the
refresh of this summary folder check box, then the summary table will be refreshed
independently by some external program, which means that you are registering an
externally managed summary table. If you select this option, then the summary table
nly
O
will be refreshed by Discoverer.
se
I U
OA
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-32 Oracle iDS: Discoverer for Administrators
Registering External Summary Tables
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-33
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Editing a Summary
You use the Edit Summary dialog box to modify an existing summary. The available
tabs depend on the type of summary that you are editing. The tabs are described as
follows:
General: Modify the build time and date, change the refresh schedule, change the
name and description.
nly
O
Choose Items: Add or remove items from the selected summary folder.
Combinations: Add or remove summary combinations.
se
Refresh: Change date and time for summary refresh.
I U
Managing Combinations
OA
&
It is possible that an internally or externally managed summary folder was created that
l
a
did not contain all of the summary folder combinations. This situation can occur for
rn
any number of reasons, primarily because of insufficient tablespace extents. It is also
e
t
possible that an underlying summary database table was deleted. To see the status of
In
summary folder combinations, click the Combinations tab in the Edit Summary dialog
le
box. When you select a combination, Discoverer displays status information in the box
c
at the bottom of the dialog box.
ra
O
.....................................................................................................................................................
8-34 Oracle iDS: Discoverer for Administrators
Managing Summary Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-35
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
ly
Type Displays whether the summary folder is Discoverer
On
Indicates whether the summary is available for queries
Status
se
Indicates the refresh status of the folderpossible
I U
values: Failed, Pending, Complete, External, and
A
Requires Refresh External indicate that the summary
O
folder is not Discoverer managed
&
Last Refreshed Indicates the day and time of the last refresh
Next Refresh
al Indicates the day and time of the next refresh
rn
Refresh Interval or Never
e
Indicates how often a refresh takes place or if a refresh
t
Refresh never takes place, for external summaries, the value is
In set to NA
le
Identifier
c
Unique identifier for the summary table
ra
O
.....................................................................................................................................................
8-36 Oracle iDS: Discoverer for Administrators
Managing Summary Folders
.....................................................................................................................................................
Create/Refresh
Refresh required
Pending
Under construction
Edit changes
Refresh Status
Pending: After you finish the steps in the Summary Wizard, refresh status is set to
Pending while Discoverer creates a job by using DBMS_JOB to populate the
summary tables. The status remains Pending until the job runs. Note that this
period depends on the value of the database parameter JOB_QUEUE_INTERVAL
(seconds).
nly
Under construction: When the job is running and the summary is being built.
e O
s
Complete: When the summary is built. External summaries always have a status of
Complete.
I U
A
Failed: Database error occurred that caused the job to failfor example, lack of
that occurred.
& O
space. Edit the summary and click the Combinations tab to see the database error
al
Refresh required: Need to refresh the summary.
ern
Changes to the formula of a calculated item or to the definition of a join or folder
nt
affect the refresh status of associated summary folders. A Refresh status means that
I
the summary must be refreshed before it can be used because the result set of the
cle
summary has changed.
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-37
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Making Summaries Available for Queries The value of the Available for Queries
property in the Summary Properties dialog box controls whether a summary folder is
available for queries in the User Edition. These settings are as follows:
Yes: The summary tables are populated successfully and available for use in
queries.
No: The job has failed to execute or the administrator has elected not to make the
summary table available for use in queries. This property can be used to enable or
disable all types of summaries.
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-38 Oracle iDS: Discoverer for Administrators
Summary Combination Strategies
.....................................................................................................................................................
I
that combine a medium number (five to seven) of axis items. More space is required,
A
O
but performance gains will still be realized. The larger number of items in each
&
combination serve the wider variety of queries.
al
Provide one summary combination that contains all of the items in the summary folder
rn
(as long as the total number is less than the number of items in the source folder). This
e
t
type of combination provides a catchall summary that works for any combination of
items.
In
le
Include all data points in the summary table and all aggregate functions.
c
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-39
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
ly
tables if they are large.
Discoverer optimizes a summary refresh by pyramid refreshing, where summary
combinations with the largest number of axis items are created first. Other
On
combinations are created from the new summaries in sequence, depending on the
se
number of axis items in the combination. For this reason, it is always best to include
I U
A
all the combinations of a particular summary in the same summary folder and not split
O
them across multiple summary folders, where this optimization cannot be performed.
l &
rna
nte
e I
cl
ra
O
.....................................................................................................................................................
8-40 Oracle iDS: Discoverer for Administrators
Summary Combination Strategies
.....................................................................................................................................................
X X X X X X X X X X
X X X X X X X X X
X X X X X X X X
X X X X X X X
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-41
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
Summary Management
in Applications Mode
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-42 Oracle iDS: Discoverer for Administrators
Summary
.....................................................................................................................................................
Summary
Summary
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-43
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-44 Oracle iDS: Discoverer for Administrators
Practice 8-1
.....................................................................................................................................................
Practice 8-1
1 Create a new summary folder based on items in the End User Layer:
a Select the following items from the Video Analysis folder:
Item
Unit Sales SUM
Unit Sales COUNT
Department
Region
Year
bAdd a combination to the summary folder that includes all the data points,
Department, and Year.
c View the database storage properties and note the name of the summary table
in the Table Name property.
d Specify that the summary be refreshed once a week.
e In step 6 of the Wizard, name the summary Video Analysis Summary.
f View the newly created summary in the Summaries tab of the work area. What
is the status of the summary folder?
g In the Database Storage Properties dialog box, view the database table name of
the summary folder. In SQL*Plus, connect as oraxxa and execute the
following SQL command for the table name to see whether the summary table
has been created with the desired items:
SQL>DESC <table_name>;
nly
h Refresh the Video Analysis Summary.
e O
s
2 Launch Discoverer Plus as oraxxb and create a query using the Department,
Region, Year, and Profit SUM items in the Video Analysis folder. Use the SQL
I U
A
Inspector to verify that the query was redirected to the summary table.
EUL4_MVnnnnnn.
& O
Note: Select the Plan tab. Summary tables can be identified by the prefix
al
3 Create an internal summary based on query statistics.
ern
Note: If you have few queries, you may not get the statistics, unless you clear all
nt
the options in Summary Wizard Step 3.
I
e
a Add item combinations where appropriate.
cl
b View the database storage properties for each combination and note the name
.....................................................................................................................................................
Oracle iDS: Discoverer for Administrators 8-45
Lesson 8: Creating and Managing Summary Folders
.....................................................................................................................................................
nly
e O
Us
AI
& O
al
ern
Int
cle
ra
O
.....................................................................................................................................................
8-46 Oracle iDS: Discoverer for Administrators