Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
-
Upload
lester-lynch -
Category
Documents
-
view
216 -
download
0
description
Transcript of Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.
![Page 1: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/1.jpg)
![Page 2: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/2.jpg)
Session id: 40106
Darrell HilliardSenior Delivery ManagerOracle UniversityOracle Corporation
![Page 3: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/3.jpg)
Session id: 40106
Tips and Techniques to Enhance and Optimize Access to Your data using Discoverer
![Page 4: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/4.jpg)
Overview Overview of Discoverer Strategies for Optimizing Queries
– Query Creation– Batch Scheduling– Complex Folders– Summary Tables– Materialized Views– Calculations– Indexes
Questions Summary
![Page 5: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/5.jpg)
End User Layer
Data warehouse, data mart, or relational database
Discoverer Viewer
DiscovererAdministrator
DiscovererPlus
Discoverer Desktop
DiscovererPortlet Provider
Discoverer Product Set
![Page 6: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/6.jpg)
Report Types Complex Cross-Tab reports may use more
client memory for display than Tabular report (depending on amount of data returned)
Can avoid these if a tabular report shows the same data
![Page 7: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/7.jpg)
Report types
Cross tab reports can often be duplicated as tabular reports, giving the same results. If you find display performance is an issue, try this.
![Page 8: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/8.jpg)
Query Governor OptionsDiscoverer Plus Discoverer Administrator
![Page 9: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/9.jpg)
Batch Scheduling Allows reports to be created now, but run at
either a later time or on a regular basis
![Page 10: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/10.jpg)
Batch Scheduling Result tables are stored in the database in
one of the following areas:– User’s own schema– Repository user’s schema
If in user’s schema, user needs CREATE TABLE, CREATE PROCEDURE, CREATE VIEW privileges
Advantages to each
![Page 11: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/11.jpg)
Batch SchedulingCan be controlled in Discoverer Administrator
![Page 12: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/12.jpg)
Complex Folders Created in Discoverer Administrator Similar to a database view Can be built from one or more existing
folders Useful to users – allow them to choose
commonly used items from one folder instead of many simple folders
Discoverer uses intelligence to join only necessary base tables
![Page 13: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/13.jpg)
Complex Folders
Simple Folders
Complex Folders
Items
![Page 14: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/14.jpg)
Complex Folders
Sales Fact• Sales• Profit• Customer Count
• Product Key• Description• Type• Category• Department
• Store Key• City• Region
• Day• Month• Quarter• Year
TimesStoresProducts
Sales Analysis
![Page 15: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/15.jpg)
Reasons for Using Complex Folders Easier than using database views No need to know SQL No need to modify the database schema,
grants, and so on Provide data security and restrictions in
addition to the underlying database security Can be used to simplify business areas with
numerous simple folders
![Page 16: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/16.jpg)
Intelligent Joins in DiscovererSimple folders Complex folders
Video AnalysisStore and Sales Detail
Sales facts
Products
Stores
Selecting items from Store and Sales Detail generates SQL that will only join the necessary base tables
If items in the report are based only on Sales Facts and Stores, then SQL will include join only on those tables.
![Page 17: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/17.jpg)
Summary Management
One of the most important features of Discoverer.
When used correctly, it can reduce query response time significantly, resulting in queries that take seconds rather than hours.
Managing summaries is a key to good performance with Discoverer implementations.
![Page 18: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/18.jpg)
Summary tables (database)
Contain preaggregated and prejoined data
Hold the results of frequently run queries
Summary folders (Discoverer)• Contain information
about the summary tables
• Direct queries to run against the summary tables
Summary Management
![Page 19: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/19.jpg)
Summary Management
![Page 20: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/20.jpg)
Summary Management
![Page 21: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/21.jpg)
Summary Management
![Page 22: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/22.jpg)
Summary Management
![Page 23: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/23.jpg)
Summary Management
![Page 24: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/24.jpg)
Summary Management
![Page 25: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/25.jpg)
Summary Management
![Page 26: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/26.jpg)
Summary Management
![Page 27: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/27.jpg)
Summary Management
![Page 28: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/28.jpg)
Summary Management
![Page 29: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/29.jpg)
Summary Management
![Page 30: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/30.jpg)
Summary Management
![Page 31: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/31.jpg)
Summary Management
![Page 32: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/32.jpg)
Summary Management
![Page 33: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/33.jpg)
Summary Management
![Page 34: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/34.jpg)
Summary Management
![Page 35: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/35.jpg)
Summary Management
![Page 36: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/36.jpg)
Summary Management
![Page 37: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/37.jpg)
Summary Management
![Page 38: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/38.jpg)
Summary Management
![Page 39: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/39.jpg)
Materialized Views in Discoverer Discoverer Summary tables (pre-Oracle 8.1.7) Materialized views (Oracle 8.1.7 and later versions) Automatic Summary Management
– Discoverer creates and maintains summaries automatically
You can create summaries manually– From the items in the End User Layer– Using query performance statistics– Registering external summary tables
![Page 40: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/40.jpg)
Materialized Views in Discoverer Used by Summary Manager in Discoverer Can be manually created and used by Administrator
– can base Business Area folders on MVs In either case, indexes can be used to supplement
Materialized Views to help query performance
![Page 41: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/41.jpg)
Summary awareness
OrData
tables
Summary tables
Summary Table Redirection
![Page 42: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/42.jpg)
Calculations in Discoverer Can be created by Discoverer Administrator or by
End User Provide strong support for analytical tasks Can be simple, such as an arithmetic operation
between items that belong to a folder, can be complex mathematical or statistical expressions.
![Page 43: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/43.jpg)
Use of ALL in Parameter List
ALL now appears in both cross-tabular and tabular reports
Avoid using DECODE in Discoverer Administrator to add the ‘ALL’ item, as it is now included. No need to create custom folder in Discoverer Administrator.
![Page 44: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/44.jpg)
Analytical Functions Ranking Functions Window aggregate Functions Reporting aggregate Functions LAG and LEAD Functions First and Last Functions
![Page 45: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/45.jpg)
Creating Analytical Functions
![Page 46: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/46.jpg)
Creating Analytical Functions
![Page 47: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/47.jpg)
Speed and Analytical Functions Calculated Items can be created by
Administrator, and belong to a folder Calculated Items can be created by User, and
belong to workbook Discoverer Administrator may want to create
index on Analytical Function item if commonly used by Users
![Page 48: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/48.jpg)
Registering PL/SQL Functions
– Enable use of custom functions in calculations– Extend the standard set of functions– Can be used in conditions, derived items, and
so on– Are executed for every row that is returned– Can include SQL SELECT statements
![Page 49: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/49.jpg)
Registering PL/SQL Functions
1. Create PL/SQL function2. Grant Execute to users3. Register function in Discoverer Administrator4. Is now usable in Discoverer Plus
![Page 50: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/50.jpg)
Registering PL/SQL Functions
1
2 3
![Page 51: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/51.jpg)
Summary Display speed can be impacted by complex
queries Batch Scheduling can greatly reduce query time Complex folders are useful for organizing items
from numerous simple folders, and Discoverer uses intelligent joins to reduce query time
Summary tables can greatly enhance query time Calculations are widely used, and may be good
candidates for function-based indexes
![Page 52: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/52.jpg)
Next Steps…. Recommended sessions
– Session 36019: Discoverer for Sales Trends– Session 36225: Best Implementation Practices for Discoverer
Try our hands-on labs and see Discoverer in action! See Your Business in Our Software
– Visit the DEMOgrounds for a customized architectural review, see a customized demo with Solutions Factory, or receive a personalized proposal. Visit the DEMOgrounds for more information.
Relevant web sites to visit for more information– OTN.oracle.com (Oracle TechNet)– Education.oracle.com (Oracle University)– Oracle.com/education/oln (Oracle Online Library)
![Page 53: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/53.jpg)
Reminder – please complete the OracleWorld online session survey
Thank you.
![Page 54: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/54.jpg)
AQ&Q U E S T I O N SQ U E S T I O N SA N S W E R SA N S W E R S
![Page 55: Session id: 40106 Darrell Hilliard Senior Delivery Manager Oracle University Oracle Corporation.](https://reader036.fdocuments.us/reader036/viewer/2022070605/5a4d1b397f8b9ab05999e076/html5/thumbnails/55.jpg)