21 Copyright © 2008, Oracle. All rights reserved. Enabling Usage Tracking.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
13 Copyright © 2004, Oracle. All rights reserved. Oracle Shared Servers.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
9 Copyright © 2005, Oracle. All rights reserved. Administering User Security.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
13 Copyright © 2009, Oracle. All rights reserved. Integrating with Oracle Business Intelligence Enterprise Edition (OBI EE)
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
3 Copyright © 2005, Oracle. All rights reserved. Creating an Oracle Database.
Module 10: Implementing Administrative Templates and Audit Policy.
23 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Answers: Advanced Features.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. BI Publisher Server: Administration and Security.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
1 Copyright © 2008, Oracle. All rights reserved. I Course Introduction.
28 Copyright © 2009, Oracle. All rights reserved. Customizing the Oracle Business Intelligence User Interface.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
30 Copyright © 2009, Oracle. All rights reserved. Using Oracle Business Intelligence Delivers.
1 Copyright © 2009, Oracle. All rights reserved. I Course Introduction.
22 Copyright © 2008, Oracle. All rights reserved. Multi-User Development.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
1 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Enterprise Edition: Overview.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
Oracle Business Intelligence Foundation - Commonly Used Features in Repository.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
11 Copyright © 2004, Oracle. All rights reserved. Performing a Migration Using Oracle Migration Workbench (Part II)
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
2 Copyright © 2005, Oracle. All rights reserved. Installing Oracle Software and Creating the Database.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
19 Copyright © 2008, Oracle. All rights reserved. Security.
SQL and SQL*Plus Interaction
Using Partitions and Fragments
SQL Server Monitoring Overview
Cache Management Schedule: Timing Topic 25 minutes Lecture
Building the Physical Layer of a Repository
Introduction to Essbase
Adding Calculations to a Fact
Security Schedule: Timing Topic 40 minutes Lecture 70 minutes Practice
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
Using SQL*Plus.
Presentation transcript:

21 Copyright © 2008, Oracle. All rights reserved. Enabling Usage Tracking

Copyright © 2008, Oracle. All rights reserved Objectives After completing this lesson, you should be able to: Identify the need for usage tracking Set up and administer Oracle BI usage tracking

Copyright © 2008, Oracle. All rights reserved Business Challenges When deployed first, Oracle BI may not be optimized for the querying that actually occurs: –End-user queries may not match what is expected, so cache is not seeded with appropriate queries. –Additional aggregate tables may need to be created to speed up query processing. Your company may need to track database usage on a user or departmental level: –Users may be charged for database use. –Regulatory requirements may require usage tracking.

Copyright © 2008, Oracle. All rights reserved Business Solution: Oracle BI Usage Tracking Tracks and stores Oracle BI Server usage at the detailed query level Supports the accumulation of usage tracking statistics that can be used in a variety of ways, such as: –Database performance optimization –Aggregation strategies –Billing users or departments based on the resources they consume Provides ability to analyze usage results using Oracle BI Answers or other reporting tools

Copyright © 2008, Oracle. All rights reserved Oracle BI Usage Tracking Methods There are two methods for enabling usage tracking: Direct insertion (recommended approach) –Oracle BI Server inserts statistics for every query directly into a relational database table. Log file –Oracle BI Server inserts statistics for every query into a log file.

Copyright © 2008, Oracle. All rights reserved ABC Example Set up Oracle BI usage tracking to track and store usage statistics at the detailed query level. UsernameStart date and timeLogical SQLRow countQuery run time

Copyright © 2008, Oracle. All rights reserved Steps to Enable Usage Tracking 1.Create the usage tracking table. 2.Import the table. 3.Build a business model. 4.Enable usage tracking. 5.Enable direct insertion. 6.Set the physical table parameter. 7.Set the connection pool parameter. 8.Set additional parameters. 9.Test the results.

Copyright © 2008, Oracle. All rights reserved Create the Usage Tracking Table Navigate to..\OracleBI\server\Schema. Use the provided SAACCT..sql script to create the S_NQ_ACCT usage tracking table. –This table stores the usage tracking data when queries are run against Oracle BI Server.

Copyright © 2008, Oracle. All rights reserved Import the Table Import the usage tracking table to the Physical layer.

Copyright © 2008, Oracle. All rights reserved Build a Business Model Use S_NQ_ACCT to build a usage tracking business model.

Copyright © 2008, Oracle. All rights reserved Enable Usage Tracking a.Navigate to..\OracleBI\server\Config and open NQSConfig.ini. b.Scroll to Usage Tracking Section. c.Set ENABLE = YES;.

Copyright © 2008, Oracle. All rights reserved Enable Direct Insertion Set the DIRECT_INSERT parameter to YES to specify that statistics are inserted directly into a database table.

Copyright © 2008, Oracle. All rights reserved Set the Physical Table Parameter Set the PHYSICAL_TABLE_NAME parameter to specify the table into which to insert records corresponding to the query statistics. The table name is the fully qualified name as it appears in the Physical layer of the Server Administration Tool. The general structure of this parameter depends on the type of database being used: –For Oracle: PHYSICAL_TABLE_NAME = " "." "." " ;

Copyright © 2008, Oracle. All rights reserved Set the Connection Pool Parameter Set the CONNECTION_POOL parameter to specify the connection pool to use for inserting records into the usage tracking table. This is the fully qualified name as it appears in the Physical layer of the Server Administration Tool. Example: CONNECTION_POOL = "ABC Usage Tracking "."ABC Usage Tracking Connection Pool“ ;.

Copyright © 2008, Oracle. All rights reserved Set Additional Parameters BUFFER_SIZE –Amount of memory used to store insert statements temporarily BUFFER_TIME_LIMIT_SECONDS –Maximum amount of time that an insert statement remains in the buffer before it is issued to the usage tracking table NUM_INSERT_THREADS –Number of threads that remove insert statements from the buffer and issue them to the usage tracking table MAX_INSERTS_PER_TRANSACTION –Number of records to group together as a single transaction when inserting into the usage tracking table

Copyright © 2008, Oracle. All rights reserved Test the Results Use usage tracking subject area to build and run queries: Check the log file and verify that the S_NQ_ACCT table is accessed:

Copyright © 2008, Oracle. All rights reserved Analyzing Usage Tracking Data Watch for long-running queries (typically ad hoc): –End user may need training. –May need to assign query blocking/restrictions on how long queries can run or on number of records returned –Database may require additional indexes or tuning. Perform usage audits for: –Regulatory compliance –Security Determine whether a query should be used to seed the cache or be removed from the cache-seeding queries. Identify aggregation strategies. Bill users or departments based on the resources that they consume.

Copyright © 2008, Oracle. All rights reserved Usage Tracking Sample The /server/Sample/Usage Tracking directory contains the following to help you understand and use usage tracking features: SQL_Server_Time: Scripts for populating sample tables Usage Tracking: Sample presentation catalog UsageTracking.rpd: Sample repository

Copyright © 2008, Oracle. All rights reserved Summary In this lesson, you should have learned how to: Identify the need for usage tracking Set up and administer Oracle BI usage tracking

Copyright © 2008, Oracle. All rights reserved Practice 21-1 Overview: Enabling Usage Tracking This practice covers the following topics: Setting up Oracle BI to support usage tracking Building a usage tracking business model Using usage tracking to monitor queries