IBM Cognos 10 Dynamic Query Cookbook

  • View
    2.967

  • Download
    5

Embed Size (px)

Text of IBM Cognos 10 Dynamic Query Cookbook

Guideline

The IBM Cognos 10 Dynamic Query CookbookProduct(s): IBM Cognos 10 Area of Interest: Infrastructure

The IBM Cognos 10 Dynamic Query Cookbook

2

Copyright and Trademarks Licensed Materials - Property of IBM. Copyright IBM Corp. 2010 IBM, the IBM logo, and Cognos are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at http://www.ibm.com/legal/copytrade.shtml While every attempt has been made to ensure that the information in this document is accurate and complete, some typographical errors or technical inaccuracies may exist. IBM does not accept responsibility for any kind of loss resulting from the use of information contained in this document. The information contained in this document is subject to change without notice. This document is maintained by the Best Practices, Product and Technology team. You can send comments, suggestions, and additions to cscogpp@ca.ibm.com.

Business Analytics

The IBM Cognos 10 Dynamic Query Cookbook

3

Contents1 1.1 1.2 1.3 2 2.1 2.2 2.3 2.4 2.5 3 3.1 3.1.1 3.2 3.2.1 INTRODUCTION ............................................................................................ 5 PURPOSE ..............................................................................................................5 APPLICABILITY .......................................................................................................5 EXCLUSIONS AND EXCEPTIONS ....................................................................................5 INTRODUCTION TO THE IBM COGNOS 10 DYNAMIC QUERY MODE ............ 5 QUERY OPTIMIZATION..............................................................................................5 PERFORMANCE IMPROVEMENT THROUGH BALANCED LOCAL PROCESSING FACILITIES .................. 6 SECURITY-AWARE CACHING .......................................................................................6 NEW DATA INTERFACES LEVERAGING 64 BIT PROCESSING .................................................. 6 EASE OF MAINTENANCE WITH QUERY VISUALIZATION........................................................ 6 THE IBM COGNOS 10 ARCHITECTURE .......................................................... 7 ARCHITECTURAL DIAGRAM OF COMPATIBLE QUERY MODE .................................................. 7 Basic Request Flow of a Compatible Query ............................................................8 ARCHITECTURAL DIAGRAM OF DYNAMIC QUERY MODE .................................................... 11 Basic Request Flow of a Dynamic Query .............................................................. 12

4 CONFIGURING IBM COGNOS 10 DYNAMIC QUERY MODE DATA SOURCE CONNECTIVITY....................................................................................................... 15 4.1 UNDERSTANDING HOW IBM COGNOS 10 CONNECTS TO ORACLE ESSBASE ............................ 15 4.2 STEP BY STEP EXAMPLE OF CONFIGURING THE ORACLE ESSBASE CONNECTIVITY FOR USE WITHIN IBM COGNOS 10.............................................................................................................. 16 4.3 ORACLE ESSBASE DATA SOURCE SPECIFIC IBM COGNOS 10 CONFIGURATION SETTINGS........... 17 4.3.1 Treat Nulls as Zeros within Calculations............................................................... 17 4.4 UNDERSTANDING HOW IBM COGNOS 10 CONNECTS TO SAP BW ...................................... 18 4.5 STEP BY STEP EXAMPLE OF CONFIGURING THE SAP BW CONNECTIVITY FOR USE WITHIN IBM COGNOS 10 (64 BIT ONLY) ................................................................................................. 18 4.6 SAP BW DATA SOURCE SPECIFIC IBM COGNOS 10 CONFIGURATION SETTINGS ..................... 18 4.6.1 Treat Nulls as Zeros within Calculations............................................................... 19 4.7 UNDERSTANDING HOW IBM COGNOS 10 CONNECTS TO IBM COGNOS TM1 ......................... 19 4.8 STEP BY STEP EXAMPLE OF CONFIGURING THE IBM COGNOS TM1 CONNECTIVITY FOR A WINDOWS INSTALL OF IBM COGNOS 10............................................................................................... 20 4.9 IBM COGNOS TM1 DATA SOURCE SPECIFIC IBM COGNOS 10 CONFIGURATION SETTINGS ........ 22 4.9.1 UseNonEmptyOnDataQueryThreshold ................................................................. 22 4.9.2 UseProviderCrossJoinThreshold .......................................................................... 23 5 IBM COGNOS 10 FRAMEWORK MANAGER AND DYNAMIC QUERY MODE DATA SOURCES....................................................................................................... 24 5.1 5.2 5.3 6 6.1 6.1.1 6.1.2 7 7.1 7.1.1 7.2 7.3 CREATE A PROJECT, DATA SOURCE CONNECTION, AND PACKAGE FOR ORACLE ESSBASE ............ 24 CREATE A PROJECT, DATA SOURCE CONNECTION, AND PACKAGE FOR SAP BW ...................... 28 CREATE A PROJECT, DATA SOURCE CONNECTION, AND PACKAGE FOR IBM COGNOS TM1 ......... 32 IBM COGNOS 10 ADMINISTRATION........................................................... 36 ADMINISTRATION FEATURES SPECIFIC TO DYNAMIC QUERY MODE ...................................... 36 Status Tab ........................................................................................................ 36 Configuration Tab.............................................................................................. 36 IBM COGNOS 10 CACHING ......................................................................... 45 ONLINE ANALYTICAL PROCESSING (OLAP) CACHE ......................................................... 45 A Practical OLAP Cache Example......................................................................... 47 CONTEXT DEPENDENCY........................................................................................... 50 TO CACHE OR NOT TO CACHE .................................................................................. 51

Business Analytics

The IBM Cognos 10 Dynamic Query Cookbook

4

8 8.1 8.1.1 8.1.2 by the 8.1.3 9 9.1 9.1.1 9.2 9.2.1 9.3 9.4 9.4.1 9.4.2 9.4.3 Query 9.4.4 9.5

TRANSITIONING FROM COMPATIBLE TO DYNAMIC MODE ....................... 52

OLAP SCENARIOS ................................................................................................. 52 Nonadjacent Nesting of Levels from the same Hierarchy ....................................... 52 Nesting Levels from the Same Hierarchy in a different Hierarchical order than Defined Metadata............................................................................................................ 55 Same Hierarchy on Multiple Edges ...................................................................... 57 8.1.4 Using % of Each Column Total within IBM Cognos Analysis Studio......................... 59 DEBUGGING AND TROUBLESHOOTING THE DYNAMIC QUERY MODE ....... 61 QUERY EXECUTION TRACE ....................................................................................... 61 Enable the Query Execution Trace ...................................................................... 61 QUERY PLANNING TRACE ........................................................................................ 62 Enabling the Query Plan Trace............................................................................ 62 CHANGING THE DEFAULT LOG OUTPUT DIRECTORY ........................................................ 63 IBM COGNOS DYNAMIC QUERY ANALYZER ................................................................... 63 Installing the IBM Cognos Dynamic Query Analyzer .............................................. 64 IBM Cognos Dynamic Query Analyzer Configuration ............................................. 64 Running a Report and Viewing the Remote Logs using the IBM Cognos Dynamic Analyzer ............................................................................................................. 70 Dynamic Query Analyzer in Action: A Suppression Case Study .............................. 75 SUBMITTING A DYNAMIC QUERY MODE TEST CASE TO IBM COGNOS SUPPORT ...................... 81

Business Analytics

The IBM Cognos 10 Dynamic Query Cookbook

5

1 Introduction1.1 Purpose This document is intended to provide a single point of reference for techniques and product behaviours when dealing with the Dynamic Query Mode delivered with IBM Cognos 10. Applicability The techniques and product behaviours outlined in this document apply to: IBM Cognos Business Intelligence 10.1 build 4707.541 Exclusions and Exceptions The techniques and product behaviours outlined in this document may not be applicable to future releases.

1.2

1.3

2 Introduction to the IBM Cognos 10 Dynamic Query ModeThe Dynamic Query Mode is an enhanced Java based query mode which offers the following key capabilities.

2.1

Query optimizations to address query complexity, data volumes and timeliness expectations with improved query execution techniques. Significant improvement for complex OLAP queries through intelligent combination of local and remote processing and better MDX generation. Security-aware caching. New data Interfaces leveraging 64 bit processing. Ease of maintenance with query visualization.

Query Optimization The optimization of the queries is achieved through the advanced application of strict query planning rules. These planning rules incorporate the next generation planning approach which is more streamlined and produces higher quality and faster to execute queries. The query planning process is also in itself optimized to make better use of metadata and expression level caches, including plan caches which provide higher application throughput.

Business Analytics

The IBM Cognos

Recommended

View more >