IBM Cognos Business Intelligence Version 10.2.2: ... summary query . If you use the dynamic query mode,

  • View
    0

  • Download
    0

Embed Size (px)

Text of IBM Cognos Business Intelligence Version 10.2.2: ... summary query . If you use the dynamic query...

  • IBM Cognos Business Intelligence Version 10.2.2

    Dynamic Query Guide

    IBM

  • Note Before using this information and the product it supports, read the information in “Notices” on page 65.

    Product Information

    This document applies to IBM Cognos Business Intelligence Version 10.2.2 and may also apply to subsequent releases.

    Licensed Materials - Property of IBM

    © Copyright IBM Corporation 2010, 2014. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

  • Contents

    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v

    Chapter 1. What's new in the Dynamic Query Mode . . . . . . . . . . . . . . . . . 1 New features in the dynamic query mode in version 10.2.2 . . . . . . . . . . . . . . . . . . . . 1

    Optimization of joins by applying filters in Cognos Framework Manager and Cognos Report Studio . . . . . 1 Retrieval of summarized data without entering explicit aggregates in expressions in query items . . . . . . 1 Creation of a bridge table to link star schemas or subject areas in a model . . . . . . . . . . . . . . 2

    New features in the dynamic query mode in version 10.2.1 . . . . . . . . . . . . . . . . . . . . 2 New governors in Cognos Framework Manager to control query performance and execution . . . . . . . 2 New property to control stored procedures requiring read/write transactions. . . . . . . . . . . . . 2

    New features in the dynamic query mode in version 10.2.0 . . . . . . . . . . . . . . . . . . . . 3

    Chapter 2. Dynamic query mode . . . . . . . . . . . . . . . . . . . . . . . . . 5 Key improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 In-memory caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Optimized master detail relationships in reports . . . . . . . . . . . . . . . . . . . . . . . 9 Enhanced null suppression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Query visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Considerations when using the dynamic query mode . . . . . . . . . . . . . . . . . . . . . 11

    OLAP over relational considerations . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Models that use multiple data sources . . . . . . . . . . . . . . . . . . . . . . . . . 12 Minimal support for SAP BW modeling in Framework Manager . . . . . . . . . . . . . . . . 12 Importing relational metadata to Framework Manager . . . . . . . . . . . . . . . . . . . . 12

    Chapter 3. Set up the dynamic query mode . . . . . . . . . . . . . . . . . . . . 15 Setting up reporting connectivity for relational databases to use the dynamic query mode . . . . . . . . . 15

    Setting up connectivity for IBM DB2 data sources on Linux, UNIX, and Microsoft Windows . . . . . . . 16 Setting up connectivity for IBM DB2 data sources on z/OS . . . . . . . . . . . . . . . . . . 16 Setting up connectivity for IBM Netezza data sources . . . . . . . . . . . . . . . . . . . . 17 Setting up connectivity for Microsoft SQL Server data sources . . . . . . . . . . . . . . . . . 17 Setting up connectivity for Oracle data sources . . . . . . . . . . . . . . . . . . . . . . 17 Setting up connectivity for SAP ECC data sources . . . . . . . . . . . . . . . . . . . . . 18 Setting up connectivity for Siebel data sources. . . . . . . . . . . . . . . . . . . . . . . 18 Setting up connectivity for Teradata data sources . . . . . . . . . . . . . . . . . . . . . . 19 Setting up connectivity for data sources using the JDBC connection type . . . . . . . . . . . . . . 19

    Setting up reporting connectivity for OLAP data sources to use the dynamic query mode . . . . . . . . . 20 Setting up connectivity for IBM Cognos TM1 data sources. . . . . . . . . . . . . . . . . . . 20 Setting up connectivity for Oracle Essbase data sources. . . . . . . . . . . . . . . . . . . . 21 Connecting to Microsoft SQL Server Analysis Services data sources from Microsoft Windows . . . . . . . 23 Connecting to Microsoft SQL Server Analysis Services data sources from Linux, UNIX, or Microsoft Windows 24 Setting up connectivity for SAP BW data sources . . . . . . . . . . . . . . . . . . . . . . 25

    Enabling Framework Manager models and packages to use the dynamic query mode . . . . . . . . . . 26 Creating a project, connection, and package for an IBM DB2 data source . . . . . . . . . . . . . . 26 Creating a project, connection, and package for an IBM Cognos TM1 data source . . . . . . . . . . . 28 Creating a project, connection, and package for an IBM Netezza data source . . . . . . . . . . . . 29 Creating a project, connection, and package for an Oracle Essbase data source . . . . . . . . . . . . 31 Creating a project, connection, and package for a Microsoft SQL Server Analysis Services data source . . . . 32 Creating a project, connection, and package for an SAP BW data source . . . . . . . . . . . . . . 34 Creating a project, connection, and package for a Microsoft SQL Server data source . . . . . . . . . . 35 Creating a project, connection, and package for an ERP data source . . . . . . . . . . . . . . . 37 Creating a project, connection, and package for a Teradata data source . . . . . . . . . . . . . . 42 Creating a project, connection, and package for an Oracle data source . . . . . . . . . . . . . . . 44 Creating a project, connection, and package for a JDBC data source . . . . . . . . . . . . . . . 46 Changing the query mode for a project . . . . . . . . . . . . . . . . . . . . . . . . . 48 Overriding the query mode for packages or query testing . . . . . . . . . . . . . . . . . . . 48

    © Copyright IBM Corp. 2010, 2014 iii

  • Administer the Query Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Member ordering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Test migrated reports using Lifecycle Manager . . . . . . . . . . . . . . . . . . . . . . . 51 Framework Manager governors for the dynamic query mode. . . . . . . . . . . . . . . . . . . 51 Optimizing joins by applying filters . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Creating a summary query in a model . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Creating a relationship between distinct data sets by creating a bridge table . . . . . . . . . . . . . . 57 Stored procedures and transaction access modes . . . . . . . . . . . . . . . . . . . . . . . 58 Troubleshooting the dynamic query mode . . . . . . . . . . . . . . . . . . . . . . . . . 59

    Query execution trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Query planning trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Changing the default log file output directory . . . . . . . . . . . . . . . . . . . . . . . 61

    Sample reports for the dynamic query mode . . . . . . . . . . . . . . . . . . . . . . . . 61 Modify the data source connections to the sample data sources . . . . . . . . . . . . . . . . . 61 Import the dynamic query samples content (packages) into the content store . . . . . . . . . . . . 62

    Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

    Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

    iv IBM Cognos Business Intelligence Version 10.2.2: Dynamic Query Guide

  • Introduction

    This document describes the benefits of the dynamic query mode of IBM® Cognos®

    Business Intelligence and will help you decide whether to use it for your organization. It provides the steps that are necessary to implement dynamic query mode.

    Finding information

    To find product documentation on the web, including all translated documentation, access IBM Knowledge Center (http://www.ibm.com/support/ knowledgecenter).

    Accessibility features

    IBM Cognos HTML documentation has accessibility features. PDF documents are supplemental and, as such, include no added accessibility features.

    Forward-looking statements

    This documentation describes the current functionality of the product. References to items that are not currently available may be included. No implication of any future availability should be inferred. Any such references are not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of features or functionality remain at the sole discretion of IBM.

    Samples disclaimer

    The Sample Outdoors Company, Great Outdoors Company, GO Sales, any variation of the Sample Outdoors or Great Outdoors names, and Planning Sample depict fictitious business operations with sample data used to develop sample applications for IBM and IBM customers. These fictitious records include sample data for sales transactions, product distribution, finance, and human resources. Any resemblance to actual names, addresses, contact numbers, or transaction values is coincidental. Other sample files may contain fictional data manually or machine generated, factual data compiled from academic or public sources, or data used with permission of the copyright holder, for use as sample data to develop sample applications. Product names referenced may be the trademarks of their respective owners. Unauthorized duplication is prohibited.

    © Copyright IBM Corp. 2010, 2014 v

    http://www.ibm.com/support/knowledgecenter

  • vi IBM Cognos Business Intelligence Version 10.2.2: Dynamic Query Guide

  • Chapter 1. What's new in the Dynamic Query Mode

    This section contains a list of new, changed, deprecated, and removed features for this release.

    It will help you plan