| Oracle Discoverer Administration Edition Administration Guide Release 4.1 for Windows A86730-01 |
|
This tutorial uses a hypothetical chain of video rental stores as a business example, to show how to develop a business area using sales and inventory data. Your Discoverer software includes the video store demonstration database (VIDEO4) that this tutorial uses. Please ensure this has been created by your administrator before starting the tutorial. For details of how the administrator can install the tutorial data see Chapter 5.6, "Installing the Tutorial Data".
This tutorial consists of a set of lessons that show you how to use the main features of Discoverer Administration Edition. Each lesson begins with an introduction and a list of exercises. Before you start each lesson, you may want to survey the list of exercises to get a sense of how much time you need to schedule for completing the lesson.
This tutorial consists of the following lessons:
To follow this tutorial you must be able to connect to Discoverer initially as a user with a DBA role (see your database administrator for details). The reason for doing this is because the tutorial involves creating a new database user to run the tutorial. Normal use of Discoverer Administration Edition does not require DBA privileges.
Remember that the video store sample database is designed so that you already have read access to the tutorial tables. When you create your own business areas, you will need SELECT access to the database tables you need to access. You will also need to know the user IDs who own the data tables.
Remember that this tutorial is your introduction to Discoverer Administration Edition's basic features and procedures. When you are working with Discoverer Administration Edition outside the tutorial, you may find that you need more detailed explanations. You should find the online Help system and the rest of this book to be reliable, useful sources of information.
Lesson 1 shows you how to create a private End User Layer. Creating a private End User Layer for every person taking the tutorial enables each user to have a separate version.
The VIDEO4 user, tables and tutorial data need to have been installed by your administrator before users can complete the tutorial (see Chapter 5.6, "Installing the Tutorial Data" for details).
Lesson 1 shows you how to:
This displays the Connect to Oracle Discoverer Administration Edition dialog box.
Figure 4-2 shows the EUL Manager dialog box.
|
NOTE: Because other users might take this tutorial as "admintutor," we recommend that you uniquely identify your tutorial work by adding your first and last initials to the admintutor user ID. |
The Create EUL Wizard should look similar to Figure 4-3.
You have successfully created an EUL. You will now create a business area. This is described in Section 4.2.
In this lesson you will learn how to create a business area. The Load Wizard guides you through each step of the process.
Lesson 2 consists of the following exercises:
The Load Wizard provides options for opening an existing business area or creating a new business area (see Figure 4-5). You will create a new business area, using tables created expressly for this learning experience.
With this selection, the Load Wizard asks Where do you want to load the metadata from? Your answer to this question tells the Load Wizard where to find the database objects that you want to load into the business area.
This opens Load Wizard: Step 2.
Load Wizard: Step 2 specifies the database link and identifies the user IDs that own the tables that you want to use in the business area.
The tables and views that will be loaded into the business area are objects owned by the user IDs you select.
% is a wildcard. This will load all tables and views belonging to the selected user IDs.
This opens Load Wizard: Step 3.
For more information about Load Wizard: Step 2, see Section 7.2.2.4, "Load Wizard: Step 2."
Load Wizard: Step 3 is where you select the specific tables or views that you want to load into the Business Area. The left hand side (marked Available) lists all of the objects in tables and views that are owned by the VIDEO4 user ID.
To include a table or view in your Business Area, you need to move it to the right hand side (marked Selected).
There are three ways of moving tables from one list to the other:
To select more than one table at once, hold down Ctrl while you click on the tables.
Figure 4-8 shows how the wizard should look when you're finished.
Load Wizard: Step 4 offers the opportunity to automatically generate hierarchies, lists of values, and joins and include them in the business area. You will be able to modify those attributes to suit your users' needs later.
For detailed descriptions of the components in this dialog, refer to Section 7.2.2.6, "Load Wizard: Step 4, Automatic Attributes".
Make the following choices for your business area:
In both cases you can accept the default values in the drop-down lists.
This requests a list of values to be automatically created against all character and date columns.
|
TIP: Avoid creating lists of values (LOVs) on columns that will contain many distinct values (E.g. Decimals). |
Figure 4-9 shows how the wizard should look when you're finished.
Use Load Wizard: Step 5 to name the business area.
The wizard should look similar to Figure 4-10.
Discoverer Administration Edition displays a progress bar while the Load Wizard creates the business area. Based on information you have supplied in the previous windows, Discoverer Administration Edition creates table folders, and lists of values, and organizes the information in terms of the date hierarchies and data point aggregates that you specified.
Congratulations! You've completed the first part of the tutorial, you've used the Load Wizard to create a business area.
The next major step is making the data in the business area available in Discoverer Plus by granting access privileges, which you will do in Lesson 4. But before you take any further steps, it's a good idea to learn your way around the work area. This is described in Section 4.3.
When the Load Wizard finishes creating the business area, a work area window opens.This is your primary view of the business area, where you modify folders and items to create the business view of data for the end-user. You can have more than one work area open at a time.
Key to Figure 4-11:
Notice the Administration Tasklist superimposed on the work area window. It acts in two ways, firstly as a reminder of the basic steps involved in preparing a business area and secondly as an interactive method of launching the listed tasks.You do not need the Administration Tasklist for this tutorial, however, leaving it displayed may help you track your progress.
The four tabs at the top of the work area enable you to access the four pages of the work area. Each page lets you work with a different element of the business area design. The remainder of this tutorial shows you how to use the features of each of the pages in the work area.
Access privileges determine who can see and use the data in the business area. The Privileges and Security dialog boxes are your means for setting those rights and privileges for the appropriate users. Data access rights to the application database tables are controlled by the database administrator, and are not affected by Discoverer. Users need SELECT access to the application database tables in order to use Discoverer.
Because you logged on as user ID Admintutor[your initials], Admintutor[your initials] is the creator and owner of the business area in this tutorial; therefore it is the only user ID with the authority to grant other users access privileges to the new business area. The owning user ID can also grant administration rights to other users.
Lesson 4 consists of the following exercises:
4.4.1 Granting Access Privileges to Users
4.4.2 Granting Access to the Business Area
The Privileges dialog box enables you to grant access privileges to users.
This opens the Privileges dialog box.
The Privileges dialog box has four pages:
You will find more detailed information about working with all four pages of the Privileges dialog box in Chapter 8, "Access Privileges and Security".
This page is for granting access privileges to users or roles.
The database administrator can assign users to a role, and then modify the role to affect its set of users immediately. As Discoverer administrator, this can save you from recreating the same set of privileges over and over. For example, one role might be "Store Managers" which you can use to assign the same privileges to any manager in the video store chain.
This page lists the users and roles that have access to a specific privilege, or set of privileges. You can use this tab to grant or revoke access privileges to a specific user or role.
If you wanted to revoke User Edition privileges to the VIDEO4 user, you would clear VIDEO4.
This page lets you set the query retrieval limits for the specified user or role. In this exercise you will set query limits for the user, VIDEO4.
This page enables you to set limits in Discoverer Plus for scheduling workbooks.
The Privileges dialog box should look similar to Figure 4-15.
The Security dialog box provides a further level of security by enabling you to specify which users can see and use specific business areas.
To grant users access privilege to the New Video Stores business area,
There are two ways of doing this.
This page is for granting access privileges to users for specific business areas. The other page is for providing a specific user with access to various business areas.
There are three ways of moving a user or role from one list to the other:
To select more than one user/role at once, hold down Ctrl while you click on the users/roles.
The Security dialog box should look similar to Figure 4-16.
Now that you have created the New Video Stores business area and granted access to it, users can access the business area to perform basic reporting. In other words, all you need to do for basic use is to create a business area and grant access to it.
In the next lesson, you will enhance the business area by providing a useful, expanded business view of the data to the end-user. This is described in Section 4.5.
This lesson shows how to let users access their information easily. Explanations include how to rename folders, and how to add specific descriptions for each table that clearly identify its contents.
This lesson consists of the following exercises:
4.5.1 Adding a Description to the Business Area
4.5.2 Renaming and Adding Descriptions to Folders
A descriptive phrase about the business area can help remind users of the business area's purpose.
This exercise shows you how to add a description to the business area.
There are three ways of doing this:
Folders are the basic elements that the end user sees when working with the business area. For that reason, folders should have meaningful names as well as descriptions that explain the folder's primary use.
Both the folder name and description will be visible in Discoverer Plus.
| Original Folder Name | New Folder Name |
|---|---|
|
Product |
Product Information |
|
Sales Fact |
Sales Details |
|
Times |
Time Information |
|
TIP: While the properties dialog box is open, you can click another object in the work area to switch your view to that object's properties. |
Now that you have given the folders more meaningful names and provided a description of the contents of each folder, users can see the new names and descriptions when deciding which folders to use in a report.
Database columns often have cryptic names that don't have much meaning for the end user. When columns are loaded into a business area, the items that represent them are given the same names, depending on the options you choose. Just as you can change folder names and add descriptions to them, you can change item names and add descriptions to them too.
These next few steps show how to rename items in the Time Information folder.
This shows a list of all items in the folder, similar to that shown in Figure 4-20.
There are three ways of doing this:
The Item Properties dialog box should look similar to Figure 4-21.
The change you make in the Name field automatically registers in the Heading field (you may need to use the scroll bar to display the Heading field).
You can also change the description. However, in the case of date or time-related items, the default description should serve the purpose.
Folders represent a result set of data, much like a database view. In essence, a folder is a SQL statement that returns a result set. The simple folders you've worked with thus far, refer to SQL statements that are stored in the End User Layer.
Using Discoverer Administration Edition's custom folder feature, you can construct folders based on arbitrary SQL statements that you specify. Using set operators, such as UNION, CONNECT BY, MINUS, INTERSECT, and synonyms, you can quickly set up a folder representing a complex result set.
This lesson consists of the following exercises:
This lesson proposes a situation where the end user needs a local list of values within the EUL for an item that has a small number of possible values. The list of values to be created (Days of the Week) has a numeric sequence that will be used later in the tutorial (see Section 4.8.4, "Creating an Alternative Sort").
In the following example, we will use a SQL statement to create a custom folder with two Items, one that represents the days of the week (DAY_OF_WEEK) and another Item an alternative sort sequence (ALTERNATE_SORT).
select 'Monday' DAY_OF_WEEK, 1 ALTERNATE_SORT from dual union select 'Tuesday' DAY_OF_WEEK, 2 ALTERNATE_SORT from dual union select 'Wednesday' DAY_OF_WEEK, 3 ALTERNATE_SORT from dual union select 'Thursday' DAY_OF_WEEK, 4 ALTERNATE_SORT from dual union select 'Friday' DAY_OF_WEEK, 5 ALTERNATE_SORT from dual union select 'Saturday' DAY_OF_WEEK, 6 ALTERNATE_SORT from dual union select 'Sunday' DAY_OF_WEEK, 7 ALTERNATE_SORT from dual
The Custom Folder dialog should look similar to Figure 4-22.
The custom folder is now listed in the business area. Note the SQL label on the folder icon. This identifies the custom folder as distinct from simple or complex folders.
The Custom SQL field contains the SQL statement that defines the folder. You can resize the Custom Folder Properties dialog to view the entire statement.
This opens the Edit Custom Folder dialog which contains the SQL statement (see Figure 4-25).
Do not edit the statement; the purpose of this step is to show how to access the Edit Custom Folder dialog box.
The next lesson shows you how to create joins between folders, this is described in Section 4.8.
Data analysis often requires information that resides in more than one folder. In order for the analysis to occur, the folders must be linked by a join. Joins are part of both the database and the business area design. As the Discoverer administrator you have the option to create joins that provide the information that the end user needs for business analysis.
|
NOTE: The Discoverer Plus user cannot create joins. If you want Discoverer Plus users to create reports that combine information from multiple folders you need to make sure the folders are joined. |
In this lesson you will learn how to create the joins that are required in the business area.
This lesson consists of the following exercise:
To achieve this you will establish joins to relate the data between the folders that you loaded in Lesson 2 Section 4.2.3, "Selecting Tables and Views to Load into the Business Area".
Now you will create joins for each folder, using a Key from the Master table and joining to the corresponding Key of the Detail table.
There are three ways of doing this:
This opens the New Join dialog box with Product Information.Product Key as the master item.
This opens the second New Join dialog box which lists the folders in the New Video Stores business area.
The New Join dialog box should look similar to Figure 4-27.
The New Join dialog (Figure 4-26, "Creating a Join Between Two Folders") should now show Sales Details.Product Key in the Detail Item field.
This list shows the types of joins that you can create. The equal sign represents an equi-join, which combines rows that have equivalent values for the specified items.
Now that you have created joins between the Product Information, Store Information, Time Information and the Sales Details folders, they can be used for analysis in Discoverer Plus.
For more information about creating and editing joins, read Chapter 11, "Joins"
The next lesson describes how you can customize items in a business area, described in Section 4.8.
The Discoverer Administrator's concern is not only what the user views in Discoverer Plus, but that data is presented in a way that makes the information more readable and, therefore, easier to analyze. In this lesson you will learn how to make certain elements invisible, design the axis structure, define lists of values and alternative sorts for them, and how to create derived items and aggregated calculations that are useful for queries and reports.
This lesson consists of the following exercises:
End users may not need to see all the items in a business area. For example, primary and foreign keys, sensitive information such as pay scale and time in service, and some items used in calculations might be inappropriate. The items listed in Table 4-3 are essential to the business area as they are used in join conditions, but they are of no interest to the business user.
Hiding items does not delete them. Deleted items are removed from the business area, whereas hidden items remain in the business area, but are not visible to the end user.
In general it is a good idea to hide all items that users do not need to query. This makes the list of items presented to the user shorter, making it easier to find what they are looking for.
In the New Video Stores business area, typical items that would be hidden are shown in Table 4-3:
| Folder | Item |
|---|---|
|
Product Information |
Product Key |
|
Time Information |
Time Key |
|
Store Information |
Store Key |
|
Sales Details |
Time Key |
|
|
Product Key |
|
|
Store Key |
To hide the key items from the end users:
To select more than one item at once, hold down Ctrl while you click on the items.
This opens the Item Properties dialog box showing the properties that each of the selected items have in common.
Note that the items that are hidden from the user are now shown in grayed text.
A crosstab worksheet in Discoverer Plus can display data along three axes named top, side, and page (see Figure 4-29, "Rearranging the Display Axes in Discoverer Plus"). In Discoverer Administration Edition, you can specify the default axis for each item. Specifying a default axis does not prevent the user from switching an item from one axis to another during data analysis.
Set the default position of Store Information.Region to the side axis:
There are three ways of doing this:
In Discoverer Plus, the user can rearrange the axes to override the settings you create in Discoverer Administration Edition. Figure 4-29 shows the Workbook Wizard, Step 3 (in Discoverer Plus), where the user can rearrange the axes.
Key to Figure 4-30 showing how the axes look in the Discoverer Plus worksheet:
Lists of values are created using an `Item Class'. Most of the item classes for this tutorial were generated automatically when you loaded the EUL in "Lesson 2: Using the Load Wizard". However, you can create new item classes that contain lists of the unique data values in an item.
In your New Video Stores business area, it would be useful to create a list of values to show each department name, for example.
There are three ways of doing this:
The Item Class Wizard should look similar to Figure 4-31.
This opens Item Class Wizard: Step 3, as shown in Figure 4-33.
This opens Item Class Wizard: Step 4.
The Item Class Wizard: Step 4 should look similar to Figure 4-34.
The Item classes page of the work area enables you to view the following information about each of the item classes:
To view this information for the Departments item class:
To build a list of values, Discoverer Administration Edition needs to read every row of the relevant table from the database. If the table has a large number of rows, it can take a long time to build the list of values. Discoverer Administration Edition warns you of this and asks you if you want to continue.
Click Yes.
The Item Classes page should look similar to Figure 4-35.
4In Discoverer Plus, the user sees the list of values created in Discoverer Administration Edition, and can use this list of values to apply a condition.
When creating a worksheet, a user creates a condition by selecting the specific item values from the list of values in the `Selected' column above.
An alternative sort enables users to sort values in a non-standard fashion. For example, standard sorts include alphabetical, numerical, or chronological sorts, whereas a non-standard sort might be by region, such as North=1, South=2, East=3, and West=4 or the days of the week. An alternative sort sorts an item by using a sequence provided by another item (does not apply to ODBC databases).
In this exercise we will create an Alternative Sort for the Days of the Week item in the Time Information folder. To do this we will create a new Item Class that defines an alternative sort and apply it to the Days of the Week item. The alternative sort that we will use is Alternate Sort Days, a custom folder we created previously (see Section 4.6, "Lesson 6: Designing a Custom Folder").
In the Item Class Wizard Step 4 you select the item(s) that will use the alternative sort sequence. In this lesson you will choose an item from the Time Information folder.
To see the new alternative sort in the Days of the Week item carry out the following steps:
|
NOTE: Creating a local list of values in the EUL (see Section 4.6.1, "Creating a Custom Folder - Defining the SQL") improves performance in Discoverer Plus as Discoverer can retrieve the values from the EUL and does not need to read every row of the relevant table from the database. |
The days of the week can now be seen displayed in the sequence defined in the complex folder Alternate Sort Days.
Calculated items can be a critical part of a report. Typical business calculations include values such as:
You can improve the usability of the business area, by defining the calculations that an end user is likely to need. Discoverer Administration Edition stores these calculations in the EUL for use in Discoverer Plus.
For further information on calculations see Chapter 12.1.1, "What is a Calculated Item?".
This exercise shows you how to produce a calculation of profit as a percentage of sales.
There are three ways of doing this:
This opens the New Item dialog box. The left-hand side lists the Sales Details folder and the items it contains.
SUM(Sales Details.Profit)/SUM(Sales Details.Sales) in as the Calculation.
You can type the calculation directly or you can use some of these ways to minimize the amount of typing you need to do:
|
NOTE: Calculations follow the Oracle calculation standard syntax. For a full description of the Oracle calculation syntax, see the Oracle SQL Language Reference Manual. |
The New Item dialog should look similar to Figure 4-43.
Key to Figure 4-43:
Examples of Other Calculations
For example: Sidney Sloan, 21 Great Jones Street Apt. 2B, New York City, New York 10012
For example: Business Analyst in Accounting Department, $50,000
Examples of Aggregated Items
Calculation: SUM(Salary + NVL(Commission, 0))
Calculation: SUM(Commission)/SUM(Salary)
Calculation: SUM(unit_sales)/SUM(customer_count)
For more detailed information about creating calculations, see Chapter 12, "Calculations".
Figures 4-44 and 4-45 are samples of Discoverer Plus windows showing how the end user will see and use the calculated items you create in Discoverer Administration Edition.
Percent Profit, a calculated item created in Administration Edition, is shown in Figure 4-44 with all of the other items in the Sales Details folder.
The user could create a worksheet in Discoverer Plus using the Workbook Wizard. A Table style report could be chosen using the New Video Stores Business Area. The user could select items such as Profit SUM, Sales SUM, Percent Profit from the Sales Details folder and City from the Store Information folder. The Percent Profit item (a calculated item, not an actual column) is displayed with all the other items in the Sales Details folder.
When the user runs the query, Percent Profit is displayed in the report.
Including the Percent Profit calculated item in the report above causes Discoverer Plus to perform the calculation on each row and display the results in a column.
To control the display format of numbers for the Percent Profit item the number format was set to the first option of the `Percent' category list in Discoverer Plus through the menu option Sheet | Format | Format Data | Number.
The next lesson takes you through creating a complex folder that is made up of items from other folders in a business area; this is described in Section 4.9.
A complex folder is a special type of folder which contains items from other folders. When you place an item from a simple folder into a complex folder, you are really making a reference to the original item.
You can simplify the end user's data analysis tasks by gathering items from separate folders into one complex folder. This avoids the need for a user to select items from multiple folders and completely hides joins from users.
Discoverer Administration Edition will not allow you to add an item to a complex folder if the item does not have a join associating it with the other items in the complex folder.
For more information on this topic, see Chapter 11, "Joins"
This lesson consists of the following exercises:
The following exercise shows you how to create a complex folder that the end user can use to analyze profit, product type, product category, and other pertinent information associated with our hypothetical video stores.
There are three ways of doing this:
This creates a new folder titled NewFolder in the New Video Store business area. Note the difference between the icons representing this complex folder and the simple folders.
To make it easier to copy items from one folder to another, you can open another work area window. This provides you with another view on the same work area. The next few steps show you how to do this.
Now you're ready to add some items to your complex folders.
To select more than one item at once, hold down Ctrl while you click on the items.
This copies the selected items into the complex folder.
As the next few steps illustrate, you repeat the process of copying items from other folders to populate the complex folder with all the items your user needs.
You are now ready to populate the Video Analysis folder.
The item classes providing lists of values are now shared between the two complex folders. The items you have copied into the complex folders inherit the properties of the original items. If you delete one of the original items from a folder all references to that item are also deleted.
A condition filters retrieved information. For example, you can create a condition for analyzing the chain of video stores that selects only the Video Sale or Video Rentals departments. The user can use this condition in Discoverer Plus to review recent sales activity for each video store in those two departments to determine which stores are most profitable.
This exercise shows you how to create a condition.
There are three ways of doing this:
This displays the New Condition dialog box. Note that Item is set to Video Analysis.Department.
The New Condition dialog box should look similar to Figure 4-47.
In Discoverer Plus the user sees the condition represented by a filter icon. Figure 4-48 shows how the condition appears in Discoverer Plus.
The next lesson takes you through creating hierarchies that help Discoverer Plus users navigate through data; this is described in Section 4.10.
This lesson shows you how to set up items in a hierarchy so that the user can navigate up and down a hierarchy path to view related information.
Drilling through a hierarchy involves displaying a lesser or greater detail of aggregated information. For example, drilling through sales figures from the entire company to region to district and finally to an individual video store. Each level of the hierarchy reveals greater detail of aggregated information. Users can perform drill-downs in a filtered or unfiltered fashion. For example, users can select a specific data value in an axis item (for example, the year 2000), or they can select all data values for the axis item (for example, all years) and drill down.
You can provide Discoverer Plus users with several methods of drilling into related information. In this section, you'll enable the drill up/down capability.
This lesson consists of the following exercises:
Some of the data in a business organization is hierarchical in nature. Store totals naturally fold into district sales, district sales fold into regional sales, and so on until the top of the hierarchy is reached.
Defining hierarchies provides users with a very easy way of drilling into summary information without having to know exactly what items make up the hierarchy.
This exercise shows you how to create a simple item hierarchy.
There are three ways of doing this:
This opens the Hierarchy Wizard (see Figure 4-50).
Item hierarchies are for drilling up and down through character items and numeric items. Date hierarchies are for drilling up and down through date items (Year, Quarter, Month, Week, Day, etc.).
The next steps show you how to choose the items that you want end users to see in their drill hierarchies. The position of each item dictates how the drill is displayed in Discoverer Plus.
There are three ways of moving items from one list to the other:
To select more than one item at once, hold down Ctrl while you click on the items.
The Hierarchy Wizard: Step 2 should look similar to Figure 4-51.
The Hierarchy Wizard: Step 3 should look similar to Figure 4-52.
The Hierarchies page of the work area lists the Regional Hierarchy in the New Video Stores business area. You can expand Regional Hierarchy to view the hierarchy (see Figure 4-53). Users can now navigate through all the levels of the hierarchy, skipping levels if necessary.
Figure 4-54 shows the three levels of the hierarchy (Region, City, and Store Name) in a Discoverer Plus worksheet. The Discoverer Plus user does not have to explicitly set up a hierarchy. When an item is selected for a report that is part of a hierarchy, the user can navigate to any other element in the hierarchy via a pop-up menu.
This section shows how to create another, more complex item hierarchy. This example drills into the product details.
There are three ways of doing this:
This opens the Hierarchy Wizard.
This groups the selected items so that they appear at the same level in the hierarchy. Grouping items in this manner causes them to be pulled into a user query (from Discoverer Plus) simultaneously. Drilling down from Product Category will display Description and Full Description level at the same time.
The Hierarchy Wizard: Step 2 should look similar to Figure 4-55.
This opens Hierarchy Wizard: Step 3.
The Hierarchies page lists the Product Hierarchy in the New Video Stores business area. If you expand Product Hierarchy, it should look similar to Figure 4-56.
Date hierarchy templates enable automatic date hierarchies to be created. For example, a template can be created that enables drilling down from year to month to week to day. Associating a date hierarchy template with a date item automatically creates new items for each date (e.g., year, month, week, day) and defines drill relationships between them.
Discoverer Administration Edition already includes a standard date template which includes the hierarchy of year to quarter to month to day. If that template does not meet the user requirements, you can create a new date hierarchy. For example you might want to drill from year to week rather than month, or even drill to hours minutes and seconds for time based data.
This exercise shows you how to create an alternative date hierarchy template.
There are three ways of doing this:
This opens the Hierarchy Wizard.
This opens Hierarchy Wizard: Step 2.
This opens Hierarchy Wizard: Step 3. This is where you assign the date hierarchy you've just created to items in the business area.
Earlier, in Section 4.9, we copied Transaction Date and Year to the Store and Sales Details complex folder. We also copied Transaction Date, Year and Month to the Video Analysis complex folder.
The Year and Month items were generated automatically from the Transaction Date item by the Load Wizard using the default date hierarchy template.
However, when you apply a new date hierarchy to a date item, the existing date hierarchy is removed. All the Year and Month items (including those copied to the complex folders) were therefore deleted when you applied your new date hierarchy to the Transaction Date item.
The next steps recopy the year and month data into the complex folders:
In Discoverer Plus, the user can navigate through all levels of the hierarchy, skipping levels if necessary. Figure 4-60 is a Discoverer Plus worksheet that shows the three levels of the date hierarchy: Year, Quarter, and Month. The user does not have to explicitly set up a date hierarchy. When a date is selected for a report that is part of a hierarchy, the user can navigate to any other element in the date hierarchy via a pop-up menu.
For more information, read Chapter 14, "Hierarchies".
Database columns usually contain content which is actual data. This data is displayed in Discoverer Plus as a result of a SQL query. However, you can also put information in a column which is either metadata (data about data) or a reference to data that needs to be run in another application to be displayed correctly. For example, if a file in the local or network file system is a video (.avi) file, a video application has to run to play the file.
Where an item contains a reference to a file that requires another application to run, Discoverer finds and loads the application enabling the user to view the data. The item's content type needs to be changed so Discoverer can recognize that an external application needs to be launched according to the file's extension. A typical file path is C:\ORANT\DISCVR4\DEMO\MEMO.DOC.
You specify that an item contains a file name (rather than just text) with the Content Type property. The Content Type item property has two values: FILE or NONE. If FILE is selected, Discoverer launches an application according to the file extension and information defined on the users computer. If NONE is selected the file name will be displayed as text.
Table 4-4 shows some example applications that are typically launched according to their file extensions.
| Application | File name extension |
|---|---|
|
MS Word |
.doc |
|
Media Player |
.avi |
|
MS Excel |
.xls |
|
Lotus Screencam |
.scm |
|
Web Browser |
.html |
In the New Video Stores business area, the Store Information.Reports item actually refers to a MSWord document, and the information in the database column is the directory path and filename. The Product Information.Full Description item is a Web page containing HTML code, and the information in the column is also the directory path and filename. The Reports document should be opened by a word processor, and the Full Description document should be opened by a Web browser.
Here's how to modify the content type so that Discoverer Plus will pass the contents of the items (the directory path and file name) to the operating system, which will launch the appropriate application to view the document:
There are three ways of doing this:
When you open these items in Discoverer Plus, the information is displayed in the appropriate word processor and Web browser.
The user can tell which items need external applications to run based on the icon displayed in the worksheet. Figure 4-61 shows an example of a worksheet that can invoke Microsoft Word and an HTML page.
In Discoverer Plus, users use the hierarchies you create to drill up or down to view different levels of summarized data. There are occasions when the user needs to drill to detail; that is, jump to related information details in the summarized data. For example, your user may be reviewing daily sales results from a number of video stores. He or she may want to see the detail transaction records that comprise the daily total.
To enable the user to drill to the detail data, you need to create a drill-to-detail item class. A drill-to-detail item class lets users select an aggregated detail item in a report and drill directly to the source data that was accumulated to produce the result.
You can drill to any item that is an item class that contains items from other folders.
The two conditions cited above mean that a link exists between the items, and the user can automatically drill to detail to any folder which has an item in the same item class.
The following steps show how the Item Class Wizard makes it easy to edit an item class for drilling into related detail information from summary information, and for viewing a list of unique values from the Region column. (The item class was created by the Load Wizard at the start of this chapter.)
The next steps create a list of unique values in the Region database column.
The Edit Item Class dialog box should look similar to Figure 4-63.
Now that you have associated a list of values with the Region item, a plus (+) symbol appears next to it on the Data page. Now the user can view the list of unique values in the column.
For more information, read Chapter 10, "Items and Item Classes".
The next lesson takes you through creating summaries. Summaries help reduce the time taken to retrieve data for Discoverer Plus users; this is described in Section 4.11.
The New Video Stores business area is now ready for end users. However, allowing users to analyze data from folders and columns associated directly with the detail tables in the production database may be inefficient, and can sometimes take a long time to return results if the tables contain very large numbers of rows.
To improve query efficiency, Discoverer Administration Edition enables you to create summary folders. A summary folder contains pre-aggregated data that you know the end user will want to analyze and display in a final report. Discoverer can redirect queries to the pre-aggregated table, avoiding aggregating large volumes of detail data on the fly, and therefore optimizing query efficiency.
In this lesson, you will create the new summary table and a schedule for updating it.
This lesson consists of the following exercises:
4.11.1 Creating a Summary Folder
4.11.2 Setting up Internal Summary Combinations
4.11.3 Setting up the refresh schedule and naming the Summary Folder
There are two ways to create Summary folders in Discoverer:
|
NOTE: As a Discoverer Administrator, you are advised to use Discoverer's ASM facility to create Summary folders. |
In order to learn more about how Discoverer creates Summary folders, in this lesson we will create Summary folders manually by specifying Items that exist in the End User Layer.
There are three ways of doing this:
The Summary Wizard should look similar to Figure 4-65.
The Summary Wizard: Step 3 should look similar to Figure 4-66.
A combination is a single set of axis and measure items in a summary table. If a user runs a query with the same items as those specified in a combination, the query runs against the summary table instead of the detail data in the database. Consequently, the query process speeds up because it uses the pre-summarized results instead of running calculations on all detail rows.
Your next procedure is to choose the summary combinations that you want to be pre-built and managed by Discoverer.
In Summary Wizard: Step 4, each numbered column represents combinations in a table.
This creates a new combination column.
The Summary Wizard: Step 4 should look similar to Figure 4-67.
Your next exercise is to schedule the initial summary refresh and periodic refresh intervals then name the Summary folder and schedule its build. The refresh schedule establishes the timeframe in which Discoverer automatically updates the data in the Summary folder. It is important for you, as the Administrator, to set up a periodic refresh that ensures that the summary tables will have current, relevant data at the periods required by users.
This displays last page of the wizard, Summary Wizard: Step 6 (see Figure 4-69).
Congratulations! You have just completed the Discoverer Administration Edition tutorial. By now, you should have a solid understanding of the major features of Discoverer Administration Edition and how it affects every aspect of the user's view of database information via business areas in Discoverer Plus.
You've just seen that you can use Discoverer Administration Edition to make your end users' use of database information much more effective by creating business areas that reflect their view of data, and simplify their tasks by creating all of the conditions and joins they will need to use in reports.
If others in your organization plan to use this tutorial, you may want to delete the New Video Stores business area. To do this follow these steps:
There are two ways to do this:
There are two ways to do this:
Discoverer Administration Edition asks you to confirm this action.
This removes all of the work you have done as part of this tutorial from the EUL.
For more information regarding any feature, use online help or refer to the Table of Contents in this book to find the appropriate chapter.
|
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|