编辑: hys520855 2019-10-01
? 版权所有?IBM 公司?2009 商标 DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第1页,共32 DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 了解复杂的 Java 和数据库交互 Alice Ma Architect IM Solutions, Warehousing IBM

2009 年8月10 日IBM? DB2? Performance Expert Extended Insight Feature 扩展了 DB2 Performance Expert 提 供的功能,提供针对 Java? 应用程序的全程数据库监视,为IBM WebSphere? Application Server 中运行的应用程序提供更多功能.

可以通过这个特性解决软件组合中任何地方发生的性 能问题.本教程是分为两部分的系列的第

1 部分,本系列帮助您了解 DB2 Performance Expert Extended Insight Feature.在第

1 部分中,您将学习如何安装、配置和检验 DB2 Performance Expert Extended Insight Feature. 简介 当今的 DBA 必须处理复杂的性能问题,只关注数据库交互的监视工具往往不足以解决这些问 题.Java 数据库应用程序常常处于复杂的多层环境中,在这种环境中,解决一个问题常常要花费数 小时、数天甚至更长时间,还需要其他领域(比如网络和应用程序)的IT 人员参与.DBA 需要有 办法检查与软件组合中其他层相关的数据库性能问题,这样才能掌握快速找到和纠正问题所需的信 息,无论问题是出现在数据库中还是其他地方. DB2 Performance Expert Extended Insight Feature 扩展了 DB2 Performance Expert 提供的功能,提供 针对 Java 应用程序的全程数据库监视,为IBM WebSphere Application Server 中运行的应用程序提供 更多功能.它可以检查软件堆栈的任何部分,覆盖从应用程序发出 SQL 直到应用服务器、数据库服 务器和操作系统处理 SQL 的整个过程.它可以检查响应时间(接近最终用户体验到的响应时间), 还可以向网络和应用程序管理员提供纠正问题所需的信息. 关于 Performance Expert Extended Insight Feature 的更多信息参见 参考资料. 关于本教程 本教程先讨论示例配置,然后介绍 DB2 Performance Expert Extended Insight Feature 的安装、配置 和检验.主要步骤包括: developerWorks? ibm.com/developerWorks/cn/ DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第2页,共32 ?? 检查是否具备适当的前提条件 ?? 在必需的服务器上安装软件 ?? 启用 Performance Expert Extended Insight Feature ?? 为WebSphere Application Server 启用 Performance Expert Extended Insight(可选) ?? 配置 Performance Expert Client 以识别 Extended Insight Feature ?? 运行一个工作负载以检验收集的数据 前提条件 本教程假设您有一个希望监视的 Java 数据库应用程序.为了安装 Performance Expert Extended Insight Feature 3.2,需要在 Microsoft? Windows? 或UNIX? 上安装以下软件: ?? DB2 9.1 或更高版本 ?? 如果使用 WebSphere Application Server,需要带 Fixpack

21 的Version

6 或Version

7 ?? 如果使用 Java 应用程序,就需要特定的 JCC 和SQL 驱动程序,参见后面的 检查是否具备适当 的前提条件:Java 客户机驱动程序 (IBM Driver for JDBC and SQLJ) 一节 ?? Performance Expert V3.2 或更高版本,安装和配置它以监视目标数据库 本教程会强调 Windows 和UNIX 之间的差异. Performance Expert Extended Insight Feature 体系结构:示例配置 Performance Expert Extended Insight Feature 有两个必须安装的组件: ?? Performance Expert Extended Insight Feature Activation ?? Performance Expert Extended Insight Feature Client 必须在 Performance Expert Server 上安装 Performance Expert Extended Insight Feature Activation Kit,这允许 Performance Expert Server 使用 Extended Insight 功能. 必须在以下机器上安装 Performance Expert Extended Insight Feature Client: ?? 要监视的所有数据库客户机 ?? 收集监视数据的所有机器(有IBM Data Server Driver for JDBC and SQLJ) 图1中的配置使用 DB2 Performance Expert Extended Insight Feature 监视那些访问 Linux?、UNIX 和Windows 上DB2 的Java 应用程序.Performance Expert Extended Insight Feature Client 安装在 Java 应用程序所在的机器上,使用 IBM Data Server Driver for JDBC and SQLJ 访问数据库. ibm.com/developerWorks/cn/ developerWorks? DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第3页,共32 图1. 没有 WebSphere Application Server 的配置 图2给出一个包含 WebSphere Application Server 的典型示例配置.Performance Expert Extended Insight Feature Client 安装在 WebSphere Application Server 上. Performance Expert Extended Insight Feature Activation (License) 安装在 Performance Expert V3.2 Server 上.通过使用 DB2 Performance Expert 全程监视,DBA 现在可以检查 WebSphere Application Server 配置、最大连接池大小、连接池大小高水位、允许的连接池大小最大值、客户机时间、网络 时间等等. 图2. 使用 WebSphere Application Server 的典型配置 混合使用不同的 UNIX 平台 对于 DB2 Performance Expert Extended Insight,可以使用不同的 UNIX 平台(IBM AIX?、Sun Solaris、Linux 32-bit、Linux 64-bit 和HPU-UX).例如,DB2 Performance Expert Server 可以安装在 AIX 上,而WebSphere Application Server 和Java 应用程序可以安装在 Linux 上.对于本教程,DB2 Performance Expert Sever 安装在 AIX 上,WebSphere Application Server 安装在 Linux 64-bit 上. 检查是否具备适当的前提条件 需要检查 DB

2、Performance Expert V3.2 和可选的 WebSphere Application Server 是否满足运行 Performance Expert Extended Insight Feature 的最低要求(见 前提条件 一节).更多信息参见 IBM DB2 Performance Expert for Linux, UNIX, and Windows Installation and Configuration 文档(见 参考资料). developerWorks? ibm.com/developerWorks/cn/ DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第4页,共32 检查 DB2 级别 Performance Expert Extended Insight Feature 要求被监视的 DB2 的版本至少是 DB2 9.建议采用 DB2

9、Fix Pack

5 或DB2 9.5(基本版).检查 DB2 级别的方法是打开 DB2 命令窗口,输入命令 db2level,然后按 Enter 键.图3给出一个 db2level 输出示例,它说明正在运行 DB2 9.5, Fix Pack 3. 检查 DB2 Performance Expert Server 级别 要求的最低 DB2 Performance Expert 版本是 3.2.强烈建议安装 DB2 Performance Expert V3.2 Fix Pack 2(见 参考资料 中的链接). 在Windows 上检查级别的方法是,打开 DB2 命令窗口并输入 pelevel.图3给出一个 pelevel 输出示例: 图3. 在Windows 环境中检查 Performance Expert Server 级别 在UNIX 上,作为 PE DB2 实例所有者登录.然后,在/bin 目录中 输入 pelevel.图4给出 UNIX 上的 pelevel 输出示例: 图4. 在UNIX 中检查 Performance Expert Server 级别 检查 WebSphere Application Server 级别(可选) Performance Expert Extended Insight 需要 WebSphere Application Server V6.1, Fix Pack

21 或WebSphere Application Server V7.WebSphere Application Server V6 和WebSphere Application ibm.com/developerWorks/cn/ developerWorks? DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第5页,共32 Server V7 都需要 ifix APAR PK74962.请联系 WebSphere 技术支持部门,获得这个 ifix.如果运行 WebSphere Application Server V6.1.0.

25、V7.0.0.5 或更高版本,就不需要对 WebSphere Application Server 应用任何补丁. 检查 WebSphere Application Server 版本的方法是,在Windows 环境中输入 versioninfo.bat,在UNIX 环境中输入 versionInfo.sh.在Windows 上,默认的 WebSphere Application Server 安装位 置是 bin;

在UNIX 上,是/bin.(app_server_root 表示 WebSphere Application Server 的默认安装目录.) 下面列出每个平台上 WebSphere Application Server 的默认安装根目录: ?? AIX: /usr/IBM/WebSphere/AppServer ?? HP-UX: /opt/IBM/WebSphere/AppServer ?? Linux: /opt/IBM/WebSphere/AppServer ?? Solaris: /opt/IBM/WebSphere/AppServer ?? Windows: C:Program FilesIBMWebSphereAppServer 如果要在不满足 WebSphere Application Server 的最低需求的系统上安装它,请访问 Maintenance Download Wizard for WebSphere Application Server V6.1 网站(见 参考资料). 在安装 WebSphere 维护之前,必须安装 WebSphere Application Server 的更新(见 参考资料 中的链接). 在默认情况下,WebSphere Application Server 安装在系统拥有的目录中.访问这些默认目录可能需 要根用户或管理员用户(在Windows 系统上). WebSphere Application Server 可以安装在您有写访问权的任何目录中.可以在您有写访问权的任何 有效目录中创建配置文件. 如图5和图6(分别针对 Windows 和UNIX)所示,Installation Status Reports 表明 WebSphere Application Server 的级别是 V6.1 Fix Pack 21,这是最低的支持级别.即使使用任何额外参数运行 versionInfo 命令,报告中也不会包含 ifix APAR PK74962. developerWorks? ibm.com/developerWorks/cn/ DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第6页,共32 图5. 在Windows 环境中检查 WebSphere Application Server 级别 图6. 在UNIX 中检查 WebSphere Application Server 级别 ibm.com/developerWorks/cn/ developerWorks? DB2 Performance Expert Extended Insight Feature 入门,第1部分: 安装和配置 第7页,共32 从Windows 桌面启动 WebSphere Application Server 的方法是单击 Start >

Programs >

IBM WebSphere Application Servers Network Deployment V6.1 >

Profiles >

>

Start the server,见图 7: 图7. 从Windows 桌面启动 WebSphere Application Server 如果喜欢使用命令行,应该输入 bin startServer.bat . 对于 UNIX,输入 /bin/startServer.sh . 表示配置文件 的........

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题