Choose the item from the Add drop-down list.

8-16 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Desktop Cache —displays options for the memory cache, disk cache, and cache directory for Discoverer Desktop. Generally these options should not be changed without assistance from the database administrator. Connection —displays options for setting the EUL types that can be used. Advanced —displays options for configuring Automatic Querying, Fan-trap Detection, and Multiple Join Path Detection. When you open Workbooks, Discoverer Desktop can run queries automatically or not, or can request confirmation before running queries. EUL —displays the default EUL setting. Use the option on this tab to select a default EUL End User Layer. Check with your database administrator for the correct EUL to select.

8.6 Using Command-Line Options

You can run Discoverer Desktop from the command line and perform a limited number of tasks automatically, for example, opening or printing a Workbook. To use command-line options, type the command string for starting Discoverer Desktop, following by a command-line option, see table 8-1 below. To run a command line option:

1.

From the Windows Start menu, choose Run. The Run dialog box appears. 2. Type: drive\orant\bin\dis51usr.exe connect memypasswordmydatabase option Where ’me’ is your Discoverer Desktop ID, ’mypassword’ is your Discoverer Desktop password, and ’mydatabase’ is the Oracle database to which you want to connect, see your Oracle Administrator for connect details. The following table displays some sample command line options. For example, to open a file Reports.DIS in your root directory, type: drive\orant\bin\dis51usr.exe connect memypasswordmydatabase open c:\Reports.DIS To print a file Reports.DIS in your root directory, type: drive\orant\bin\dis51usr.exe connect memypasswordmydatabase print c:\Reports.DIS Option Action Effects Notes open file Open a .DIS file Opens a workbook from a file. Skips the Connect dialog box and open the workbook. p file Print a Workbook Prints workbook from the file to the default printer. Print options are saved as part of the workbook. sheet ALL Activate all sheets Runs queries for all sheets in the workbook. When the workbook opens all queries on all sheets are already run. Advanced Discoverer Desktop Features 8-17

8.7 Using SQL

If you are familiar with SQL, you can analyze the SQL statements that Discoverer Desktop executes against the database. You can also open workbooks with your own SQL programming statements.

8.7.1 Looking at the SQL Statements for Worksheets

To see a worksheet’s SQL statements: 1. Choose View | SQL Inspector. The SQL Inspector dialog box appears. It shows the SQL statements used to create your current worksheet. Figure 8–16 SQL Inspector Dialog

2. Click Copy to copy the statements and paste them to another SQL program.

The SQL statements Discoverer Desktop uses to open a workbook or worksheet involve complex programming. Therefore, you cannot simply copy a worksheet’s SQL and use it to open another workbook or worksheet. You must write your own programs.

3. Click Export to export the statements to another file for use later with another SQL

program.

4. Click OK to close the SQL Inspector dialog box.

8.7.2 Importing SQL

If you have written an SQL program to open a workbook, importing the program executes the SQL statement and opens the Discoverer Desktop workbook. To import SQL and open a workbook: Note: If you are importing an SQL script tha contains join definitions, the joins must have been created first by your Discoverer manager using Discoverer Administrator.