• What is dbt_artifacts?

    dbt_artifacts is a package for modeling a dbt project and its run metadata. It includes the following models to help you understand the current state of a dbt project and its performance over time. It...

  • Data migration from the Salesforce to snowflake Data warehouse by using Matillion

    Purpose of the Article: This blog explains how to load the data from Salesforce to Snowflake Intended Audience: This article will help our Organizational level kind of developers working on data migra...

  • WiMAX-A Study of Mobility

    1. Introduction The wireless market is growing rapidly; being pushed through wireless connectivity demand various wireless connectivity means are emerging (WLAN/802.11, WMAN/802.16a, WWAN/802.16d) [IE...

  • Weblogic Upgrade

    Patch Name wls1036_upgrade_generic.jar Reference https://www.youtube.com/watch?v=Be6hrYTANQE Just Click Next and Next MAKE SURE ALL OBIEE SERVICES ARE DOWN AND CLOSED IN PROCESS Open CMD prompt C:Mid...

Tags

bics installation OBIEE obiee 11g installation guide Oracle

Categories

Usage Tracking in OBIEE 11.1.1.7.0 (11g)

a

Usage Tracking in OBIEE 11.1.1.7.0 (11g)

Usage Tracking in OBIEE 11.1.1.7.0 (11g)

Why Usage Tracking:

Usage Tracking is used to monitor system and ad-hoc query performance and to provide input on usage trends for use in billing users and departments for resources. Usage tracking is particularly useful in determining user queries that are creating performance bottlenecks, based on query frequency and response time. When usage tracking is enabled, the Oracle BI Server collects usage tracking data for each query and writes statistics to a usage tracking log file or inserts them directly to a database table. For the purposes of this tutorial, you will use a database table, which is the recommended leading practice.

Here We will separate Usage Tracking Process to 4 Steps

  1. Creating Uasge Tracking Table
  2. Creating and Customizing rpd file

III. changing the Configuration in EM

  1. Testing the Usage Tacking in Answers

StepI: Creating Usage Tracking Table

If we latest OBIEE 11g installed in our machine, open sqlplus and connect DEV_BIPLATFORM schema.

write the below query:
select table_name from tabs where table_name like=’S%’;
The table in the name S_NQ_ACCT is related to usage tracking. so we donot have any manual work in the usage tracking table creation. So before setting up the usage tracking we couldn’t have any rows in the table

StepII: Setting up the Repository File

  1. Create ‘New Database’ by right clicking on the empty space in physical layer of the rpd  and name it as ‘UsageTracking’
  2. Right click on the physical layer object ‘UsageTracking’ ->New Object -> select ‘Connection Pool and enter the detail like below screen

Connection Pool Name: UsageTracking ConnectionPool

Data Source Name: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Bose-PC)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)))

OR

Data Source Name: //Bose-PC:1521/ORCL 

User Name: DEV_BIPLATFORM

Password: Admin123

Click ‘OK’ after you enter the password and you will be prompted to confirm the password. Type the same password.

  1. Import the ‘S_NQ_ACCT’ table from DEV_BIPLATFORM Schema to the ‘UsageTracking’  database repository.
  2. Double Click on the DEV_BIPLATFORM physical folder and change it ‘UsageTracking Schema’ So that It would like below screen
  3. Now Come to BMM Layer and Create UsageTracking BMM Layer folder and Create for new logical tables in that BMM Layer like shown in the below picture
  1. Drag the following three physical columns from Usage Tracking Schema>S_NQ_ACCTto theMeasureslogical table in the UsageTracking business model. For each column, right-click the logical column and select Rename, and then apply aggregation rule like shown in the table:
Physical Column Rename Aggregation Rule
QUERY_TEXT Query Count Count
ROW_COUNT Row Count Sum
TOTAL_TIME_SEC Total Time Seconds Sum

 

  1. Drag the following three physical columns from UsageTracking Schema>S_NQ_ACCTto the Timelogical table in the UsageTracking business model. Rename them as follows:
Physical Column Rename Key
START_DT Start Date  Yes
START_HOUR_MIN Start Hour Minute
END_HOUR_MIN End Hour Minute
  1. Here is the example screen screen for how to create Key for Time Logical table
    Under Keys Tab -> type ‘Time_key’ in the key name and select ‘Start Date’ in the columns.
    9. Drag the following two physical columns fromUsageTracking Schema>S_NQ_ACCTto the Topic logical table in the UsageTracking business model. Rename them as follows:
Physical Column Rename
QUERY_TEXT Logical SQL
SUBJECT_ AREA_NAME Subject Area

Do not forget to to apply ‘Logical SQL’ as a key column for this logical table.

10. Drag the USER_NAME physical column from UsageTracking Schema>S_NQ_ACCT to the User logical table in the UsageTracking business mode. Rename it to User Name and apply this column as a key to this table.

Below is the complete BMM Layer Model Screen for UsageTracking:
11. Right click on the UsageTracking BMM Layer folder -> select ‘Business Model Diagram’ -> Whole Diagram and the create joins between the tables as shown in the below screen:
12. Just drag the UsageTracking folder to Presentation Layer of the repository.
Now Save the repository and check the consistency check. RPD works are done!!!

StepIII: Setting up the EM
1. Open EM window using the link  http://localhost:7001/em by entering weblogic username and password
Expand WebLogicDomain  and the click ‘bifoundation_domain’ in the left pane. Now select ‘System MBean Browser’ in the WebLogic Domain in the right side pane like show in the picture
2. expand ‘Application Defined MBeans’ and the expand ‘oracle.biee.admin’ in that
3. Expand ‘BIDomain’ in oracle.biee.admin and click on second ‘BIDomain’ as show in the picture. Now select ‘operation’ tab from right side pane and then click ‘lock’
Click ‘Invoke’. Once we get the screen like below, click ‘Return’
4. Now expand BIDomain.BIServer.ServerConfiguration under oracle.biee.admin from the left pane. Now select all the following option from the right side pane and apply the change using the following steps
UsageTrackingCentrallyManaged
UsageTrackingConnectionPool
UsageTrackingDirectInsert
UsageTrackingEnabled
UsageTrackingPhysicalTableName
Select UsageTrackingCentrallyManaged and then select value ‘true’ and apply. After successful apply, click Return to previous screen
Select UsageTrackingConnectionPool and type the value “UsageTracking”.UsageTracking ConnectionPool” and then apply. After successful apply, click Return to previous screen

Select UsageTrackingPhysicalTableName and type the value “UsageTracking”.”UsageTracking Schema”.”S_NQ_ACCT” and then apply. After successful apply, click Return to previous screen
Select UsageTrackingDirectInsert and select the value ‘true’ and then apply. After successful apply, click Return to previous screen
Select UsageTrackingEnabled and select the value ‘true’ and then click apply. After successful apply, click Return to previous screen
So with the above screen all the configuration related to Usage Tracking is applied. Now  Come to BIDomain and select ‘BIDomain’ under orace.biee.admin to commit the changes. Select Operation tab and select ‘simplecommit’
In simplecommit screen click ‘Invoke’. After successful execution of simplecommit click retun to previous screen.
Now upload the updated repository in EM and restart the BI Services.

StepIV: Checking results with Answers using UsageTracking Subject Area
Now Browse some analysis from the existing dashboard or create some reports and create one report using “UsageTracking” subject for the details

select User Name from User, Logical SQL and Subject Area from Topic, Start Hour Minute from Time and Row Count from Measures table in the criteria section of creating new analysis. Now check with the results

Below Screen Shows the results for username, logical sql, query count, row count, total time seconds from the Usage Tracking subject Area.

Now If you are checking the table ‘S_NQ_ACCT’ in tabale, we could see the updated records.

Reference

http://allaboutobiee.blogspot.co.uk/2014/01/usage-tracking-in-obiee-111170-11g.html

Warning: Array to string conversion in /volume1/web/wordpress/wp-includes/link-template.php on line 2361 Call Stack: 0.2520 6404248 1. {main}() /volume1/web/wordpress/index.php:0 0.2520 6404560 2. require('/volume1/web/wordpress/wp-blog-header.php') /volume1/web/wordpress/index.php:17 3.5699 22964656 3. require_once('/volume1/web/wordpress/wp-includes/template-loader.php') /volume1/web/wordpress/wp-blog-header.php:19 3.5832 22972976 4. include('/volume1/web/wordpress/wp-content/themes/ayro/single.php') /volume1/web/wordpress/wp-includes/template-loader.php:106 4.3925 25070192 5. ayro_qodef_get_blog_single() /volume1/web/wordpress/wp-content/themes/ayro/single.php:9 4.3928 25070568 6. ayro_qodef_get_module_template_part($template = 'templates/single/holder', $module = 'blog', $slug = '', $params = ['sidebar' => 'default']) /volume1/web/wordpress/wp-content/themes/ayro/framework/modules/blog/blog-functions.php:459 4.3928 25070696 7. ayro_qodef_get_template_part($template = 'framework/modules/blog/templates/single/holder', $slug = '', $params = ['sidebar' => 'default']) /volume1/web/wordpress/wp-content/themes/ayro/framework/lib/qode.functions.php:907 4.3931 25071600 8. include('/volume1/web/wordpress/wp-content/themes/ayro/framework/modules/blog/templates/single/holder.php') /volume1/web/wordpress/wp-content/themes/ayro/framework/lib/qode.functions.php:888 4.3931 25071600 9. ayro_qodef_get_single_html() /volume1/web/wordpress/wp-content/themes/ayro/framework/modules/blog/templates/single/holder.php:3 4.5070 25187920 10. ayro_qodef_get_module_template_part($template = 'templates/single/parts/single-navigation', $module = 'blog', $slug = ???, $params = ???) /volume1/web/wordpress/wp-content/themes/ayro/framework/modules/blog/blog-functions.php:523 4.5070 25188064 11. ayro_qodef_get_template_part($template = 'framework/modules/blog/templates/single/parts/single-navigation', $slug = '', $params = []) /volume1/web/wordpress/wp-content/themes/ayro/framework/lib/qode.functions.php:907 4.5072 25189400 12. include('/volume1/web/wordpress/wp-content/themes/ayro/framework/modules/blog/templates/single/parts/single-navigation.php') /volume1/web/wordpress/wp-content/themes/ayro/framework/lib/qode.functions.php:888 4.5202 25224352 13. previous_post_link($format = '%link', $link = [0 => 'https://miaz-tech.com/wp-content/uploads/2016/05/shop-product-image-4.jpg', 1 => 600, 2 => 651, 3 => FALSE], $in_same_term = TRUE, $excluded_terms = '', $taxonomy = 'category') /volume1/web/wordpress/wp-content/themes/ayro/framework/modules/blog/templates/single/parts/single-navigation.php:27 4.5202 25224352 14. get_previous_post_link($format = '%link', $link = [0 => 'https://miaz-tech.com/wp-content/uploads/2016/05/shop-product-image-4.jpg', 1 => 600, 2 => 651, 3 => FALSE], $in_same_term = TRUE, $excluded_terms = '', $taxonomy = 'category') /volume1/web/wordpress/wp-includes/link-template.php:2278 4.5202 25224352 15. get_adjacent_post_link($format = '%link', $link = [0 => 'https://miaz-tech.com/wp-content/uploads/2016/05/shop-product-image-4.jpg', 1 => 600, 2 => 651, 3 => FALSE], $in_same_term = TRUE, $excluded_terms = '', $previous = TRUE, $taxonomy = 'category') /volume1/web/wordpress/wp-includes/link-template.php:2259
No Comments
Post a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.