Scenario 2: Cognos SQL and Native SQL.



Similar documents
Multiple Aligned Column Headers in Lists and Crosstabs

Creating IBM Cognos Controller Databases using Microsoft SQL Server

Configuring IBM Cognos Controller 8 to use Single Sign- On

Table of Contents. 4 Receivables Analytics for Oracle E-Business Suite

UltraQuest Cloud Server. White Paper Version 1.0

Fact Sheet In-Memory Analysis

How To Connect A Java To A Microsoft Database To An Ibm.Com Database On A Microsq Server On A Blackberry (Windows) Computer (Windows 2000) On A Powerpoint (Windows 5) On An Ubio.Com

Troubleshooting Active Directory Server

Enabling Single Signon with IBM Cognos ReportNet and SAP Enterprise Portal

Enabling Single Signon with IBM Cognos 8 BI MR1 and SAP Enterprise Portal

Table of Contents. 4 General Ledger Analytics for Oracle E-Business Suite

Integrating IBM Cognos 8 BI with 3rd Party Auhtentication Proxies

DEPLOYMENT ROADMAP March 2015

Enabling Single-Sign-On on WebSphere Portal in IBM Cognos ReportNet

Enabling Single-Sign-On between IBM Cognos 8 BI and IBM WebSphere Portal

Feith Rules Engine Version 8.1 Install Guide

GENWARE COMPUTER SYSTEMS AUDITING SOLUTION FOR COGNOS BUSINESS INTELLIGENCE

The strategic importance of OLAP and multidimensional analysis A COGNOS WHITE PAPER

Business Intelligence Tool Migration. Title: Domain: Client: Location:

Treemap by Category Visualizations. Product: IBM Cognos Active Report Area of Interest: Reporting

Creating Mailing Lables in IBM Cognos 8 Report Studio

The IBM Cognos Platform for Enterprise Business Intelligence

Implementing Failover through Load Balancing within IBM Cognos 8

An Oracle White Paper February Oracle Data Integrator 12c Architecture Overview

Cognos (R) 8 Analytic Applications

Using Temporary Tables to Improve Performance for SQL Data Services

IBM Cognos Planning Data Validation Example

Tip and Technique on creating adhoc reports in IBM Cognos Controller

CDP Support Guide. Support Plans & Services

Extensible Visualizations. Product: IBM Cognos Business Intelligence Area of Interest: Reporting

IBM TRIRIGA Application Platform Version Reporting: Creating Cross-Tab Reports in BIRT

Fast and Easy Delivery of Data Mining Insights to Reporting Systems

Chapter 9 Joining Data from Multiple Tables. Oracle 10g: SQL

Combination Chart Extensible Visualizations. Product: IBM Cognos Business Intelligence Area of Interest: Reporting

The LivePerson Tag. Technical Data Sheet. Document Version: 1.0. December 2012

IBM Cognos 8 Business Intelligence Analysis Discover the factors driving business performance

Big Data Analytics with IBM Cognos BI Dynamic Query IBM Redbooks Solution Guide

IBM Cognos Analysis for Microsoft Excel

Server Consolidation with SQL Server 2008

Failover Manager for WhatsUp Gold v16.0 Quick Start Guide

Data Domain Discovery in Test Data Management

Data Domain Profiling and Data Masking for Hadoop

Upgrade to Oracle E-Business Suite R12 While Controlling the Impact of Data Growth WHITE PAPER

AvePoint CRM Migration Manager for Microsoft Dynamics CRM. Release Notes

SQL Server 2012 Gives You More Advanced Features (Out-Of-The-Box)

DOCUMENTATION FILE RESTORE

IBM Cognos Performance Management Solutions for Oracle

Mapping Analyst for Excel Guide

David M. Kroenke and David J. Auer Database Processing 11 th Edition Fundamentals, Design, and Implementation. Chapter Objectives

SimCorp Solution Guide

TECHNOLOGY BRIEF: CA ERWIN SAPHIR OPTION. CA ERwin Saphir Option

Replicating Salesforce.com Data for Operational Reporting and Compliance WHITE PAPER

Rational Reporting. Module 2: IBM Rational Insight Data Warehouse

David M. Kroenke and David J. Auer Database Processing 12 th Edition

Oracle FLEXCUBE Universal Banking 12.0

Feith Document Database Version 8.1 Install Guide

MDM Multidomain Edition (Version 9.6.0) For Microsoft SQL Server Performance Tuning

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

LivePerson Training Services Catalog

Consolidation process in IBM Cognos Controller using Batch Processing

SharePlex for SQL Server

Working with the Call Center

What s New. Archive Attender 4 For Microsoft Exchange

Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R

TaskCentre v4.5 Run Crystal Report Tool White Paper

How to Configure a Secure Connection to Microsoft SQL Server

Migrate AS 400 Applications to Windows, UNIX or Linux

IBM Cognos 10: Enhancing query processing performance for IBM Netezza appliances

Making Business Intelligence Easy. Whitepaper Measuring data quality for successful Master Data Management

Difference Between Non-perpetual (Periodic) and Perpetual Inventory

Best Practices with IBM Cognos Framework Manager & the SAP Business Warehouse Agnes Chau Cognos SAP Solution Specialist

COGNOS (R) ENTERPRISE PLANNING SERIES

DOCUMENTATION SYSTEM STATE BACKUP & RESTORE OPERATIONS

White Paper. Myths about Historians. What s Inside: Author: Elliott Middleton, Product Manager, Historian & Clients, Invensys Operations Management

Pipeliner CRM Phaenomena Guide Lead Management Pipelinersales Inc.

Sage 100 ERP Intelligence. Citrix Environment Installation Guide

ORACLE BUSINESS INTELLIGENCE, ORACLE DATABASE, AND EXADATA INTEGRATION

QUERY PERFORMANCE TUNING IN SQL SERVER PDF

AvePoint Record Rollback for Microsoft Dynamics CRM

AvePoint SearchAll for Microsoft Dynamics CRM

Database Backup and Recovery Guide

IBM Lotus Enterprise Integrator (LEI) for Domino. Version August 17, 2010

User Pass-Through Authentication in IBM Cognos 8 (SSO to data sources)

UNIX Operating Environment

An Oracle White Paper November Leveraging Massively Parallel Processing in an Oracle Environment for Big Data Analytics

ADVANTAGES OF IMPLEMENTING A DATA WAREHOUSE DURING AN ERP UPGRADE

Oracle BI 10g: Analytics Overview

Microsoft s SQL Server Parallel Data Warehouse Provides High Performance and Great Value

Fact Sheet Yellowfin & Cloud Computing

Endpoint web control overview guide. Sophos Web Appliance Sophos Enterprise Console Sophos Endpoint Security and Control

Rational Reporting. Module 3: IBM Rational Insight and IBM Cognos Data Manager

DOCUMENTATION MICROSOFT SQL BACKUP & RESTORE OPERATIONS

High Availability And Disaster Recovery

KonyOne Server Prerequisites _ MS SQL Server

Using the Caché SQL Gateway

AvePoint Record Rollback for Microsoft Dynamics CRM. Release Notes

HR Data Retrieval in a LDAP- Enabled Directory Service

Configuring Hadoop Distributed File Service as an Optimized File Archive Store

Essbase Integration Services Release 7.1 New Features

Transcription:

Proven Practice Scenario 2: Cognos SQL and Native SQL. Product(s): IBM Cognos ReportNet and IBM Cognos 8 Area of Interest: Performance

Scenario 2: Cognos SQL and Native SQL. 2 Copyright Copyright 2008 Cognos ULC (formerly Cognos Incorporated). Cognos ULC is an IBM Company. 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. Cognos does not accept responsibility for any kind of loss resulting from the use of information contained in this document. This document shows the publication date. The information contained in this document is subject to change without notice. Any improvements or changes to the information contained in this document will be documented in subsequent editions. This document contains proprietary information of Cognos. All rights are reserved. No part of this document may be copied, photocopied, reproduced, stored in a retrieval system, transmitted in any form or by any means, or translated into another language without the prior written consent of Cognos. Cognos and the Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated) in the United States and/or other countries. IBM and the IBM logo are trademarks of International Business Machines Corporation in the United States, or other countries, or both. All other names are trademarks or registered trademarks of their respective companies. Information about Cognos products can be found at www.cognos.com This document is maintained by the Best Practices, Product and Technology team. You can send comments, suggestions, and additions to cscogpp@ca.ibm.com.

Scenario 2: Cognos SQL and Native SQL. 3 Contents 1 INTRODUCTION... 4 1.1 PURPOSE...4 1.2 APPLICABILITY...4 1.3 EXCLUSIONS AND EXCEPTIONS...4 2 THEORY BEHIND THE TECHNIQUE... 4 3 ANALYSING THE EXISTING NATIVE AND COGNOS SQL... 4 4 UPDATING THE EXISTING MODEL... 5 5 REFERENCE FILES... 6

Scenario 2: Cognos SQL and Native SQL. 4 1 Introduction 1.1 Purpose This document outlines how to optimize a specific report by evaluating the difference between the Native and Cognos SQL generated by a specific query. 1.2 Applicability This document applies to all known versions of ReportNet and IBM Cognos 8 available at the time this document was created. 1.3 Exclusions and Exceptions The technique outlined in this paper is suitable for identifying a possible performance issue by analysing the Native and Cognos SQL produced by slow performing query. This approach is scenario specific. 2 Theory behind the Technique When viewing the SQL of a query, a user can either view the Native or the Cognos SQL. The Native SQL is what is being passed to the database. Where the Cognos SQL is the entire SQL used to perform the SQL. In certain scenarios, the native SQL will be a subset of the Cognos SQL which may indicate that the application will do some local processing. If the cause of the local processing can be identified, it may be possible to implement a report or model change to alleviate the local processing requirement. 3 Analysing the Existing Native and Cognos SQL Extract the Native and Cognos SQL for the given query: Native: select "RETURNED_ITEM"."RETURN_REASON_CODE" from "GOSL"."dbo"."RETURNED_ITEM" "RETURNED_ITEM" order by 1 asc select "RETAILER"."RETAILER_CODE" from "GORT"."dbo"."RETAILER" "RETAILER" order by 1 asc Cognos SQL: select 1 as C CubeDetailsItem, XSUM(RETAILER.RETAILER_CODE ) as RETAILER_CODE,

Scenario 2: Cognos SQL and Native SQL. 5 XSUM(RETURNED_ITEM.RETURN_REASON_CODE ) as RETURN_REASON_CODE from GOSL.GOSL.dbo.RETURNED_ITEM RETURNED_ITEM left outer join GORT.GORT.dbo.RETAILER RETAILER on (RETAILER.RETAILER_CODE = RETURNED_ITEM.RETURN_REASON_CODE) group by 1 The native SQL consists of two separate select statements. A closer look reveals that the qualifications are different. This indicates that each of the two columns come from a table in a different schema. The Cognos SQL shows that the query requires a left outer join relationship between the two tables. However, since this relationship is not included in the Native SQL, it is being processed locally. Depending on the size of the tables involved this may impact performance. Due to the different schema qualifications, the tables were imported as two different data sources. These force the application to treat the query as federated. 4 Updating the existing model The model will need to be updated to include both tables under the same data source. This can be done either with an Oracle user which has access to both schemas or via a cross schema view. Once the model has been updated both the Native and Cognos SQL will contain the left outer join. Native: select distinct "RETAILER"."RETAILER_CODE" "RETAILER_CODE", "RETURNED_ITEM"."RETURN_CODE" "RETURN_CODE" from "GORT"."RETAILER" "RETAILER" LEFT OUTER JOIN "GOSL"."RETURNED_ITEM" "RETURNED_ITEM" on "RETAILER"."RETAILER_CODE"="RETURNED_ITEM"."RETURN_REASON_CODE" Cognos: select distinct RETAILER.RETAILER_CODE as RETAILER_CODE, RETURNED_ITEM.RETURN_CODE as RETURN_CODE from OracleSystem..GORT.RETAILER RETAILER left outer join

Scenario 2: Cognos SQL and Native SQL. 6 OracleSystem..GOSL.RETURNED_ITEM RETURNED_ITEM on (RETURNED_ITEM.RETURN_REASON_CODE = RETAILER.RETAILER_CODE) 5 Reference Files The model created for this example is based on the GO Sales Retailers and GO Data Warehouse sample data and model. This new model can exist on separately from the GO Data Warehouse model but depends on the sample database to execute the queries. Follow the instructions available in the User Guides to restore the sample data for this application. MultipleSchema.zip MultipleSchemasOracleUID.zip The published package and report sample (generated using ReportNet 1.1 MR2) are included in the following deployment file. See the Administration and Security Guide for details on importing deployment files. FederatedQueries.zip Includes both the Problem (MultipleSchemas) and the Solution (MultipleSchemasOracleUID)