Working with the Cognos BI Server Using the Greenplum Database



Similar documents
OBIEE 11g Analytics Using EMC Greenplum Database

> ACCESSING SQL SERVER FROM IBM COGNOS BI SERVER.

Greenplum Database 4.0 Connectivity Tools for Windows

Reconfiguring VMware vsphere Update Manager

DEPLOYING EMC DOCUMENTUM BUSINESS ACTIVITY MONITOR SERVER ON IBM WEBSPHERE APPLICATION SERVER CLUSTER

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

SQL Express to SQL Server Database Migration MonitorIT v10.5

Setting Up a Unisphere Management Station for the VNX Series P/N Revision A01 January 5, 2010

NovaBACKUP xsp Version 15.0 Upgrade Guide

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

SETTING UP ACTIVE DIRECTORY (AD) ON WINDOWS 2008 FOR EROOM

Installing the BlackBerry Enterprise Server Management Software on an administrator or remote computer

Dell Statistica Statistica Enterprise Installation Instructions

Configure an ODBC Connection to SAP HANA

Installation Instruction STATISTICA Enterprise Small Business

Greenplum Database (software-only environments): Greenplum Database (4.0 and higher supported, or higher recommended)

INTEROPERABILITY OF SAP BUSINESS OBJECTS 4.0 WITH GREENPLUM DATABASE - AN INTEGRATION GUIDE FOR WINDOWS USERS (64 BIT)

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Matisse Installation Guide for MS Windows. 10th Edition

Matisse Installation Guide for MS Windows

Voyager Reporting System (VRS) Installation Guide. Revised 5/09/06

Deploying EMC Documentum WDK Applications with IBM WebSEAL as a Reverse Proxy

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

AWS Schema Conversion Tool. User Guide Version 1.0

Enterprise Deployment of the EMC Documentum WDK Application

Use QNAP NAS for Backup

Architecting the Future of Big Data

MGC WebCommander Web Server Manager

IBM WEBSPHERE LOAD BALANCING SUPPORT FOR EMC DOCUMENTUM WDK/WEBTOP IN A CLUSTERED ENVIRONMENT

Team Foundation Server 2012 Installation Guide

Crystal Reports Installation Guide

WhatsUp Gold v16.1 Installation and Configuration Guide

Connect to MySQL or Microsoft SQL Server using R

EMC ApplicationXtender Server

Connect to an SSL-Enabled Microsoft SQL Server Database from PowerCenter on UNIX/Linux

Reconfiguration of VMware vcenter Update Manager

Replicating VNXe3100/VNXe3150/VNXe3300 CIFS/NFS Shared Folders to VNX Technical Notes P/N h REV A01 Date June, 2011

Application Notes for Configuring Dorado Software Redcell Enterprise Bundle using SNMP with Avaya Communication Manager - Issue 1.

VMware vcenter Configuration Manager and VMware vcenter Application Discovery Manager Integration Guide

Reconfiguring VMware vsphere Update Manager

Enterprise Manager. Version 6.2. Installation Guide

SimbaEngine SDK 9.4. Build a C++ ODBC Driver for SQL-Based Data Sources in 5 Days. Last Revised: October Simba Technologies Inc.

Migrating to Azure SQL Database

Telelogic DASHBOARD Installation Guide Release 3.6

Process Integrator Deployment on IBM Webspher Application Server Cluster

WhatsUp Gold v16.3 Installation and Configuration Guide

Installing Management Applications on VNX for File

Aradial Installation Guide

Training module 2 Installing VMware View

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Human Resources Installation Guide

Synchronization Agent Configuration Guide

AWS Schema Conversion Tool. User Guide Version 1.0

Connecting LISTSERV to an Existing Database Management System (DBMS)

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Using Caché with ODBC

Millennium Drive. Installation Guide

EMC ApplicationXtender Server

APPLE PUSH NOTIFICATION IN EMC DOCUMENTUM MOBILE APPLICATION

Architecting the Future of Big Data

SolarWinds Migrating SolarWinds NPM Technical Reference

Operating System Installation Guide

Application Notes for Calabrio Workforce Management Release 9.2(1) SR3 with Avaya Aura Contact Center Release 6.4 Issue 1.0

Setting Up ALERE with Client/Server Data

Using the Caché SQL Gateway

ENABLING SINGLE SIGN-ON FOR EMC DOCUMENTUM WDK-BASED APPLICATIONS USING IBM WEBSEAL ON AIX

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

WebSphere Business Monitor V7.0: Clustering Single cluster deployment environment pattern

EMC Documentum Repository Services for Microsoft SharePoint

Deploying Business Objects Crystal Reports Server on IBM InfoSphere Balanced Warehouse C-Class Solution for Windows

Data Collection Agent for Active Directory

Installing Cobra 4.7

HYPERION SYSTEM 9 N-TIER INSTALLATION GUIDE MASTER DATA MANAGEMENT RELEASE 9.2

ODBC Driver User s Guide. Objectivity/SQL++ ODBC Driver User s Guide. Release 10.2

DameWare Server. Administrator Guide

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

RE:Open for SQL Anywhere. Installation Guide. RE:Open for SQL Anywhere Installation Guide 1

Database migration using Wizard, Studio and Commander. Based on migration from Oracle to PostgreSQL (Greenplum)

RSA Authentication Manager 8.1 Virtual Appliance Getting Started

Novell Access Manager

Cloudera ODBC Driver for Apache Hive Version

Active Directory Management. Agent Deployment Guide

Cloud Services ADM. Agent Deployment Guide

TelePresence Migrating TelePresence Management Suite (TMS) to a New Server

EMC Documentum Content Services for SAP iviews for Related Content

EMC Documentum Business Process Suite

NetIQ Aegis Adapter for Databases

Scheduling in SAS 9.3

PowerSchool Student Information System

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

WINDOWS SERVER 2008 OFFLINE SYSTEM RECOVERY USING WINDOWS SERVER BACKUP WITH NETWORKER

IBM WebSphere Application Server Version 7.0

Installing SQL Express. For CribMaster 9.2 and Later

Sage 300 ERP Installation and Administration Guide

SQL Express to SQL Server Database Migration Goliath Performance Monitor v11.5

IBM Configuring Rational Insight and later for Rational Asset Manager

Configuring and Monitoring Citrix Branch Repeater

Greenplum Database 4.3 Connectivity Tools for UNIX

Transcription:

White Paper Working with the Cognos BI Server Using the Greenplum Database Interoperability and Connectivity Configuration for AIX Users Abstract This white paper explains how the Cognos BI Server running in the AIX environment can be configured and used with a Greenplum database. Included in this paper are detailed instructions for configuration and connectivity verification. March 2012

Copyright 2012 EMC Corporation. All Rights Reserved. EMC believes the information in this publication is accurate of its publication date. The information is subject to change without notice. The information in this publication is provided as is. EMC Corporation makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any EMC software described in this publication requires an applicable software license. For the most up-to-date listing of EMC product names, see EMC Corporation Trademarks on EMC.com. VMware is a registered trademark of VMware, Inc. All other trademarks used herein are the property of their respective owners. Part Number H10626 2

Executive summary The correct functioning of the Greenplum database with the Cognos BI Server is dependent on the configuration of an ODBC (Open Database Connectivity) driver using the Greenplum Connectivity Pack. This white paper walks the reader through the process of driver selection and installation, the configuration and validation of an ODBC connection to Greenplum, the creation of a Cognos data connection, and validation of that connection using Cognos Framework Manager and Query Studio. This white paper is based on examples from Cognos 10.1.1 (release pack 1), AIX 6.1 (64 bit) and Greenplum 4.1.1 and Greenplum Connectivity pack greenplumconnectivity-4.1.1.0-build-4-aix5-powerpc_32. Audience This white paper is intended for customers, as well as, EMC field and support personnel who will be using the Cognos BI Server in the AIX environment with the Greenplum database. This white paper does not replace the Cognos documentation set supplied by IBM nor the Greenplum documentation set supplied by EMC. It is expected that the reader has basic knowledge of the Cognos BI Server, ODBC driver configuration in the AIX environment, and the Greenplum database. Organization of this paper This paper covers the following topics: Overview of the Cognos BI system and components How the Cognos BI Server integrates with relational database management systems The installation, configuration, and verification of an ODBC connection using the Greenplum Connectivity Pack Validation of the connectivity between the Cognos BI Server and the Greenplum database using the Cognos components Framework Manager and Query Studio Overview of the Cognos BI system and components The IBM Cognos BI server is implemented in a multi-tier architecture. For descriptive purposes, this architecture can be thought of as three tiers. Please note that Cognos 10 is a 32 bit application, therefore 32 bit ODBC drivers must be used. Tier 3 is the query database or data source. In this white paper the query database can be Greenplum either implemented on a computing appliance (Greenplum Data Computing Appliance) or in software only mode. 3

Tier 2 contains the Web server where the IBM Cognos BI gateway, dispatcher and content manager are hosted. The content store is a relational database that contains data that IBM Cognos needs to operate, such as report specifications, published models, and the packages that contain them. Tier 1 contains user interfaces including the Framework Manager modeling tool that drives query generation for IBM Cognos and the Cognos Connection user portal that includes administrative tools and reporting tools such as Query Studio. TIER 1 TIER 2 TIER 3 Framework Manager ODBC ODBC GPDB Cognos Connection Web server IBM Cognos BI Gateway Content Store Greenplum DCA or Software Installation How the Cognos BI Server integrates with relational database management systems Because Cognos supports many databases and those databases offer various levels of functionality, the Cognos BI Server must take into account which database it is sending SQL commands to in order to get optimal use out of that database. Cognos supports variable levels of SQL functionality by shipping individualized initialization files for each supported query database. The initialization file renders the generic Cognos SQL into the dialect of a particular supported database. The Cognos BI server resolves which database initialization file to load by interrogating the 4

SQL_DBMS_NAME variable returned from the SQLGetInfo call to the ODBC driver. All of this occurs automatically for the Cognos user. The installation, configuration, and verification of an ODBC connection using the Greenplum Connectivity Pack This section walks the reader through the steps required to select, install, configure and verify an ODBC connection to Greenplum. Install Required and Recommended Software The correct Greenplum Connectivity Pack for a particular combination of Greenplum and Cognos releases can be determined by referring to the IBM support site. Searching for the string cognos 10.1.1 supported environments in a Web search site, should direct the reader to the IBM support site. In the ODBC section of the Cognos release software environments page, locate the Greenplum database to be installed. A Greenplum Connectivity Pack version will be indicated for each supported environment. For example, for Cognos 10.1.1, Greenplum 4.1.1 is supported via Connectivity Pack 4.1.1 for AIX. Greenplum Connectivity Packs can be downloaded from EMC s PowerLink web site or from the Greenplum Community site. Please refer to the GPConnectUnix PDF in the installation pack for detailed installation instructions. Briefly, the installation of the GP connectivity tools consists of these steps: 1. Download the appropriate greenplum-connectivity-4.1.1.0-build-4-aix5-powerpc_32 installer package for AIX. 2. Unzip the installer: unzip greenplum-connectivity-4.1.1.0-build-4-aix5-powerpc_32 3. Run the installer: /bin/bash greenplum-connectivity-4.1.1.0-build-4-aix5-powerpc_32. Accept the license agreement and supply an absolute path for the tool installation. 4. As a convenience, a greenplum_connectivity_path.sh file is provided in the client tools installation directory following installation to set the environment variables GPHOME_CLIENTS, PATH, and LIBPATH. The examples in this white paper specified the ODBC driver manager as unixodbc-2.2.12 and the ODBC driver as psqlodbc-08.04.0200. The Cognos BI server requires a 32-bit ODBC driver. The word size of the ODBC driver downloaded can be confirmed using the AIX dump ov command and examining the XCOFF or extended common object file format. For example, $ dump -ov <4.1.1-gp-conn-install-dir>/drivers/odbc/psqlodbc-08.04.0200/unixodbc- 2.2.12/psqlodbcw.so psqlodbcw.so: ***Object Module Header*** 5

# Sections Symbol Ptr # Symbols Opt Hdr Len Flags 4 0x000e06da 9751 72 0x3002 Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM ) Timestamp = "Apr 21 01:20:32 2011" Magic = 0x1df (32-bit XCOFF) In order to verify that all the shared objects required by the ODBC driver are properly identified in the LIBPATH, it is recommended that the user run the ldd command on the driver shared object. The ldd command prints the shared libraries required by each program or shared library specified on the command line. For example, $ ldd <4.1.1-gp-conn-install-dir>/drivers/odbc/psqlodbc-08.04.0200/unixodbc- 2.2.12/psqlodbcw.so $ ldd psqlodbcw.so psqlodbcw.so needs: /usr/lib/threads/libc.a(shr.o) /usr/lib/libpthreads.a(shr_xpg5.o) /usr/lib/libpthreads.a(shr_comm.o) /data1/gpconn-32/lib/libpq.a(libpq.so.5) /data1/gpconn-32/lib/libssl.a(libssl.so.0.9.8) /data1/gpconn-32/drivers/odbc/psqlodbc-08.04.0200/unixodbc- 2.2.12/libodbcinst.a(libodbcinst.so.1) /unix /usr/lib/libcrypt.a(shr.o) /usr/lib/libpthread.a(shr_xpg5.o) /data1/gpconn-32/lib/libldap_r.a(libldap_r-2.3.so.0) /data1/gpconn-32/lib/libcrypto.a(libcrypto.so.0.9.8) /usr/lib/libdl.a(shr.o) /usr/lib/libs.a(shr.o) /data1/gpconn-32/lib/liblber.a(liblber-2.3.so.0) Each of the shared objects should be found. If exceptions occur, the LIBPATH environment file should be adjusted. It is recommended that the GP Client Tools from EMC be downloaded and installed. The client tools can be downloaded from EMC s PowerLink web site or the Greenplum Community site. This tool will be used to verify connectivity between the AIX machine where the Cognos BI Server will run and the target Greenplum database. Please refer to the GPClientToolsUnix PDF in the Greenplum Database Client Tools for Unix installation pack for detailed installation instructions. Briefly, the installation of the GP client tools consists of these steps: 1. Download the appropriate greenplum-clients-4.1.1.0-build-4-aix5-powerpc_64 installer package for AIX. 2. Unzip the installer: unzip greenplum-clients-4.1.1.0-build-4-aix5-powerpc_64.zip 3. Run the installer: /bin/bash greenplum-clients-4.1.1.0-build-4-aix5-powerpc_64.bin. Accept the license agreement and supply an absolute path for the tool installation. 6

4. As a convenience, a greenplum_clients_path.sh file is provided in the client tools installation directory following installation to set the environment variables GPHOME_CLIENTS, PATH, and LIBPATH. Verify Connectivity between the Cognos AIX Machine and Greenplum Before beginning the configuration of an ODBC connection for Cognos, it is recommended that the connectivity between the AIX machine where the BI Server will run and Greenplum be verified. If issues such as firewall restrictions exist, they will be exposed by this verification step. The psql command line tool included in the Greenplum Client Tools installation will be used to verify connectivity. At a command prompt, simply invoke the psql command line tool supplying the Greenplum master database host name, port number, user name, and password. The psql command connection options are: Connection options: -h, --host=hostname database server host or socket directory (default: "local socket") -p, --port=port database server port (default: "5432") -U, --username=username database user name -d, --dbname=dbname database name A successful connection is followed by a prompt from psql that includes the database name. For example, to access the cognos_samples database, the following command would be issued supplying the correct host name, username, and password. $ psql -h HOSTNAME -U USER -d cognos_samples -p 5432 psql (8.2.15) Type "help" for help. cognos_samples=# Configure an ODBC DSN for Greenplum The data source name (DSN) that is used to connect to Greenplum is specified in the odbc.ini file. This file may be placed wherever it is convenient. The environment variable ODBCINI will be used to inform Cognos where to find it. To get to the Greenplum database, the following are needed: The database name The host name or IP address of the GPDB master server The port number used by the GPDB, default 5432. The username to log in to the master server The password of the login user 7

There are two sections of interest in the odbc.ini file, namely the ODBC Data Source section followed by one section for each DSN defined. These will be described by in-line comments below. # ODBC Data Sources lists the DSN s to be defined [ODBC Data Sources] Greenplum=PostgreSQL driver for Greenplum # DSN for Greenplum points to cognos_samples database [Greenplum] Description = PostgreSQL driver for Greenplum # the absolute location for ODBC driver to be used Driver = /my-gpconn-install-dir/drivers/odbc/psqlodbc- 08.04.0200/unixodbc-2.2.12/psqlodbcw.so # tracing is may useful during testing but turned # after moving to production Trace = 0 TraceFile = /tmp/odbctraces_dbtm Debug = 0 DebugFile = /tmp/odbcdebug # the name of the target database Database = cognos_samples # the host name or IP address, user and password of the target data server Servername = xx.x.xx.xxx UserName = user-name Password = password # default port number for Greenplum Port = 5432 ReadOnly = No RowVersioning = No # recommended size MaxLongVarcharSize = 2048 DisallowPremature = No # provides some efficiency in query reuse UseServerSidePrepare = Yes ShowSystemTables = Yes ShowOidColumn = No FakeOidIndex = No # allows for cursor fetch of result sets avoids out of # memory errors in Cognos BI server usedeclarefetch = 1 Fetch = 4096 UpdatableCursors = Yes # required version Protocol = 6.4 # recommended sizes CacheSize = 75000 MaxVarcharSize = 1024 Verification of ODBC Connectivity Using Cognos iodbctest Cognos provides an ODBC test tool which can be used to verify the connectivity of a DSN. The iodbctest program can be found the Cognos installation bin directory. For example, the Greenplum DSN created above can be verified by typing at the 8

command prompt. A successful connection will display the driver information and present the user with a SQL command prompt. $ /cognos-install-dir/bin/iodbctest DSN=cognos_samples;UID=usr;PWD=pwd The data source name iodbc Demonstration program This program shows an interactive SQL processor Driver Manager: 03.52.0607.1008 Driver: 08.04.0200 (psqlodbcw.so) SQL> Validation of the connectivity between the Cognos BI Server and the Greenplum database In order to validate the connectivity end-to-end between Cognos and Greenplum a Cognos data source connection will be created that will be used in small package created in Framework Manager and exercised in Cognos Connection Query Studio. Create a Cognos Data Connection From the Cognos Connection portal, launch IBM Cognos Administration. Select Configuration > Data Source Connections > *New Data Source. Enter a Data Source Name and Description and select the Next button. 9

For a Type, pick ODBC from the pull down and select the Next button. For the ODBC data source, enter the ODBC DSN created above, in this example Greenplum. Supply the User ID and Password in the Sigons section. 10

At the bottom of page, select Test the Connection. Verify connectivity to Greenplum through Cognos and ODBC by selecting the Test button. 11

The next page should show the connection status as Succeeded. Complete the Cognos data connection by selecting Close twice, followed by Finish. Create Project in Framework Manager In Windows, start Framework Manager (Start -> Programs -> IBM Cognos -> IBM Cognos Framework Manager). From the Welcome page, click Create a new project. In the New Project page, specify a name and location for the project, for example Greenplum in this location, and click OK. In the Select Language page, click the design language for the project. Once the Metadata Wizard appears, select the Cognos Data Source created above, in this case Greenplum, and then select the Next button. The scope of Greenplum objects to be imported by the Wizard can be controlled in the Select Objects screen. Assuming the IBM Cognos Samples database has been loaded into Greenplum, select the branch table in Great Outdoors Sales (gosales) schema. Select the Next button to continue. 12

It is important note that although Greenplum does not enforce referential integrity, users should include foreign key constraints during data migration since they are the source of information for the Metadata Wizard to build relationships between tables in Query Subjects. Select Import followed by Finish to complete the metadata import process. Create a Package In order to make the Query Subject just created available for reporting in the Cognos Connection, a Package must be created and published. In Framework Manager select Create under Packages. 13

Give the Package a name, in this case Greenplum and select the Next button. Select the Next button and include the Greenplum function set in the Create Package screen. Select the Finish button and specify the IBM Cognos 10 Content Store as publishing location in the Publish Wizard Select Location Type. Select defaults for security and publish. Exit the Wizard by selecting the Finish button. Create a Report in Query Studio The final step in the end-to-end validation is to create a report in Query Studio. From the Cognos Connection portal, launch Query Studio. In the Insert Data menu select branch_code, address1, address2, and city from the branch table. The appearance of 14

data demonstrates a successful end-to-end validation of the Cognos to Greenplum connectivity. 15

Conclusion As stated at the outset of this white paper, the correct functionality of the Greenplum database with the Cognos BI Server is dependent on the configuration of an ODBC driver using the Greenplum Connectivity Pack. This white paper walked the reader through the process of driver selection, installation, the configuration and validation of an ODBC connection to Greenplum, the creation of a Cognos data connection to a Greenplum database, and validation of that connection using Cognos Framework Manager and Query Studio. 16