DB2 Web Query for i


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

DB2 Web Query for i

  1. 1. Standard template for internal and external presentations DB2 Web Query for i 2009.10.15 김교석 MTS, IBM Korea © 2009 IBM Corporation
  2. 2. DB2 Web Query for i 개요
  3. 3. 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
  4. 4. System i Query/Reporting Environment System i C JDB BC/ OD DB2 Windows © 2009 IBM Corporation
  5. 5. 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
  6. 6. 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 • DB2 Web Query Report Broker – Run Time User Enablement – Automated Report Execution and Distribution – Active Reports (Disconnected Analysis) • DB2 Web Query SDK – On Line Analytical Processing – Web Services to integrate reporting functions into • Requires Meta Data provided with Developer applications/portals Workbench – Developer Workbench • IT Tool for meta data http://www.ibm.com/systems/i/db2/webquery © 2009 IBM Corporation
  7. 7. 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
  8. 8. 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
  9. 9. Query/400 vs. DB2 Web Query Function Query/400 DB2 Web Query Base + IBM Features Browser (BASE) or Windows (Developer UI for Query Developer 5250 Workbench) Browser or Windows (Active Reports or output UI for End User 5250 formats requiring Windows, e.g., Excel) Remote DB2 for i5/OS Access No Via DRDA (BASE) PDF, XML, Spreadsheet, HTML, PC-File Formats, Interactive Output 5250, Spoofile, DB2 Table Spoolfile, DB2 Table, etc. (BASE) i5/OS Scheduler; YES. Basic function with BASE, advanced function Batch Scheduling and Output Spoolfile, DB2 Table (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) Prompting via 5250 RUNQRY Yes (BASE), advanced parameterization controls Parameterized Reporting Single Parameter with Dev. Workbench Yes (customization of meta data available with Dev. Meta Data Layer No Workbench) © 2009 IBM Corporation
  10. 10. Query/400 vs. DB2 Web Query Function Query/400 DB2 Web Query Base + IBM Features Named or Run Time (Concurrent, effectively Unlimited User Licensing Yes 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 As callable URL from Browser, or through Web Integration with Operational application Via RunQry API Services with SDK Web Application Server Support N/A Comes with Lightweight Web Server Yes (BASE), additional capabilities with Dev. Compound Reports No Workbench) Yes, Excel is an output option with report Excel Integration No, must run Query, Download, then Import characteristics preserved DB2 for i5/OS Optimization CQE Only SQE or CQE Impact Analysis and Data Profiling No Yes (Developer workbench) © 2009 IBM Corporation
  11. 11. DB2 Web Query vs. Competition DB2 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 Meta Data Layer Y N Reporting Server OS support IBM i (Integrated) Windows OLAP DB2 based – no need to move Requires add’l OLAP engine in data Windows Disconnected Support Y, with Active Reports N Report Distribution Y, with Report Broker Y – Windows 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 © 2009 IBM Corporation
  12. 12. DB2 Web Query for i 시작 © 2009 IBM Corporation
  13. 13. DB2 Web Query Architecture DB2 Web Query Servlet © 2009 IBM Corporation
  14. 14. 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
  15. 15. 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
  16. 16. Installation Procedure (2) 6. DB2 Web Query HTTP instance를 등록: CALL QWEBQRY76/REGWEBQRY 7. 설치 후, 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 933 b. 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=Cp970 9. 아래 URL을 통해 전반적인 Configuration Properties를 확인할 수 있습니다. http://Server_Name:11331/webquery/properties.jsp © 2009 IBM Corporation
  18. 18. 사용 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
  19. 19. 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
  20. 20. Server Jobs © 2009 IBM Corporation
  21. 21. Access to DB2 Web Query • DB2 Web Query의 Default Port: 11331 http://server_name:11331/webquery © 2009 IBM Corporation
  22. 22. 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
  23. 23. DB2 Web Query Features © 2009 IBM Corporation
  24. 24. Report Assistant © 2009 IBM Corporation
  25. 25. Report Assistant © 2009 IBM Corporation
  26. 26. Report Assistant: Drill Down © 2009 IBM Corporation
  27. 27. 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
  28. 28. MS Excel과의 호환성 • DB2 Web Query는 MS Excel과의 integration을 제공 • 완벽히 호환되는 Excel spreadsheets로의 변환 – W/ Drilldowns, Formulas, Summations, Color-coding & more • end user productivity를 향상; errors의 감소 Formulas/Summations Color-Coding Hyperlinks/Drilldowns © 2009 IBM Corporation
  29. 29. Power Painter • Business people이 자신들이 원하 는 reports들 직접 Design할 수 있다. • 강력한 thin-AJAX 기반의 Report Design tool • 각자의 Business Unit에 필요한 다양 한 Compound Reports 작성 • IT의 의존성 없이 쉽고 탄력적인 접 근성 제공 © 2009 IBM Corporation
  30. 30. 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
  31. 31. On-Line Analytical Processing (OLAP) © 2009 IBM Corporation
  32. 32. 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
  33. 33. 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
  34. 34. Active Reports © 2009 IBM Corporation
  35. 35. 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
  36. 36. 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
  37. 37. 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+Instal lation • Centerfield Technologies: http://www.centerfieldtechnology.com/wq_icv.asp © 2009 IBM Corporation
  38. 38. © 2009 IBM Corporation
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.