How to Enable Usage Tracking in Oracle BI 11g ( Version : 11.1.1.7.150120 )

 Image result for oracle bi logo
Step 1:- In this step,need to check ‘S_NA_ACCT’ table avaiable in the dev_biplatform Schema user in DW repositary.
Capture

Step 2:- Configuring the Physical layer of the RPD file.
Right Click on the physical layer and selec the New database to create a database.
1
In the properties window go to genaral tab and give below information.
           Name :- Usage Tracking
           Database Type:- Oracle 11g (In my repository developed using  oracle 11g database)
2
Go to the connection pool tab and create new connection pool for connect to dev_biplatform user.
3
Name the connection pool Usage Tacking Connection Pool.
Enter the Dat source name, User name and password as followed.
           Data source name: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.202.89)(PORT=1521)))(CONNECT_DATA=(SID=obiee)))
           User name: dev_biplatform
            Password: <password for dev_biplatform which has given when installing the obi server>
Click OK. Enter same password to confim.
4
Right click on teh usage tracking database and select New Object –> Phsical Schema
3
In the general tab give the Physical schema name as ‘Usage Tracking Schema’.
5
Right-click the Usage Tracking Connection Pool, select Import Metadata, and import the dev-biplatform.S_NQ_ACCT table into Usage Tracking.
6
Click Next in Step 2, Import Metadata - Select Metadata Types dialog box.
7
select the S_NQ_ACCT table under dev_biplatform and move it to the Repository View pane. Click Finish.
image
select the S_NQ_ACCT table under dev_biplatform and move it to the Repository View pane. Click Finish.
8
The dev_biplatform schema is added under Usage Tracking.
Right-click S_NQ_ACCT from dev_biplatform and then cut and paste it under Usage Tracking Schema.
9
S_NQ_ACCT  table stucture is as below.
10

Step 3:- Configuring the Business Model and mapping layer of the RPD file.
Right-click in the Business Model and Mapping layer white space and select New Business Model.
1


Name the business model as ‘Usage Tracking’ in the general Tab.
2

Right Click on the Usage Tracking model and select New Object>Logical Table.
4
Name the table Measures and click OK.
image

Again create another three logical table BMM layer as below.
Logical Table Name
Measures(created from above step)
Time
Topic
User
5
Drag the following three physical columns from Usage Tracking Schema>S_N_ACCT to above logical tables(Measures logical table ) and rename as below.
Physical Column Updated Column Name
QUERY_TEXT Query Count
ROW_COUNT ROW_COUNT
TOTAL_TIME_SEC Total Time Seconds
Right-click the column Query Count and select Properties.
5
Click the Aggregation tab and select Count from the Default aggregation rule drop-down list. Click OK.
image
likewise, set the Aggregation rule for other logical columns in the Measures logical table as follows:
Logical Column Aggregation Rule
Row Count SUM
Total Time Seconds SUM
Drag the following three physical columns from Usage Tracking Schema>S_N_ACCT to TIME logical table and  rename as below.
Physical Column Updated Column Name
START_DT Start Date
START_HOURS_MIN Start Hour Minute
END_HOUR_MIN End Hour Minute
5
Set Start Date as the logical key for the Time logical table. Right-click the Time logical table and select Properties.
5
Click the Keys tab and enter Time_key in the Key Name column.
image
Select Start Date from the Columns drop-down list. Click OK.
image
Drag the following three physical columns from Usage Tracking Schema>S_N_ACCT to TOPIC logical table and  rename as below.
Physical Column Updated Column Name
QUERY_TEXT Logical SQL
SUBJECT_ AREA_NAME Subject Area
Set Logical SQL as the logical key for the Topic logical table.
image
Drag the USER_NAME physical column from Usage Tracking Schema>S_NQ_ACCT to the User logical table in the Usage Tracking business mode. Rename it to User Name.
image
Update User Name as the logical key for the User logical table.
image
Business model layer.
image
Right-click the Usage Tracking business model and select Business Model Diagram>Whole Diagram.
6
Click the New Join icon from the menu and create logical joins from Measure to Time, Topic, and User as shown below.
image
Step 4:- Configure the Presentation Layer
Drag the Usage Tracking business model to the Presentation layer to create the Presentation layer objects.
image
Save and you want to check consistency of teh RPD file.
Step 5:- Configure the Usage Tracking in EM
Logn to EM as Weblogic user.
image
Go to the Weblogic Domain and select  bifoundation_domain.
image
Click on the Weblogic domain and select the System MBeans Browser.
1
Then go to Confiuration MBeans –> MBeanServer Delegate and click on the MBeanServer Delegate bean.
2
Then go to the Application Defined MBeans and expand the oracle.biee.admin menu
3
Expand the BIDomain.
4
There are two BIDomain and select BIDomain where Group = service
5
Go to Operation tab and lock the bi domain.click the Invoke button.
1
Click the Return button.
image
Expand BIDomain.BIInstance.ServerConfiguration, and then select the BIDomain.BIInstance.ServerConfiguration MBean.
2
Click the Attributes tab. Scroll down and click UsageTrackingCentrallyManaged. Set Value to true in the drop-down list.
Click the Apply button. When you see the confirmation message for the update, click the Return button.

3
Similarly, set the UsageTrackingEnabled attribute to true to enable usage tracking.
Set the UsageTrackingDirectInsert attribute to true to enable direct insertion.
Set the UsageTrackingPhysicalTableName as "Usage Tracking"."Usage Tracking Schema"."S_NQ_ACCT
Set the UsageTrackingConnectionPool as "Usage Tracking"."Usage Tracking Connection Pool"
refer below screenshot for above configuration
4

Go to the BIDomain MBean where group=Service under oracle.biee.admin, Domain:bifoundation_domain, BIDomain. Click the Operations tab.
Click one of the first commit operations where description is ‘Same as commit("ERROR"); raises an exception if any errors occur’
5
Restart the BI service.
6

Then login to analytics and create analysis using ‘Usage Tracking’ Subject area.
image
Report output will be as below and you track the usage tracking on OBI presentation layer.

7
For more information refer the below links.
Reference:- https://docs.oracle.com/cd/E23943_01/bi.1111/e10541/usage_track.htm#BIESG211

Thank You !!!!
How to Enable Usage Tracking in Oracle BI 11g ( Version : 11.1.1.7.150120 ) How to Enable Usage Tracking in Oracle BI 11g ( Version : 11.1.1.7.150120 ) Reviewed by Pubudu Dewagama on 12:53:00 AM Rating: 5

1 comment:

  1. It's Very informative blog and useful article thank you for sharing with us , keep posting learn more about BI Tools
    Tableau Online Training

    ReplyDelete