oracle discoverer

123

Upload: smslca

Post on 01-Nov-2014

113 views

Category:

Documents


1 download

DESCRIPTION

Oracle Discoverer

TRANSCRIPT

Page 1: Oracle Discoverer
Page 2: Oracle Discoverer

Session ObjectivesThis presentation covers:

What’s is Discoverer ?Key Terminology in DiscovererResponsibilities of the end-userAn overview of Discoverer’s components Discoverer ArchitectureDrawback of Discoverer older versionsWhat is new in Discoverer 10gDiscoverer AdministrationDiscoverer Desktop

Page 3: Oracle Discoverer
Page 4: Oracle Discoverer

4

Key Terminology

Tables Folders Columns Items Rows Records Queries Worksheets

Interface to database = End User Layer Grouping of Tables = Business AreaGroup of worksheets = Workbook

Page 5: Oracle Discoverer

Responsibilities of the end-userYou cannot Create a report if you are not aware of the

data available to you, if you don’t know which folders contain the data and what the end result is that you are trying to achieve.

Therefore before you begin to explore the power of Discoverer, you will need to:1 - Understand your business,

2 - Understand your reporting requirements, and

3 - Understand your database

Page 6: Oracle Discoverer

Discoverer ComponentsAdministration (T)Desktop (T)Plus (BI)Viewer (BI)

T = Tool, BI = Business Intelligence,

Page 7: Oracle Discoverer
Page 8: Oracle Discoverer
Page 9: Oracle Discoverer

Discoverer Older Version vs. Discoverer 10g

Discoverer Older Version Discoverer 10g

•Totals do not always work •Totals not been an issue in any testing

•Parameters are always required •Parameters can be optional

•Limited customizations

•Queries may at times run slower

•Many customizations

•Queries run faster

•Issue with Page items •Page items can view one or all items

•Queries are saved on Hard Drives – must be Emailed to share with others

•Queries are saved on Dbase – easy to share with others

•Users share one logon •Users have individual logons

Page 10: Oracle Discoverer

What’s new in 10.1.2?

Page 11: Oracle Discoverer

Reporting EnhancementsParameter enhancements

Cascading parametersOptional and Mandatory parametersSupport for keywords and tokens

SYSDATE, NULL and USERException handling

Conditional formatting (formerly Exceptions)Stoplight formatting

Page 12: Oracle Discoverer

Reporting EnhancementsGreatly enhanced Viewer capability

Save If enabled you can save changes This depends on individual privileges

High fidelity printing within Viewer Print to PDF Export to PDF

New calendar popup for datesEmail

If enabled, send worksheet content as an attachment to an email

Page 13: Oracle Discoverer
Page 14: Oracle Discoverer

Discoverer Administrations

Role of AdminEUL creation Importation of database tablesOrdering of folders and itemsHow to check folder and item propertiesThe use of item separatorsCreation of alternate sortsCreation of complex foldersCreation of hierarchiesCreation of new calculated itemsSecurity and Privileges Scheduling Workbooks Import and Export of Discoverer items

Page 15: Oracle Discoverer
Page 16: Oracle Discoverer

Source to DestinationWe need to think a little about what we are

going to do. We are going to take a set of data definitions from a source database and convert that into a new set of definitions – a Discoverer business area

Source – Oracle database, containing 12 tables

Destination – A star schema, better for Discoverer users to query from

Page 17: Oracle Discoverer

Source

Page 18: Oracle Discoverer

Destination

Page 19: Oracle Discoverer

Creating the End User LayerBefore we can begin creating our first

business area, we need to create the end user layer itself

Launch and log in to Discoverer Administrator

Follow on screen prompts

Page 20: Oracle Discoverer

20

• End User Layer is a Metadata repository for Business areas, folders and items on which Discoverer workbooks or reports based on.

• The EUL is a set of database tables that contain information (or 'metadata') about the other tables and views in the database.

Note: A database can be Oracle, Oracle Applications or any RDBMS.

Page 21: Oracle Discoverer

Logging On

Type the username, password and connect, then click Connect

Page 22: Oracle Discoverer

EUL Message

Click Yes to continue

We don’t have an EUL right now, so Discoverer gives the following message:

Page 23: Oracle Discoverer

CreatingWhen prompted, clickCreate an EUL

Page 24: Oracle Discoverer

Create EUL Wizard Step 1

3.Click Select

1. Check existing user

2. Grant access to PUBLIC

Page 25: Oracle Discoverer

Pick the user1. Type the user, or part of the user, and click Go

2. Pick the user from the list

3. When done, click OK

Page 26: Oracle Discoverer

Commit Status - Part 1 of 3Discoverer first creates the tables and views

Watch the jigsaw

Page 27: Oracle Discoverer

Commit Status - Part 2 of 3Then populates the tables with default data

Page 28: Oracle Discoverer

Commit Status - Part 3 of 3Finally granting access to the new EUL tables

Page 29: Oracle Discoverer

Empty EUL is created

When done, click OK

Page 30: Oracle Discoverer

Oracle’s Video TutorialWhen prompted to install the tutorial data:

Click Yes if you want Oracle’s Video tutorial, We don’t need this for the demo, click No

Page 31: Oracle Discoverer

EUL installed

When done, click Close

Page 32: Oracle Discoverer

32

• A Business Area is a set of folders containing related information with a common business purpose.

• Using Discoverer Administration Edition, you can tailor the grouping of data to provide users with the proper access to the precise data they need for ad hoc query, decision support, and presentation of results.

Page 33: Oracle Discoverer

33

• Business Areas:•Meet the specific data needs of the users•Usually contain data from several different tables or views•Have tables or views and their associated columns mapped to “folders” and “items” respectively•Can contain many simple folders and complex folders

Page 34: Oracle Discoverer

34

Continued…

•May contain folders from one or more physical databases

•Include conditions, joins, calculations, formatting, hierarchy structures, and other custom features

Page 35: Oracle Discoverer

The load wizard stepsDiscoverer administrator wizard has 5 steps:

1. Create or Open a business area2. Select the schema3. Select the objects to use4. Define the import options5. Name the business area

Page 36: Oracle Discoverer

Load Wizard 1 - create or open?

ClickCreate a new business area

Page 37: Oracle Discoverer

Load Wizard - continued

CheckOn-line dictionary

then click Next

Page 38: Oracle Discoverer

Wizard 2 - which schema?Pick desired link and schema

then click Next

Page 39: Oracle Discoverer

Wizard 3 – which objects?

Take a look at the source schema

Page 40: Oracle Discoverer

Wizard 3 - select the objects

Select desired objects, then click Next

Page 41: Oracle Discoverer

Wizard 4 - data options

Select desired objects, then click Next

Page 42: Oracle Discoverer

Wizard 5 – what name?

Complete the business area, then click Finish

Page 43: Oracle Discoverer

Importing the objectsAs Discoverer loads the chosen objects, you will see the status approaching 100%

Page 44: Oracle Discoverer

Objects importedAfter the business area has been imported, we

need to check a few things:The order of the foldersThe names of the foldersThe names of the itemsThe order of the itemsLists of valuesJoins

Page 45: Oracle Discoverer

How to move a folder locationTo move the location of a folder, follow this workflow:

1. Left click on the folder that you want to move and hold the mouse button down

2. Move the mouse cursor to the location where you would like this folder to be

3. Wait until Discoverer highlights the destination folder4. Release the mouse button5. The folder will now move to the chosen position

Page 46: Oracle Discoverer

Check the names of the foldersMany times, especially when importing

objects from the database, you will find that the name of the table is not user friendly

Rename all non user friendly folder namesIn our case, the folder names are ok so I will

not change them

Page 47: Oracle Discoverer

How to rename a folderTo rename a folder, use this workflow:

1.Right click on the folder that you want to rename

2.From the pop up menu, select Properties3.Single click in the field called Name4.Enter a more business friendly name5.Check the Identifier and change if need be6.When done, click OK

Page 48: Oracle Discoverer

Check the name of the itemsMany times, especially when importing

objects from the database, you will find that the name of the item is not user friendly

Rename all non user friendly item namesIn our case, the item names are cryptic so I

will change them

Page 49: Oracle Discoverer

How to rename an itemTo rename an item, use this workflow:

1.Right click on the item that you want to rename2.From the pop up menu, select Properties3.Single click in the field called Name4.Enter a more business friendly name5.Optionally, provide a description6.When done, click OK

Page 50: Oracle Discoverer

Names in Sales FolderBefore After

Leave Identifiers

unchanged

Page 51: Oracle Discoverer

Rename other itemsGs Channel

Change Name to ChannelGs Customer

Change Custid to Cust IDChange Name to Cust NameChange Contactname to Contact NameChange Creditlimit to Credit Limit

Gs CityChange Name to City

Page 52: Oracle Discoverer

Check the order of the itemsOpen each folder and look at the ordering of

the itemsWe need to rearrange the order to make

selections for users easierMove metrics to the top, followed by

descriptor items, dates and finally non essential identifiers

Finally, insert item separators

Page 53: Oracle Discoverer

How to change an item’s position

To change the position of an item, use this workflow:1. Left click on the item that you want to move and

hold the mouse button down2. Move the mouse cursor to the location where you

would like this item to be3. Wait until Discoverer highlights the destination

item4. Release the mouse button5. The item will now move to the new position

Page 54: Oracle Discoverer

How to insert an item separator

To insert an item separator, use this workflow:1. Right click on the name of the folder into

which you want to insert an item separator2. From the pop up menu, select New Item3. Discoverer opens the New Calculation dialog

box4. Give the item a separator Name such as:

*** M e t r i c s ***5. In Calculation use NULL6. Click OK to complete the calculation7. Move the item to its correct position

Page 55: Oracle Discoverer

Sales Order folder with separators

Note how each logical group gets its own separator

Page 56: Oracle Discoverer

Default PositionWhen Discoverer imports data items from the

database it automatically assigns the position of the items as follows:Dates – TopIntegers – TopNumbers with decimal places – Data PointStrings – Top

Page 57: Oracle Discoverer

How to change an item’s position

To change an item’s position, use this workflow:1. Right click on the item whose position you

want to change2. From the pop up menu, select Properties3. Single click in the field called Default Position

Your options are Data Point, Page, Side, Top,Top or Side

4. Change the position5. When done, click OK

Page 58: Oracle Discoverer

Default FormatWhen Discoverer imported the data items

from the database it automatically assigned the default format of the items as follows:Dates – DD-MON-RRRRIntegers – 9999999999Numbers with decimal places – 999999D99Strings – As defined in the database

Page 59: Oracle Discoverer

Why change the format?To allow for leading zeros in numbersTo increase the number of decimal places

to allow for better mathematical accuracyTo increase the number of places before

the decimal to allow for summationsTo insert comma separatorsTo truncate datesTo format dates as MM/DD/YYYY

And many other reasons….

Page 60: Oracle Discoverer

How to change an item’s format

To change an item’s default position, use this workflow:1.Right click on the item whose format you

want to change2.From the pop up menu, select Properties3.Single click in the field called Format4.Change the format5.When done, click OK

Page 61: Oracle Discoverer

Formats to changeWe will change the following:

Cost Price and Selling PriceFrom 999999D99to 999999990D99

Increased number of places to left and inserted a leading zero

Order Qty and Ship QtyFrom 9999999999 to 99999999990

Inserted a leading zero

Page 62: Oracle Discoverer

How to check a list of valuesTo check a LOV, follow this workflow:

1. In the Admin edition, click on an item with a LOV2. Open up the lists of values for the item by clicking on the +

along side the item name3. Discoverer will give you a warning that this could take a while.

Ignore this and continue – see note below.4. Confirm that the LOV is ok

Note: you should always open up a list of values in the admin edition before releasing to a user. This prevents the user seeing the warning message that opening up could take a while

Page 63: Oracle Discoverer

Problems with LOVs The most common errors that occur with

LOVs and how to fix them:

1. They take too long to generate and time outa. Increase the time out limitb. Use another data item to create the LOV

2. They show the data in the wrong sort sequencea. Use an alternative sort

Page 64: Oracle Discoverer

Alternative sortsSometimes, when we look at a list of values, we

will see that it is not in the order that we would like

To overcome this, we can use an alternative sortTo create an alternative sort we must have one

of the following:Another available 1:1 item in the same folder, orAn artificially created sequence

Page 65: Oracle Discoverer

Month data is a candidate for an alternative sort

Natural order April August December February January July June March May November October September

Required order• January• February• March• April• May• June• July• August• September• October• November• December

Page 66: Oracle Discoverer

Add alternative sort on MonthTo add an alternate sort, use this workflow:

1. Click the Item Classes tab2. Expand the list of item classes3. Locate the list of values that needs the

alternate sort4. Right click on the LOV and from the pop up

menu, select Edit Item Class

Page 67: Oracle Discoverer

04/08/23 67

• FoldersThe tables and views loaded into a Business

Area. Folder Types - Simple, Complex and Custom

• Items The Columns within a Table or View

Page 68: Oracle Discoverer

Types of new folderWe can insert three types of new folders:

1. NewThis type of folder is the sort that we choose when we wish to create a new, complex folder. A complex folder is one that is made up from items from existing folders

2. CustomSelect this type if you want to key the SQL yourself

3. From DatabaseSelect this type if you want to create a folderbased on a database object (table or view)

Page 69: Oracle Discoverer

Creating new foldersTo create a new folder, follow this workflow:

1. Single click on the business area such that the business area name is highlighted

2. Right click on the highlighted name – Discoverer will pop up a context menu

3. From the context pop-up menu, click on the type of folder you want to create

Note: an alternate way to step 2 is to selectInsert | Folder from the menu bar

Page 70: Oracle Discoverer

Split the screen – Window | New Window

Page 71: Oracle Discoverer

Move day key into the folderPopulate the new folder with Calendar

Date

Page 72: Oracle Discoverer

Move rest of date items inRename Calendar Date, Fiscal Month, Fiscal Qtr and Fiscal Year to be more user friendly

Page 73: Oracle Discoverer

73

• A Join relates two folders using common items. • The Joins affect the combinations of items that can

be selected during the following operations:1. Creating a worksheet in Discoverer Plus.2. Creating a Complex Folder in Discoverer

Administration Edition.

Page 74: Oracle Discoverer

Rename and make 1:N join to Sales

Right click Order Date, select New

Join

Page 75: Oracle Discoverer

75

• Conditions filter worksheet data, enabling Discoverer end users to analyze only the data they are interested.

• Conditions are applied to the folders or items

Page 76: Oracle Discoverer

Finish the date foldersTo finish the Order date link, we hide the

original Day, Month, Quarter and Year folders so that user has to select from the new folder

To hide a folder, use this workflow:1.Right click on the folder you want to hide2.From the pop up menu select Properties3.Change Visible to user from Yes to No4.Click OK

Page 77: Oracle Discoverer

Notes about Complex FoldersWhenever you use complex folders, note:Lists of values are copied and the item

classes are shared with the original itemsJoins are not copied, they must be created

manually

Page 78: Oracle Discoverer

78

• Groups of items that share similar properties

• Used to enable the following:

• List of Values• Alternative Sorts• Drill to Detail links

Page 79: Oracle Discoverer

79

• Hierarchies are default drill paths between item that you define in Discoverer Administrator

• There are two types of Hierarchy in Discoverer Administration Edition:1. Item Hierarchies 2. Date Hierarchies

• • A calculated item is an item that uses a formula to derive data for the item

Page 80: Oracle Discoverer

HierarchiesA hierarchy allows a user to drill within the data.

Typically we use 1:N relationships to define hierarchies.There are two types of drill:1. Rolling Up: This expands a query by allowing a

user to include data from a higher level of the hierarchy

2. Drilling Down: This expands a query by allowing a user to include data from a lower level

In both types, Discoverer may re-query the database

Page 81: Oracle Discoverer

Hierarchy workflow

To create a hierarchy, use this workflow:1. Click Hierarchies tab2. Right click on business area to use3. Select New Hierarchy from the drop down list4. Wizard step 1 - check appropriate hierarchy type5. Click Next

6. Wizard step 2 - locate and open foldercontaining the items

Page 82: Oracle Discoverer

Hierarchy workflow7. Select the lowest level drill item and place in right hand

side

8. Select next items, in order

9. When all items selected, click Next

10. Wizard step 3 - give a meaningful name to the hierarchy

11. Click Finish

Page 83: Oracle Discoverer

Source ERD – showing time folders

Page 84: Oracle Discoverer

New Feature when creating itemsIf you are creating new items in a complex

folder, Discoverer lists all of the folders that were used to create the complex folder

It also displays all of the items in the original folders, irrespective as to whether they were used in the complex folder

This allows you to build new items on any item from the original folders, not just on theitems in the new complex folder

Page 85: Oracle Discoverer

Complex Folder expandedOriginal folder

Page 86: Oracle Discoverer

04/08/23 91

•Workbook scheduling is useful in the following situations:

•The user has created a report that could take a long time to run - they can submit the report to run overnight and view the result in the morning.•The user wants to create a report that needs to be updated at regular intervals.

Page 87: Oracle Discoverer

04/08/23 92

• One of your most important tasks, as a Discoverer Administrator, is defining the access permissions and task privileges allowed for each user or role.

• Access permissions determine who can see and use the data in business areas.

• Task privileges determine the tasks each user or role is allowed to perform.

Page 88: Oracle Discoverer
Page 89: Oracle Discoverer
Page 90: Oracle Discoverer

04/08/23 95

•Discoverer Administration Edition enables you to export/import a business area to a file.

•This can be useful when copying business areas between EULs or when archiving data.

Page 91: Oracle Discoverer
Page 92: Oracle Discoverer
Page 93: Oracle Discoverer
Page 94: Oracle Discoverer
Page 95: Oracle Discoverer
Page 96: Oracle Discoverer

101

Discoverer Desktop/PlusData Listing ReportsCross-Tabulation Reports (Pivot Tables)Graphs & Charts

Page 97: Oracle Discoverer

102

How To Build a Query in DiscovererConnectChoose a LayoutSelect Items

To DisplayTo Filter By

Specify Totals and other Calculations (Optional)Specify Sorting (Optional)Specify Run-Time Parameters (Optional)Run Report

Page 98: Oracle Discoverer

103

Starting Discoverer Plus

Page 99: Oracle Discoverer

104

Successful connection

Page 100: Oracle Discoverer

105

Create/Open a Workbook

Page 101: Oracle Discoverer

106

Creating a New Workbook

Use the Workbook Wizard

Page 102: Oracle Discoverer

107

Selecting Items

Select the Business Area

Scroll through list of folders

Expand a folder to see its items

Page 103: Oracle Discoverer

108

Highlight items and move them to the Selected side by clicking

on the right arrow

Selecting Items, cont’d

Page 104: Oracle Discoverer

109

Conditions

Page 105: Oracle Discoverer

110

Conditions, cont’d

Page 106: Oracle Discoverer

111

Conditions, cont’d

Page 107: Oracle Discoverer

112

Calculations

Page 108: Oracle Discoverer

113

Calculations, cont’d

Page 109: Oracle Discoverer

114

Table Layout

Click and drag headings to desired order

Page 110: Oracle Discoverer

115

Table Layout, cont’d

Page 111: Oracle Discoverer

116

Sorts

Page 112: Oracle Discoverer

117

Results

Page 113: Oracle Discoverer

118

Formatting

Page 114: Oracle Discoverer

119

Parameters

Page 115: Oracle Discoverer

120

Parameters, cont’d

Page 116: Oracle Discoverer

121

The Same Results

Page 117: Oracle Discoverer

122

Saving a Workbook

Page 118: Oracle Discoverer

123

Opening a Workbook

Page 119: Oracle Discoverer

124

Sharing a Workbook

Page 120: Oracle Discoverer

125

Sharing a Workbook, cont’d

Page 121: Oracle Discoverer

126

1. Connect to Discoverer Admin.2. Create one Business Area 3. Create one simple , one custom and one complex folder4. Create some Joins within the folders5. Connect to Discoverer Desktop6. Create a simple report by using the above folders7. Add some conditions and parameters for the report.8. Add an appropriate title 9. Save the workbook on the database10. Share your workbook with your neighbor

Exercise

Page 122: Oracle Discoverer

127

There’s lots you can do!

Discover the datawith DISCOVERERDISCOVERER!

Page 123: Oracle Discoverer

Q & A