oracle帮助文档——Real Application Testing User's Guide

来源:互联网 发布:zeppelin软件源地址 编辑:程序博客网 时间:2024/09/21 08:57



/1  Introduction to Oracle Real Application Testing

概述:SQL Performance AnalyzerDatabase Replay是Oracle真实应用程序测试的关键组件
1.1 SQL Performance Analyzer
测升级对sql set的影响
测改变参数对sql的影响
测exedata对IO的影响


基本上 execution plans;plan baseline;调节regressed SQL都涉及


/8 Database Replay简介

捕获工作负载——预处理——Workload Replay——Analysis and Reporting

捕捉要:setting up the directory to capture the workload
重放要:restore of the original database to a specific SCN
8.1 Workload Capture
捕获文件包含有关客户端请求的所有相关信息,如SQL text, bind values, and transaction information
Background activities and database scheduler jobs are not captured。这些捕获文件是平台无关的,可以传输到另一个系统


/9 Capturing a Database Workload

9.1 前提
(1)Recovery Manager (RMAN) command;
(2)Snapshot standby;
(3)Data Pump Import and Export

9.2  Workload Capture Options
a.确保所有事物完成回滚,所以最好restart一下
b.restart是用restrict,以确保只允许sys用户登录
RAC的步骤:
关闭所有的实例。
重新启动其中一个实例。
启动工作负载捕获。
重新启动其余的实例。



9.3 Workload Capture Restrictions
所以最好是restrict mode吧???
Capture的不一定replay就能成功,比如:




/11 Replaying a Database Workload

11.1 步骤
(1)Setting Up the Replay Directory
(2)Restoring the Database
(3)Resolving References to External Systems
(4)Remapping Connections
(5)User Remapping
(6)Specifying Replay Options
(7)Using Filters with Workload Replay
(8)Setting Up Replay Clients























/1  Introduction to Oracle Real Application Testing

概述:SQL Performance AnalyzerDatabase Replay是Oracle真实应用程序测试的关键组件
1.1 SQL Performance Analyzer
测升级对sql set的影响
测改变参数对sql的影响
测exedata对IO的影响


基本上 execution plans;plan baseline;调节regressed SQL都涉及


/8 Database Replay简介

捕获工作负载——预处理——Workload Replay——Analysis and Reporting

捕捉要:setting up the directory to capture the workload
重放要:restore of the original database to a specific SCN
8.1 Workload Capture
捕获文件包含有关客户端请求的所有相关信息,如SQL text, bind values, and transaction information
Background activities and database scheduler jobs are not captured。这些捕获文件是平台无关的,可以传输到另一个系统


/9 Capturing a Database Workload

9.1 前提
(1)Recovery Manager (RMAN) command;
(2)Snapshot standby;
(3)Data Pump Import and Export

9.2  Workload Capture Options
a.确保所有事物完成回滚,所以最好restart一下
b.restart是用restrict,以确保只允许sys用户登录
RAC的步骤:
关闭所有的实例。
重新启动其中一个实例。
启动工作负载捕获。
重新启动其余的实例。



9.3 Workload Capture Restrictions
所以最好是restrict mode吧???
Capture的不一定replay就能成功,比如:




/11 Replaying a Database Workload

11.1 步骤
(1)Setting Up the Replay Directory
(2)Restoring the Database
(3)Resolving References to External Systems
(4)Remapping Connections
(5)User Remapping
(6)Specifying Replay Options
(7)Using Filters with Workload Replay
(8)Setting Up Replay Clients