A collection of OBIEE / OBISE stuff from 101 till 404. I just put the things here I run into.
Wednesday, September 30, 2009
OBIEE Open a Linux-Hosted OBIEE Repository in Online Mode (repost)
Update: Do not use spaces in your System DSN names. You will get an error when trying to connect to that server.
This article has quite a few screenshots, so continue reading by clicking below:
All you need to do is create a new System DSN: Go to Start > Run…, and type odbcad32, then press enter (or open ODBC Data Sources from Administrator Tools).
Click the System DSN tab and click Add:
Choose Oracle BI Server as the Driver:
Give the DSN a Name (no spaces) and optionally a Description, and specify the hostname of your BI server, then click Next:
Type a login ID and Password for your repository, and specify the BI Server Port. Check the option “Connect to Oracle BI Server to obtain default settings…” to make life easier, and click Next:
Accept the defaults if you’re happy with them, and click Finish:
You’ve now added a new System DSN to your local machine and are ready to open the repository in Online mode:
In the Administrator tool, choose the blue folder to open in online mode, and choose the DSN you just created from the list below the login prompt. Enter your login details and click Open to work on your repository in Online mode:
Of course, as the OBIEE documentation recommends, I would only use Online mode for making small changes to your repository. Any significant amount of work should be done in offline mode.
This article was original posted on the Kevin C. oraclebi blog. See: http://obiee101.blogspot.com/2009/09/obiee-blog-lost.html
Till Next Time
Monday, September 28, 2009
OBIEE When the Top N Filter fails… (repost)
My requirement is to only show data for the past 6 weeks. I have a base table that has massive amounts of weekly data, designated by a column week_ending. At first, I thought I could simply add a Top N filter for "Week Ending" in Top 6. This didn’t work however, since I have multiple rows containing the same date - it only returned data for the latest date in the table (which makes sense, because that date would be the same for each of the Top 6 since it occurs many times). I also tried using the DISTINCT keyword in various places in the filter formula, as well as in the column definition - still no luck.
What I ended up doing was the following:
- I decided to turn to SQL to give me the results I need. I started by building a query that gave me the Top 6 dates in my base table:
SELECT * FROM (SELECT DISTINCT week_ending FROM base_table ORDER BY week_ending DESC) WHERE rownum <= 6; WEEK_ENDING ------------------------- 13-JUL-08 06-JUL-08 29-JUN-08 22-JUN-08 15-JUN-08 08-JUN-08 6 rows selected
Next, I used the query above in the WHERE clause for a view:
CREATE OR REPLACE VIEW top_six_weeks_vw AS SELECT * FROM base_table bt WHERE bt.week_ending IN (SELECT * FROM (SELECT DISTINCT week_ending FROM base_table ORDER BY week_ending DESC) WHERE rownum <= 6);
Now, simply model this view in the OBIEE Repository, and your Answers reports will only display the latest 6 weeks worth of data.
This article was original posted on the Kevin C. oraclebi blog. See: http://obiee101.blogspot.com/2009/09/obiee-blog-lost.html
Till Next Time
Saturday, September 26, 2009
OBIEE Using the Top N Filter (repost)
This can easily be acheived by using a simple “in Top N” filter:
What if you want to see the Top 5 Customers by Revenue for each Product? Using a simple Top N filter won’t work in this case, as it will produce the following results:
To get OBIEE to show the correct results, you need to take the Top N filter into SQL mode. Starting with a normal Top N filter, click Advanced at the bottom of the filter window and select Convert this filter to SQL:
Next, edit the filter with the by clause enclosed in red - unfortunately you’ll have to type the column name in manually, so be sure to use quotes if the column or presentation table contains spaces. The column used here is the field you want to group by (Product, in this example):
Now, the Top N filter will give the desired results - The Top 5 Customers by Product:
The full request criteria (notice the sorting options used to produce the results above):
This article was original posted on the Kevin C. oraclebi blog. See: http://obiee101.blogspot.com/2009/09/obiee-blog-lost.html
Till Next Time
Thursday, September 24, 2009
OBIEE Grand Totals with Calculated Columns (repost)
Consider the following report:
In this report, Amount A and Amount B are standard columns in a database table, and Variance is a calculated column in the repository. The calculation for Variance is 100 * (Amount B - Amount A) / Amount A. So, going by the Grand Total amounts in the report above, 100 * (696 - 550) / 550 = 26.55.
Suppose you want to filter the results of this request so that it only shows items having a Variance greater than 30:
Note the Grand Total for Amount A and Amount B are summed correctly for the filter, but the Variance still shows 26.55. Obviously, this is incorrect, so what’s going on here? The filtered amount should be reported as 100 * (220 - 130) / 130 = 69.23.
If you want to show the correct variance for the filtered Grand Total amounts, you need to enable an option in your instanceconfig.xml file. Open the file $OracleBIData/web/config/instanceconfig.xml, and add the following line somewhere inside your <ServerInstance> and </ServerInstance> section:
<ReportAggregateEnabled>true</ReportAggregateEnabled>Save instanceconfig.xml, and restart your BI Server and Presentation service.
Make sure you don’t accidentally put this inside an element nested inside <ServerInstance>, or it won’t work.
Now, the correct amount should be shown for the filtered Grand Total variance:
This was previously a bug in OBIEE that was addressed by adding the ReportAggregateEnabled option. It’s not really documented anywhere other than on Metalink, so hopefully this will be helpful to someone.
This article was original posted on the Kevin C. oraclebi blog. See: http://obiee101.blogspot.com/2009/09/obiee-blog-lost.html
Till Next Time
Tuesday, September 22, 2009
OBIEE Tooltip Text in Column Heading
comes along, and most of the time the conclusion is that it can’t be done without some serious JS hacking. Here is a workaround which takes a little bit less effort:
First create an extra column containing your ToolTip text and column header like:
'<div title="This text explains the contence of the column">1-01 Revenue (Sum All)</div>'
Set the display format to HTML:
Put the result in a pivot table:
Till Next Time
Edit: Here is an even quicker method:
http://obieepractice.blogspot.com/2008/11/column-headerooltip-mouse-over.html
OBIEE LDAP Problems? Try this! (repost)
After going through many rounds of trying to figure this problem out, we filed a ticket with Oracle Support. About 3-4 weeks later our problem was solved - we needed to set the environment variable LD_PRELOAD. Apparently this was not being set after our attempted upgrades to 10.1.3.4.
LD_PRELOAD is a way of setting the priority of certain libraries, it loads the specified library first. This is called interposing libraries. Suppose you have an application that makes a call to some function that exists in multiple libraries. If you use LD_PRELOAD to load a particular library first, then the application will go to that library and use its functions, instead of some other library. LD_PRELOAD essentially replaces the functionality of another library.
So the actual problem was traced back to a possible symbol clash that occurs between libraries called by the application (OBIEE), and other 3rd party libraries. Our LDAP user logins are in the format of an email address, so it’s possible the mailto:%27@%27 symbol could causing the issue - I’m really not sure.
We ran the command:
export LD_PRELOAD=/path/to/libibmldap.so
Then we restarted the BI Server and Presentation services, and the problem went away!
This article was original posted on the Kevin C. oraclebi blog. See: http://obiee101.blogspot.com/2009/09/obiee-blog-lost.html
Till Next Time
Sunday, September 20, 2009
OBIEE a blog lost….
First of all I want to wish Kevin all the best for the future.
In the next days I will repost his OBIEE related articles under the normal labels and add a special KEVIN C tag.
Till Next Time
Saturday, September 19, 2009
OBIEE ODBC Client
One of the features you get when doing an OBIEE install on windows is the ODBC Client application.
I never had any use for it until I saw some entries by Nicolas and @lex on some ‘secret’ procedures.
http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_nqs_drill
http://siebel-essentials.blogspot.com/2009/08/oracle-bi-server-nqs-procedures.html
It appears to by a demo/check tool to test your sql when developing a application which uses a ODBC connection to the BI-server. I couldn’t find any documentation, so tips pointers are welcome.
After starting the application you have to click:
File > Open Database to make a connection:
The usage of the database field is unclear for me at the moment.
From the utility menu you can directly test your BI-server sql:
From the View Schema you get an very unusable info of the catalog:
I couldn’t get the query list to work….
It seems this is a R&D/Q&D tool for the development team which somehow made it’s way into the production release. I you have some more info or usage- for it please let me know.
Till Next Time
Friday, September 18, 2009
OBIEE Patches 10341
Some interesting patches for 10341 are out:
8599681
Oracle BI Suite EE: Patch
DATE FORMAT ISSUE ON THE DASHBOARD PROMPT
8284585
Oracle BI Suite EE: Patch
NAVIGATION/DRILL DOES NOT WORK WHEN THE COLUMN BEING DRILLED IS IN POSITION 11+
8796912
Oracle BI Suite EE: Patch
DISCONNECTED DOESN'T WORK ON VISTA AS NON-ADMIN USER
8669206
Oracle BI Suite EE: Patch
FIREFOX 3.0 REFRESH FAILURE CAUSES UNEXPECTED BEHAVIOR IN DRILLING/VIEW SELECTOR
8743856
Oracle BI Suite EE: Patch
EXECUTION PLAN DOES NOT UPDATE LAST TASK AS COMPLETED
8685156
Oracle BI Suite EE: Patch
BLR BACKPORT OF BUG 8394579 ON TOP OF 10.1.3.4.1 (BLR #147542)
8650261
Oracle BI Suite EE: Patch
BLR BACKPORT OF BUG 8595693 ON TOP OF 10.1.3.4.1 (BLR #143831)
8685120
Oracle BI Suite EE: Patch
MLR BACKPORT FOR BASE BUGS 8680924 8674235 8608837 8567128
8633968
Oracle BI Suite EE: Patch
MLR BACKPORT FOR BASE BUGS 8331209 8371708 8372436
8616993
Oracle BI Suite EE: Patch
BI OFFICE PATCH
6702999
Oracle BI Suite EE: Patch
REPORT AGGREGATE - RANK HAS DIFFERENT BEHAVIOR VS RANK WITH AGGREGATE
8611209
Oracle BI Suite EE: Patch
MLR BACKPORT FOR BASE BUGS 8332167, 8290868, 8350962
8238481
Oracle BI Suite EE: Patch
NQSERROR14026 OCCURED IRREGULARLY
8439796
Oracle BI Suite EE: Patch
PRIVILEGE ERROR DISPLAYED ON SELECTION OF DELIVERS RECIPIENTS
Till Next Time
Sunday, September 13, 2009
Got the flu
For all of you waiting for an answer at the moment: I’m having flu at this moment: (“Dutch” style)
Please be patient or post urgent questions at the OTN forum: http://forums.oracle.com/forums/forum.jspa?forumID=378
EDIT: 19/09/2009 Sort of feeling better now, still got the sniffles. Thanks everybody for the wishes!
Till Next Time