Thursday, February 17, 2011

OBIEE11g Customisations Directory

Doing look and feel customisations in OBIEE11g is not harder then in then 10g, you just need to pay attention where you put stuff. Since the weblogic server tend to overwrite stuff during startup and or updates it’s good practice to have a special directory for your customisations. Here is how you do it in WIndows XP.

First create a new folder say D:\OBIEE11gCustom

image

Set the security so that everbody can see it, if neccesary make it shared:

imageimage

Next step is to add the folder to the instanceconfig.xml file:

image

[Code]

<URL>

<CustomerResourcePhysicalPath>D:\OBIEE11gCustom</CustomerResourcePhysicalPath>

</URL>

[/Code]

In the next article I will show you how to expose it from the weblogic server.

Till Next Time

Thursday, February 10, 2011

OBIEE Sort order in RPD

Don’t panic if the column order in your RPD suddenly has changed from:

image

to

image 

First check if someone (you?) has been playing with the sort options:

image

Tools > Options > Sort Objects

Till Next Time

Monday, January 10, 2011

OBIEE Using a MSSQL stored procedure as datasource adding a variable:

If our stored procedure uses a variable:

[code]

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:        John Minkjan
-- obiee101.blogspot.com
-- =============================================
ALTER PROCEDURE sp_dim_Accounts   
@UserName varchar(50) = 'me'
AS
BEGIN
    SET NOCOUNT ON;
    SELECT     dim_Account_ID, Account_Code, Account_Name, @UserName as USERNAME
FROM         dim_Accounts
END
GO

[/code]

You can add the variable by using the VALUEOF() procedure:

 image

@VARIABLENAME = N’VALUEOF(NQ_SESSION.VARIABLE_NAME)’

Till Next Time

Saturday, January 8, 2011

OBIEE Using a MSSQL stored procedure as datasource

A MSSQL stored procedure can return a table. You can use this table as a normal datasource in your repository.

Let’s  create a basic procedure

[code]

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:        John Minkjan
-- obiee101.blogspot.com
-- =============================================
CREATE PROCEDURE sp_dim_Accounts   
AS
BEGIN
    SET NOCOUNT ON;
    SELECT     dim_Account_ID, Account_Code, Account_Name
FROM         dim_Accounts
END
GO

[/code]

In the repository create a new table:

image

Make the type stored procedure:

image

Add the columns manually:

image

Add the execute script:

image

EXEC [DATABASE_NAME].[SCHEMA_NAME].[PROCEDURE_NAME]

You will see that the table symbol has changed:

image

You can now join it as a normal table to the rest of your model.

Till Next Time