38
© 2009 IBM Corporation Standard template for internal and external presentations DB2 Web Query for i 2009.10.15 김교석 MTS, IBM Korea

Standard template for internal and external …€™s Business Intelligence Requirements • Remove Dependency on IT for reporting purposes – Ease IT backlog of reporting requests

Embed Size (px)

Citation preview

© 2009 IBM Corporation

Standard template for internal and external presentations

DB2 Web Query for i

2009.10.15김교석MTS, IBM Korea

DB2 Web Query for i 개요

© 2009 IBM Corporation

Query/400: A history Lesson• Around since June, 1988• Lacks a graphical interface• Does not support output to PDF, HTML,

XML, or Excel• Does not support non-DB2 for i5/OS

databases• Does not support drill down from a

completed report• Is not a pure SQL interface• Does not use the SQL Query Engine

(SQE)– SQE was introduced with V5R2– CQE (Classic Query Engine) is used by

Query/400

© 2009 IBM Corporation

System i Query/Reporting Environment

System i

DB2

Windows

ODBC/JDBC

© 2009 IBM Corporation

Today’s Business Intelligence Requirements• Remove Dependency on IT for reporting purposes

– Ease IT backlog of reporting requests– Parameterized Reporting

• Reduce Report Maintenance• Empower End Users

• Client Independence– Web Based

• Reduce Software Maintenance• Multiple Viewing Options

– Dashboards/Scorecards– Spreadsheet Integration– Static Reports/Intelligent Bursting– Report Archival

• Operational or Data Warehouse– Real time or Historical Reporting

• Secure the Data– Avoid Data replication– Adhere to compliance requirements

© 2009 IBM Corporation

IBM DB2 Web Query for i

• Base Program Product Includes:– i5/OS Web Reporting Server– Several Web Based authoring tools

• RA, GA, Power Painter– Query/400 (5722-QU1)

• Web Enable Query/400 Reports– BASE PRODUCT OFFERED AS NO CHARGE

UPGRADE FROM QU1• Does not include Software Maintenance

• Additional Features– Run Time User Enablement – Active Reports (Disconnected Analysis)– On Line Analytical Processing

• Requires Meta Data provided with Developer Workbench

– Developer Workbench• IT Tool for meta data http://www.ibm.com/systems/i/db2/webquery

• DB2 Web Query Report Broker– Automated Report Execution and Distribution

• DB2 Web Query SDK– Web Services to integrate reporting functions into

applications/portals

© 2009 IBM Corporation

Upgrade into BASE Product from Query/400• The BASE product:

– Web enables Query/400 • Add additional functionality (compared to Query/400) to reports

– Link Reports by clicking on “hot spot”– Add Conditional Styling (“if revenue less than forecast, highlight in RED”)– Push data directly from DB2 into Spreadsheets– Over 100 charts and graphs– Boardroom quality PDF output– Access remote DB2 for i data sources

– Leverages the LATEST in DB2 for IBM i Query Optimization Technology• Better performance, better analysis tools• Many more functions available for query performance• Strategic optimizer

© 2009 IBM Corporation

DB2 WQ Leverages Advanced DB2 Query Optimization

• SQL Query Engine (SQE)– Better Performance – up to 10x over older query engine– Self-learning query optimizer– Self-adapting query engine

• SQL Plan Cache– Real time analysis of Query performance– Index (traditional and EVI) advice (recommendations and wizards)

• Materialized Query Tables (MQTs)– Optimizer “aware” summary tables for extreme performance boost

• Non-SQL interfaces (Query/400, OPNQRYF, QQQQRY API) DO NOT LEVERAGE ANY OF THE ABOVE

http://www.ibm.com/systems/i/software/db2/awp.html

© 2009 IBM Corporation

Query/400 vs. DB2 Web QueryFunction Query/400 DB2 Web Query Base + IBM Features

UI for Query Developer 5250 Browser (BASE) or Windows (Developer Workbench)

UI for End User 5250 Browser or Windows (Active Reports or output formats requiring Windows, e.g., Excel)

Remote DB2 for i5/OS Access No Via DRDA (BASE)

Interactive Output 5250, Spoofile, DB2 Table PDF, XML, Spreadsheet, HTML, PC-File Formats, Spoolfile, DB2 Table, etc. (BASE)

Batch Scheduling and Outputi5/OS Scheduler;Spoolfile, DB2 Table

YES. Basic function with BASE, advanced function (distribution) with Report Broker

Traffic Lighting No Yes (BASE)

Linked Reports with Drill Down No Yes (BASE)

OLAP No Yes (OLAP Feature)

Disconnected Analysis No Yes (Active Reports Feature)

Dashboarding No Yes (requires Developer Workbench)

Parameterized ReportingPrompting via 5250 RUNQRYSingle Parameter

Yes (BASE), advanced parameterization controls with Dev. Workbench

Meta Data Layer No Yes (customization of meta data available with Dev. Workbench)

© 2009 IBM Corporation

Query/400 vs. DB2 Web QueryFunction Query/400 DB2 Web Query Base + IBM Features

Unlimited User Licensing Yes Named or Run Time (Concurrent, effectively unlimited)

i5/OS Support V5R2 and up V5R4, V6R1

Report Storage No Local report storage with Report Broker

Target Audience for developing reports IT IT and Business Community

Portal Integration No With SDK

Integration with Operational application Via RunQry API As callable URL from Browser, or through Web Services with SDK

Web Application Server Support N/A Comes with Lightweight Web Server

Compound Reports No Yes (BASE), additional capabilities with Dev. Workbench)

Excel Integration No, must run Query, Download, then Import Yes, Excel is an output option with report characteristics preserved

DB2 for i5/OS Optimization CQE Only SQE or CQE

Impact Analysis and Data Profiling No Yes (Developer workbench)

© 2009 IBM Corporation

DB2 Web Query vs. CompetitionDB2 Web Query Crystal Reports

Access Data in DB2 for i Y Y

Interface to DB2 for i Native DRDA ODBC

Multiple Member File Support Y N

Multi record format files Y N

Import Query/400 Definitions Y N

Report Caching Y, with Report Broker Y - Windows

Web Server OS support IBM i (Integrated) Windows

Cross DB2 for i Joins Y N

Report Execution from 5250 app Y N

Meta Data Layer Y N

Reporting Server OS support IBM i (Integrated) Windows

OLAP DB2 based – no need to move data

Requires add’l OLAP engine in Windows

Disconnected Support Y, with Active Reports N

Report Distribution Y, with Report Broker Y – Windows

© 2009 IBM Corporation

DB2 Web Query for i 시작

© 2009 IBM Corporation

DB2 Web Query Architecture

DB2 Web Query Servlet

© 2009 IBM Corporation

PC and System i Requirements• PC

– Internet Explorer v6.0 or higher, Firefox v1.5 or higher– Memory of 1 GB or more

• System i– V5R4 of i5/OS 이상– Qshell – option 30 of the OS– 5722JV1 – Java Runtime Environment 1.4 or higher– 5722-SS1 – option 33 – PASE (maybe)– 5722-JC1 – IBM Toolbox for Java– 5722-DG1 – IBM HTTP Server for i5/OS

© 2009 IBM Corporation

Installation Procedure (1)1. QSECOFR 또는 *SECADM and *ALLOBJ 권한을가진 User로 Signon.2. Base product설치

RSTLICPGM LICPGM(5733QU2) DEV(OPT01)3. 기타 additional option들을설치.

– For Active Reports, enter:RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(1)

– For OLAP Enablement option, enter:RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(2)

– For Developer Workbench, enter:RSTLICPGM LICPGM(5733QU2) DEV(OPT01) OPTION(3)

4. license agreement화면에서 F14를이용해 accept.5. APAR II14318 (For R110), APAR II14375 (For R111)에나열된최신 5733-QU2 PTFs설치.

© 2009 IBM Corporation

Installation Procedure (2)6. DB2 Web Query HTTP instance를등록:

CALL QWEBQRY76/REGWEBQRY7. 설치후, QWEBQRYADM User Profile의 Password를 Setting.

CHGUSRPRF USRPRF(QWEBQRYADM) PASSWORD(yourpassword)8. 한글 Data Handling을위해 NLS Configuration을수행.

a. QSH 명령창에서아래명령어수행/qibm/proddata/webquery/ibi/srv76/home/bin/tsgult.out NLSCFG

/qibm/userdata/webquery/ibi/srv76/wfs 933b. QWEBQRYADM User ID를이용해 DB2 Web Query Console에접속. Configuration->NLS Settings에서

Client Code Page를 ‘949-Korea’를선택.http://Server_Name:11331/webquery_html/wfconsole.htm

c. Log-in 창에서언어선택을가능하도록하기위해서 Configuration->Dynamic Language Switch에서표시를원하는언어를선택.

d. /QIBM/UserData/webquery/ibi/webfocus76/WQLWI7/lwi/conf/overrides/i5javaopts.javaopt File에아래Option을추가

-Dfile.encoding=Cp9709. 아래 URL을통해전반적인 Configuration Properties를확인할수있습니다.

http://Server_Name:11331/webquery/properties.jsp

© 2009 IBM Corporation

DB2 Web Query관련 i/OS Objects• IFS Directories

– /QIBM/PRODDATA/WEBQUERY/IBI– /QIBM/USERDATA/WEBQUERY/IBI

• System Objects– QWEBQRY76 *LIB– QWEBBASE *LIB– QSYS/QWEBQRYADM *USRPRF– QSYS/MRADMIN *USRPRF– QSYS/MDUNTITLED *USRPRF– QSYS/QWEBQRY *AUTL– QWEBQRY76/QWEBQRYJOB *JOBD– QUSRSYS/QWEBQRYADM MSGQ

© 2009 IBM Corporation

사용 User 등록및확인• DB2 Web Query를사용할각각의 User들을아래와같이등록. 이때, USRPFR은반드시대문자로사용.

CALL QWEBQRY76/WQADDLIC ‘USRPRF’

• 사용자를제거할경우; CALL QWEBQRY76/WQRLSLIC ‘USRPRF’

• 등록된 User들을확인하려면, WRKLICINF PRDID(5733QU2) 상에서 Feature 5050에Op.8으로확인/

© 2009 IBM Corporation

Server Start/End 및 System Jobs• QWEBQRYADM으로 Signon• Web Query Reporting Server Start

STRWEBQRY START(*ALL)• Web Query Reporting Server End

ENDWEBQRY OPTION(*CLEAR)

• DB2 Web Query Connect는 SQL CLI (Call-Level-Interface)를이용– 각각의 Connection은 QSYSWRK Subsystem상의 QSQSRVR job들로수행됨

• Reporting Server Job들은 QSYSWRK와 QHTTPSVR Subsystem에서수행됨.– QSYSWRK

• EDAPTH, EDAPLOG, EDAPGWY, TSCOM3, JSCOM3, HLISNK– QHTTPSVR

• WQLWI7

© 2009 IBM Corporation

Server Jobs

© 2009 IBM Corporation

Access to DB2 Web Query• DB2 Web Query의 Default Port: 11331

http://server_name:11331/webquery

© 2009 IBM Corporation

Creating Metadata• Report밑의아무폴더에서우측마우스 Click후, Metadata선택

• Data Adapter창에서원하는 Adapter Type을선택하여 Create Synonym선택

• Synonym을만들대상을선택– Table, Alias, View, MQT, Stored Procedure

• Create Synonym button을 Click하여생성– 이렇게만들어진 Synonym을 DB2 Web

Query에서사용하게된다.– DB Format등이바뀌면 Synonym을다시

Create해줘야한다.• 생성된 Metadata를삭제하려면,

WRKLNK ‘ /QIBM/USERDATA/IBI/APPS/BASEAPP’directory내에서찾아지워야함.

© 2009 IBM Corporation

DB2 Web Query Features

© 2009 IBM Corporation

Report Assistant

© 2009 IBM Corporation

Report Assistant

© 2009 IBM Corporation

Report Assistant: Drill Down

© 2009 IBM Corporation

Output Reports and Graphs to:• HTML• PDF• Excel 97/2k/2k w formula's• Active Reports• Postscript

• DB2 for i table

• Excel 95• Doc with and without page breaks• WK1• DIF• Lotus• Tab Delimited• XML

© 2009 IBM Corporation

MS Excel과의호환성• DB2 Web Query는 MS Excel과의 integration을제공• 완벽히호환되는 Excel spreadsheets로의변환

– W/ Drilldowns, Formulas, Summations, Color-coding & more• end user productivity를향상; errors의감소

Hyperlinks/Drilldowns

Formulas/Summations

Color-Coding

© 2009 IBM Corporation

Power Painter• Business people이 자신들이원하는 reports들직접 Design할수있다.

• 강력한 thin-AJAX 기반의 Report Design tool

• 각자의 Business Unit에필요한다양한 Compound Reports 작성

• IT의의존성없이쉽고탄력적인접근성제공

© 2009 IBM Corporation

Optional Features from IBM• DB2 Web Query OLAP

– Slicing and dicing– Multi-dimensional functionality

• DB2 Web Query Developer Workbench– Rich client– Prerequisite for OLAP module– Customize metadata, HTML layout tool

• DB2 Web Query Active Reports– Offline reporting– Self-contained HTML file

© 2009 IBM Corporation

On-Line Analytical Processing (OLAP)

© 2009 IBM Corporation

DB2 Web Query Developer Workbench

• Excellent Date understanding and added functionality including Date decomposition (Year, Quarter, Month, Day)

• Creation of Hierarchies and Dimension

• Very good awareness of DB2 Foreign Key constraints

• Basic DB2 Web Query metadata also includes: Column-titles, Business Descriptions, Alias, Format, Usage, Pre and Post Processing Calculations, hundreds of data manipulation functions

• Federated Queries

• SQL Wizard

• HTML Layout painter

© 2009 IBM Corporation

Active Reports: Disconnected Support• 독립적으로수행가능한 analytical reports 제공

– Email이나 Browser를통해 User에게전달가능

• System과의연결없이 Report상의 Data를 User가직접 가공

• 직접수행가능한 built-in controls– Sorting, Filtering, Visualization,

Charting, Dynamic Roll-ups– Export to HTML, CSV or Excel– Export Charts to Word, Excel, or PowerPoint

• System i와의연결에어려움이있는 Mobile sales reps과같은 User에게 적합

© 2009 IBM Corporation

Active Reports

© 2009 IBM Corporation

DB2 Web Query Report Broker – 5733-QU3• Automated Delivery Of Information

– On Scheduled Basis• Through Admin GUI• Daily, Weekly, Specific Days, exclude rules, etc.

– On Event Basis• Some customization required

• Intelligent bursting– Ex: Regional Sales Report

• Additional output formats for batch reporting– (HTML, PDF, Excel, Active HTML)

• Delivery Destinations– E-mail– Printer– Save the reports for later viewing

• Notify Function– Send notification when report is complete or fails– Report Logging

• Requires DB2 Web Query BASE Product to be installed

© 2009 IBM Corporation

DB2 Web Query Software Development Kit: 5733-QU4• A set of Web Services that allow invocation of DB2

Web Query functions from within an application– Enables ISV Developers to access and integrate

Web Query Content into any web application• Web Services are programming language

independent– The foundation for SOA– C, C++, VB.NET, Java, etc.

• Requires the BASE product to be installed (run time and development)

– Developer Workbench also a development requirement

– Run Time User Enablement required for Run Time• Simple to Deliver powerful BI content

– Self service parameterized reports– Active reports and OLAP

© 2009 IBM Corporation

Useful Links• Getting Started with DB2 Web Query Redbook

– Tutorial Driven– Download Sample Database– http://www.redbooks.ibm.com/abstracts/sg247214.html

• Review Installation Instructions on “Getting Started” website:– http://www.ibm.com/systems/i/db2/webquery

• Download an installation pre-req utility– NEW utilities to check for all DB2 WQ Pre-Reqs

• IBM pre req checker: http://www.ibm.com/developerworks/wikis/display/webquery/DB2+Web+Query+for+i+Installation

• Centerfield Technologies: http://www.centerfieldtechnology.com/wq_icv.asp

© 2009 IBM Corporation