原文链接: http://www.eygle.com/special/Use.Orastress.2.Test.Oracle.db.htm
Orastress!的作者是Geoff Ingram,也就是我们前面介绍的orabm的作者,他曾经为Oracle工作数年,是High Performance Oracle" (ISBN: 0471224367)一书的作者. 关于该工具的官方网页在这里可以找到: http://www.linxcel.co.uk/orabm/index.html Orastress!你可以在原网站下载,或选择本地下载. 该工具不是开源的,缺省的只能使用一个session测试,你可以从作者那里申请临时Key,通过以下页面我们可以获得7天的无功能限制使用版: http://www.linxcel.co.uk/7505/10218_trialkey_orastress!.html Orastress!需要在windows上运行,你需要安装Oracle客户端. 收到Key以后,注册方式如下:
Orastress!需要的数据和orabm类似,你可以参考Orabm的安装方式. 具体安装步骤如下:
注意:这里构建的如果是10个Warehouses的数据,那么大约需要1G的空间. 这一部分安装日志可以参考:安装日志 得到测试数据以后,还需要运行如下脚本: sqlplus orabm/orabm@<your-TNS-alias> @orastress_tab.sql 日志参考:windows日志 命令行执行方式如下: orastress! –s sess-iterations-list –t transacts-per-sess –c tns-alias-list –m mode [ -s batchsize] 这里需要如下参数: Note: 如果 Orastress! 对单个Warehouse运行在read模式,那么代码执行和orabm相同. 对于四种运行模式说明如下: READ:Runs the identical read-only workload as Orabm to stress CPU and memory. OLTP:Uses all five TPC-C transactions: New-Order, Order-Status, Payment, Stock-Level and Delivery, in order to generate a mixed-transaction (SQL INSERT/UPDATE/DELETE) OLTP workload which stresses CPU, memory, and I/O. INS:Runs an I/O intensive SQL INSERT workload by copying rows into the ITEM_INS table from the TPC-C ITEM table. DIO:Runs an I/O intensive direct-path INSERT workload by copying rows into the ITEM_DIO table from the TPC-C ITEM table. 以下是一些运行举例: Example 1: orastress! –s 1 –t 50000 –c inst1.world –m oltp Run one iteration - comprising 50000 transactions in 1 session - against inst1.world. Example 2: orastress! –s 2 –t 50000 –c inst1.world,inst2.world –m oltp Run one iteration comprising 2 concurrent sessions of 50000 transactions on each of inst1.world,inst2.world giving a total of 4 concurrent sessions.The location of the instances specified by inst1.world,inst2.world is entirely down to the user. They could be: ·2 instances of a RAC cluster ·different non RAC instances on the same server ·different non RAC instances on different servers (e.g. one on Linux, one on Solaris) Example 3: orastress! –s 1,2,4 –t 50000 –c inst1,inst2,inst3,inst4 –m read Run 3 iterations each of 50000 transactions on each of four instances: inst1, inst2, inst3 and inst4, where the number of concurrent sessions in each iteration is: 1st iteration: 1 concurrent session on each instance, giving 4 sessions total 2nd iteration: 2 concurrent sessions on each instance, giving 8 sessions total 3rd iteration: 4 concurrent sessions on each instance, giving 16 sessions Results Output --输出结果: Output is very similar to Orabm, showing the transactions per second for each session in each iteration and the transaction split between the five TPC-C transactions for OLTP mode: http://www.eygle.com/special/Use.orabm.2.Test.System.CPU.htm
---begin mode=oltp sess=1 txn=5000 TNS=l Fri Sep 19 22:11:06 2003 LXD1.WORLD #1 w=3 txn(all)=5000 xn(sam)=3999 t(sam)=431 tps=92.8 end=190903-12:25:39 ---end - Fri Sep 19 22:20:19 2003
在这里简单说明一下: 这里有一篇文章可供参考: 性能测试指标介绍 以下给出我的一些测试数据: 1.10个Warehouse的测试数据
2.5个warehouse的测试数据
|