Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Showing posts with label Discoverer. Show all posts
Showing posts with label Discoverer. Show all posts

Monday, May 19, 2008

Expiration of scheduled workbooks

Here is a short example of how scheduled workbooks in Discoverer expire. Consider the example below where I have scheduled a workbook to run every 1 minute. Also, I have specified that the results should be deleted after 1 day.
In theory, I should have at most 24 x 60 = 1440 results for this given workbook available. Well, I was not about to wait one whole day, so I did the next best thing. I simply reset my machine's clock forward by one day, restarted my middle-tier services (actually only the process manager: OracleasProcessManager in my case), reconnected to Plus, and launched the Discoverer Scheduling Manager. Now, my system clock said something like Nov 30, 2005, 4:15pm. Therefore, all results from Nov 29 that had run before 4:15pm should have expired. If you take a look at the screenshot below, it will confirm the same: four results have expired and will be deleted.

Results of scheduled workbooks are stored in tables in the EUL. This means that for every run of a scheduled workbook, one table is created in the EUL. If you were to list all the tables in the EUL, prior to deleting the expired results, you get 62 results.
Exit Discoverer Plus, and you are prompted with a dialog asking you to confirm the deletion.
Click 'OK' and the results are deleted. Which means that four tables sould have been deleted from the EUL. To confrm that, rerun the SQL command to list all the tables in the EUL (select tname from tab;). As expected, the EUL now has four tables less than before.
You could try different options, but the bottom line is that the results become due for expiration and thus deletion when they are more than 24 hours old in this case.

Discoverer Is Not Supported On XE

I wanted to clarify one issue here, explicitly. Discoverer and the Oracle Database 10g Express Edition (aka XE) are not supported. I realize that it may appear to some people that because Discoverer relational works on XE (with the exception of some functionality) and because I, as an Oracle BI PM have been posting about this to the whole world, that there is some official sanction to this. That is not the case. Discoverer and XE are not supported.

Multiple Conditional Formats on the same item

During a presentation today, I realized I didn't about this cool feature in Discoverer 10.1.2 till our UI and usability expert pointed it out.
When applying conditional formats in Discoverer (OLAP), you can have more than one conditional format active for a given item. As long as they do not overlap, they keep getting applied to the item, which means each successive format simply applies itself over and above the previous formats.

I always find it better to explain things using images and screenshots. So if you have understood what I am saying, the screenshots below are quite tautological.

Take this worksheet I have created in Discoverer Plus OLAP. Quite straightforward; I have two measures - Costs and Sales, and one calculation - Margin.

I now start applying a series of conditional formats to the 'Margin' calculation. Each format has the same condition, for simplicity: "Margin Less Than or Equal to 0.75" (i.e. 75%). For this first format, I simply state that the item should be formatted bold. The preview pane at the right shows me how this format would look like.
And this is how my worksheet looks like. Note that two cells in the 'Margin' column are now bold highlighted, corresponding to 'Quarter 1, 2001', and 'Quarter 2, 2001'.
The second conditional format I apply is to format such cells (as meeting the "Margin Less Than or Equal to 0.75" condition) with a background of 'orange' (hex color code FF9900).
This background color format does not conflict with the earlier defined format, so all cells matching the condition get a background color of orange.

And finally I add a third conditional formt, with the same condition, but a different format. The font color is now set to be blue whenever the condition evaluates to true.
So now you can see below all three conditional formats existing in harmony, as none of the formats conflicts with the other.
If you now take a look at all conditional formats (Format --> Conditional Formats), you shall see that all my three conditional formats are active.

Let's now define a new conditional format, on the same item, that actually conflicts with an existing format. So, the fourth format I define still has the same condition (), but a format that conflicts with earlier formats: a cell background color of red and a foreground color of yellow (color:#FFCC00;background-color:#990000)
As I can see, this format now takes precendence over earlier defined conflicting formats.

See the Conditional Formats list, and you will see that while all earlier formats for the item are still active, the last conditional format defined takes precedence, and hence conflicting formats are suppressed.

PDF Settings in Viewer

One post on the Discoverer OTN Forum (link to Discoverer OTN Forum ----> http://forums.oracle.com/forums/forum.jspa?forumID=56) recently asked how to persist PDF settings in Viewer. I realized that today we do not persist these changes, neither across sessions or users, nor within the same session. Which can be a bummer at times. For example, what happens if I have a wide worksheet, and I want to not only change the print orientation from portrait to landscape, but also apply a scaling factor to the text size? Sure, I can do that by going to the Printable Page link and make the required changes here. However, if I want to email the same worksheet as a PDF attachment, or maybe take a PDF export of the worksheet, I lose those settings. Now, of course we shall provide a way to persist these settings across a session or even across users in the next release, but what about now? Well... I went over to our Viewer expert, Matthew, and of course there is a way!

The short one line explanation of the workaround is to make the changes using the 'Printable Page' link, generate a 'Preview' or the entire PDF report, and then use the worksheet breadcrumb link to return to the worksheet. This ensures that the PDF changes you made are available during the sesion to the worksheet. You can always undo these settings by clicking the 'Revert to saved' link.

Let's see with an example, and lots and lots of screenshots!

This is a slightly modified version of the 'New Features Examples' workbook that ships with Discoverer. As you can see, the worksheet is 'wide' - it has three measures, and three members of the geography dimension laid out on the row edge, resulting in nine columns of data.
If I generate a printable PDF sample from this report, you will see, unsurprisingly, that the some columns of the report spill over to the second page.
If I want to get them to fit on one page, I have a couple of options available. I could go to the 'Printable Page' screen, and change the paper orientation from 'Portrait' to 'Landscape', and also set a scaling factor of 50%.

With these settings, the resulting PDF generated (using the Printable Page option) now fits on a single page, width-wise. And as you can see, the text size also looks a lot smaller (should be 50% of the original size, but I have not tested that).

Now, click the worksheet link at the top of the page (Connect > Workbooks > Viewer Print Test - Conditional Formats > ) to return to the sheet. The PDF settings that you applied are now available within this session to the worksheet. Therefore, you can now click the 'Export' link and select PDF as the export format.
The exported PDF file has the same settings applied: paper orientation as well as the scaling factor.
You can also test this out with the email option; select PDF as the format to email the report as, and click the 'View attachment' button at the bottom of the 'Send Email' page.

Voila! PDF settings are available here also!

You could close this worksheet, open another worksheet or even another workbook. So long as you don't exit Viewer and remain in the same session, the PDF settings that you applied earlier using the Printable Page options shall be available to the worksheet.

From detail to summary in two clicks

My heart leaps up when I behold a crosstab... (to mis-quote Wordsworth ----> http://www.bartleby.com/106/286.html). Imagine being able to tell your users that you can take about a quarter million cells of data, and summarize them into nine cells! Of course the assumption being that your data is amenable to that kind of extreme summarization. A picture being worth a thousand words I shall demonstrate, and illustrate, with screenshots. (I have never really tried to test that theory out.... is it really worth only a thousand words? Do you need a really large picture? Is there a formula that you can use to convert pixels into words? You get the drift; this can meander into a really exciting debate, one that I am not too inclined to enter, just not yet.)

Take the screenshot below. It is a table. It shows Profit, Sales, and Unit Sales data at the detail level. I.e. it shows data at the transactional level. I have included only the 'Region' level of the geography dimension. There are only three regions in my data set: East, Central, and West. Which is why these members repeat many, many times. But each row represents a transaction. And I have more than 87,000 transactions. This is a lot of data. You can imagine the excitement if this were to be a few million, billion rows. How do you make sense of this data? Or more precisely, how do you start to make sense of this data?
One way to do is to summarize this data. And if you are using Discoverer, you can summarize this data in about three clicks . How? Simple. From your menu click the arrow to the right of the 'Add Worksheet' icon (that would be the sixth icon in the Discoverer toolbar).
Or you could use the menu and select 'Edit' >> 'Duplicate Worksheet' >> 'As Crosstab'.

Up pops a screen where you can adjust the layout of your crosstab.
Click the 'OK' button and there you go! Nine cells of data. Profit, Sales, and Unit Sales have been summarized for each of the three regions.
Simple, yet powerful (or is it powerful, yet simple?). Discoverer has had this capability for many, many releases now. Yet, as I read and scout the web for news and views, I hear that there are vendors that are aiming to bring out similar functionality only next year, or the year after next. How original.

UIX Hack 4 - Removing the worksheet breadcrumb

A Discoverer forum post on OTN last week asked how to remove the had a query on how to remove the worksheet breadcrumb from the Viewer page. You cannot do that by using the Viewer customizations feature available from the App Server Control (see Section 9.2 - Customizing Discoverer Viewer - of the Oracle® Business Intelligence Discoverer Configuration Guide, 10g Release 2 (10.1.2.1) for Microsoft Windows and Solaris Operating System (SPARC), Part No. B13918-03, link to doc on OTN ----> http://download-uk.oracle.com/docs/html/B13918_03/customize.htm#BABIBFGD). You can however do a lot of other customizations to the layout, and the look and feel.

To remove the breadcrumb, you have to get your hands dirty with UIX (see links to previous posts on UIX and UIX hacks in Discoverer at the end of this post).

Before I get into what is required (and it is really quite simple), I must warn you on two points:

  • Such hacks are not supported and not encouraged. Why? Because Oracle Support will insist you reproduce any problem you have with your Discoverer installation WITHOUT these hacks. You cannot call/contact Oracle Support for any, and I repeat ANY, issues you may run into as a result of using these hacks. These hacks are not fully tested, nor are they guaranteed to work on all combinations of platforms. Any upgrade or patch you may apply to your Discoverer installation will most likely overwrite these customizations. And finally, because we do not guarantee that we will continue to use UIX in future releases. So any effort you expend into gaining UIX expertise for the purposes of Discoverer customizations may likely be useless in the future.
  • Ok, I only had one point, albeit a long-ish point. Well, no! I do have a second point!!. The second point is that if you do create an unsightly furor over any problems with UIX hacks, I shall get into trouble, and shall most certainly be proscribed from writing on these hacks.
Ok, I have carried out my duty about warning you in letter and spirit. Let's move on with the hack now, shall we?

The offending breadcrumb in question is shown below, circled in red.
To remove this, you need to edit a UIX file. The file is located under the following folder: C:\ias\j2ee\OC4J_BI_Forms\applications\discoverer\discoverer. c:\ias is the folder on my machine where Discoverer is installed. Under this folder is a file named 'Worksheet.uix' (intuitive, isn't it?). First, make a backup of this file. Which can be as simple an operation as doing a copy-and-paste if you are using Microsoft Windows. Once this backup has been made, open the worksheet.uix file using a text editor like Notepad, vi, TextPad, etc...
Browse down the file till you find the line that starts with
Select this line, and delete all lines starting with this line till the line that starts with
, including this last line also. Save the file, re-start your OC4J_BI_Forms instance, and re-start Viewer. You should not see the breadcrumb any longer.

An alternative, and a simpler alternative at that, is to find the line that says:

Change this to:

Save the file, re-start your OC4J_BI_Forms instance, and re-start Viewer. You should not see the breadcrumb any longer.
If things didn't blow up to high heaven, the breadcrumb should no longer be visible.
Related UIX Hacks posts:
uix-hack-1-removing-connect-directly
uix-hack-2-remove-last-refresh-date
uix-hack-3-removing-type-column-from

UIX Hack 3 - Removing the 'type' column from a portlet

This came up recently on the OTN Discoverer forum ----> http://forums.oracle.com/forums/forum.jspa?forumID=56, where the poster asked how to remove the 'type' column from the List of Worksheets portlet.
"Is there a way to remove the "Type" column from Discoverer List of Worksheets portlet? I can see where to remove Modified Date, Creation Date, etc., but it doesn't from there allow me to remove the "Type" column. My users don't care whether it's a Workbook or Worksheet, and it's taking up valuable page real estate."

While there is no way to remove this using the UI, yet (there is a reason why the 'type' column is mandatory), UIX makes it possible to remove this column.

See my earlier posts about UIX and some other UIX hacks - "UIX Hack 1 - Removing the 'Connect Directly' section" and "UIX Hack 2 - Remove the Last Refresh Date from Discoverer Portlets".

And very importantly, here is the disclaimer, and warning:

  • I am NOT suggesting that you go around and muck with these UIX files.
  • Any changes you make to UIX files are unsupported.
  • Oracle Support will not support your installation if you run into problems as a result of making changes to these UIX files.
  • You will have to reproduce any errors on an instance without these UIX changes for Oracle Support to help you.
  • Any upgrades or patches you apply may overwrite custom changes you make to your UIX files.
Take the screenshot below, where you have a simple List of Worksheets Discoverer portlet. What you do not want is for the 'Type' column to appear.

The UIX file you have to edit is located under your installation's "\j2ee\OC4J_BI_Forms\applications\discoverer\discoverer\uix\list_of_worksheets" folder, as shown below. The file you have to edit is "show_list_of_worksheets.uix". Note that I have made a backup of my file, BEFORE doing any editing - as should you.There are two (2) lines of code that you have to remove, as shown below.

and


Be sure to delete only two lines, and the correct ones, as shown above.

After you are done deleting these two lines, save and close the file. Then go to your Application Server Control and restart your 'OC4J_BI_Forms' component. Once the component has been restarted, refresh your Portal page.
If you did everything right, and there really wasn't all that much to it anyways, your LOW portlet should now look like the image below: just the worksheet/workbook name and no 'type' column.

Phase 2 available on Windows also

link. The download is 3 CDs large (1.8GB - CD1: 643,932,847 bytes, CD2: 639,731,241 bytes, and CD3: 638,443,773 bytes, if you must know.). As I wrote in an earlier Checked OTN this morning, and saw that the Windows version of Phase 2 is also available now for download . Look under the Oracle Application Server 10g Software Downloads ----> http://www.oracle.com/technology/software/products/ias/index.html page. Click the Oracle Application Server 10g Release 2 (10.1.2.0.2) ----> http://www.oracle.com/technology/software/htdocs/devlic.html?http://www.oracle.com/technology/software/products/ias/htdocs/101202.html post, this gives you the ability to install Discoverer in the same Oracle home as the rest of the application server. Also new are updated releases of Reports and Forms.

10.1.2.0.2 - Phase 2 is now available on OTN

The download page has also been improved: makes it easier to find the specific component(s) that you want to download.
Oracle Application Server 10g Release 2 (10.1.2.0.2) ----> http://www.oracle.com/technology/software/products/ias/htdocs/101202.html

If you want to install just Discoverer Plus and Viewer, and do not want to associate it with an infrastructure, you should use the Business Intellence option (shown below). This also has a smaller download footprint - 1GB.
If you want to use Discoverer portlets, public connections, SSO, etc... then the full installable is what you need:
The Windows version is not yet available, but should be out soon enough (don't have dates yet).

A first look at installing Discoverer using the Oracle Application Server - 10.1.2.0.2 (Phase 2)

Now that phase 2 of the Oracle Application Server 10g R2 is nearing release, it would be useful to take a look at the installation procedure. For the most part the installation is the same as previous releases. However, those who have installed the 10.1.2.0.0. release, aka 'Drake', would have noticed that the BI & Forms installation option was no longer available when installing the Enterprise Edition of the Oracle Application Server. To install Discoverer one had to install it in a standalone mode, using Oracle Business Intelligence. This was the good thing - as it meant that Discoverer Plus and Viewer could be installed without the additional (and substantial) overhead of an infrastructure. Of course, it also meant that such functionality as public and private connections, SSO, OID, Portlets, etc... would not be available as these rely on an infrastructure (Identitiy Management and Metadata Repository). To get these benefits one had to associate the middle tier with an infrastructure. And if you wanted Discoverer portlets, you would have to install Oracle Application Server in another Oracle home; which meant that you could end up with three different Oracle homes. In the phase 2 release, one of the biggest changes in the installation over 10.1.2 phase 1 is that the familiar BI & Forms install type makes a reappearance, so that you do not have to install Discoverer in a separate Oracle Home and then associate it with an infrastructure. One single Oracle home will give you Discoverer as well as Portal. Note that the option to install Discoverer in a standalone mode still remains: you can always download Oracle Business Intelligence and install it.

Instead of having a separate home for the rest of the app server components like Portal, and another home for Discoverer, you can now install both these components in a single Oracle Home (as in previous versions like 9.0.2 and 9.0.4).

Selecting the Oracle Home to install the mid tier in


Assuming that you have already installed your infrastructure, you can straightaway select the first option - Oracle Application Server 10g - as the product to be installed.

Selecting the product to install


The Business Intelligence and Forms install type is back in phase 2!

With phase 2 - 10.1.2.0.2 - the BI & Forms install type makes its reappearance


Since I need to use Discoverer portlets I have checked Portal. I don't plan on using Wireless or Reports or Forms functionality on this instance, hence I have kept them unchecked. Note that I can always go back and install these components after installation. I don't need to do an uninstall and re-install.

At a minimum select Portal and Discoverer. The Portal component is needed to allow you to publish Discoverer portlets


Since this installation will require to be associated with an infrastructure, I have to specify the host name where the infrastructure is installed.



I can now specify the OID login (my infrastructure orcladmin password) to allow the middle tier to be associated with the infrastructure's IM.

OID login information.


Nothing new in this screen: you specify a unique instance name and a password.

Instance name and password


Before the installation begins you are shown a list of all products and components that would be installed.

List of components that would be installed


Notice the Discoverer version - it is not 10.1.2.0.2 as one may expect, but 10.1.2.1.0.
Ready for some version soup? Here goes: the Discoverer Plus / Viewer version itself is different! At the time I took these screenshots we were testing the 10.1.2.48.16B shiphome.
So the Oracle Application Server version is 10.1.2.0.2. The Discoverer version is 10.1.2.1.0. And the actual Plus / Viewer version is 10.1.2.48.16 (or 17 0r 18 etc...)!
Here is how it works: basically any component that was present in 10.1.2.0.0 but has been change because of bug fixes or UI changes, etc... is renamed to 10.1.2.1.0. Any components that are new to phase 2 are named 10.1.2.0.2. Unchanged components still carry the 10.1.2.0.0 version number. Trust me, I have to refer to my emails and notes to get this right! Who says the tough part of software is writing it?!

Notice the high level version number for Discoverer - 10.1.2.1.0


If your standard web port 80 is free, then the middle tier will use this port. Makes life much simpler as you do not have to type in the port number after the host name. Asking users to type in a port number like 7777 or 7779 is simply asking too much from end users.

The mid tier port and OEM port numbers



Note: these screenshots are based on pre-production software, so all the usual caveats about this being subject to change, etc... apply.

Featured Video