Saschinvoke in obiee11g

Saschinvoke is the command line utility in obiee to invoke Jobs in obiee scheduler. Typical use of this command involves invoking cache seeding ibots at the end of nightly etl loads.

in 10g, this command was invoked by passing the username of administrator and password as parameters.

$saschinvoke -u Administrator/password -j 1

In 11g, passing password as a parameter does not work. The command prompts for password and the user has to enter it to successfully invoke the jobid. This behavior will cause trouble in automating the cacheseeding scripts. The below work around addresses this issue.

$echo password|saschinvoke -u weblogic -j 1

Note: note the use of pipe character |. No space between | and the password.

Hope you find this useful



OBIEE11g Refresh GUIDs

Refreshing GUIDs

1. Perform the below steps on the Target Machine (new),before loading RPD&Catalog on BIservers (CAUTION: Please note this has to be done before loading on BIServers. Loading could corrupt the catalog and take away permissions assigned on objects)
2. Get the RPD&Catalog to target Machine. Make sure the BI Servers are down
3. Add/Update the below in instanceconfig.xml










4. Add the below in NQSConfig
5. Save both files
6. Open EM and load RPD and Catalog. Click Apply and Click Activate Changes. Don’t restart from EM
7. Go to Command line and using opmnctl restart the servers
->opmnctl startall
Wait for ~5 minutes. (This time is needed to start all the servers. Later the Presentation server will be stopped automatically)
->opmnctl stopall
8. Once the servers are down, UNDO the changes done in both config files. Start the servers again
->opmnctl startall

You should not face any Authentication or access denied to ‘My Dashboard’ error


Integrating MS Active Directory with OBIEE 11g in Weblogic Server

Business Problem

Business wants to leverage the existing MS Active Directory for Authentication in OBIEE 11g. In addition to this IT wants flexibility in adding users like DEV1, QA1 etc for system development without adding these users in the enterprise Active Directory. This means basically two Authentication Providers 1. MSAD and 2. The Out-of-the-Box WLS LDAP

In 10G, we had the option of integrating MSAD (Microsoft Active Directory) in OBIEE RPD and also users like Dev1, QA1 could be added in RPD.  However in OBIEE 11G while LDAP integration is still available in RPD, the recommended way is to do this in the Weblogic Server. Adding Users and Password in RPD is not possible in 11G

Going by the Oracle Documentation there is a lot of confusion w.r.t this subject. This blog is the answer.



This solution assumes you have successfully installed OBIEE on Windows XP and the SampleAppLite application is up and running. The default user weblogic should be able to login to OBIEE. In Active Directory a user by the name ‘BISystemUser‘ has to be created. – This is very important. Once the Pre-requisites are done, please proceed with the below steps.

(This solution is taking the simplest route i.e rather than creating a new TrustedUser to replace  ‘BISystemUser’ , I created a user with the same name ‘BISystemUser’ in MSAD. This will avoid finding and replacing all the occurrences of BISystemUser with a different TrustedUserName)

1.  Logon to WLS (WebLogicServer) and navigate to Security Realms->myrealm->Providers Tab

2. Click on Lock&Edit from the left Pane and then click on ‘New’ button to add a new Authentication Provider.

2.1 Supply the details as shown below

2.2 You should now be able to see the new Authentication Provider as shown below

2.3 Click on MSAD and in the new screen set the Control Flag:SUFFICIENT

2.4 Click on ‘Provider Specific’ tab and input the MSAD Specific Details

The main entries in the above screen are listed below (NOTE: This varies based on your company’s specific details)



Port 389

Principal: CN=obiee-svc,CN=Users,DC=corp,DC=YOURCOMPANY,DC=com

User Base DN: CN=Users,DC=corp,DC=YOURCOMPANY,DC=com

All Users Filter: (&(sAMAccountName=*)(objectclass=user))

User From Name Filter:(&(sAMAccountName=%u)(objectclass=user))

User Name Attribute:sAMAccountName

User Object Class: user

Group Base DN:CN=Users,DC=corp,DC=YOURCOMPANY,DC=com


You can copy the existing entries from your 10G RPD, if you had set this up before in 10G.

The main things to note here would be ‘Principal’ which was known as Bind User in 10G. Also change the User Name Attribute to sAMAccountName. Make sure this change is also made in ‘All Users Filter’ and ‘User From Name Filter’. I also changed the Group Base DN. Having done this, now you should be able to see the users from your AD in the ‘Users and Groups’ tab. If you are not able to , then you didn’t enter the entries listed above correctly. Try changing it, also try it out within the RPD to make sure all the entries are supplied correctly.

3. Now in the ‘Providers’ tab click on the ‘DefaultAuthenticator’ and change its Control Flag to OPTIONAL

4. Reorder the Authentication Providers so that ‘MSAD’ comes as the first.

Click on Activate Changes. You might need to restart the WLS.

5. Logon to WLS (myrealm->Users and Groups tab)and make sure you see two ‘BISystemUser‘, The first one belongs to the defaultAuthenticator and the second one is from the MSAD. Delete the BISystemUser of DefaultAuthenticator

6. Logon to Enterprise Manager (EM) and goto WebLogic Domain->Right-click on bifoundation_domain to reach Security->Credentials

6.1 Update the password of BISystemUser to the value set in MSAD

6.2 Goto WebLogic Domain->Right-clicked on bifoundation_domain to reach Security->Security Provider Configuration.Click on the ‘Configure’ button under ‘Identity Store Provider‘. Add three Properties as below

user.login.attr=sAMAccountName, username.attr=sAMAccountName, virtualize=true

NOTE->If  virtualize=true is NOT added, then only MSAD users will be able to login. (since MSAD is the First Authenticator)

7. Restart WLS and restart BIServer Components from EM.

8. Thats it. Now the MSAD users and the WLS LDAP users will be able to login.



OBIEE Metadata Dictionary

Business Problem

How can I find the physical column behind each column in Answers. How can I know the business logic used to compute the metrics.  These type of questions mostly arise form the BI Analysts who were not part of implementing the OBIEE Solution.


There is a new feature available in OBIEE called Metadata Dictionary. Implementing this feature will alllow users of OBIEE to trace down a Presentation Column in Answers to the Logical Column and finally to the Database column

Metadata Dictionary in OBIEE


  1. Logon to the RPD in Offline mode and generate the metadata using Tools->Utilities->Generate Metadata Dictionary. Specify a directory when Prompted to store the dictionary. A folder named ‘dictionary’ will be created in the specified location. The ‘dictionary’ folder will contain a sub-folder with name =
  2. Go to your Analytics Virtual Directory and place the ‘dictionary’ folder generated in step 1 inside it. If you are using OC4J, the virtual Directory would be C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res
  3. Restart your Servers and Go to Answers. You will see a new Icon to the right of every Subject Area. The same Icon will also appear besides each folder.

See the Dictionary Icon to the right of Subject Area name

Click on the Icon and a new window will open displaying the metadata. Drill down on a specific item to navigate to the details

Leave a comment

Data Dictionary

Business Problem

” What does this data mean?

What exactly is captured in this metric?

How is it calculated?

Who owns the formula, Who Owns the definition? 

As a Business Intelligence Professional these questions would be asked frequently by the end users of your application. On top of your head for some of the columns/data  you know the definition and for others you might need to get back to them after digging all the requirements and design specs (if any). It could be a bit embarrassing when you have classy dashboards and reports and you are stuck when an user during a demo asks “Hey what exactly is this?”.  Data Dictionary is the solution.

Having a Data Dictionary available on demand or on the dashboards is a huge step forward in getting the users adopted to your application. There is no ‘Out of the Box’ Data Dictionary solution available with OBIEE. In this blog, I will share how I have implemented a  Data Dictionary and exposed it in Dashboards/Answers  by leveraging the existing OBIEE infrastructure.


At a high level,store the definitions in a file, load the file contents into a Database table, import the Table into OBIEE RPD, expose in Answers, create data definition reports.

Step 1: The Data Definitions for each column has to be stored in a Text file (tab delimited). This file should contain the columns exposed in Dashboards/Reports and their definitions. The file I made have the following 5 columns

1. Column Name (The name of the Presentation column)

2. Column Synonym ( Is this column known by any other names? If so populate this column as well)

3. Data Definition (The Business Definition of the data contained in the column)

4. Definition(contd..)  (Make use of this field to explain more details about the column)

5. Subject Area (Presentation catalog Name)

Depending upon your specific business needs you can add more columns. The reason why I chose tab delimited file instead of CSV is that, the definitions will contain commas and this could be problem for .csv loading using ETL or other tools

Step 2: Once the file is ready, populate a Database table sourced from the file, import to RPD and expose in Answers in a new Subject Area called ” Data Definitions” or Data Dictionary” or whatever you would like to name this.

Step 3: Create Data Definitions Report for each Dashboard Page. Ex. If you have 5 columns in a dashboard, create a Report with the Data Definition Columns of Step 1 and make use of the request filters so that only the columns shown in a dashboard page exists in the report.

Step 4: Expose this report in the dashboard page as a link.

Simple Solution. Highly Effective. My Business users love it

Leave a comment

OBIEE Best Practices

In this blog I will pen down some of the best practices to follow while implementing OBIEE solutions. This blog talks mostly about the technical practices applicable to OBIEE Repository Modeling, Dashboards and Requests Design. I will talk about the data modeling in a separate blog.

OBIEE Physical Layer
  1. Try to always import tables and columns into Physical layer rather than creating it manually.
  2. This will ensure correct data types are set for each column. This is particulary useful when there is confusion between DATE and DATETIME
  3. For each Physical Dimension table there should be a Primary Key and only one. For Fact Tables, there is no need to create a Primary Key.
  4. If only composite key is present create a single Physical key and add all the composite key columns in it.”
  5. Minimize Opaque Views (SELECT statements) in Physical Layer.
  6. Create Tables (recommended) or  Materialized views in data-warehouse instead
  7. Always use Foreign Key Joins in the Physical layer. Avoid using complex joins with conditions.  Complex joins are not good for performance and should be avoided. (there are a few exceptions for this case when we work with Type 2 SCD)
  8. Always try to use Number-Number join. This will work faster than a varchar-varchar join.
  9. Avoid using CAST functions in the join expression. This will destroy the usability of the Database indexes created on that column.
  10. Avoid any filter conditions in the Join.
  11. These filter conditions can in turn be added in the LTS (Logical Table Source) ‘Where’ clause content filter or as request filter in Reports
  12. Facts should not be joined . This will result in Cartesian Product leading to double counting and summing.
  13. Use conforming Dimensions instead
  14. Connection Pool considerations (15-18)
  15. Require fully qualified table names should be unchecked
  16. Enable Connection Pooling should be checked
  17. Execute queries asynchronously should be checked
  18. Create a separate Connection Pool for Initialization Blocks
  19. Keep Cache persistence time of all tables as Infinite
  20. The columns used in Joins should be set to “NOT NULL”
  21. The database Features tab should be set correctly with the Parameters supported by your backend database.
  22. If both are not in-sync then lot of processing will be done in the BI Server instead of the Database. This affects Performance. Pay particular attention to Locale. (They are case-sensitive).Mismatch of Locale can cause the sorting to be done in OBI Server instead of DB and performance take a bad hit !
  23. DERIVED_TABLES_SUPPORTED in database features tab should be checked for Oracle Databases. This will ensure that Proper function shipping will happen to the DB in case of TOP(N) and Rank functions
  24. Create Display folders to group tables according to STAR or Releases
  25. Set Different Icons on objects for each Release of the Code. This will ensure in finding which entity was added in which release
  26. Don’t Leave the Description field empty. Write some meaningful descriptions of the object. This will help a lot in later trouble-shooting and Impact Analysis
  1. Minimize the use of Snow-Flakes. Always go for Star Schemas.
  2. Always use Complex joins here. It allows OBI Server to make best decision about the exact Physical SQL to be generated based on Logical Query Path. In contrast to a Physical FK join, which forces a single join path between tables. If joined tables were dragged from Physical Layer, replace FK Joins with complex Joins
  3. Create Dimension Hierarchies for every Dimension in the Business Model
  4. Even if a meaningful hierarchy definition cannot be thought of, just create one with the Grand Total Level and Detail Level. “
  5. For Dimension Hierarchies the ‘Number of Elements at this level’ should increase from 1 at Grand Total to the corresponding distinct values at each level. This can be approximate values; need not be the exact ones.
  6. Define Keys at each level of the Hierarchy.
  7. The Content tab of each of the LTSs in Fact should be set to the related Dimension’s Logical Level
  8. Combine all attributes that describe a single entity into a single Logical table
  9. Never Delete logical columns that map to keys of Physical dimension tables
  10. Don’t keep unwanted Physical columns in the Logical Layer
  11. Give Meaningful Names to the Logical Columns. Avoid assigning a logical column the same name as a logical table or Business Model object.
  12. Make proper use of the where clause Content filter of the LTS to minimize number of records returned.
  13. Minimize the use of Conditional Checks and ‘CASE WHEN’ usage in the formula of Logical Columns. This will affect performance. Instead make proper use of the where clause Content filter of the LTS if the condition applies to all the columns/measures in the logical table
  14. When Creating a logical column based on other logical columns , make sure all the columns in the expression is from the Same logical table, same LTS
  15. Make proper distinction between Count and Count Distinct. If you are counting on a unique value column don’t use Count Distinct. This will affect performance
  16. Minimize the use of Outer joins within LTS. This is resource consuming. Use default zero ROW_WID records at the database instead.
  17. Make sure a particular Report only refers one LTS in a Logical Table. Or the different LTSs should be at the same level
  18. Avoid dimensions in Fact tables and avoid measures in Dimension Tables
  19. Create Display folders to group tables according to STAR or Releases
  20. When using Out-of-the -Box Vanilla RPD, remove unwanted Logical Tables and Hierarchies. This will minimize the time needed for Consistency Check
  21. Specify the most Economical Source when there are multiple LTSs for a Dimension
  22. Whenever you do Consistency Check, Right Click the Changed Business Model Object and go for Check Consistency rather than using the Global Consistency Check. This will minimize the time needed for Consistency Check
  23. Arrange the logical columns alphabetically. This will save time when you revisit.
  24. Fix the warnings if any, don’t ignore it
OBIEE Presentation Layer
  1. Catalog should map to one BMM Object only
  2. Use Parent Folders and Sub folders to group Facts and similar Dimensions together
  3. Avoid the use of Aliases when a new Presentation Column is created
  4. The Presentation Columns in a table should be sorted alphabetically if no specific order is asked by the customer
  5. Get Customer Sign-off of the Presentation layer structure before building reports. This will avoid later replacements of columns which affects the reports constructed.
  6. Make proper use of the Permissions in this layer
  7. Don’t use Double quotes (“) in Column name, though its permitted
  8. Presentation columns should not have the same name as Presentation Table.
  9. Eliminate unneeded objects to reduce user confusion
  10. Limit # of objects in folder to 7-12
  11. Use Object  description field to convey information to users when they hover the mouse in Answers on a Presentation column.
  12. Keep names short to have space on reports



Get every new post delivered to your Inbox.