频道栏目
首页 > 资讯 > 其他综合 > 正文

数据库性能测试:HammerDB-Oracle&MysqlDBA实例

19-01-14        来源:[db:作者]  
收藏   我要投稿
HammerDB是一个开源的数据库基准测试工具,
HammerDB模拟了标准的TPC-C和TPC-H两种测试模型,
目前支持的数据库包括Oracle,SQLServer,DB2,MySQL,MariaDB,PostgreSQL,Redis。

[root@wallet01~]#exportDISPLAY=192.168.1.200:0
[root@wallet01~]#chmoda+xHammerDB-2.23-Linux-x86-64-Install
[root@wallet01~]#./HammerDB-2.23-Linux-x86-64-Install

1.png

2.png

3.png

4.png

[root@wallet01~]#mysql-uroot-pabcd.1234
mysql>createdatabasetpcc10;
QueryOK,1rowaffected(0.02sec)

mysql>grantallontpcc10.*to'tpcc'@'%'identifiedby'tpcc';
QueryOK,0rowsaffected(0.06sec)

mysql>flushprivileges;
QueryOK,0rowsaffected(0.02sec)

[root@wallet01~]#yuminstalllibXScrnSaver

[root@wallet01~]#cd/usr/local/HammerDB-2.23
[root@wallet01HammerDB-2.23]#./hammerdb.tcl

5.png

6.png

7.png

8.png

111.png

9.png

10.png

11.png

12.png

13.png

14.png

[root@wallet01~]#mysql-uroot-pabcd.1234
mysql>usetpcc10
Databasechanged

mysql>showtables;
+------------------+
|Tables_in_tpcc10|
+------------------+
|customer|
|district|
|history|
|item|
|new_order|
|order_line|
|orders|
|stock|
|warehouse|
+------------------+
9rowsinset(0.03sec)

mysql>selectnamefrommysql.procwheredb='tpcc10'andtype='PROCEDURE';
+----------+
|name|
+----------+
|DELIVERY|
|NEWORD|
|OSTAT|
|PAYMENT|
|SLEV|
+----------+
5rowsinset(0.00sec)

mysql>showprocedurestatuslike'payment'\G;
***************************1.row***************************
Db:tpcc10
Name:PAYMENT
Type:PROCEDURE
Definer:tpcc@%
Modified:2019-01-1011:32:58
Created:2019-01-1011:32:58
Security_type:DEFINER
Comment:
character_set_client:utf8
collation_connection:utf8_general_ci
DatabaseCollation:utf8_general_ci
1rowinset(0.00sec)

相关TAG标签
上一篇:Pig4444勒索病毒解密成功完整解密
下一篇:叫你如何在sybase数据库找出表大小脚本
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站