E-Business Intelligence Front-End Tool Access: To OS/390 Data Warehouse
E-Business Intelligence Front-End Tool Access: To OS/390 Data Warehouse
ibm.com/redbooks
SG24-5688-00
International Technical Support Organization e-Business Intelligence Front-End Tool Access to OS/390 Data Warehouse May 2001
Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix D, Special notices on page 161.
This edition applies to DB2 for OS/390 V7 for use with the OS/390 V2R8 Operating System
Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. HYJ Mail Station P099 2455 South Road Poughkeepsie, NY 12601-5400 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you.
Copyright International Business Machines Corporation 2001. All rights reserved. Note to U.S Government Users Documentation related to restricted rights Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii The team that wrote this redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii Comments welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix Chapter 1. e-BI front-end tool connectivity overview . . . . . . . . . . . . . . . 1 1.1 Who uses e-BI front-end tools? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1.1 Information providers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1.2 Information consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 IBM BI infrastructure components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.1 Access enablers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2.2 Decision support tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.3 BI application solutions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.3 N-tier tool architectures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.3.1 Logical n-tier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.3.2 Physical n-tier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.4 Connection alternatives to the DB2 for OS/390 data warehouse. . . . . 11 1.4.1 Two-tier connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.4.2 Three-tier connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Chapter 2. Methodology for e-BI front-end tool implementation . 2.1 Checking the system environments . . . . . . . . . . . . . . . . . . . . . . 2.1.1 ITSO test environments . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Customizing the OS/390 environment . . . . . . . . . . . . . . . . . . . . 2.2.1 Network setups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 DB2 setups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.3 DB2 OLAP Server for OS/390 setups . . . . . . . . . . . . . . . . . 2.2.4 RRS and WLM setups . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.5 User account definitions and authorizations . . . . . . . . . . . . Chapter 3. Configuring database connections . . . . 3.1 DB2 DDF setup . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 DB2 Connect setup . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 Installing DB2 Connect EE . . . . . . . . . . . . . . 3.2.2 Configuring DB2 Connect EE . . . . . . . . . . . . 3.2.3 Configuring the NT server for client access . 3.3 Client PC setup . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 Adding a user to Windows NT . . . . . . . . . . . 3.3.2 Installing the DB2 Run-Time client . . . . . . . . 3.3.3 Configuring the Client PC . . . . . . . . . . . . . . . 3.4 Testing the client/server connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . 15 . 16 . 17 . 17 . 18 . 19 . 19 . 19
. . . . . . . . . . . . . . 21 . . . . . . . . . . . . . . 21 . . . . . . . . . . . . . . 24 . . . . . . . . . . . . . . 25 . . . . . . . . . . . . . . 29 . . . . . . . . . . . . . . 36 . . . . . . . . . . . . . . 37 . . . . . . . . . . . . . . 38 . . . . . . . . . . . . . . 39 . . . . . . . . . . . . . . 39 . . . . . . . . . . . . . . 40
iii
Chapter 4. QMF for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 QMF family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.1 QMF for OS/390 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.2 QMF for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.3 DB2 Warehouse Manager . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.4 QMF High Performance Option. . . . . . . . . . . . . . . . . . . . . . 4.2 Configuring QMF for Windows . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.1 Configuring database connections . . . . . . . . . . . . . . . . . . . 4.2.2 Creating QMF for Windows database objects . . . . . . . . . . . 4.2.3 Binding QMF for Windows packages . . . . . . . . . . . . . . . . . 4.2.4 Granting permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.5 Creating sample tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 QMF SQL Query for the Web . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 Installing the QMF SQL Query for the Web Java servlet . . . 4.3.2 Customizing the QMF SQL Query for the Web servlet . . . . 4.3.3 Connecting QMF SQL Query for the Web-to-DB2 servers . 4.3.4 Testing QMF SQL Query for the Web . . . . . . . . . . . . . . . . . 4.4 QMF Report Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 QMF for Windows usage scenarios . . . . . . . . . . . . . . . . . . . . . . 4.5.1 Scenarios for information providers . . . . . . . . . . . . . . . . . . 4.5.2 Scenarios for information consumers . . . . . . . . . . . . . . . . . 4.5.3 Choosing the best configuration . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
. 41 . 41 . 41 . 42 . 44 . 45 . 45 . 46 . 54 . 60 . 62 . 63 . 64 . 66 . 68 . 71 . 73 . 75 . 78 . 79 . 80 . 82
Chapter 5. Brio Enterprise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 Brio Enterprise tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.1 Web client components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.2 Non-Web client component. . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.3 Server components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1.4 Brio Enterprise Server Administrator. . . . . . . . . . . . . . . . . . . . 5.2 Brio documents and repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.1 Brio documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.2 Brio repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Open Catalog Extension file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 Non-Web client connection to DB2 data warehouse . . . . . . . . . . . . 5.4.1 BrioQuery configuration for DB2 data warehouse connection . 5.4.2 Test the DB2 data warehouse connection. . . . . . . . . . . . . . . . 5.5 Non-Web client connection to DB2 OLAP Server . . . . . . . . . . . . . . 5.5.1 BrioQuery DB2 OLAP server connection configuration . . . . . . 5.5.2 Test the connection to DB2 OLAP Server . . . . . . . . . . . . . . . . 5.6 Web client connection to DB2 data warehouse . . . . . . . . . . . . . . . . 5.6.1 IBM HTTP Server (Apache) configuration for NT . . . . . . . . . . 5.6.2 OnDemand Server configuration. . . . . . . . . . . . . . . . . . . . . . . 5.6.3 Testing the OnDemand Server setup . . . . . . . . . . . . . . . . . . .
iv
5.7 Web client connection to DB2 OLAP Server . . . . . . . . . . . . . . . . . . . 112 5.7.1 Implement the Web client connection . . . . . . . . . . . . . . . . . . . . 113 5.7.2 Test the Web client connection . . . . . . . . . . . . . . . . . . . . . . . . . 113 5.8 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 5.8.1 Access to Brio documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 5.8.2 User authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 5.8.3 Authorization to execute queries. . . . . . . . . . . . . . . . . . . . . . . . 115 5.8.4 Non-Web client security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 5.9 Zero administration for Web clients . . . . . . . . . . . . . . . . . . . . . . . . . 115 5.10 Integration with other tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 5.11 Metadata exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 5.12 Brio usage scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 5.12.1 Scenarios for information providers . . . . . . . . . . . . . . . . . . . . 117 5.12.2 Scenarios for Web-based information consumers . . . . . . . . . . 118 Chapter 6. IBM DB2 OLAP Server Analyzer . . . . . . 6.1 Product components . . . . . . . . . . . . . . . . . . . . . . 6.2 Connection architectures . . . . . . . . . . . . . . . . . . . 6.3 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3.1 User security . . . . . . . . . . . . . . . . . . . . . . . . 6.3.2 RACF and DB2 for OS/390 security . . . . . . . 6.3.3 Web security . . . . . . . . . . . . . . . . . . . . . . . . 6.4 Virtual cubes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 Installing IBM DB2 OLAP Server Analyzer . . . . . . 6.5.1 Installing the Analyzer NT Server machine . . 6.5.2 Creating the database connection . . . . . . . . 6.5.3 Modifying the database name . . . . . . . . . . . . 6.5.4 Creating a new user and profile . . . . . . . . . . 6.5.5 Importing the sample views (optional) . . . . . . 6.5.6 Installing the Analyzer Windows client . . . . . 6.5.7 Testing the Analyzer Windows client . . . . . . 6.6 Configuring the Web environment . . . . . . . . . . . . 6.6.1 Configuring the IBM HTTP Web server . . . . . 6.6.2 Configuring the Microsoft IIS Web server . . . 6.7 Starting the Analyzer Web clients . . . . . . . . . . . . . 6.7.1 HTML-based Web client . . . . . . . . . . . . . . . . 6.7.2 Java-based Web client . . . . . . . . . . . . . . . . . 6.8 Analyzer Excel add-in. . . . . . . . . . . . . . . . . . . . . . 6.8.1 Installing the Excel add-In . . . . . . . . . . . . . . 6.8.2 Configuring the Excel add-in . . . . . . . . . . . . . 6.9 Analyzer usage scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 . 121 . 122 . 123 . 123 . 125 . 125 . 126 . 126 . 126 . 129 . 130 . 131 . 134 . 137 . 139 . 139 . 139 . 140 . 143 . 144 . 145 . 145 . 146 . 146 . 147
Appendix A. BI tools interoperating with OS/390 DW . . . . . . . . . . . . . 149 A.1 Query and reporting tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 A.2 OLAP tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 A.3 Data mining tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 A.4 BI application solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 Appendix B. Setting up DB2 DDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Appendix C. QMF for Windows database connection configuration . 157 Appendix D. Special notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Appendix E. Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 E.1 IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 E.2 IBM Redbooks collections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 E.3 Other resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 E.4 Referenced Web sites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 How to get IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 IBM Redbooks fax order form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 IBM Redbooks review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
vi
Preface
Based on the IBM e-Business Intelligence (BI) architectural framework, this IBM Redbook explains the building blocks required to connect front-end e-BI user tools to the OS/390 data warehouse or data mart. It also shows the Web integration in the architecture and the accessibility of the data warehouse from browser-based clients in an e-business environment. The book provides: An overview of the e-BI user connectivity and architectural framework on OS/390, as well as guidance on choosing the appropriate e-BI front-end user tool or e-BI user application based on end-user profiles. Connectivity methodologies, contrasting Web-based middleware with traditional client/server middleware in 2-tier or N-tier solutions connecting users to the OS/390 data warehouse or data mart. The steps needed to implement front-end e-BI user tools accessing the OS/390 data warehouse and OLAP data mart. We highlight the stumbling blocks and show the implementation steps for: QMF for Windows Brio DB2 OLAP Server Analyzer
vii
He has extensive experience from Data Warehouse implementations. Kjell holds a degree in Systems Analysis from Ume University, Sweden. Charles Lewis is a Certified Consulting I/T Specialist with IBM s Advanced Technical Support at the Dallas Systems Center. He has worked with IBM for 22 years and has been involved with DB2 since the first release.His areas of expertise include DB2 Application Design and Performance Tuning. His current focus is on implementation of DB2 e-Business and Business Intelligence applications. Cheryl Raitakari is an I/T Specialist with Integrated Technology Services in IBM Canada. She provides customer Q/A and defect support for IBM relational database products and tools. She has over 10 years of experience with Database Management and DRDA. Cheryl holds an Honours Bachelor of Math degree from the University of Waterloo, Canada. Thanks to the following people for their contributions to this project: Mike Biere IBM S/390 WW BI Sales, US Steve Bower IBM Global Business Intelligence Services, UK Barbara Burkard Brio Technology, Inc., US Christopher Dziekan Hyperion Solutions, US Tim Granshaw Brio Technology, Inc., US Cary Gross Brio Technology, Inc., US Vicki Hicks DB2 Advocate, IBM DB2 Development, Silicon Valley Laboratory, US Tom Iglehart Rocket Software, Inc., US
viii
Ann Jackson IBM S/390 - WW BI Segment -Technical Support, US Ashraf Kamel IBM S/390 BI Pre-Sales Technical Support, US Gerard Laumay IBM S/390 BI Architect, Products and Solutions Support Center, Montpellier, France Merrilee Osterhoudt IBM S/390 BI Technical Support Leader, US Andrea Reid IBM Decision Support Brand Manager, Silicon Valley Laboratory, US Shri Shrimali S/390 BI Pre-Sales Technical Support, US Bryan Smith IBM DB2 Development, Silicon Valley Laboratory, US William J. Sterling IBM WW OLAP Technical Support, US Thanks also to Terry Barthel and Alfred Schwab for their editorial assistance, and Ella Buslovich for her graphics assistance.
Comments welcome
Your comments are important to us! We want our Redbooks to be as helpful as possible. Please send us your comments about this or other Redbooks in one of the following ways: Fax the evaluation form found in IBM Redbooks review on page 173 to the fax number shown on the form. Use the online evaluation form found at ibm.com/redbooks Send your comments in an Internet note to [email protected]
ix
BI users possess widely varying technical expertise, ranging from skilled I/T professionals to computer novices. To enable a general discussion on BI users, we adopted a classification made by The IBM Business Software Solution , authored by Database Associates International, Inc., which defines two categories of BI users: Information providers Information consumers
Examples of information providers include: Business analysts Market managers Highly skilled knowledge workers
Industry Solutions and B.I. Applications Decision Support Tools Query & Reporting OLAP Data Mining
Metadata Management
W arehouse Construction and Population - D W architectures, DB design, ETL tools Operational and External Data
The IBM BI framework is based on the use of technologies which scale to support a large number of users, both intranet and Internet, connecting to the OS/390 data warehouse. Robust connectivity options are included for SNA and TCP/IP network protocols, as well as web connection interfaces.
Application interfaces are implemented in various devices which can all interoperate with the OS/390 data warehouse. Such devices are: Kiosks Handheld or PDA devices Laptops Desktop PCs 3270 terminals
Figure 2 shows the broad range of user expertise, device types, and application interface possibilities.
3270
GUI
S/390
BI - OLAP WEB APPLICATION SERVER
OLAP
DB2
Stock holders Web browser Suppliers Web browser
Browser
Browser
Selecting a device and an application interface depends on users preferences, skills and experience. For example, an I/S professional may be very comfortable with a 3270 terminal and use of a keyboard to enter commands or to select business functions from a menu. However, the typical non-I/S business professional may feel more comfortable using a GUI-based application with a pointing device to point-and-click on business functions displayed as graphical icons.
BI applications deployed in a public location, such as a rental car counter, to look up addresses or obtain directions, may run in a kiosk with a GUI and a touchscreen to replace the keyboard. Customers using eBI applications to inquire on the status of an order or track a customer service request may use a Web browser to initiate an inquiry against a OS/390 data warehouse. A medical provider in a patient care setting may use a handheld device to access patient records or a data warehouse of clinical information. A rapidly growing community of mobile users, such as sales reps, also rely on handheld computing devices and personal digital assistants for access to corporate data marts and data warehouses. Application interfaces usually come with the BI tool. GUIs BI front-end tools, such as Query Management Facility (QMF) for Windows, Business Objects, Brio, Cognos and many more, all provide graphical user intefaces (GUIs) for user access to warehouse data. Web browsers Any industry-standard Web browser, such as Netscape s Navigator or Microsofts Internet Explorer, may be used as an application interface by Web users. PDA interfaces DB2 Everywhere runs in handheld devices either on Palm OS or Windows CE operating systems. It supports access to the warehouse, which can be on a OS/390. IBM Mobile Connect communications software, executing on the Windows NT server, provides the support needed to synchronize data exchange between the handheld device and the warehouses implemented on the OS/390. 3270 interfaces QMF for OS/390 and Application System are examples of products which provide 3270 terminal application interfaces. 1.2.1.2 Connectivity middleware IBM BI architecture connectivity middleware fully supports BI tool interoperability with the OS/390 data warehouse such that the user application interface or front-end tools choice is not limited. The IBM BI architecture supports the following connectivity middleware for connecting to the DB2 data warehouse on OS/390:
Database connectors for Web browsers Web-based database connectors are: IBM Net.Data, which provides the native SQL APIs for Web BI applications The Java APIs, such as JDBC and SQLJ Database connectors for PCs Non-Web-based database connectors are: SQL APIs ODBC and CLI APIs JDBC and SQLJ APIs Client/Server DRDA connector The DRDA-enabled client/server connector for DB2 is: IBM DB2 Connect
does not require any specialized application or data connectors to be installed on the (thin) client machine. The IBM query and reporting tools on OS/390 are the QMF Family tools: QMF for OS/390 QMF High Performance Option (HPO) QMF for Windows Chapter 4, QMF for Windows on page 41, gives detailed explanations on the QMF Family and QMF for Windows. A complete list, including third-party vendors, of query and reporting tools interoperating with the OS/390 data warehouse is also provided in Appendix A, BI tools interoperating with OS/ 390 DW on page 149. 1.2.2.2 OLAP tools OLAP tools enable users to ask intuitive questions such as what is the profitability for the third quarter across the southeast region for my focus products? . To address such questions requires comprehensive financial, mathematical, and statistical functions and calculations provided by more specialized tools such as online analytical processing (OLAP) tools. With OLAP tools, users can check for year-to-date sales and then drill down to a particular product or sales region for additional detail. The IBM OLAP tool on OS/390 is: DB2 OLAP Server for OS/390 DB2 OLAP Server offers intuitive navigation, a highly interactive graphical user interface, and multidimensional calculation capabilities for presentation and reporting needs. Hyperion Analyzer is the leading client front-end tool for DB2 OLAP Server. A complete list, including third-party vendors, of OLAP tools interoperating with the OS/390 data warehouse is also provided in Appendix A, BI tools interoperating with OS/390 DW on page 149. 1.2.2.3 Data mining tools Users requiring technology to assist with information discovery require yet another category of BI front-end tools: data mining tools. Data mining tools provide robust search, analysis, classification, and clustering capabilities to deliver comprehensive BI applications.
These tools are used to discover associations or patterns, segment or cluster information based on similarity of attributes, discover similar time sequences, or create predictive classification models. The IBM data mining tools on OS/390 are: IBM Intelligent Miner for Data for OS/390 IBM Intelligent Miner for Text for OS/39 0 A complete list, including third-party vendors, of data mining tools interoperating with the OS/390 data warehouse is also provided in Appendix A, BI tools interoperating with OS/390 DW on page 149.
The application logic layer, which refers to the core application running on the application server The database management layer, which refers to the database access services running on the database server 1.3.1.1 Logical two-tier A logical two-tier application is architected with two different logical layers. The application logic is bundled either with the presentation layer or with the data management layer, as shown in Figure 3.
Presentation
Data Management
Data Management
Data Management
1.3.1.2 Logical three-tier A logical three-tier application is architected with three different logical layers (presentation, application logic, data management), regardless of the hardware platforms where those layers are physically implemented. Figure 4 shows a three-tier logical application architecture.
Presentation
Application Logic
Data Management
1.3.2.1 Physical two-tier If an application is referred to as physical two-tier, it means that the applications three (or two) logical layers are implemented on two different hardware servers, as shown in Figure 5.
S/390
Presentation
Presentation
S/390
Data Management
Application Logic
OR
Application Logic
Data Management
1.3.2.2 Physical three-tier If an application is referred to as physical three-tier, it means that the applications three (or two) logical layers are implemented on three different hardware servers, as shown in Figure 6.
S/390
Presentation
Application Logic
Application Logic
1.3.2.3 Two-tier versus n-tier models Deciding which implementation is best requires an evaluation of the hardware and software in use throughout your enterprise, your site's security policy, the requirements for scalability and overall performance, and the tools and skills available. Two issues are important to consider in deciding on a two-tier versus n-tier implementation model: Throughput performance, which is a factor of network traffic overhead How much effort is required to administer the solution
10
When there is a requirement to minimize query response time, consider a two-tier deployment model. Two-tier model requires less network overhead than n-tier model to send and receive information from the OS/390. Usage of DB2 stored procedures can also help eliminate network traffic delay which is caused by transferring large amounts of data across the network. The two-tier approach may also simplify systems management and administration. With fewer tiers, the tasks of implementing security and configuring the network infrastructure are less complex. On the other hand, there is a higher footprint at each client instance, which may slightly increase the licence fees. N-tier models allow you to divide a BI application into multiple parts, and optimizing each of those parts is one way to improve performance. Having multiple parts gives you flexibility when adding usability to the user interface, adding capacity, or eliminating bottlenecks.
DB2
B I fro n t-e n d to o ls o n th e c lie n t: B rio Cogn os B u sin e s s O b je c ts M ic r o s tra te g ie s H u m m in g b ird S agent In fo rm a tio n Ad v a n ta g e Q u e ry O b je c ts ...
3 2 7 0 e m u la tio n
D B 2 Co nn ect EE O S 2 ,W in d o w s N T, U N IX
W e b s e rv e r N e t.D a ta
DRDA
SNA T C P /IP
T C P /IP N E T B IO S A P P C /A P P N IP X /S P X
N e t.D a ta O D B C DB 2 C onn ect EE (O S 2 ,W in d o w s N T, U N IX )
Q M F fo r W in d o w s
T C P /IP
A n y W e b B ro w s e r O S /2 , W in d o w s ,N T
O S /2 , W in d o w s ,N T
D B2 C on nect P E W in d o w s , N T
11
PCs running BI user tools access the OS/390 data warehouse in two- or three-tier connections.
Client user
PC
Database server
BI application
DB2 Connect PE
Gateway
S/390
PC
BI application
Run-Time Client DB2 Connect EE
3270
BI application
Browser
Web server
BI application
PC-based front-end BI tools can access the DB2 data warehouse on OS/390 with DB2 Connect Personal Edition (PE) installed on the client workstation and using a DRDA connection over a TCP/IP or SNA network. When the BI tool (such as QMF for Windows, for example) has built-in DRDA functions, DB2 Connect PE is not used and the tool can connect directly to the data warehouse on OS/390 without requiring any database connector. A PC connection to the database server can also be achieved via a gateway with DB2 Connect Enterprise Edition (EE) deployed on the middle-tier platform. In this case, the DB2 Run-Time Client is installed on the client workstation and provides connection to the gateway over TCP/IP, IPX/SPX, and Netbios networks. The gateway or DB2 Connect EE connects to the OS/390 server using a DRDA connection over TCP/IP or SNA networks.
12
DB2 Run-Time Client comes with DB2 Connect at no additional cost. This connection method requires less installation and maintenance on the client workstations. 3270 terminals connect directly to the BI application which runs on OS/390; the connection can be local or remote. Web browsers require a Web server to provide connectivity to the BI application and to the data warehouse on OS/390. In a two-tier connection, the Web server is implemented on the OS/390. In this case, the BI application running on the OS/390 connects locally to the DB2 data warehouse using Java APIs such as JDBC or SQLJ; or the application uses Net.Data, which provides the native SQL API for accessing DB2; or the application provides its specific proprietary connection interface. The browser connects to the OS/390 server using TCP/IP.
Client user
Application server
Database server
S/390
PC
DB2 Connect EE Run-Time Client
Web server
Browser
13
In a three-tier connection, PC users connect to the middle tier, where the BI application resides, using the DB2 Run-Time Client over TCP/IP, IPX/SPX, or Netbios networks. Web browsers connect to a Web server on the middle tier over TCP/IP networks. Often BI tools require the application to run on the same platform as the Web server. The BI application on the middle tier connects remotely to the DB2 data warehouse on the OS/390 third tier through DB2 Connect EE using a DRDA connection over TCP/IP or SNA networks. Connection can also be achieved between the Application Client (on the middle tier) and the Application Server (on the third tier) using an applicationspecific interface. The following chapters of this redbook focus on the methodology of implementing e-BI user tools and how to make them interoperate with the data warehouse/mart on OS/390. We discuss connectivity issues using tool examples based on QMF for Windows, Brio, and DB2 OLAP Server Analyzer.
14
Configure network connections to the DB2 data warehouse on OS/390. Configure database connections to the DB2 data warehouse on OS/390. Configure Web connections to the DB2 data warehouse on the OS/390. Implement e-BI user tools. The following sections give a detailed explanation of what we did to implement, in the ITSO test environment, some selected decision support tools, such as QMF for Windows, Brio, and DB2 OLAP Server Analyzer. Those front-end BI tools connect to the DB2 data warehouse and, when applicable, to the OLAP Server on OS/390.
OS/390 environment Verify with the OS/390 database administrator that the DB2 system underlying the data warehouse is at the most current level of maintenance including the refresh (when applicable) which adds new functions to DB2.
15
Updated information on maintenance levels and PTFs for DB2 is available from the web at the following URL:
http://www.software.ibm.com/data/db2/db2tech/
Make sure that the DB2 subsystem and the OLAP Server applications are up and running when you test your connections to the data warehouse on OS/390.
W indo ws clien t
NT serve r
S/3 90 serve r
S /390 S/39 0
D B2 E DB 2 Connect Connect P PE
T C P/IP T C P/IP
D B2 DB 2 Connect Connect EE EE
Figure 10. ITSO system configurations used in the BI tool implementation process
Window clients We used the following systems for the client workstations: Windows NT 4.0 DB2 Run-Time Client or DB2 Connect PE TCP/IP Port 5000 was used for communications to DB2 Connect EE Client components of QMF for Windows, Brio, and DB2 OLAP Server Analyzer software NT server We used a system consisting of the following as the BI application server in a three-tier configuration:
16
Windows NT 4.0 system DB2 Connect 6.1 Enterprise Edition IBM HTTP Web server Microsoft IIS Web server Middle-tier components of QMF for Windows, Brio, and DB2 OLAP Server Analyzer software Database server system We used a system consisting of the following for the database server: OS/390 V2R8 with TCP/IP (OS/390 eNetwork Communication Server TCP/IP V2R8) DB2 UDB for OS/390 V6.1 at PUT level 0003 DB2 OLAP Server Version 1.1
17
SNA connectivity. You must rely on your in-house TCP/IP networking staff and your TCP/IP software vendor s technical support services to implement and support your network configuration. 2.2.1.2 SNA (LU 6.2, APPC, and CPI-C) network connections LU 6.2 is an SNA communications architecture. Advanced Program-toProgram Communication (APPC) is a language based on the LU 6.2 architecture. A developer of SNA transaction programs has to choose from many different implementations of APPC. This could potentially lead to product incompatibility. Even though each implementation of APPC adheres to the LU 6.2 architecture, two implementations of APPC might not be exactly the same. Therefore, programs that rely on one vendor s APPC implementation might not work with another vendor s implementation. This problem is solved by a standard, common programming interface, CPIC, which implements the APPC verb set. Therefore, applications that require the use of the APPC verb set can instead be written using CPI-C in order to achieve SNA vendor independence. QMF for windows is an application that is written using CPI-C. In an SNA network, a BI tools basic requirement is that it must be able to establish an LU 6.2 session with DB2, using the CPI-C interface. This connectivity usually is not provided with the BI tool; you must have a thirdparty tool that implements it. Whatever product you use to provide SNA connectivity must be installed and configured before installing or using the BI tool. The process of implementing LU 6.2 connectivity between Microsoft Windows and DB2 can be a complex task, depending on your SNA environment. The Windows-based SNA products that can be used, and the different ways to use them, are far too numerous and complex to be described in detail in this redbook. You must rely on your in-house SNA networking staff and your SNA software vendor s technical support services to implement and support your network configuration.
18
BI tools and applications use dynamic SQL, and dynamic statement caching function should be activated in DSNZPARM through: CACHDYN=YES MAXKEEPD=5000 Caching of dynamic SQL is done in the EDM pool, which should be sized accordingly. You have the option of moving the portion of the EDM pool that contains cached dynamic statements in a data space to alleviate space requirements in the DBM1 address space. When using data spaces, make sure they are completely backed by processor storage to avoid any paging activity that may lower dynamic query performance. Idle thread time-out should also be used when customizing DDF. Make sure DB2 and DDF are up and running when you are connecting to the data warehouse.
19
These IDs must be valid RACF user IDs. They are authenticated and authorized at RACF, DB2, and OLAP levels.
20
We recommend you use the default settings initially, and monitor product usage and performance over time. As usage of DB2 Connect increases, it may be necessary to modify some of the DB2 for OS/390 parameter (ZPARM) settings. In this chapter, we discuss the connection tasks including DB2 DDF setup, DB2 Connect setup, and Client PC setup. At the end of the setup tasks, you should be able to successfully test your connections and access the DB2 database on OS/390.
21
We had a standard installation of DB2 for OS/390 V6 with the recommended maintenance applied and DDF facility enabled. Refer to Appendix B, Setting up DB2 DDF on page 153, to see the parameters we used. On our system, DDF listened on TCP/IP port 33368. The DB2 location name and DDF TCPPort can also be found by searching the DB2xMSTR address space for the DB2 system being connected to. You may need to enlist the help of your OS/390 systems support staff to obtain this information. If you have access to the OS/390 System Display and Search Facility (SDSF), you can obtain this information from the messages generated by the DB2 DB2xMSTR started task. SDSF is executed from an ISPF panel on the remote OS/390 host, as shown in Figure 11 on page 22.
22
Select the DA option from the SDSF menu panel to display the active applications. Use the prefix command PRE DB* on the command line to limit the display of active applications to the DB2 started tasks. An example of the DB2 started tasks is shown in Figure 12 on page 23. Position the cursor next to DBH2MSTR and type an S to select the messages generated by the DBH2MSTR active task.
Search for message DSNL004I, which indicates the DB2 Distributed Data Facility address space is started, by using the find command as shown in Figure 13 on page 24.
23
If DB2x is not configured to support TCP/IP, see the DB2 Installation Guide provided with your DB2 license for instructions on how to configure TCP/IP for your DB2 subsystem.
24
On the product selection screen, we chose DB2 Connect Enterprise Edition , as shown in Figure 15 on page 26.
25
26
We chose to install this product in the directory D:\SQLLIB (see Figure 17).
We had to enter the user name and password for the administrative service, as shown in Figure 18 on page 27. This user ID and password combination is a Windows NT logon ID that has admin authority. We chose the default, db2admin, which we created, and gave it admin authority on NT.
27
Note: At the end of the installation you must reboot Windows NT and login using this ID and password to catalog the database descriptors. At this point the system is ready to start copying files (see Figure 19 on page 28). You can review your choices, or you can proceed by clicking Next.
The setup is now complete (see Figure 20). Click Finish, reboot Windows NT, and then login using the admin ID (in our case, db2admin).
28
SYS1.TCPPARMS (PROFILE) Port number for DRDA in SYS1.TCPPARMS (PROFILE) Target Database For DB2 Connect Valid user ID with RACF and DB2 dbadm RACF password
After the system has rebooted, go to Start -> Programs -> DB2 for Windows NT -> Client Configuration Assistant to create and catalog database descriptors. On the welcome screen shown in Figure 21 on page 30, choose Add Database.
29
For the Source, choose Manually configure a connection to a DB2 database and click Next (see Figure 22).
30
For the protocol choose TCP/IP, and choose OS/390 as the target operating system (Figure 23).
For the TCP/IP configuration, enter the OS/390 fully qualified hostname or the IP address of the OS/390 host. Enter the port that is reserved for the DDF in the DB2 instance. In our case, the host name was wtsc66oe.itso.ibm.com and the port was 33368 (see Figure 24 on page 31).
31
For the database configuration, enter the Location name (in our case DBH2, which is the DB2 OS/390 instance name). Enter the database alias name that will be used to point to the DB2 instance on OS/390. We chose DBNTH2 (see Figure 25).
Register this database as an ODBC source (see Figure 26). This will allow access to the host database by DB2 Run-Time clients.
32
We did not specify any node option (see Figure 27). Just click Next.
For the security option (Figure 28), you must choose On the host or AS/400 (DCS) .
33
34
Figure 30 shows that we had successfully configured the connection. We were ready to test the connection by clicking Test Connection.
To test the connection, enter a valid TSO RACF user ID and password, as in Figure 31. The user ID should also be DB2 authorized.
If the connection is successful, you should get the message shown in Figure 32 on page 36. If you do not receive this message, verify that you can ping the host and that the DDF is running.
35
2. To start the command line processor, make sure you are logged in to Windows NT with a user ID that has admin authority for DB2 Connect. We used db2admin. Start the DB2 command line processor by choosing: Start -> Programs -> DB2 for WindowsNT -> Command Line Processor; the window in Figure 33 on page 37 will appear.
36
3. Update the database configuration file with the connection service name parameters by entering the following commands:
update database manager configuration using svcename db2cDB2 db2stop db2start
Note: The db2stop command will halt your DB2 Connect environment. 4. Exit the command line processor by typing Quit at the DB2 prompt, then type Exit at the next prompt. The DB2 Connect server is now ready for client access.
37
38
Click OK on the User Rights Policy window. Now you can install the DB2 Run-Time client.
The only choice is DB2 Run-Time Client, so choose it and click Next . For the installation type screen, choose Typical . For the destination screen, we chose D:\sqllib. On the next screen, we did not choose Netbios. After the files were copied, we received the following message:
Setup is complete, click on Finish and reboot the machine.
39
1. Update the services file with a connection service name and port number. The port number must be the same that was used on the NT server. The service name is arbitrary. We added the following entry to the file:
C:\Winnt\system32\drivers\etc\services db2cDB2 50000/tcp #Connection to DB Alias DBNTH2 on NT Server
2. To catalog a TCP/IP node, we started the command line processor and issued the following command:
catalog tcpip node db2node remote 9.12.2.105 server 50000
Note: The node name is arbitrary. The remote is the IP address of the NT server and the server has the port number used by both the client PC and the NT server machine. 3. To catalog the database on the client PC we used the following command:
catalog database dbnth2 as db2os390 at node db2node
Note: The database name is the DB alias used on the server for DBH2. The alias db2os390 is the DB alias used on the client.
User BIRES1 is an OS/390 TSO RACF user ID and a DB2 authorized user. A successful connection between the client and the server should result in the following message:
Database Connection Information Database Server SQL Authorization ID Local Database Alias = DB2 OS/390 6.1 = bires1 = db2os390
40
The QMF Family provides access to data all over the enterprise from the following host and workstation servers: DB2 for OS/390 DB2 for VSE & VM DB2 for AS/400 DB2 workstation servers running on OS/2, Windows, NT, AIX, and other UNIX operating systems
QMF coupled with IBM DB2 DataJoiner allows access to non-relational and other vendor data sources as well. QMF Family enables multiple types of users (novices, analysts, experts, application developers, and DBAs) to access enterprise-wide data, and produce reporting (including in HTML) charts or customized applications (via QMF's APIs), as well as rapid prototyping. QMF allows for batch processing, execution of QMF procedures (including REXX conditional logic), and sharing central repositories of queries and reports across the enterprise.
41
many host applications via its APIs, as well as integration with other host products such as ISPF for creating custom applications. Batch processing capabilities, easily distributed application enabling, and scalability are just a few of QMF for OS/390's many benefits. QMF is also available as part of the DB2 Warehouse Manager for OS/390 solution, described below. QMF for OS/390 V7 key enhancements include: Support for DB2 for VSE DRDA remote unit of work (RUOW) Application Requestor (in CICS) DB2 for AS/400 V4R4, or later, server support Full ROWID data type support Limited Large Object (LOB) data type support Additional Date (DD) and Time (TT) edit codes Object type defaults added to additional command syntax: CONVERT, EDIT, EXPORT, PRINT, RESET, RUN and SAVE Improved HELP, including larger HELP panel size and direct navigation to the QMF HOME panel.
42
standalone, one-time-charge product and is licensed to access DB2 for AS/400 databases only. QMF for Windows is also included in the DB2 Warehouse Manager for Workstation, OS/390 and AS/400. 4.1.2.1 QMF for Windows V7 QMF for Windows V7 key enhancements include: Java-based SQL query allows users to submit queries to DB2 via a browser, as well as the ability to view users queries and tables from a browser. Ease of use with a point-and-click/drag-and-drop interface to QMF form creation. Aggregation, grouping, and formatting can be performed in the query results. Enhanced sorting allows the results of a query to be sorted on more than one noncontinuous column. An enhanced object list window adds Windows tree control for more intuitive navigation and location of QMF objects. Procedures with REXX. 4.1.2.2 QMF for Windows connectivity Figure 35 shows QMF for Windows connections to a DB2 for OS/390 data warehouse.
Figure 35. QMF for Windows connections to a DB2 for OS/390 data warehouse
43
There are two ways in which QMF for Windows can connect to a DB2 database server on OS/390: Distributed Relational Database Architecture (DRDA) over TCP/IP or SNA One layer of DRDA describes the communication protocol that must be used by the participants in the architecture. Specifically, it defines that requesters and servers must communicate via the TCP/IP or the SNA LU 6.2 protocol. QMF for Windows is a DRDA Application Requester (AR) and DB2 is the DRDA Application Server (AS). QMF for Windows requires no middleware, such as ODBC or DB2 Connect, to access DB2. The AR is built into QMF for Windows. Call Level Interface (CLI) to connect to a workstation DB2 database (including DB2 Connect and DataJoiner) CLI is an application programming interface (API) for relational database access that is included as part of the DB2 Run-time client for Windows, OS/2, or UNIX platforms. Using CLI, client applications (like QMF for Windows) can connect to DB2 servers on workstations and execute SQL statements. With the addition of a connectivity gateway (DB2 Connect or DB2 DataJoiner), CLI applications can connect to DB2 mainframe servers (OS/390, VM and VSE).
44
QMF, QMF HPO, and QMF for Windows on OS/390 QMF for Windows on AS/400 and workstations
45
Those setups are outside the control of QMF for Windows and must be done before you start to configure this tool.
Type text
Appendix C, QMF for Windows database connection configuration on page 157, shows the dbh2.ini SDF file we generated in our test environment. You use the QMF for Windows Administrator function to configure QMF for Windows database connections.
46
Go to Start->Programs->QMF for Windows- 7.1>QMF for Windows Administrator to open the QMF for Windows Administrator screen, as shown in Figure 37.
From the File menu, click New..., Save As... , or Open... to open a new or existing SDF file (in our example, we open the dbh2.ini SDF file). Then click New to create a new database connection definition. The Server Parameters dialog box opens (see Figure 38).
47
The Server Parameters dialog box allows you to specify: A server name You must define each database server that you or your users access with QMF for Windows. When you do so, you give each database server a server name. There are no restrictions on what this name can be; it is intended to be a descriptive, user-friendly label for the server, used only by the users in QMF for Windows and by the DBA in QMF for Windows Administrator. This name is all that the user of QMF for Windows needs to know in order to access that server; all of the technical details about how to access the server are hidden behind the server name in the SDF. An RDB name You define the RDB name, also known as the location name in DB2 for OS/390 technology, or simply the database name in DB2 Universal Database (UDB) technology. An easy way to determine the correct value for a DB2 for OS/390 server is to run the following query at the server using a DB2I or QMF host: SELECT DISTINCT CURRENT SERVER FROM SYSIBM.SYSTABLES The resulting value is the RDB name for the server. The network connection There are three different ways for QMF for Windows to connect to a database: DRDA via TCP/IP, DRDA via CPI-C, or CLI. After selecting the radio button for the required connection, you need to enter the following values, depending on the selection you made: Connect using TCP/IP Not all the DB2 host servers support TCP/IP connections. Native TCP/IP support is available for DB2 for OS/390 Version 5 and later releases. If you dont know if your DB2 OS/390 subsystem is configured to use TCP/IP, see the Sync Port and host name in DB2xMSTR. Figure 38 on page 47 shows a Server Parameters screen for the connection definition of a DB2 UDB for OS/390 Version 6 database using DRDA via TCP/IP as the network connection with the following parameters: Host Name If you enter a TCP domain name for the IP host name, QMF for Windows Administrator resolves that name to an address using the
48
GetHostByName socket call. Alternatively, you can directly specify the host address in dotted decimal notation (for example, 1.2.3.4 ). Port number: This is the TCP/IP port the database server is configured for, with its listener port in the services file. Connect using CPI-C Before configuring this connection, you must specify the SNA software that you are using to implement CPI-C in your Windows environment. This software has to be configured, and the CPI-C symbolic destination name for the database server has to be defined before the QMF for Windows installation. The CPI-C symbolic destination name is defined in your SNA software. For a detailed description of the setup required to configure an SNA session for QMF for Windows, see Configuring your SNA (LU 6.2, APPC, and CPI-C) in the IBM Redbook A DB2 Enterprise Query Environment Build It with QMF for Windows!, SG24-5746. From the main window in QMF for Windows Administrator, select Options... from the Edit menu. In the Options dialog box in the CPI-C Options group, specify the name of the DLL that your SNA software provides for CPI-C applications, as shown in Figure 39. The name of the provider DLL typically is wcpic32.dll.
49
Using DRDA via CPI-C requires only a single entry in the Server Parameters screen: the symbolic destination name, as shown in Figure 40.
Connect using DB2 UDB for Windows CLI In order for QMF for Windows to connect to DB2 via CLI, you should first configure the database connections as described in Chapter 3, Configuring database connections on page 21. You should configure DB2 Connect using the Client Configuration Assistant as described in Configuring DB2 Connect EE on page 29. The network configuration is performed as part of the DB2 UDB client configuration, rather than as a part of QMF for Windows configuration. Once the database connections are defined, at the QMF for Windows Administrator level you need only to specify the alias defined for a particular database. The primary advantage of using CLI is simplified configuration: If a database is already defined in the DB2 UDB client, its alias is the only information needed in QMF for Windows. The disadvantages of using CLI are:
50
QMF for Windows performance using CLI and DB2 Connect is generally slower than using DRDA connection to connect to OS/390 servers directly. QMF for Windows only supports connections to workstation databases with CLI. A DRDA connection via DB2 Connect or DB2 DataJoiner is required to access any host DB2 database There are restrictions on using QMF for Windows via CLI to bind static SQL. Figure 41 shows a connection to a DB2 for OS/390 database using DB2 Connect Enterprise Edition via CLI.
Figure 41. CLI connection using DB2 Connect to DB2 UDB for OS/390 server
To access a DB2 UDB server using CLI, QMF for Windows must be able to establish a CLI connection from the local workstation (the system on which QMF for Windows is running) to the remote host (the system on which DB2 is running) via the DB2 Run-Time client. QMF for Windows requires the DB2 UDB client Version 5.2 or later to access the database via CLI, and supports CLI connections to the
51
following database servers: DB2 UDB, DB2 Parallel Edition, and DB2 DataJoiner. To connect to DB2 for OS/390 using CLI, you must have DB2 Connect installed locally or as a gateway. Although this connectivity is possible, for performance reasons we recommend connecting to those platforms using a two-tier DRDA connection to avoid a possible performance bottleneck at the DB2 Connect gateway. However, if DB2 Connect is already installed in the existing environment and its performance is sufficient for the number of users using this gateway, it will allow for a very easy setup for QMF for Windows. 4.2.1.1 Test the server connection To ensure that QMF for Windows can establish a connection to the database server, select the server in the QMF for Windows Administrator main window and click Edit.. ..The Server Parameters box opens; click Test Connection to test the connection to the selected database server, as shown in Figure 42.
4.2.1.2 Troubleshooting the server connection If an error occurs, the displayed return code should be used to diagnose the problem with your network technical support services.
52
If you need to further investigate the problem, you can turn on tracing in QMF for Windows Administrator as follows: In the main window, select Options... from the Edit menu. In the Options dialog box, click Traces... In the Traces dialog box, review the listed trace file names; the defaults are probably acceptable. If the problem occurs when connecting using TCP/IP or CPI-C, in the appropriate combo box, select Calls with parameters and buffers to record all the communication information. Note: Be aware that the user ID, password, and other sensitive data is written in clear text in the trace files. Click OK in the Trace dialog box and then in the Options dialog box. Test the connection that caused the error again. A detailed trace of the calls that QMF for Windows Administrator made to the SNA or TCP/IP software is written to the specified trace files; see Figure 43.
53
Note
Turn tracing off when the problem is resolved. Tracing can have a significant adverse impact on the performance of QMF for Windows. If connecting to DB2 via an SNA network The SNA link and the LU 6.2 session between the QMF for Windows LU and the DB2 LU must be active in order to establish the connection. There are very few errors that can occur in QMF for Windows Administrator when trying to establish a connection to the server. A problem at this point almost certainly indicates a problem with the network configuration, rather than with the QMF for Windows Administrator. The few errors that can occur are: Failure to activate the SNA software or to start the SNA node Failure to activate the SNA link Failure to properly configure an LU 6.2 session between the QMF for Windows LU and the DB2 LU
The QMF objects are required to use the new QMF Web Query Feature of QMF for Windows Version 7.1 to access data at a DB2 Server. These QMF objects can be installed as part of the installation of QMF for Windows or may already exist at the DB2 server from a previous QMF installation (such as QMF host). The Administrator module can automatically determine which objects need to be created, and it will allow you to automatically create them. Before proceeding, verify if you have the necessary DB2 privileges to create objects at the target server. To create the QMF installation objects, use the following steps:
54
In the QMF for Windows Administrator main window, select the server and click Edit... On the Server Parameters dialog box, click Manage. Select the Packages option from the resulting pop-up box. Enter all of the required values on the resulting Package Properties input panel (see Figure 44).
Collection ID This is the user-defined name that will group the packages that are created for use by QMF for Windows and QMF for Windows Administrator. The collection name is limited to eight characters. In this collection, the following five packages will be bound: RAARDBI1, RAARDBI2, RAARDBIA, RAASHUT2, RAASHUT3.
55
Note
When you define multiple server entries within the SDF, accessing the same database but using different network connection options, be sure to use different Collection Names for each network option. If you fail to do so, only those users accessing the server using the last bound packages will be able to access the server. Owner ID To bind those packages, your userid must have authority at the database server to run the SQL that they contain. If your primary authorization ID has the required privileges, you can leave this field blank. If you have a secondary authorization ID that you usually use for administrative tasks, enter it in this field.
Note
When defining a connection to DB2 for OS/390, use uppercase for the Owner ID. QMF for Windows does not translate lowercase to uppercase. Advanced button Click the Advanced button on the Package Properties panel and indicate whether existing packages and authorizations are to be retained. In most cases, you should make sure these two boxes are checked. When installing a new version or service release of QMF for Windows, this will replace all of the existing packages, thus all the clients with a full QMF for Windows installation need to upgrade to the new version as well. All QMF for Windows installations with older versions will no longer be able to connect to the server. Click OK to return to the Package Properties panel for additional selections. Decimal delimiter Select the decimal delimiter that your users enter when writing SQL. String delimiter Select the string delimiter that your users enter when writing SQL.
56
When you click Next >, QMF for Windows Administrator opens a connection to the database server to bind the installation package RAARDBI1. Your authorization ID must have the BINDADD privilege at the database server in order to bind package RAARDBI1. After the installation package is bound, QMF for Windows Administrator asks you whether you want to automatically check which objects need to be created (and which ones already exist). The recommended choice is to check which options already exist. After making a selection, click Next > . In order to check for the existence of the required objects, the SELECT authority is required on the following tables on the DB2 for OS/390 server platform:
SYSIBM.SYSDATABASE SYSIBM.SYSTABLESPACE SYSIBM.SYSTABLES
If all of the objects already exist, a message to this effect will be displayed and you do not need to do anything further. Click OK to remove the message pop-up. You will now have the option to bind the QMF database packages. If you decide to bind the packages, you will be given the option to replace existing packages and authorizations. Once you make your decision regarding the bind of the QMF database packages, click Next >. A return SQL code of -551 or -552 indicates that the authorization ID on the bind (either your primary user ID or the specified owner ID) does not have all the privileges required to create database objects at the selected database server. Encoding schema differences If you have different encoding schemas, QMF for Windows produces an SQL code = -873 SQL state = 53090 error. If you are using Host QMF, before running the Create Objects step within the QMF for Windows Administrator, check your database encoding schema. The DB2 system tables must have the same encoding schema as the QMF control tables. The encoding schema is either EBCDIC or ASCII. It must be the same in both applications to run the Create Objects step from within the QMF for Windows Administrator. The change of the DB2 encoding schema (installation parameter DEF ENCODING SCHEME in panel DSNTIPF) is not recommended.
57
Special care should be used for DB2 OS/390 servers defined as CCSID ASCII, since you have to modify the DDL provided by the QMF for Windows Administrators automatic detection. QMF for Windows does not check for the CCSID, and you could run into a -873 error when the product tries to create a QMF view from one table defined as ASCII and one as EBCDIC. We suggest you modify the DDL as follows:
CREATE DATABASE .......CCSID EBCDIC
Existing QMF installations If you already have QMF on an OS/390 platform (OS/390, VM, or VSE) or any prior versions of QMF for Windows installed, QMF for Windows creates some of its own tables and views in the already present databases. The naming convention adopted by QMF for Windows uses RDBI as the creator of the majority of the QMF objects. Version 6.1 or later of QMF for Windows stores user profile, resource limits, and authorization ID information in different tables, and uses different views than previous versions and host QMF. The new tables and views used to access these tables are created when you click Create Objects on the Packages dialog in QMF for Windows Administrator. If you look at the SQL that is generated to create these tables and views, you'll notice that: If any of the previous host QMF tables are detected to exist, INSERT statements will be created to copy all of the data stored in the old tables to the new tables, as follows:
INSERT SELECT INSERT SELECT INTO RDBI.PROFILE_TABLE * FROM Q.PROFILES; INTO RDBI.RESOURCE_TABLE * FROM Q.RESOURCE_VIEW;
In the CREATE VIEW statements for each of RDBI.PROFILE_VIEW and RDBI.RESOURCE_VIEW views, there are two versions of the FROM clause, one referring to a table owned by RDBI, and one referring to a table owned by Q (which is commented out by default). To continue sharing information between host QMF and QMF for Windows, comment out the line referring to RDBI, and uncomment the line referring to Q. If you make no changes, the information in the tables owned by Q will be unaffected, but also will not be used by QMF for Windows.
58
So, if you want to use your existing QMF objects, only the above-mentioned modification during installation has to be done. Once this is set up correctly, you do not need to make any changes to the existing objects to make them available through QMF for Windows. User profiles By default, QMF for Windows V6.1 or later stores and accesses user profile information in the table named RDBI.PROFILE_TABLE. Always access this table through the view named RDBI.PROFILE_VIEW. If you want to continue using your existing Q.PROFILES table (host QMF), then modify the DDL used to create RDBI.PROFILE_VIEW and point it to Q.PROFILES as follows:
CREATE VIEW RDBI.PROFILE_VIEW ( CREATOR, "CASE", DECOPT, CONFIRM, WIDTH, LENGTH, LANGUAGE, SPACE, TRACE, PRINTER, TRANSLATION, PFKEYS, SYNONYMS, RESOURCE_GROUP, MODEL, ENVIRONMENT ) AS SELECT CREATOR, "CASE", DECOPT, CONFIRM, WIDTH, LENGTH, LANGUAGE, SPACE, TRACE, PRINTER, TRANSLATION, PFKEYS, SYNONYMS, RESOURCE_GROUP, MODEL, ENVIRONMENT FROM Q.PROFILES; -- FROM RDBI.PROFILE_TABLE;
Resource groups By default, QMF for Windows Version 6.1 and later stores and accesses resource group (governing) information in the table named RDBI.RESOURCE_TABLE. QMF for Windows always accesses this table through the view named RDBI.RESOURCE_VIEW. If you want to continue using your existing Q.RESOURCE_TABLE table (host QMF), modify the DDL used to create RDBI.RESOURCE_VIEW and point it to Q.RESOURCE_VIEW (the view already created on Q.RESOURCE_TABLE) as follows:
CREATE VIEW RDBI.RESOURCE_VIEW ( RESOURCE_GROUP,
59
RESOURCE_OPTION, INTVAL, FLOATVAL, CHARVAL ) AS SELECT RESOURCE_GROUP, RESOURCE_OPTION, INTVAL, FLOATVAL, CHARVAL FROM Q.RESOURCE_VIEW; -- FROM RDBI.RESOURCE_TABLE;
Primary/secondary IDs By default, QMF for Windows Version 6.1 or later stores and accesses primary/secondary authid relationship information in the table named RDBI.AUTHID_TABLE. QMF for Windows always accesses this table through the view named RDBI.AUTHID_VIEW. If you want to continue using your existing table Q.RAA_AUTHID_TABLE (the older version of the QMF for Windows product), modify the DDL used to create RDBI.AUTHID_VIEW and point it to Q.RAA_AUTHID_TABLE as follows:
CREATE VIEW RDBI.AUTHID_VIEW ( PRIMARY_ID, SECONDARY_ID ) AS SELECT PRIMARY_ID, SECONDARY_ID FROM Q.RAA_AUTHID_TABLE; -- FROM RDBI.AUTHID_TABLE;
60
This is used only by the Administrator module and contains the SQL required for administrative functions. RAARDBI2, RAASHUT2, and RAASHUT3 These are used by the QMF for Windows module. To create the packages at the target server, do the following: In the QMF for Windows Administrator main window, select the server and click Edit. On the Server Parameters dialog box, click Packages. Enter all of the required values in the resulting Packages dialog box. On the Packages dialog box, you bind the user and administrator packages by clicking Bind. The status line will indicate the progress of the bind operation. If any errors occur, you must correct them and repeat the bind. The most common errors include: SQL code of -204 that indicates that a required table does not exist. To create it, click Create Objects. SQL codes of -551 or -552 indicate that the authorization ID on the bind (either your primary user ID or the specified owner ID) does not have all of the following privileges required to bind the packages, as shown in Table 2.
Table 2. Required privileges
Table/View Name RDBI.RESERVED RDBI.PROFILE_VIEW RDBI.TABLE_VIEW RDBI.USER_AUTHID_VIEW RDBI.USER_ADMIN_VIEW RDBI.RESOURCE_VIEW Q.RAA_SUBTYPE Q.RAA_OBJECT_VIEW Q.OBJECT_DATA Q.OBJ_ACTIVITY_SUMM Q.OBJECT_DIRECTORY
Privileges SELECT SELECT, INSERT, UPDATE SELECT SELECT SELECT SELECT, INSERT, UPDATE, DELETE SELECT, INSERT, UPDATE, DELETE SELECT SELECT, INSERT, DELETE SELECT, INSERT, UPDATE, DELETE SELECT, INSERT, UPDATE, DELETE
61
To invoke this function after initial installation, select Manage from the Server Parameters dialog box and choose Packages from the resulting pop-up.
62
Click Next > on the Package Properties dialog box. On the Check Objects dialog box, assume that all objects exist and click Next >. On the Bind Packages dialog box, choose to not bind the packages again and click Next >. In the Permissions dialog box: Enter the user IDs to which you want to grant the authority. Click Next > to make this change at the selected database server.
Sample table name Q.APPLICANT Q.INTERVIEW Q.ORG Q.PARTS Q.PRODUCTS Q.PROJECT Q.STAFF Q.SALES Q.SUPPLIER
Contains information about The prospective employees of the company The interview schedule for prospective employees Organization of the company by department (within division) Materials supplied to the company Products produced by the company Company projects The employees of the company Sales information for the company Other companies who supply materials to the company
To create the sample tables, use the following procedure: Select the server at which you want to create the samples tables and click Edit. The Server Parameter dialog box opens. Click Manage and select Sample Tables from the pop-up. A dialog box opens, warning you that the sample tables will overwrite any previous versions of the sample tables that exist on the server. Figure 46 on page 64 shows the screen that appears when the sample tables are going to be created.
63
Note
Special consideration for existing QMF installations: The sample tables supplied with each of the QMF family of products are identical. If they already exist at the specified server, QMF for Windows will delete and recreate them. Click Yes to create the sample tables.
64
View query results in a Web browser Download query results to a spreadsheet Figure 47 shows the QMF SQL Query for the Web.
QMF SQL Query for the Web requires a Web application server product that supports the Java servlet standard. Supported Web application servers include: WebSphere Application Server for AIX, Sun Solaris, and Windows NT, Version 2.0 or later Sun Java Web Server Version 1.1.3 or later Web application server products not included in this list, that support the Java servlet standard, should also work with QMF SQL Query for the Web.
65
In addition, a JDBC driver is required to provide connectivity to any of the database products supported by QMF for windows. The JDBC driver support needed for DB2 servers are included with DB2 UDB database servers, DB2 Connect and DB2 DataJoiner middleware solutions. In this section, the set-up and configuration of a HTTP server, a Web application server and the JDBC drivers on a Windows NT server platform is discussed.
4.3.1 Installing the QMF SQL Query for the Web Java servlet
The configuration used to implement QMF SQL Query for the Web is shown in Figure 48.
PC Workstation (TESTIIS) PC Workstation (TOT107)
JDBC DRDA HTTP
DB2 DB2 DB2
Web Browser
Internet
DB2 DB2
NT 4.0 Netscape
NT Server 4.0 DB2 UDB V6 for OS/390 Websphere HTTP/WAS DB2 UDB EE DB2 Connect EE JDBC/SQLJ Drivers QMF for Windows 7.1 QMF SQL Query for the WEB servlet
Netscape Navigator 4.08 is used on the TESTIIS workstation to invoke QMF SQL Query for the Web servlet. QMF for Windows Version 7 (including SQL Query for the Web), IBM HTTP Server Version 1.1.6, IBM WebSphere Application Server Version 3.02, and DB2 UDB Enterprise Edition Version 6.1 for Windows NT (including DB2 Connect as DRDA gateway to DB2 UDB for OS/390 Version 6) are installed on the TOT107 server. QMF SQL Query for the Web is configured for access to the local DB2 for NT server and for access via DB2 Connect to DB2 for OS/390 database server. The basic installation of QMF SQL Query for the Web servlet requires simply copying the qmfweb.jar file to the IBM WebSphere Application Server servlet
66
directory. During the QMF for Windows V7 installation, the qmfweb.jar file is placed in the <drive>:\Program Files\IBM\QMF for Windows\ directory. The qmfweb.jar file must be copied into the IBM WebSphere Application Server s servlet directory. The servlet directory for the WebSphere application server is <drive>:\Websphere\AppServer\servlets\. To move the .jar file to the servlet directory, type the following at a Windows NT Command Prompt:
COPY <drive>:\Program Files\IBM\QMF for Windows\qmfweb.jar <drive>:\Websphere\AppServer\servlets\
Next, the WebSphere Administrator s Console is used to define the QMF SQL Query servlet in the default_app Web server. To start the WebSphere Administrative Console on Windows NT, you must verify that the IBM WebSphere Administrative Server on Windows NT is running. From the Windows NT Start menu, select Settings -> Control Panel -> Services. If the Administrative Service must be started, from the Services panel select IBM WS AdminServer. Press Start. To start the WebSphere Administrative Console on Windows NT, from the Start menu, select Programs -> IBM WebSphere -> Application Server V3.0 -> Administrators Console. This starts the console, as shown in Figure 49.
67
4.3.2 Customizing the QMF SQL Query for the Web servlet
The following steps are necessary to customize the QMF SQL Query for the Web servlet using the WebSphere administrative console: Click the Topology tab. Expand the WebSphere Administrative Domain tree view. Expand your host name tree view. The Web Server host name created during the installation of IBM WebSphere for our configuration is tot107. Select and click Default Server, servletEngine, and default_app on this server. Right-click default_app, select Create, and click Servlet. Enter the responses below for the parameters specified in the Create Servlet dialog box shown in Figure 50 on page 69: Servlet Name: com.ibm.db2.web.query.WebQuery Description: IBM DB2 Web Query Servlet Class Name: com.ibm.db2.web.query.Webquery
68
Click Add and enter servlet/qmfquery in the Servlet Web Path List dialog box. Click Create to complete the configuration of the QMF SQL Query for the Web servlet. Next, click default_app in the tree view. Right-click default_app and select RestartWebApp to refresh the default_app servlet engine. Additional configuration parameters specific to the QMF SQL Query for Web can now be specified for the newly defined servlet: Click the right mouse button and select com.ibm.db2.web.query.WebQuery and Properties. Click the Advanced tab as shown in Figure 51 on page 70 and enter the following response for Init Parm Name and Init Parm Value: Init Parm Name: TempFileURLDir with Init Parm Value: /QMFQUERY Init Parm Name: TempFileRealDir with Init Parm Value: C:\Program
Files\IBM HTTP Server\htdocs\QMFQUERY
69
Note
TempFileRealDir is the directory used to store temporary files generated by QMF SQL Query for the Web. This should refer to a directory where temporary files can be created on the platform where the Web application server is running. If the directory specified does not already exist, you will have to create the directory in the Windows NT file system. TempFileURLDir is the prefix of URLs that refer to the (real) directory specified by the TempFileRealDir parameter. It is used in generated URLs.
70
Click Create and, after a message displays stating the creation was successful, click OK .
71
Note
JDBC drivers must be specified for all DB2 server connections defined for access by QMF SQL Query for the Web. For example, JDBC drivers must be created to access to DB2 for OS/390 via the DBNTH2 CLI connection shown in Figure 41 on page 51.
After creating the JDBC driver, the next step is to create a data source. As shown in Figure 53 on page 72, to add a data source do the following: Click the Topology tab of the WebSphere administrator s console and select WebSphere Admin Domain . Right-mouse click and then select Create and DataSource. In the Create a DataSource dialog, enter the following information: DataSource: SampleDBSource (for example) Database Name: SampleDB (for example) Driver: SampleJDBC (the JDBC driver just created)
Click Create and, after a message displays stating the creation was successful, click OK . The next step is to install the JDBC driver on the Web server host. Follow these steps to install the JDBC driver. On the Topology tab, click the right mouse button on the Sample JDBC object. From the pop-up menu, select Install .
72
In the Install Driver dialog, select the node (TOT107, in this example) onto which you will configure this JDBC driver. After you select the node, the Jar file option becomes selectable. Click Browse to locate the file system directory where the DB2 JDBC driver is installed. If you already know the file directory, enter as follows: C:\SQLLIB\java\db2java.zip Click Install and, if the installation is successful, click OK. You are now ready to test QMF SQL Query for the Web.
where <your_host> is the URL for your Web server. If QMF SQL Query for the Web is successfully configured, you should see the Web page shown in Figure 54 on page 74 at your Web browser.
73
Query results are available for viewing at the Web browser. See Figure 55 on page 75 for an example of query results returned to the Web browser.
74
75
Apply any friendly name to an object Use drag-and-drop folder organization to easily create favorite reports or queries QMF Report Center runs independently of QMF for Windows as a desktop application. This feature is installed automatically if the Typical install option is used to install QMF for Windows. Optionally, the QMF Report Center may be installed standalone by selecting the Custom option during QMF Install and checking only the Report Center component, as shown in the Select Components dialog box in Figure 56.
QMF for Windows connections to a database server must be performed as described in 4.2.1, Configuring database connections on page 46, before the Report Center can be used to query tables or create reports. The QMF Administrator tool is used to configure connections to DB2 Servers on the OS/390 platform, and these connections are described in a Server Definition File.
76
Once database server connections are in place, start the QMF Report Center on Windows NT. From the Start menu, select Programs, QMF for Windows 7.1, and then Report Center. This starts the QMF Report Center desktop application as shown in Figure 57. QMF Report Center displays all reports and tables available to the user in a tree format for each DB2 Server connection.
To run a saved report or to query a table, position the pointer at the query or report of interest and double-click to run a query and format an output report with the query results. An example of a report produced using QMF Report
77
Center (displayed using the Windows NT Notepad to view a text output file) is shown in Figure 58.
78
PC Workstation (TOT107)
TCP/IP DRDA
DB2
Data
Warehouse
DB2 EE
In general, a 2-tier configuration provides the best opportunity for high performance. The software path length is shorter and the number of network nodes required to transfer requests from the client requestor to the remote data warehouse deployed on the OS/390 is fewer. However, QMF for Windows also offers the option of being used in 3-tier configurations as shown in Figure 60 on page 80.
79
This 3-tier configuration demonstrates an option to minimize the number of DRDA connections required to the DB2 UDB for OS/390 database server. In this scenario, one workstation, TESTIIS, is configured as a QMF client platform for use in developing queries and report formats. A second workstation, TOT107, is configured with DB2 Connect Enterprise Edition and DB2 UDB for Windows NT to provide a database for QMF control tables, and connectivity to the OS/390 host where DB2 UDB for OS/390 V6 is installed. QMF queries and saved reports are created by an information provider user and saved on the middle-tier for later use. Another advantage of using this configuration is that no database or connectivity software beyond what is included in QMF is required. Also, multiple BI users may make use of the common QMF objects (queries, reports, and procs) stored on the middle-tier server as well as exploit the single DRDA connection between the middle-tier and the remote OS/390 host.
80
PC Workstation (TOT107)
DB2
Data
DB2 DB2
Warehouse
DB2 DB2
TCP/IP DRDA
NT 4.0 QMF for Windows V7 QMF Report Center Desktop applications such as Excel and Notepad
The QMF Report Center on the client workstation delivers a QMF for Windows BI application to the information consumer. The information consumers are presented a list of query objects or report objects which they invoke from their respective desktop. The resulting output can be targeted for integration with familiar spreadsheet, word processing, or text editing applications. Use of QMF for Windows to navigate the DB2 data warehouse on OS/390 can be made transparent to the information consumers. From a connectivity perspective, QMF for Windows V7 Administrator is used to define a server connection directly from the client, using DRDA, to the remote DB2 for OS/390 server. Figure 62 on page 82 shows a 3-tier information consumer scenario using a Web browser and a connection gateway to access the data warehouse on OS/390.
81
PC Workstation (TESTIIS)
PC Workstation (TOT107)
JDBC DRDA HTTP
QMF Control Control tables
Web Browser
Internet
NT 4.0 Netscape
NT Server 4.0 DB2 UDB V6 for OS/390 Websphere HTTP/WAS DB2 UDB EE DB2 Connect EE JDBC/SQLJ Drivers QMF for Windows 7.1 QMF SQL Query for the WEB servlet
In this 3-tier information consumer scenario, a very thin client is deployed using a Web browser: Netscape Navigator in our example. The middle-tier configuration includes a Web server and QMF for Windows SQL Query for the Web Java servlet that creates and executes queries and displays query output as HTML pages. Connectivity to a remote DB2 server, such as DB2 UDB for OS/390 V6 host, is enabled via the JDBC driver and a DRDA connection. DB2 Connect provides connectivity to the remote DB2 server database. QMF control tables required to save QMF objects and QMF user profiles may be stored either locally on the middle tier where DB2 UDB EE is also installed, or on the remote DB2 server on the OS/390.
82
Many additional configuration scenarios can be used in addition to those we have tested. Though not attempted as part of this project, a scenario we expect to emerge as requirement for a more scalable solution is the 2-tier configuration shown in Figure 63, which works for both information consumer and provider scenarios.
DB2 DB2
PC Workstation (TESTIIS)
Internet
DB2 DB2
Browser
HTTP
DB2 UDB for OS/390 V6 QMF for OS/390 Websphere Application Server HTTP Server QMF SQL Query for the Web servlet NT 4.0 Netscape
83
84
85
5.1.2.1 BrioQuery BrioQuery enables query, reporting and analysis of data. The reporting and analysis features are extended with pivoting and charting functionalities. For OLAP data, Brio is also extended with an OLAP query functionality. BrioQuery also enables building and deploying data analysis applications. BrioQuery comes in the following three editions: BrioQuery Designer BrioQuery Designer is intended for information providers. Using BrioQuery Designer, information providers can create and distribute data models and Brio documents to be used throughout the organization. The designer can fully administer the Brio repository, and create new repositories. For a further discussion of the Brio Repository, see 5.2.2, Brio repository on page 88. BrioQuery Explorer BrioQuery Explorer is intended for information consumers with good technical skills and a solid understanding of the database structure they are working with. The difference between the Designer edition and the Explorer is that the Designer edition can create, manage and deploy documents to the repository. Explorer users can access and execute these documents. BrioQuery Navigator BrioQuery Navigator is intended for information consumers. It allows them to access reports or data models defined by information providers. Information consumers using Brio Navigator do not need to have a detailed understanding of the database structure they are working with.
86
makes it possible to create calendar or event-based reports. The broadcast server can distribute the reports in different ways. It can, for example, send reports by e-mail to a group of users, send the reports by FTP to a remote system, transform the reports into HTML, and publish them on an intranet, or direct the reports to a printer. The scheduling and distribution of the information is stored, managed and controlled from the repository.
87
Report section, lets the user create presentation reports. This can include customer-specific graphics like company logotypes. EIS section - enables building customized applications using Java scripts.
NT server
S/390 server
S/39 S/390 0
TCP/IP
Information Consumer
Browser
HTTP/HTTPS
Brio Insight or Brio Quickview Brio OnDemand Server Web Server Brio Enterprise Admin Server DB2 Connect PE
Information Provider
TCP/IP
Information Consumer
Brio Query Explorer or Brio Query Navigator DB2 Connect PE DB2 OLAP Client API
Information providers deploy documents to the repository by using Brio Query Designer or Brio Enterprise Server Administrator.
88
There is one OCE file for each database connection. (Note that the term database used in Brio terminology corresponds to the DB2 subsystem on OS/390.) The OCE file contains the necessary settings to describe the connection to a specific database. The settings include information about the connection middleware, the database, the userid and password used for the database connection and the network address of the database. An OCE is created using the Database Connection Wizard. The Wizard can be invoked from any of the BrioQuery products, Brio ODS or Brio BroadCast Server. It is invoked by the menu choice Tools->Connection->Create.
S/390 server
S/3 90 S/39 0
89
3. Select ODBC for the Connection Software and DB2 for Type of Database. Select Next (Figure 67).
4. Enter a valid userid and password. For Host, select your DB2 for OS/390 database (DBNTH2, in our case). Select Next (Figure 68 on page 91).
90
5. Select Finish on the next window, and answer Yes when prompted to save the Open Catalog Extension (OCE).
91
3. Enter a valid userid and password for the database when prompted, then click OK . The BrioQuery screen is displayed (this may take a few minutes). 4. On the left side, click Tables to get a list. Select one you are familiar with. We selected the Staff table. BrioQuery will show the table and its columns (Figure 70).
92
5. Drag the columns you would like in your report to the request line above the table as indicated on the window. We select ID, Name, and Salary (Figure 71).
93
6. Click Process from the toolbar to run the report (Figure 72).
7. At this point the query can be saved for use later, testing Web clients, for instance. Select File -> Save To Repository -> Select. Pick the connection used for the repository (Odbcdb2.oce, in our case). Click OK . 8. Enter a valid userid and password when prompted. Click OK .
94
9. Enter a query name and a description on the Model tab (Figure 73).
10.Select the Groups tab. Enter the owner name for the repository, BIRES1, and select which groups of users will be able to see/run the query. Then click OK to save the query (Figure 74).
95
S/390
96
4. Enter a userid and password for the DB2 OLAP Server. For Host, enter the IP address for the system running DB2 OLAP Server. Note that for OS/390 it should be the IP address for UNIX System Services (USS). Select Next (Figure 77).
5. Enter the DB2 OLAP application/database name you want to work with (in our case, Sample/Basic). Select Next (Figure 78).
97
6. Select Measures from the list, for the measures dimension of the cube (Figure 79).
7. Select Finish on the next window, and answer Yes when prompted to save the OCE.
98
3. Enter a valid DB2 OLAP Server userid and password when prompted. The OLAPQuery window will be displayed (Figure 81).
4. Click the plus sign ( +) beside Measures to expand it. Then expand Profit , and Margins. Drag Sales over to the Measures box, bottom right (Figure 82). 5. Click the + beside Years to expand it, and drag Quarter (All) to the Top Labels box, just above the Measures box (Figure 82 on page 100). 6. Click Process on the toolbar. This will access the data and create the report (Figure 82 on page 100).
99
7. Save the query for later testing. See 5.4.2, Test the DB2 data warehouse connection on page 91, Step 7, for instructions on saving queries to the repository.
100
S/390
Brio Insight or Brio Quickview Brio OnDemand Server Web Server Brio Enterprise Admin Server DB2 Connect PE
Communication between the Web browser and the Web server uses standard HTTP or HTTPS protocol. The Web server handles all communications to Brio ODS. The API used between the Web server and Brio ODS depends on the installed Web server.
101
Brio currently supports the following Web servers and APIs: IBM HTTP Apache Server with CGI API (or any other Apache-based Web server) Netscape Enterprise Server with NSAPI or CGI Microsoft Internet Information Server with ISAPI or CGI The Brio ODS installation program is able to automatically detect and configure Netscape Enterprise Server and Microsoft Internet Information Server running on NT. On UNIX platforms, Brio ODS detects and configures Netscape Web servers and Apache Web Servers. There is currently no support for detecting and configuring Apache Web Servers running on NT. We tested both the Microsoft Internet Information server and the IBM HTTP Apache Server under NT. When using the IBM HTTP server on NT, we had to do some manual configuration.
<ODSINSTALLDIR> is the directory where the OnDemand Server is installed. For example:
Alias /odshtml "C:/Program Files/brio/brio enterprise server/server/html/" Alias /odsimage "C:/Program Files/brio/brio enterprise server/server/images/"
102
Alias /components "C:/Program Files/brio/brio enterprise server/server/webclients/" Alias /execomp "C:/Program Files/brio/brio enterprise server/server/webclients/exes/"
2. Script alias A script alias maps a physical directory on your Web server to a virtual directory and tells the Web server to execute any scripts. The script alias information resides in the srm.conf or the httpd.conf file which is located in the <Apache Install Dir>\conf directory. Scroll through this file until you reach the script alias section and add the following item:
ScriptAlias /ods-cgi "<ODSINSTALLDIR>/server/CGI/"
3. Mimetypes Mimetypes tell the Web server what header to return to the browser when a file is requested. Mimetypes are mapped using the file extension. The mimetype information resides in the mime.types file, which is located in the <Apache Install Dir>\conf directory. Add the following entries in this file:
application/x-brioquerybqy application/x-brioquerydatabqd application/java-archivejar application/x-javascriptjs
5.6.1.2 Change startup HTML It may also be necessary to change the startup html file. The file brio.html is located in: <ODSINSTALLDIR>/server/html Edit this file using an ASCII text editor (Notepad, for example). In the beginning of the file, the variable BrioStartURL is set for Apache servers. It should be:
BrioStartURL = "../ods-cgi/odscgi.exe" // cgi on windows
If there is a double forward slash (//) in the beginning of this row remove it and put // in the beginning of all other BrioStartURL rows. 5.6.1.3 ODS.INI File The ODS.INI file (in the ODS installation directory) contains general settings for Brio ODS. These settings are normally set during the installation. We found it valuable to verify that the settings we entered in Brio ODS corresponded to the actual settings in this file.
103
5.6.1.4 Hostname resolution When CGI is used, the client must be able to resolve the hostname from the IP address (it must be registered on a name server that is available to the client). This applies even though the user is entering the IP address rather than the hostname on the Brio start-up URL. In this situation the login to the ODS repository works, but when the user tries to process a query, it will try to connect to the host name (rather than to the IP address), which cannot be resolved because the IP address has been translated to the host name when the user first connected to the ODS repository.
3. Right-click Servers. Select New. 4. Choose Create to create a new connection (OCE), or Select , to select an existing OCE from the list. The connection must have ODBC as the connection software, and DB2 as the type of database. This is because the connection created/selected in this step will be used to connect to the Brio repository stored in DB2 on the OS390. To create a new connection, follow the steps in 5.4, Non-Web client connection to DB2 data warehouse on page 89. 5. If using an existing OCE, you will be prompted to logon. Enter a valid userid and password for the host. 6. Select the Repository owner from the list. If at least one repository does not exist, you will be prompted to create it before continuing. (We used the repository owned by BIRES1.) Click OK (Figure 85 on page 105).
104
7. Enter OnDemand Server information. Click OK when finished (Figure 86). Server Name - a name you select for this OnDemand Server. ODS Machine Name: It is always the name of the physical machine name (M063473, in our case). Port Number: leave the default of 5500 unless it is already in use. Administrator ID/password: the default is system/manager. You have to use this default at the first install; you can change the default later if you want.
8. At this point, the Add window is displayed. It has five tabs. The first tab is Server. Check that the information is correct (see Figure 87 on page 106).
105
9. Verify that the information on the Settings tab is correct (Figure 88).
10.Ensure OnDemand Server Repository is selected on the Authentication tab (Figure 89).
106
11.Ensure that the directories listed on the Directories tab are correct (Figure 90).
12.Ensure that the server repository information is correct on the Server Repository tab. If this is the first server being defined for ODS, most of this tab will be blank. The OCE in the server repository tab should be the same as the OCE defined on the server tab. In our case, the OCE is Odbcdb2.oce we previously created. Enter an ID that has authority to update the repository tables, and its password. Check that the OCE and repository owner name is the same as the owner name on the Server tab (Figure 91).
13.Click OK to create the server. Any users, groups, or documents found in the repository will be added to the server automatically (see Figure 92 on page 108).
107
14. Add any users that are required. Right-click Users, then select New. Enter userid and password. Ensure that the Allow access to ONDemand Server checkbox is checked. 15.Create a group for your users if you do not have one. Right-click Groups, then select New. Ensure that the Allow access to OnDemand Server checkbox is checked. Select Query and Analyze for default privilege. Check Allow registering documents and Prompt for database logon. Move users to the Users in Group box. Note: You may want to reconsider the default privileges later, but the suggested setting is ok for testing. 16.Add your test documents. Right-click Documents -> Add Document -> Repository Model. Select the query from the list of documents previously saved in the repository. The Add window will be displayed (Figure 65 on page 89). See 5.4, Non-Web client connection to DB2 data warehouse on page 89, and 5.5, Non-Web client connection to DB2 OLAP Server on page 96 for sample queries that you can load from the repository into a document. 17.Give the document a name and a description, and assign it to one or more groups to give users access. Select OK (Figure 93 on page 109).
108
18.Select the new document and the appropriate connection (Olapdb2.oce, in this case) since it is an OLAP query (Figure 94).
109
In our case:
//M063473/odshtml/brio.html
110
3. Click New logon. When prompted, enter your ODS server userid and password. Note: If you are using Netscape and the userid is not displayed when you enter it, the default fonts need to be used. From the Netscape toolbar, select Edit -> Preferences -> Appearance -> Fonts. Click Use my default fonts. Select OK . Stop and restart the browser (Figure 96).
4. Select the report you would like to run from the list. This list shows only those reports added as a document in ODS (Figure 97).
111
112
Information Consumer
Browser
NT server
S/390 server
DB2 OLAP APIs via TCP/IP
S/39 S/390 0
HTTP/HTTPS
Brio Insight or Brio Quickview Brio OnDemand Server Web Server Brio Enterprise Admin Server DB2 Connect PE
113
5.8 Security
Brio implements security on multiple levels.
The list of users, user groups, connections between users and groups, and privileges for each group are stored in the ODS repository. The management of these definitions is performed by the administrator from the Brio Enterprise Server Administrator component.
114
5.8.2.2 Authenticate user with ODS repository If this option is selected, the userid and password entered on the HTML login form are matched against the userid and password stored in the Brio ODS repository. If they match, the user is authenticated within ODS and is presented with the list of documents granted to the groups the user is connected to. 5.8.2.3 Authentication by the customer method The third option is to use a customer-specific Java Bean invoked by Brio ODS to perform the authentication. The userid and password are passed to the Java Bean. This option enables customer-specific coding for authentication. It can be used to achieve a single logon (avoiding logon to both Brio ODS and the database server).
115
116
Figure 100 shows a scenario where the main database connection is accessing DB2 for OS/390 and the metadata database connection is accessing DB2 Warehouse Manager residing on Windows NT. The table list, the columns, the table remarks and the column description displayed in Brio for this scenario are retrieved from DB2 Warehouse Manager, rather than from DB2s system catalogue on DB2 for OS/390.
S/390 server
S/390
117
groups to access Brio documents, add and register documents, schedule queries and reports in Brio Broadcast Server, monitor Brio ODS and Brio Broadcast Server, etc. If necessary, for example, to customize layout of HTML reports produced by Brio, this user can also administer the Web server.
NT server
S/390 server
S/390
TCP/IP
Information Provider
Brio OnDemand Server Web Server Brio Enterprise Admin Server DB2 Connect PE DB2 OLAP Client APIs
118
S/390
Brio Insight or Brio Quickview Brio OnDemand Server Web Server Brio Enterprise Admin Server DB2 Connect PE
119
120
121
offer more interactive functionality than the HTML thin client. The Java Web client connects to the repository and DB2 OLAP Server through the Analysis Server. API toolkit Developers can use the API toolkit to invoke Analyzer functions in custom Web-based business analysis applications using open, mainstream development tools such as JavaScript. Design tools The design tools provide a graphical interface for creating composite views called Forms, and graphic views called Pinboards. Administration tools The Administration tools provide a graphical interface for managing user profiles, user groups, and database connections through the Windows operating system. They also provide access to utilities such as the Analysis Server configuration utility. Repository The repository centrally stores Analyzer user settings, system data, views and reports in relational database tables. The default repository is based on Paradox; however, in production environments, a scalable enterprise repository such as DB2 UDB, SQL Server, or Oracle database should be used. The repository can reside on the fat Windows client workstation, or on the middle-tier server, or centrally on the OS/390 server, where all users will be able to see and share its contents. Add-in for Excel The Excel add-in provides Microsoft Excel users the ability to centrally store, retrieve, and distribute worksheets to the Analyzer repository using a menu item added to the Administration tool.
122
Analyzer client
NT server
OS/390 server
Repository
TCP/IP
Figure 103. Analyzer 2- and 3-tier connections to DB2 OLAP Server for OS/390
DB2 OLAP Server Analyzer requires the Essbase APIs to connect to the DB2 OLAP Server application running on the OS/390. The Virtual Cubes facility provides the ability to drill-through to relational data. Connection to relational data, in this case, is achieved through DB2 Connect. On a three-tier implementation, DB2 Run-Time client is required on the client workstation to connect the client to the middle-tier database where DB2 Connect EE is running.
6.3 Security
There are several security issues to consider.
123
Windows NT Domain authentication verifies that a user attempting to run Analyzer has been authenticated to a Windows NT domain. Analyzer runs for authenticated users, with defined Analyzer user profiles, without prompting them to login. (Analyzer user account must exist.) Select the Automatically Generate New User Accounts check box to generate new Analyzer user profiles when Microsoft Windows NT domainauthenticated users log into Analyzer for the first time. Keep in mind that user profiles and user properties are inherited from the default user user profile. When DB2 OLAP Server security is enabled, Analyzer uses the specified DB2 OLAP Server to validate user ID, password and user type for login. Administrators can also import user names into the Analyzer security system. Import formats include text, DB2 OLAP Server, or the NT Network. Note: Database record security itself (read and write levels) is always endorsed and adhered to through DB2 OLAP Server security settings. 6.3.1.1 User groups User groups can be created and managed to provide an additional level of View (report) security. Users can exist in multiple groups simultaneously. When a View Group is created, the author may elect to publish the group to everyone, to individual user groups, or elect to keep it private. 6.3.1.2 User profiles Each individual user has a user profile within Analyzer. The Administration Tools allow the administrator to centrally manage default settings for each user. Additionally, individual users settings can be personalized directly from the Analyzer Windows Client. Additional look and feel and startup personalization, database access and single-sign on security settings are defined within a user profile. Analyzer supports the ability to access information from more then one DB2 OLAP Server, regardless of platform. Virtual cubes can be defined by the administrator in order to provide a seamless drill-through to relational details not stored within the DB2 OLAP Server cube. Since user IDs and passwords may vary between different DB2 OLAP Servers and relational virtual cubes, Analyzer provides a feature within the user profiles whereby individual connection login user names and passwords can be preset, resulting in a single signon look and feel for the end users as they start the Analyzer product.
124
125
For further details regarding the Enhanced Web Services (CGI, NSAPI or ISAPI editions), refer to Analyzer enterprise guide documentation.
126
3. Click Next , and you will see the screen shown in Figure 105.
127
5. Select Enterprise Repository and Create New. Click Next (Figure 106). 6. Click No when asked if Microsoft OLAP services should be installed.
128
7. Select IBM DB2 for the relational database platform, and enter the name of the database in the DB2 DSN field. Note that the database must already exist (Figure 107 on page 128.) 8. Enter a user ID and password for an ID with enough authority on the database to create the required objects for the repository. Click Next. The product is now installed, and the repository objects created in the selected database. After installing Analyzer, some setup is required in order to create users and connect to the Sample Views included in Analyzer. It is assumed that DB2 OLAP Server 1.1 or higher has been installed on the OS/390, and the Sample Basic database included with the DB2 OLAP server has been created.
3. Right-click the Database folder and select the New menu item to define new connections. When prompted, enter your DB2 OLAP Server user ID and password. The right side of the window will be populated with the list of available applications/databases (Figure 109 on page 130).
129
130
4. Select OK .
2. Enter a valid user ID, name, and password. Confirm the password by retyping it in the Confirm Password box (Figure 111).
131
3. Set the user type to System Manager if the ID is to be an administrator ID. An administrator can create Forms, modify views created by other administrators, and start the administrator program and utilities. 4. The bottom half of the window contains a list of available data sources and a list of connections that have been previously established. In our case there are none. Since the user profile setting of Use Authorized Database was not selected, it is not necessary to populate the Databases for this user list. However, doing so will allow a user ID and password to be associated with the application/database. This will save the user from having to logon each time the application/database is accessed (also see Figure 111). 5. Highlight Sample Basic in the All Databases list, and click Add (also see Figure 111). The Database Connection window will be displayed (Figure 112 on page 132).
6. If your DB2 OLAP Server user ID and password are identical to your Analyzer user ID and password, select Use Users ID and Password; otherwise select Enter User ID and Password. If you select the latter, enter the DB2 OLAP server user ID, password, and confirm the password. 7. Select OK on the Database Connection window (Figure 112), and the Database Properties window. 8. At this point you may want to change the user s profile options. We recommend changing the startup options to make the sample demos flow easily. From the Management window, highlight the user you wish to
132
modify, and right-click it. Select Settings. Select the Startup tab, followed by the Startup Options item (Figure 113 on page 133).
9. Set the Startup Options to be Startup in Home Page and select Default Connection (see Figure 114).
10.Select Sample Basic from the database list, then click OK (Figure 115).
133
134
135
5. Set the Name to Sample, and the Owner to {System}. Note that the curly braces are required (Figure 119).
136
You can select a picture for the icon that will be displayed on the Analyzer main menu (see Figure 120 on page 137); however, this is not required. (Samples are included in ..\Hyperion Analyzer\Samples\Images\Group Pictures.) 6. Click OK . 7. When prompted, select Sample Basic as the database. Click OK on this window, as well as OK on the View Manager window. The Analyzer Main Menu - TBC Online Analysis Group will be displayed.
Try all the tabs at the bottom of the window to ensure they all open and are populated with the DB2 OLAP live data correctly. At this point you are welcome to tour the sample views to familiarize yourself with them.
137
Note: In order to connect to the enterprise repository on the NT server, DB2 Run-Time client is required on the windows client. Also, it is a good idea to verify that the connection between the DB2 Run-Time client and the DB2 UDB EE server is set up and functioning before continuing with the installation of the Analyzer Windows client. 1. Select Enterprise Repository and Connect to Existing. Click Next (Figure 121).
138
2. Select IBM DB2 for the relational database platform, and enter the name of the database in the DB2 DSN field. Note that the database must already exist (Figure 122 on page 138). 3. Enter a user ID and password for an ID with enough authority to select/ insert/update the repository objects. Select Next (again see Figure 122 on page 138). The Windows client is now installed.
139
# A lia s e s : A d d h e re a s m a n y a lia s e s a s yo u n e e d (w ith n o lim it). T h e fo rm a t is # A lia s fa k e n a m e re a ln a m e # N o te th a t if yo u in c lu d e a tra ilin g / o n fa k e n a m e th e n th e s e rv e r w ill # re q u ire it to b e p re s e n t in th e U R L . S o "/ic o n s " is n 't a lia s e d in th is # e x a m p le . A lia s /ic o n s / "C :/P ro g ra m F ile s /IB M H T T P S e rv e r/ic o n s /" # # # # # # # # # # # # # # # # # # # # # # # # a n a ly ze r# # # # # # # # # # # # # # # # # # A lia s /a n a ly z e r "D :/P ro g ra m F ile s /H y p e rio n A n a lyz e r/W e b C lie n ts "
2. Double-click on the name of your Web server (testiis, in our case), service type WWW (see Figure 125 on page 141).
140
Figure 125. Service Properties for testiis Web Server - Service tab
3. Select the Service tab, and ensure the Anonymous Logon Username is a valid Windows NT user (Figure 125). 4. Select the Directories tab.
141
Figure 126. Service Properties for testiis Web Server - Service tab
5. Click Add (Figure 126). 6. Enter the location of the \Hyperion Analyzer\Web Clients directory (created during installation of the Analyzer Analysis Server) in the directory field, or use the Browse button to select it (Figure 127 on page 143). 7. Click Virtual Directory and enter an alias name for the virtual directory. Select something simple, as this will be what is entered as part of the URL from the Web client. We selected analyzer (Figure 127 on page 143). 8. Ensure that both Read and Execute are selected in the Access section of the window (again see Figure 127 on page 143).
142
9. Click OK (Figure 127). 10.Click Apply on the Directories tab. 11.Click OK. 12.On the Microsoft Internet Service Manager window, click the square to stop the Internet server, and then click the triangle to restart it. 13.Close the Internet Services Manager window.
143
Follow these steps: 1. Ensure that the Analysis server is started. 2. Start a browser and enter the following URL:
http://<internet server name>/<virtual directory alias>/index.html
3. In our case, we used the following URL, which displayed the Analyzer Web Client welcome page shown in Figure 128:
http://testiis/analyzer/index.html
144
145
Note: The Excel add-in uses the Analyzer Analysis Server to connect with the repository. Ensure that it is running.
3. Click OK . The add-in will be added to the Excel toolbar (see Figure 130 on page 145).
146
Thin client
Browser
S/390
TCP/IP TCP/IP
Repository
Fat client
DB2 UDB EE Repository Web Server Analyzer Analysis Server Analyzer Windows Client Analyzer Administration tools
In this configuration, the repository is stored on the NT server, and shared by both the Analyzer Web client and the Analyzer Windows clients. This requires DB2 UDB Enterprise Edition. DB2 UDB Enterprise Edition includes DB2 Connect Enterprise Edition, which will allow both the Web client and Windows client users to access the live data on the DB2 OLAP Server for OS/390. The Analyzer Windows client can access this data directly, but requires DB2 Connect for virtual cubes. It is also possible to have a two-tier configuration (see Figure 133 on page 148). In this setup, the Analyzer repository is located on the Windows client along with the rest of the Analyzer software. This requires DB2 UDB Personal Edition. DB2 Connect Personal Edition is required for virtual cubes.
147
Fat client
TCP/IP
Repository
S/3 90
Analyzer W indows Client Analyzer Administration tools DB2 UDB Repository DB2 UDB PE DB2 Connect PE
148
149
Sagent - Info Studio SAS (AF) Reporting Scribe Seagate Crystal info Showcase Analyzer SpeedWare reporter SPSS
150
IBM Intelligent Miner for Text IBM Intelligent Miner for Data Pilot PolyAnalyst Data Mining SAS Enterprise Miner Search cafe Viador Suite
151
152
2. Define DB2 DDF to VTAM - SYS1.LOCAL.VTAMLST. To enable SNA LU6.2 support, you must also define an APPL in VTAM. Do this is in SYS1.LOCAL.VTAMLST. The LUNAME keyword must be defined in BSDS and the LU must be active, prior to starting DDF communications. The following shows the APPL definitions in SYS1.LOCAL.VTAMLST:
** ** ** * SCPDBA1 DB2 V6 LU DEFINITION FOR DRDA VBUILD TYPE=APPL APPL ACBNAME=SCPDBA1, APPC=YES, ATNLOSS=ALL, AUTH=(ACQ), AUTOSES=10, DMINWNL=25, DMINWNR=25, DSESLIM=50, EAS=509, ENCR=NONE, X X X X X X X X X X ** ** **
153
X X X X X X X
3. Define DB2 DDF to RACF. DDF uses UNIX System Services to perform TCP/IP services. Some of the UNIX System Services functions that DDF executes require an authorized user with certain privileges. To execute the authorized functions, the user ID associated with the DDF started task must be defined for UNIX System Services as a superuser. To define a user ID as a superuser, you must set the User Identifier (UID) parameter of the RACF user profile to zero. To set the UID parameter for your DDF user, you can issue one of the following RACF commands:
ADDUSER userid OMVS(UID(0)) ALTUSER userid OMVS(UID(0))
The ADDUSER RACF command adds a new user profile and should be used when creating a new user for DDF. The ALTUSER RACF command changes the RACF profile for the existing DDF user. To check whether your DDF user ID is already correctly defined to RACF, issue the following RACF command:
LISTUSER userid OMVS
If you specify both a user ID and a group in the RACF Started Procedure Table, ICHRIN03, for the DDF address space, the group must also have a valid UNIX System Services group ID (GID) setting. To define RACF groups to be UNIX System Services groups, use the RACF panels or the following command:
ADDGROUP groupid OMVS(GID(n))
where groupid is the name of the RACF group associated with the DDF address space, and can be any valid unique identifier. 4. Define DB2 DDF to TCP/IP. Part of the DDF customization process is to select port numbers when updating the BSDS. The DDF statement of the change log inventory has been enhanced with PORT and RESPORT values. If PORT and RESPORT are defined, DDF accepts TCP/IP connections from any client
154
that provides valid security information. DB2 also allows outbound connections to other DRDA servers using TCP/IP. To define the port numbers in TCP/IP you must update the TCP/IP PROFILE data set. In our case, we used SYS1.TCPPARMS member PROFILE. You must register the TCP/IP port numbers you have specified during DB2 installation or when using the change log inventory utility. We defined two port numbers required by our DB2 subsystem, DB2D. In the PORT statement you must use TCP as the protocol, and the name of the UNIX System Services started procedure (in our case, OMVS). Because DB2 uses UNIX System Services services to connect to TCP/IP, the DB2 ports are reserved for the UNIX System Services address space, and not for the DDF address space, xxxxDIST. The PORT definitions are shown here:
SYS1.TCPPARMS(PROFILE) PORT 23 TCP INTCLIEN 33322 TCP OMVS 33323 TCP OMVS
; ; DRDA SQL PORT for DB2D ; DRDA SQL resync port for DB2D
For more detailed information on customizing DDF, refer to WOW! DRDA Supports TCP/IP: DB2 Server for OS/390 and DB2, SG24-2212.
155
156
[DB2H2 on SC66TS] Timestamp=20000726160709 RDBName=DBH2 HostName=wtsc66oe.itso.ibm.com Port=33368 SymDestName=*TCP/IP* DriverName= QueryBlockSize=32500 DecimalDelimiter=Period StringDelimiter=Apostrophe IsolationLevel=CursorStability SendOUTOVRAlways=0 BindReplace=1 BindKeep=1 BindOwner= EnterpriseType= DatabaseType=DB2 DisableLoadBalancing=0 xSingleCCSID=37 xMixedCCSID=0 xDoubleCCSID=0 xQMFCCSID=37 QMFWin-CollectionID-0000000000000037=NULLID DefaultSchedule1=Y00000078000003840009601710000012C0000000000000000000A000 0000007FDFFFE00002710XX DefaultSchedule2=@ 0000000000000000 DefaultSchedule3=2 DefaultSchedule4=1 DefaultSchedule5=A0000000000000000 RDBI-CollectionID-0000000000000023=NULLID [Server Parameters] Server1=DB2H2 on SC66TS Server2=DBH2 on SC66TS via CLI Server3=DBH2 on SC66TS via CLI and DRDA [DBH2 on SC66TS via CLI] Timestamp=20000908202152 RDBName=DBNTH2 HostName=*CLI*
157
Port=446 SymDestName=*TCP/IP* DriverName=IBM DB2 ODBC DRIVER QueryBlockSize=32500 DecimalDelimiter=Period StringDelimiter=Apostrophe IsolationLevel=CursorStability SendOUTOVRAlways=0 BindReplace=1 BindKeep=1 BindOwner= EnterpriseType= DatabaseType=DB2 DisableLoadBalancing=0 xSingleCCSID=37 xMixedCCSID=0 xDoubleCCSID=0 xQMFCCSID=37 QMFWin-CollectionID-0000000000000037=NULLID DefaultSchedule1=Y00000078000003840009601710000012C0000000000000000000A000 0000007FDFFFE00002710XX DefaultSchedule2=@ 0000000000000000 DefaultSchedule3=2 DefaultSchedule4=1 DefaultSchedule5=A0000000000000000 [DBH2 on SC66TS via CLI and DRDA] Timestamp=20000908202500 RDBName=DBNTH2 HostName=*CLI* Port=446 SymDestName=*TCP/IP* DriverName=IBM DB2 ODBC DRIVER QueryBlockSize=32500 DecimalDelimiter=Period StringDelimiter=Apostrophe IsolationLevel=CursorStability SendOUTOVRAlways=0 BindReplace=1 BindKeep=1 BindOwner= EnterpriseType= DatabaseType=DB2 DisableLoadBalancing=0 DefaultSchedule1=Y00000078000003840009601710000012C0000000000000000000A000 0000007FDFFFE00002710XX
158
159
160
161
that the same or similar results will be obtained elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk. Any pointers in this publication to external Web sites are provided for convenience only and do not in any manner serve as an endorsement of these Web sites. The following terms are trademarks of the International Business Machines Corporation in the United States and/or other countries:
e (logo) IBM SP System/390 VTAM WebSphere Wizard Redbooks Redbooks Logo 3090 400 Lotus Approach
The following terms are trademarks of other companies: Tivoli, Manage. Anything. Anywhere.,The Power To Manage., Anything. Anywhere.,TME, NetView, Cross-Site, Tivoli Ready, Tivoli Certified, Planet Tivoli, and Tivoli Enterprise are trademarks or registered trademarks of Tivoli Systems Inc., an IBM company, in the United States, other countries, or both. In Denmark, Tivoli is a trademark licensed from Kjbenhavns Sommer - Tivoli A/S. C-bus is a trademark of Corollary, Inc. in the United States and/or other countries. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and/or other countries. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States and/or other countries. PC Direct is a trademark of Ziff Communications Company in the United States and/or other countries and is used by IBM Corporation under license. ActionMedia, LANDesk, MMX, Pentium and ProShare are trademarks of Intel Corporation in the United States and/or other countries. UNIX is a registered trademark in the United States and other countries
162
licensed exclusively through The Open Group. SET, SET Secure Electronic Transaction, and the SET Logo are trademarks owned by SET Secure Electronic Transaction LLC. Other company, product, and service names may be trademarks or service marks of others.
163
164
165
Query Management Facility (QMF) Developing QMF Applications, SC27-0718 Getting Started with QMF for Windows, SC27-0723 Installing and Managing QMF on OS/390 , GC27-0719 Installing and Managing QMF for Windows, GC27-0722 Introducing QMF, GC27-0714 QMF High Performance Option User's Guide for OS/390, SC27-0724 QMF Messages and Codes, GC27-0717 QMF Reference, SC27-0715 Using QMF, SC27-0716
DB2 OLAP Server DB2 OLAP Server Start Here, GC26-9236 DB2 OLAP Server Installation Notes, GC26-9237 Using DB2 OLAP Server, SC26-9235 DB2 OLAP Server Administrator s Guide Volume 1, SC26-9238 DB2 OLAP Server Administrator s Guide Volume 2, SC26-9286 DB2 OLAP Server Quick Technical Reference, SC26-9239 SQL Drill-Through Guide, SC26-9244
166
DB2 Connect:
http://www.software.ibm.com/data/db2/db2connect/
DataJoiner:
http://www.software.ibm.com/data/datajoiner/
Net.Data:
http://www.software.ibm.com/data/net.data//
167
168
Fax Orders United States (toll free) Canada Outside North America 1-800-445-9269 1-403-267-4455 Fax phone number is in the How to Order section at this site: http://www.elink.ibmlink.ibm.com/pbl/pbl
This information was current at the time of publication, but is continually subject to change. The latest information may be found at the Redbooks Web site. IBM Intranet for Employees IBM employees may register for information on workshops, residencies, and Redbooks by accessing the IBM Intranet Web site at http://w3.itso.ibm.com/ and clicking the ITSO Mailing List button. Look in the Materials repository for workshops, presentations, papers, and Web pages developed and written by the ITSO technical professionals; click the Additional Materials button. Employees may access MyNews at http://w3.ibm.com/ for redbook, residency, and workshop announcements.
169
First name Company Address City Telephone number Invoice to customer number Credit card number
Last name
Card issued to
Signature
We accept American Express, Diners, Eurocard, Master Card, and Visa. Payment by credit card not available in all countries. Signature mandatory for credit card payment.
170
Index A
access enablers 3 application interfaces 3 application solutions 151 DB2 Connect 21, 24 DB2 OLAP Server Analyzer 121 connection architectures 122 Excel add-in 145 installation 126 security 123 usage scenarios 147 virtual cubes 126 Web clients 143 Web configurations 139 DB2 OLAP Server for OS/390 setups 19 DB2 setups 18 DB2 Warehouse Manager 44 DDF 21, 153 decision support tools 6, 149 data mining 150 OLAP 150 query and reporting 149
B
BI architectures 8 connectivity 1, 11 infrastructure 2 tools 149 users 1 information consumers 2 information providers 1 Brio Enterprise 85 Brio Broadcast Server 86 Brio Enterprise Server Administrator 87 Brio OnDemand Server 86 Brio.Insight 85 Brio.Quickview 85 BrioQuery 86 BrioQuery Designer 86 BrioQuery Explorer 86 BrioQuery Navigator 86 connection to DB2 data warehouse non-Web 89 Web 101 connection to DB2 OLAP Server non-Web 96 Web 112 documents 87 Open Catalog Extension 88 repository 88 security 114 usage scenarios 117
N
network setups 17
Q
QMF family 41 QMF for OS/390 41 QMF for Windows 42 QMF High Performance Option 45 QMF for Windows 41 database connections 46, 157 database objects 54 packages 60 permissions 62 Report Center 75 sample tables 63 SQL Query for the Web 64 usage scenarios 78 QMF Report Center 75 QMF SQL Query for the Web 65
C
connections 21 client PC 37 DB2 Connect 21, 24 DB2 DDF 21
R
RRS setups 19
W D
database connections 21 WLM setups 19
171
172
What other subjects would you like to see IBM Redbooks address?
Please rate your overall satisfaction: Please identify yourself as belonging to one of the following groups: Your email address: The data you provide here may be used to provide you with information from IBM or our business partners about our products, services or activities. Questions about IBMs privacy policy?
O Very Good
O Good
O Average
O Customer O Business Partner O IBM, Lotus or Tivoli Employee O None of the above
O Please do not use the information collected here for future marketing or promotional contacts or other communications beyond the scope of this transaction.
The following link explains how we protect your personal information. ibm.com/privacy/yourprivacy/
173
BUILDING TECHNICAL INFORMATION BASED ON PRACTICAL EXPERIENCE IBM Redbooks are developed by the IBM International Technical Support Organization. Experts from IBM, Customers and Partners from around the world create timely technical information based on realistic scenarios. Specific recommendations are provided to help you implement IT solutions more effectively in your environment.
SG24-5688-00