Setting Options Oracle Fusion Middleware Online Documentation Library

8-18 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Desktop 1. Choose File | Import SQL. The Open dialog box appears. Figure 8–17 Open SQL File Dialog

2. Locate and select the file that contains the SQL statement, then click Open.

A new workbook is then created from the query defined by the SQL statement.

8.7.3 Using the Discoverer Execution Plan

The Plan tab displays the Oracle Server Execution Plan chosen by the Oracle Server for a query request. The Execution Plan defines the sequence of operations that the Oracle Server performs to execute the SQL statement. This facility is useful when using Summary tables and Materialized Views.

8.7.3.1 About Summaries

Summary tables and Materialized Views store precomputed aggregated data, which is used where possible instead of data retrieved directly from the database. Because Summary tables and Materialized Views are much quicker to access, this enhances the performance of Discoverer Desktop. Summary Management is handled automatically by Discoverer, and is transparent to most Discoverer Desktop users. However, you may wish to use the SQL Inspector feature to look at SQL statements being generated. For example, when using Summaries, you may wish to check that a query is using a Summary or Materialized View created by your Discoverer manager.

8.7.3.2 Types of Summary

Summaries are created by your Discoverer manager to help do your work more quickly and efficiently. Two types of Summary are used: ■ A Summary table is a table created by Discoverer. ■ A Materialized View is the Oracle database server’s own summary mechanism.

8.7.4 Looking at an SQL Execution Plan

To see a worksheet’s Execution Plan: Note: For more information on Summaries and Materialized Views, see Oracle Database Data Warehousing Guide. Advanced Discoverer Desktop Features 8-19 1. Choose View | SQL Inspector. The SQL Inspector dialog appears.

2. Click the Plan tab.

Figure 8–18 SQL Inspector Dialog - Plan Tab

8.7.5 Viewing the SQL and Execution Plan with an Oracle Enterprise Edition database

When running Discoverer Desktop against an Oracle Enterprise Edition database, the server controls query redirection by rewriting the SQL to use a Materialized View. If a server rewrite occurs, the server Execution Plan indicates the Materialized View name. You can use the Plan tab in the SQL Inspector dialog to see the SQL statement that Discoverer Desktop sends to the server.