performance increasing in obiee

Upload: nitinjain9

Post on 13-Feb-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/23/2019 Performance Increasing in OBIEE

    1/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/

    HomeCareersContact

    Search...

    Company

    Solutions Services Training Resources Careers Contact UsoConnectBlog

    Important Links

    Oracle and HP Solutions Licenses Oracle Appsand Technical Training

    Oracle and HP Professional Services Customized Oracle & HP WorkshopsBlog Important Oracle Apps Webinars

    Search...

    Home Blog Performance Increasing In OBIEE

    Performance Increasing In OBIEEPosted by vaishali_iware in Blog Jun, 28 6 comments

    Performance Increasing In OBIEE

    While working on OBIEE every one need some tips to increase performance, I searched the net but not foundhelpful tips. Hence I thought putting some of the points together that will be helpful for you.

    Following are the few points which improve the performance of OBIEE.

    1. Alias Tables2. Using Aggregate Navigation3. Using Cache

    iWare Logic Technologies is an Entity of Vyom Labs

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/http://www.iwarelogic.com/contact-us/http://www.iwarelogic.com/training/http://www.iwarelogic.com/training/class-schedule/http://www.iwarelogic.com/category/blog/http://www.iwarelogic.com/contact-us/http://www.iwarelogic.com/http://www.iwarelogic.com/careers/http://www.iwarelogic.com/company/http://www.iwarelogic.com/category/blog/http://www.iwarelogic.com/category/blog/http://www.iwarelogic.com/contact-us/http://www.iwarelogic.com/contact-us/contact-for-training/http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/http://www.iwarelogic.com/services-3/http://www.iwarelogic.com/resources/webinars/http://www.iwarelogic.com/training/http://www.iwarelogic.com/solutions/http://www.iwarelogic.com/careers/http://www.iwarelogic.com/services-3/http://www.iwarelogic.com/http://www.iwarelogic.com/services-3/http://www.iwarelogic.com/solutions/http://www.iwarelogic.com/resources/http://www.iwarelogic.com/o-connect/http://www.iwarelogic.com/category/blog/
  • 7/23/2019 Performance Increasing in OBIEE

    2/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 2

    4. Connection Pool5. Turning Off Log Level6. Using Database Hints7. Using Where Clause

    1.) Alias Tables

    An Alias table (Alias) is a physical table with the type of Alias. It is a reference to a Physical table, and inheritsall its column definitions and some properties from the Physical table. Alias Tables can be an important part ofdesigning a physical layer

    OBIEE doesnt support the self-join, so we can use alias table to implement self-join in OBIEE.

    The following is a list of the main reasons to create an alias table:

    To reuse an existing table more than once in your physical layer (without having to import it severaltimes)To set up multiple alias tables, each with different keys, names, or joinsTo help you design sophisticated star or snowflake structures in the business model layer.

    To create Alias table in Physical Layer, right click on Table ->New Object -> Alias, select source table if

    required.

    images 1

    NOTE:In previous version we need to synchronize the alias table with the source tables but in OBIEE Aliaswill be automatically synchronized with source table, any change to Source Table will be immediatelyreflected in Alias Table.

    2.) Using Aggregate Tables

    All knows that when we create Summary Report then data from the fact table got roll up to the appropriatelevel & then showed to the customer. Oracle BI server lets you register aggregate (summary) tables that

  • 7/23/2019 Performance Increasing in OBIEE

    3/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 3

    contain the pre-computed sums, averages and so on for a fact table, which it then uses in preference to rollingup the detail-level fact table if this would speed up a query.

    We will be using aggregate tables in physical layer if you required to create the aggregate tables then you canuse Aggregate Persistent Wizard.

    We will import aggregate Fact & Dimension Table into physical layer..

    We have the aggregate tables in physical layer will use physical Diagram to create foreign key relationshipsbetween the aggregate fact tables, the aggregate dimension tables

    image006

    Were now at the point where we can map these aggregate tables to the existing logical tables in the businessmodel layer

    We need to identify the existing logical tables in the business model that have columns that correspond to the

  • 7/23/2019 Performance Increasing in OBIEE

    4/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 4

    incoming data, and then drag the columns you want to match on over from the new, physical table.We will create new Logical Table Source to map Logical Column to Physical Columns (from Aggregate table)

    The final step is to tell the BI Server that this new data source for the units measure, is only valid Month, SalesRep and Type Level.

    Now, when a query comes in against the Dollars measure at the product Type or Customer Sales rep Level, theBI Server will use the D1_ORDER_AGG1 table instead of D1_ORDER2.

  • 7/23/2019 Performance Increasing in OBIEE

    5/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 5

    3.) Using Cache:

    Cache in OBIEE:-

    Cache is component hat improves performance by transparently storing data such that future requests for thatdata can be served faster. Like other application cache is not virtual memory in OBIEE. In OBIEE cache will

    be stored as file on Hard Disk in the form of files.To use the cache we need to enable it, to enable cache we need to edit the NQSConfig.ini as well as need tomake the tables cacheable.

    Following are the parameters from NQSConfig.ini that will be used in enabling the cache:-

    ENABLE

    To enable the cache set the ENABLE parameter to YES.

    DATA_STORAGE_PATHS

    This parameter specifies one or more directory paths for where the cached query results data is stored and areaccessed when a cache hit occurs. The maximum capacity in bytes, kilobytes, megabytes or gigabytes. Themaximum capacity for each path is 4 GB. For optimal performance, the directories specified should be on high

    performance storage systems.Each directory listed needs to be an existing, fully-qualified, writable directory pathname, with double quotes (

    ) surrounding the pathname. Specify mapped directories only.UNC path names (\server.name.edusomefolder) and network mapped drives are allowed only if the serviceruns under a qualified user account. To change the account under which the service is running, see thecorresponding topic in the Oracle Business Intelligence Enterprise Edition Deployment Guide.Specify multiple directories with a comma separated list.

    MAX_ROWS_PER_CACHE_ENTRY

    Specifies the maximum number of rows in a query result set to qualify for storage in the query cache. Limitingthe number of rows is a useful way to avoid using up the cache space with runaway queries that return largenumbers of rows. If the number of rows a query returns is greater than the value specified in theMAX_ROWS_PER_CACHE_ENTRY parameter, the query is not cached. When set to 0, there is no limit to

    the number of rows per cache entry.

    MAX_CACHE_ENTRY_SIZE

    Specifies the maximum size for a cache entry. Potential entries that exceed this size are not cached. The defaultsize is 1 MB.Specify GB for gigabytes, KB for kilobytes, MB for megabytes, and no units for bytes.

    MAX_CACHE_ENTRIES

    Specifies the maximum number of cache entries allowed in the query cache. Limiting the total number of cacheentries provides another parameter with which to manage your cache storage. The actual limit of cache entriesmight vary slightly depending on the number of concurrent queries.

    OPULATE_AGGREGATE_ROLLUP_HITS

    Specifies whether to aggregate data from an earlier cached query result set and create a new entry in the querycache for rollup cache hits.

    SE_ADVANCED_HIT_DETECTION

    When caching is enabled, each query is evaluated to determine whether it qualifies for a cache hit. A cache hitmeans that the server was able to use cache to answer the query and did not go to the database at all. TheOracle BI Server can use query cache to answer queries at the same or later level of aggregation.

  • 7/23/2019 Performance Increasing in OBIEE

    6/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 6

    Following are the parameters used to make Table Cacheable:-

    To make table cacheable we need to edit the table properties.

    Cacheable

    To include the table in the Oracle BI Server query cache, select this check box. When you select this checkbox, the Cache persistence time settings become active.

    Cache never expires

    When you select this option, cache entries do not expire. This could be useful when a table will be important toa large number of queries users might run. For example, if most of your queries have a reference to an account

  • 7/23/2019 Performance Increasing in OBIEE

    7/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 7

    object, keeping it cached indefinitely could actually improve performance rather than compromise it

    Cache persistence time

    How long table entries should persist in the query cache. The default value is Infinite, meaning that cacheentries do not automatically expire. However, this does not mean that an entry will always remain in the cache.Other invalidation techniques, such as manual purging, LRU (Least Recently Used) replacement, metadatachanges, and use of the cache polling table, result in entries being removed from the cache.

    If a query references multiple physical tables with different persistence times, the cache entry for the query wil

    exist for the shortest persistence time set for any of the tables referenced in the query. This makes sure that nosubsequent query gets a cache hit from an expired cache entry.

    4.) Connection Pool:-

    Most of the times not much thought are given to defining connection pools while developing RPD. Improperlydefined connection pool would affect the OBIEE performance and user experience. Here are some of the thingto consider while defining connection pool.

    Change the default maximum connections. The default is 10. Based on your system usage change thevalue that is more realistic to your system usageCreate a separate connection pool for execution of session variablesCreate a separate connection pool for the execution of aggregate persistence wizard. Remember that youneed to give the schema user owner credentials for this connection pool as the wizard creates and drops

  • 7/23/2019 Performance Increasing in OBIEE

    8/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 8

    tablesIf need be create a separate connection pool for VVIPs. You can control who gets to use the connection

    pool based on the connection pool permissions.

    5.) Turning Off Log Level:-

    Though query logging has immeasurable development value, do not use this for regular production users as theruntime logging cost is extremely high. Every log item is flushed to the disk, which in turn hurts queryresponse. Also, note that the query log files are not created on per user or query basis, there is only one querylog per OBIEE server and it would have exclusive lock on the log file, which kills concurrent performance.

    The log file is NQQuery.log which resides in OracleBI Directory.

    Logging

    Level

    Information That Is Logged

    Level 0 No logging.

    Level 1 Logs the SQL statement issued from the client application.Logs elapsed times for query compilation,query execution, query cache processing, and back-end database processing.

    Logs the query status (success, failure, termination, or timeout). Logs the user ID, session ID, and

    request ID for each query.

    Level 2 Logs everything logged in Level 1.Additionally, for each query, logs the repository name, businessmodel name, presentation catalog (called Subject Area in Answers) name, SQL for the queries issuedagainst physical databases, queries issued against the cache, number of rows returned from eachquery against a physical database and from queries issued against the cache, and the number of rowsreturned to the client application.

    Level 3 Logs everything logged in Level 2.Additionally, adds a log entry for the logical query plan, when aquery that was supposed to seed the cache was not inserted into the cache, when existing cacheentries are purged to make room for the current query, and when the attempt to update the exactmatch hit detector fails.

    Do not select this level without the assistance of Technical Support.

    Level 4 Logs everything logged in Level 3.Additionally, logs the query execution plan. Do not select thislevel without the assistance of Technical Support.

    Level 5 Logs everything logged in Level 4.Additionally, logs intermediate row counts at various points in theexecution plan. Do not select this level without the assistance of Technical Support.

    Level 6and 7

    Reserved for future use.

  • 7/23/2019 Performance Increasing in OBIEE

    9/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 9

    6.) Using Database Hints

    Database hints are instructions placed within a SQL statement that tell the database query optimizer the mostefficient way to execute the statement. Hints override the optimizers execution plan, so you can use hints toimprove performance by forcing the optimizer to use a more efficient plan.Hints are database specific. The Oracle BI Server supports hints only for Oracle 8i, 9i, and 10g servers.

  • 7/23/2019 Performance Increasing in OBIEE

    10/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 10

    These are the following objects where you can apply the hint

    1. Physical Complex Join2. Physical foreign key3. Physical Table Object type Alias4. Physical Table Object type None

    Hints that are well researched and planned can result in significantly better query performance. However, hints

    can also negatively affect performance if they result in a suboptimal execution plan.

    You should only add hints to a repository after you have tried to improve performance in the following ways:

    Added physical indexes (or other physical changes) to the Oracle database.Made modeling changes within the server.Avoid creating hints for physical table and join objects that are queried often.

    To create a hint

    1. Navigate to one of the following dialog boxes:

    Physical TableGeneral tabPhysical Foreign KeyPhysical JoinComplex Join

    2. Type the text of the hint in the Hint field and click OK.

    7.) Using Where Clause Filter

    The WHERE clause filter is used to constrain the physical tables referenced in the logical table source, If thereare no constraints on the aggregate source, leave the WHERE clause filter blank.

    Filter applied in WHERE Clause will applied on physical table that will be result in restricted or required data,

  • 7/23/2019 Performance Increasing in OBIEE

    11/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 1

    other data which is not necessary, will not be fetched each time when there is query on that table.

    Rupesh Harke

    Know more about our OBIEE Services

    Related Links:

    Write Back Implementation OBIEEOBIEE Metadata DictionaryEBS Session ManagementData Level Security using Virtual Private Database

    If you enjoyed this article please considersharing it!

    6 Comments to Performance Increasing In OBIEE

    March 12, 2012 at 5:33 amRama Raosays:

    HI Expert,

    You are article is Excellent . It helps me a lot.. really. i got full clarity on cache and perfomance andsome other area which i have confusion. Thanks

    Reply

    March 27, 2012 at 12:40 pm

    raghusays:

    nice article

    Reply

    May 10, 2012 at 10:33 ampavansays:

    very usefull.

    Reply

    December 26, 2012 at 4:21 amvardhansays:

    All Cache management at one page.. Really help full.. Thanks for the post

    Reply

    March 4, 2013 at 2:41 pmsivasays:

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/?replytocom=2049#respondhttp://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/?replytocom=2048#respondhttp://www.iwarelogic.com/2010/06/obiee-metadata-dictionary-642/http://twitter.com/home/?status=Performance%20Increasing%20In%20OBIEE%20:%20http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/?replytocom=2585#respondhttp://www.reddit.com/submit?url=http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/&title=Performance%20Increasing%20In%20OBIEEhttp://www.iwarelogic.com/services-3/business-intelligence/oracle-business-intelligence/http://www.iwarelogic.com/2010/08/virtual-private-database-829/http://www.iwarelogic.com/2010/09/ebs-session-management-871/http://www.iwarelogic.com/2010/04/write-back-implementation-obiee-552/http://www.stumbleupon.com/submit?url=http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/&title=Performance%20Increasing%20In%20OBIEEhttp://del.icio.us/post?url=http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/&title=Performance%20Increasing%20In%20OBIEEhttp://www.facebook.com/sharer.php?u=http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/&t=Performance%20Increasing%20In%20OBIEEhttp://digg.com/submit?phase=2&url=http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/&title=Performance%20Increasing%20In%20OBIEEhttp://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/?replytocom=2055#respond
  • 7/23/2019 Performance Increasing in OBIEE

    12/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 12

    hi,Can you please let me know how aliases is going to increase the performance

    Reply

    November 18, 2013 at 5:36 amshanthansays:

    really helpful

    Reply

    Post comment

    Name (required)

    Mail (will not be published) (required)

    Website

    Comment

    Related Articles

    1. Write Back Implementation OBIEE2. OBIEE Metadata Dictionary3. EBS Session Management4. Data Level Security using Virtual Private Database

    http://www.iwarelogic.com/2010/06/obiee-metadata-dictionary-642/http://www.iwarelogic.com/2010/04/write-back-implementation-obiee-552/http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/?replytocom=2602#respondhttp://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/?replytocom=3006#respondhttp://www.iwarelogic.com/2010/09/ebs-session-management-871/http://www.iwarelogic.com/2010/08/virtual-private-database-829/
  • 7/23/2019 Performance Increasing in OBIEE

    13/14

    9/8/2015 Performance Increasing In OBIEE

    http://www.iwarelogic.com/2010/06/performance-increasing-obiee-724/ 13

    WEBSITE LINKS

    CompanySolutionsServicesTrainingiWareLogic Home

    Blog Archives

    May 2014(3)April 2014(5)April 2013(1)December 2012(1)

    November 2012(1)September 2012(1)August 2012(2)March 2012(1)

    February 2012(1)January 2012(1)December 2011(1)

    November 2011(1)October 2011(2)September 2011(7)August 2011(3)July 2011(3)June 2011(4)May 2011(1)April 2011(2)March 2011(2)December 2010(1)

    November 2010(1)October 2010(1)September 2010(3)August 2010(4)July 2010(2)June 2010(9)May 2010(6)April 2010(8)March 2010(8)February 2010(11)

    January 2010(7)December 2009(9)

    November 2009(12)October 2009(10)

    Back to Top Back to Blogs

    Company

    http://www.iwarelogic.com/2011/09/http://www.iwarelogic.com/2010/12/http://www.iwarelogic.com/2011/06/http://www.iwarelogic.com/2010/09/http://www.iwarelogic.com/2012/03/http://www.iwarelogic.com/2010/04/http://www.iwarelogic.com/2011/10/http://www.iwarelogic.com/2010/08/http://www.iwarelogic.com/2010/01/http://www.iwarelogic.com/2010/05/http://www.iwarelogic.com/2012/09/http://www.iwarelogic.com/2011/03/http://www.iwarelogic.com/2014/05/http://www.iwarelogic.com/training/http://www.iwarelogic.com/2010/07/http://www.iwarelogic.com/services-3/http://www.iwarelogic.com/2010/11/http://www.iwarelogic.com/2010/03/http://www.iwarelogic.com/2012/12/http://www.iwarelogic.com/2012/11/http://iwarelogic.com/category/blog/http://www.iwarelogic.com/2011/07/http://www.iwarelogic.com/2011/08/http://www.iwarelogic.com/2011/12/http://www.iwarelogic.com/company/http://www.iwarelogic.com/http://www.iwarelogic.com/2009/11/http://www.iwarelogic.com/2012/08/http://www.iwarelogic.com/2012/01/http://www.iwarelogic.com/2011/11/http://www.iwarelogic.com/solutions/http://www.iwarelogic.com/2009/10/http://www.iwarelogic.com/2012/02/http://www.iwarelogic.com/2010/10/http://www.iwarelogic.com/2013/04/http://www.iwarelogic.com/2010/02/http://www.iwarelogic.com/2011/04/http://www.iwarelogic.com/2009/12/http://www.iwarelogic.com/2010/06/http://www.iwarelogic.com/2014/04/http://www.iwarelogic.com/company/http://www.iwarelogic.com/2011/05/
  • 7/23/2019 Performance Increasing in OBIEE

    14/14

    9/8/2015 Performance Increasing In OBIEE

    iWare Logic OverviewDirectorsPartnersSitemap

    SolutionsOracle SolutionsMetricEdgeHP Solutions

    ServicesOracle DBA Remote SupportOracle Business IntelligenceOracle APEXOracle AppsSiebel

    TrainingClass ScheduleCourse Catalog

    Testimonials

    ResourcesWebinarsWhite PapersCase Studies

    Follow Us

    Copyright2014 iWare Logic Technologies Pvt. Ltd. Use of this site signifies your acceptance of iWareLogic's Privacy PolicyDisclaimerSitemap.

    http://www.linkedin.com/company/iware-logic-technologies-pvt.-ltd.http://www.iwarelogic.com/resources/white-papers/https://plus.google.com/107811467860422336768/http://www.iwarelogic.com/training/http://www.iwarelogic.com/company/partners/https://twitter.com/oracleconnecthttp://www.iwarelogic.com/sitemap/http://www.iwarelogic.com/sitemap/http://www.iwarelogic.com/resources/webinars/http://www.iwarelogic.com/resources/case-studies/http://www.iwarelogic.com/services-3/siebel/http://www.iwarelogic.com/services-3/oracle-dba-remote-support/http://www.iwarelogic.com/solutions/oracle-solutions/http://www.slideshare.net/iwareoraclehttp://www.iwarelogic.com/services-3/oracle-business-intelligence/http://www.iwarelogic.com/company/directors/http://www.iwarelogic.com/solutions/http://www.iwarelogic.com/solutions/hp-solutions/http://www.iwarelogic.com/training/course-catalog/http://www.iwarelogic.com/solutions/metricedge/http://www.iwarelogic.com/services-3/oracle-apex/https://www.facebook.com/OracleConnect.iWareLogichttp://www.iwarelogic.com/services-3/http://www.iwarelogic.com/resources/http://www.iwarelogic.com/company/iwarelogic-overview/http://www.iwarelogic.com/copyright/http://www.iwarelogic.com/training/class-schedule/http://www.iwarelogic.com/services-3/oracle-apps/http://www.iwarelogic.com/training/testimonials/http://www.iwarelogic.com/disclaimer/http://vimeo.com/user3201176http://www.iwarelogic.com/privacy-policy/