Thursday, November 7, 2013

OBIA Configuration SQLs

EBS Configuration SQL

 
1) Determine NLS_LANG
 
SELECT * FROM V$NLS_PARAMETERS WHERE PARAMETER IN ( 'NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET' )
 
2) Determine up Currency code
 
Select currency_code from gl_set_of_books where consolidation_sob_flag='Y'
 
3) Get SOB  - To Limit ETL to a set of books
 
select set_of_books_id, name
From gl_set_of_books;
 
 
4) Limit $$INitial Extract Date
 
SELECT PERIOD_YEAR,
       PERIOD_NUM,
       to_char(START_DATE, 'YYYYMMDD')
from   GL_PERIOD_STATUSES
where  set_of_books_id = '289'
and    period_year between 2002 and 2009
and    application_id = 101
and    adjustment_period_flag = 'N' order by period_year, period_num;
 
5) Determine Code Combination for a Chart of account and list natural accounts within this COA  
 

This query gives us a list of the code combinations that make up an COA and we need to find the flex_value_set_id for the natural account, enter the sob as a parameter to this query
 
 
Column Name Segment Name Natural Account Flex_Value_Set_Id
Segment1 Organisation

Segment2 Cost Centre

Segment3 Account Y 1007947
Segment4 Analysis

Segment5 Output

Segment6 Public Services

 
 
SELECT sob.name sob_name,  sob.set_of_books_id sob_id,  sob.chart_of_accounts_id coa_id,  fifst.id_flex_structure_name struct_name,  ifs.segment_name,  ifs.application_column_name column_name,  sav1.attribute_value balancing,  sav2.attribute_value cost_center,  sav3.attribute_value natural_account,  sav4.attribute_value intercompany,  sav5.attribute_value secondary_tracking,  sav6.attribute_value GLOBAL,  ffvs.flex_value_set_name,  ffvs.flex_value_set_id
FROM fnd_id_flex_structures fifs,  fnd_id_flex_structures_tl fifst,  fnd_segment_attribute_values sav1,  fnd_segment_attribute_values sav2,  fnd_segment_attribute_values sav3,  fnd_segment_attribute_values sav4,  fnd_segment_attribute_values sav5,  fnd_segment_attribute_values sav6,  fnd_id_flex_segments ifs,  fnd_flex_value_sets ffvs,  gl_sets_of_books sob
WHERE 1 = 1
AND fifs.id_flex_code = 'GL#' AND fifs.application_id = fifst.application_id AND fifs.id_flex_code = fifst.id_flex_code AND fifs.id_flex_num = fifst.id_flex_num AND fifs.application_id = ifs.application_id AND fifs.id_flex_code = ifs.id_flex_code AND fifs.id_flex_num = ifs.id_flex_num AND sav1.application_id = ifs.application_id AND sav1.id_flex_code = ifs.id_flex_code AND sav1.id_flex_num = ifs.id_flex_num AND sav1.application_column_name = ifs.application_column_name AND sav2.application_id = ifs.application_id AND sav2.id_flex_code = ifs.id_flex_code AND sav2.id_flex_num = ifs.id_flex_num AND sav2.application_column_name = ifs.application_column_name AND sav3.application_id = ifs.application_id AND sav3.id_flex_code = ifs.id_flex_code AND sav3.id_flex_num = ifs.id_flex_num AND sav3.application_column_name = ifs.application_column_name AND sav4.application_id = ifs.application_id AND sav4.id_flex_code = ifs.id_flex_code AND sav4.id_flex_num = ifs.id_flex_num AND sav4.application_column_name = ifs.application_column_name AND sav5.application_id = ifs.application_id AND sav5.id_flex_code = ifs.id_flex_code AND sav5.id_flex_num = ifs.id_flex_num AND sav5.application_column_name = ifs.application_column_name AND sav6.application_id = ifs.application_id AND sav6.id_flex_code = ifs.id_flex_code AND sav6.id_flex_num = ifs.id_flex_num AND sav6.application_column_name = ifs.application_column_name AND sav1.segment_attribute_type = 'GL_BALANCING' AND sav2.segment_attribute_type = 'FA_COST_CTR' AND sav3.segment_attribute_type = 'GL_ACCOUNT' AND sav4.segment_attribute_type = 'GL_INTERCOMPANY' AND sav5.segment_attribute_type = 'GL_SECONDARY_TRACKING' AND sav6.segment_attribute_type = 'GL_GLOBAL' AND ifs.id_flex_num = sob.chart_of_accounts_id AND ifs.flex_value_set_id = ffvs.flex_value_set_id -- comment the next expression to show all books-- currently it show the info for the site level set profile option value-- and    sob.set_of_books_id = nvl(fnd_profile.value('GL_SET_OF_BKS_ID'),sob.set_of_books_id)AND sob.name = 'Progress UK'ORDER BY sob.name,  sob.chart_of_accounts_id,  ifs.application_column_name;
 
 
 
This next query returns all of the natual accounts for the flex_value_set
 
SELECT DISTINCT FND_FLEX_VALUES.FLEX_VALUE_SET_ID, FND_FLEX_VALUES.FLEX_VALUE, FND_FLEX_VALUES_TL.DESCRIPTION,substr(FND_FLEX_VALUES.COMPILED_VALUE_ATTRIBUTES,7,1) AS Account_Type-- FND_FLEX_VALUES.COMPILED_VALUE_ATTRIBUTES,FND_FLEX_VALUES.SUMMARY_FLAG
FROM FND_FLEX_VALUES, FND_FLEX_VALUES_TL, FND_ID_FLEX_SEGMENTS, FND_SEGMENT_ATTRIBUTE_VALUES
WHERE FND_FLEX_VALUES.FLEX_VALUE_ID = FND_FLEX_VALUES_TL.FLEX_VALUE_ID AND FND_FLEX_VALUES_TL.LANGUAGE ='US'AND FND_ID_FLEX_SEGMENTS.FLEX_VALUE_SET_ID =FND_FLEX_VALUES.FLEX_VALUE_SET_ID AND FND_ID_FLEX_SEGMENTS.APPLICATION_ID = 101 AND FND_ID_FLEX_SEGMENTS.ID_FLEX_CODE ='GL#' AND FND_ID_FLEX_SEGMENTS.ID_FLEX_NUM =FND_SEGMENT_ATTRIBUTE_VALUES.ID_FLEX_NUM AND FND_SEGMENT_ATTRIBUTE_VALUES.APPLICATION_ID =101 AND FND_SEGMENT_ATTRIBUTE_VALUES.ID_FLEX_CODE = 'GL#' AND FND_ID_FLEX_SEGMENTS.APPLICATION_COLUMN_NAME=FND_SEGMENT_ATTRIBUTE_VALUES.APPLICATION_COLUMN_NAME AND FND_SEGMENT_ATTRIBUTE_VALUES.SEGMENT_ATTRIBUTE_TYPE ='GL_ACCOUNT' AND FND_SEGMENT_ATTRIBUTE_VALUES.ATTRIBUTE_VALUE ='Y'and FND_FLEX_VALUES.FLEX_VALUE_SET_ID = '1007947'-- Ignore Summary Accountsand FND_FLEX_VALUES.SUMMARY_FLAG = 'N'-- Only Revenue Accounts-- and substr(FND_FLEX_VALUES.COMPILED_VALUE_ATTRIBUTES,7,1) NOT IN ('A','E','L','O') ;

Tuesday, October 15, 2013

OBIEE 11g customise

The information related to style and skin can be found under u01/app/oracle/product/obiee1111/ORACLE_BI1/bifoundation/web/app/res  >> sk_blaf/b_mozilla_4

In this example, we are going to change the logo of BI

1. Added the following to instanceconfig.xml file:

/u01/app/oracle/product/obiee1111/instances/instance1/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/analyticsRes


before



2. http://verisklinux:7001/console. navigate to Deployments > Install. Deploy analyticsRes from

/u01/app/oracle/product/obiee1111/instances/instance1/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1 (see screenhsots)

Activate Changes

 
 
 
 
 


 
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 

 
 
 
3.Start AnalyticsRes. make sure that its status changes to Active.

4. To test my deployment, added test.txt to the analyticsRes folder and access it via
    http://verisklinux:9704/analytics/test.txt

5. Copy the oracle standard skins to my deployment folder
cp "/u01/app/oracle/product/obiee1111/Oracle_BI1/bifoundation/web/app/res/sk_blafp/" /u01/app/oracle/product/obiee1111/instances/instance1/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/analyticsRes/sk_verisk

6. Edit instanceconfig.xml and add the following:
    verisk

7. Restart BI Services

Tuesday, October 8, 2013

Efficient idea on how to implement a report that shows the impact of column (at all levels) on reports in OBIEE PS:

http://www.kpipartners.com/blog/bid/151016/Build-OBIEE-Reports-For-Impact-Analysis-Data-Lineage

Monday, March 18, 2013

Suspension

I haven't posted here in a very long time; not because I am not into OBIEE anymore but because I have taken the role of BI Lead Consultant in CapGemini FS and this translates into hardly having any time for blogging anymore. I have tones of articles that I could write about and I come across so many interesting situations that would be worth sharing but unfortunately time is so limited that probably I will post only once in a while

'Till free(er) times.

OBIA Software Requirements

Certification

Software Downloads on eDelivery

The software requirements for OBIA can be mainly be downloaded from edelivery.oracle.com or otn.com:
 
edelivery.oracle.com
 
  • Product Pack:     Oracle Business Inteligence
  • Platform:             Linux x86-64 / Microsoft Windows (32-bit)

Business Analytics Warehouse Tier   (Red Hat Linux)

1) Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86-64

otn.com
 

Download:

2) JDK 1.7.0+  ( http://java.sun.com/javase/downloads/index.jsp )

3) Oracle DB 11g R2 Client (11.2.0.1.0) for Linux x86-64 (source: otn.oracle.com)

Download:
 

4) Informatica PowerCenter Services - Powercenter 9.0.1 Hotfix 2

 

5) DAC Server 10.1.3.4.1 

 
 

6) DAC Patch 12381656

      Download link: www.metalink.oracle.com
 

7) Oracle Business Intelligence, v. 11.1.1.6.0 - for Red Hat Linux x86-64 (64-bit)


 

8) Repository Creation Utility

 
 
 

ETL Client Server  (Windows 32 bit)

1) Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (32-bit)

 

2) JDK 1.6.0_29+ 

 

3) Informatica Client

   Download link:  Informatica Client 9.0.1 Disk 1
 
  
 

4) Informatica Services

 

5) DAC Server and Client

 
 

6) DAC Patch 12381656

Download link: www.metalink.oracle.com
 

7) Oracle Business Intelligence 11g (11.1.1.6.0) for Microsoft Windows (32-bit)

 
 

8) Oracle Business Intelligence Applications 7.9.6.3 for Microsoft Windows

 

9) Repository Creation Utility

 
 

10) Oracle Business Intelligence 11g Developer Client Tools (11.1.1.6.0) for Windows (32-bit)

 

Sunday, November 18, 2012

Dashboard - Google Map integration

OBIEE Google Map with multiple addresses or with the MarkerClusterer API.
 
It is based on blogs:
http://obiee101.blogspot.com/2009/03/obiee-google-maps-multiple-addresses.html
http://blog.guident.com/2009/12/integrating-obiee-and-google-maps-with.html
Working example can be found on Beyond University BI Demo
To use Google Maps you need to sign up for a key on Google Maps website. In those examples we use geocodes but you may use address or postcode but geocodes are much quicker.
All of that html/javascript code is quite simple and self-documented so it is very easy to change.
Tips:
Don't put too much code to Narrative View, create javascript functions in additional file and reference that in your Narrative view (i.e. ).
In javascript don't use single-line-style comments (// comment), use multi-line-style comments instead (/* comment */). When coping or modifying Answers with single-line-style comments you might end up with code placed in single line comment after your comment - some actions remove end of the line sign from Narrative View.
 
 
Simple OBIEE Google Map with multiple addresses.
 
Create an BI Answer query, go to Narrative view, check box next to "Contains HTML Markup" and type similar code in following sections.
In the Prefix part put (in the first line put your Google map key):
 






 
Now check if it works in the compound layout.
 
 
 
OBIEE Google Map with multiple addresses using with the MarkerClasterer API.
 
Create an BI Answer query, go to Narrative view, check box next to "Contains HTML Markup" and type similar code in following sections. Put beyondmap.js somewhere on the server.
In the Prefix part put (in the first line put your Google map key, in second line put path to beyondmap.js file on your server):
 






 
Now check if it works in the compound layout.
 
 
 
Get GeoCodes for postcodes using Google Maps API in OBIEE.
 
Create an BI Answer query, go to Narrative view, check box next to "Contains HTML Markup" and type similar code in following sections.
In the Prefix part put (in the first line put your Google map key):
 







 
 
Now check if it works in the compound layout.

Friday, May 4, 2012

OBIA Architecture

  NOTE: It is recommended to set up all Oracle BI Application tiers in the same local area network.
             Installation of any of these tiers over WAN may cause timeouts during ETL mappings execution on the ETL tier

Tiers

Machine Summary

Tier machine name User Name IP Address
1 OBIA DW Tier OBIADW oracle

2 OBIA ETL Tier OBIAETL oracle

3 OBIA Presentation Tier OBIEE oracle

4 OBIA Client Tier WIN xxx
 
 
Business Analytics Warehouse
 
Machine Specification  
M5000 SPARC VII - Core Factor - 0.75
16 GB RAM 2 cores
Sun Solaris 10 (64-bit)
 
Disk 400 GB
Software
1. Oracle Database 11g EE 11.2.0.1 ( with patch 9739315 applied and 9255542 is bug not a patch)
 
 
ETL Server
Machine Specification 
SPARC T3 - Core Factor 0.25
4 GB RAM  8 cores
 Sun Solaris 10 (64-bit)
  Disk 100 GB
Software
1. DB Client 11.2.0.1.0 for Solaris
2. DAC Server 10.1.3.4.1 Patch 12381656 applied 
3. Informatica Server - Powercenter 9.0.1 Hotfix 2
4. Java Platform Standard Edition (Java SE) Development Kit (JDK) 6 (1.6.0_05)
 
 
 
ETL Client 
Machine Specification 
3 GB RAM 2 quad cores
Windows XP Professional SP3 (32 bit)
  Disk 1 TB
Software
1. Oracle Business Intelligence Developer Client Tool (MS Win 32 bit) 11.1.1.5.0
2. Oracle Database Client 11g EE 11.2.0.1 3. Informatica Client - PowerCenter 9.0.1 Hotfix 2
4. Informatica Services - PowerCenter 9.0.1 Hotfix 2
5. DAC Client 10.1.3.4.1 Patch 12381656 applied 
 
 
Presentation Server
Machine Specification 
SPARC T3 - Core Factor 0.25
8 GB RAM  8 cores
 Sun Solaris 10 (64-bit) (Update 8+)
  Disk 50 GB
Software
1. Oracle Business Intelligence Enterprise Edition 11.1.1.5.0
NOTE: certified with Oracle DB:
            - Oracle 10.2.0.4+
            - Oracle 11.1.0.7+
            - Oracle 11.2.0.1+ 
2. BI Apps 7.9.6.3 repository and Catalog deployed