在Oracle Linux 6.7操作系统上初始化MySQL 8.0.33时报’unknown variable ‘defaults-file’错误

在Oracle Linux 6.7操作系统上初始化MySQL 8.0.33时报’unknown variable ‘defaults-file’错误

[root@sjbf bin]# ./mysqld --user=mysql  --defaults-file=/mysqlsoft/mysql/my.cnf --basedir=/mysqlsoft/mysql --datadir=/mysqldata/mysql --initialize
2023-05-05T20:21:18.355164Z 0 [System] [MY-013169] [Server] /mysqlsoft/mysql-8.0.33-linux-glibc2.12-x86_64/bin/mysqld (mysqld 8.0.33) initializing of server in progress as process 26730
2023-05-05T20:21:18.412269Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-05-05T20:21:25.831475Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-05-05T20:21:42.025674Z 0 [ERROR] [MY-000067] [Server] =/mysqlsoft/mysql/my.cnf'.
2023-05-05T20:21:42.025812Z 0 [ERROR] [MY-013236] [Server] The designated data directory /mysqldata/mysql/ is unusable. You can remove all files that the server added to it.
2023-05-05T20:21:42.025914Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-05-05T20:21:53.091946Z 0 [System] [MY-010910] [Server] /mysqlsoft/mysql-8.0.33-linux-glibc2.12-x86_64/bin/mysqld: Shutdown complete (mysqld 8.0.33)  MySQL Community Server - GPL.

把defaults-file参数调整为mysqld命令的第一个参数执行成功

[root@sjbf bin]# ./mysqld --defaults-file=/mysqlsoft/mysql/my.cnf --initialize --user=mysql --basedir=/mysqlsoft/mysql --datadir=/mysqldata/mysql

[root@sjbf mysql]# tail -f mysql.err
2023-05-05T20:26:01.800998Z 0 [System] [MY-013169] [Server] /mysqlsoft/mysql-8.0.33-linux-glibc2.12-x86_64/bin/mysqld (mysqld 8.0.33) initializing of server in progress as process 27188
2023-05-05T20:26:01.805553Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2023-05-05T20:26:01.870227Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-05-05T20:26:09.160682Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-05-05T20:26:25.588664Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: #uVfq!szm7y/

Oracle 19c IMP-00058 ORA-03113

用imp命令向Oracle 19c数据库导入数据时出现IMP-00058 ORA-03113错误

经过排查最后发现是因为执行imp命令的客户端机器内存不足引起的,在关闭无关的程序后再次执行可以正常导入。

MySQL 5.7 将表从MyISAM存储引擎转换为InnoDB存储引擎

将表从MyISAM存储引擎转换为InnoDB存储引擎
如果你想将MyISAM表转换为InnoDB,以获得更好的可靠性和可伸缩性,那么在转换之前,请查看以下指南和技巧。
.调整MyISAM和InnoDB的内存使用
.处理过长或过短的事务
.处理死锁
.规划存储布局
.转换现有表
.克隆表的结构
.传送现有数据
.储存需求
.为每个表定义一个主键
.应用程序性能考虑
.了解与InnoDB表关联的文件

调整MyISAM和InnoDB的内存使用
当用户将MyISAM表转换为InnoDB表时,降低key_buffer_size配置选项的值,以释放缓存结果不再需要的内存。增加innodb_buffer_pool_size配置选项的值,该选项的作用类似于为InnoDB表分配缓存内存。InnoDB缓冲池缓存了表数据和索引数据,加快了查询的查找速度,并将查询结果保存在内存中以供重用。

在繁忙的服务器上,在关闭查询缓存的情况下运行基准测试。InnoDB缓冲池提供了类似的好处,所以查询缓存可能不必要地占用内存。

处理过长或过短的事务
因为MyISAM表不支持事务,所以您可能没有太注意自动提交配置选项以及COMMIT和ROLLBACK语句。这些关键字对于允许多个会话并发地读写InnoDB表非常重要,在写工作负载繁重的情况下提供大量的可伸缩性优势。

当事务处于打开状态时,系统会保留事务开始时看到的数据快照,如果系统插入、更新和删除数百万行,而事务继续运行,这可能会导致大量开销。因此,要注意避免事务运行时间过长:

.如果您使用mysql会话进行交互实验,当完成后请始终COMMIT(完成更改)或ROLLBACK(撤销更改)。关闭交互式会话,而不是让它们长时间开放,以避免意外地使事务长时间开放。

.确保应用程序中的任何错误处理程序也ROLLBACK未完成的更改或COMMIT已完成的更改。

.ROLLBACK是一个相对昂贵的操作,因为INSERT, UPDATE和DELETE操作在COMMIT之前被写入InnoDB表,并且期望大多数更改被成功提交并且很少回滚。在对大量数据进行实验时,避免对大量行进行更改,然后回滚这些更改。

.当使用INSERT语句顺序加载大量数据时,请定期提交结果,以避免事务持续数小时。在典型的数据仓库加载操作中,如果出现问题,您将截断表(使用truncate table)并从头开始,而不是执行ROLLBACK。

前面的技巧可以节省内存和磁盘空间,避免在太长的事务中浪费。当事务比应有的时间短时,问题是I/O过多。对于每次COMMIT, MySQL确保每个更改都被安全地记录到磁盘上,这涉及到一些I/O。

.对于大多数InnoDB表的操作,你应该设置autocommit=0。从效率的角度来看,当发出大量连续的INSERT、UPDATE或DELETE语句时,这避免了不必要的I/O。从安全的角度来看,如果你在mysql命令行或应用程序的异常处理中犯了错误,这允许你发出回滚语句来恢复丢失或混淆的数据。

.autocommit=1适合InnoDB表的情况是,当运行一系列查询以生成报告或分析统计数据时。在这种情况下,不存在与COMMIT或ROLLBACK相关的I/O惩罚, InnoDB可以自动优化只读工作负载。

.如果您进行了一系列相关的更改,请在最后使用COMMIT命令一次完成所有更改。例如,如果将相关的信息片段插入到几个表中,则在进行所有更改后执行一次COMMIT。或者,如果您运行了许多连续的INSERT语句,请在加载完所有数据后执行单个COMMIT;如果您要执行数百万条INSERT语句,也许可以通过每10,000或100,000条记录发出COMMIT来拆分巨大的事务,这样事务就不会变得太大。

.请记住,即使是SELECT语句也会打开一个事务,因此在交互式mysql会话中运行一些报告或调试查询后,发出COMMIT或关闭mysql会话。

处理死锁
你可能会在MySQL错误日志中看到提到“死锁”的警告消息,或者在SHOW ENGINE INNODB STATUS的输出中看到。尽管死锁的名字听起来很可怕,但对于InnoDB表来说,死锁并不是一个严重的问题,通常不需要任何纠正措施。当两个事务开始修改多个表,以不同的顺序访问表时,它们可能会达到一种状态,即每个事务都在等待另一个事务,而不能继续进行。当启用死锁检测(默认)时,MySQL立即检测到这种情况,并取消(回滚)“较小的”事务,允许另一个事务继续进行。如果使用innodb_deadlock_detect配置选项禁用了死锁检测,InnoDB依赖innodb_lock_wait_timeout设置在死锁发生的情况下回滚事务。

无论哪种方式,应用程序都需要错误处理逻辑来重新启动由于死锁而被强制取消的事务。当您像以前一样重新发出相同的SQL语句时,最初的计时问题将不再适用。要么是其他事务已经完成,您的事务可以继续,要么是其他事务仍在进行中,您的事务等待它完成。

如果死锁警告不断发生,则可以检查应用程序代码以重新排序
以一致的方式进行SQL操作,或者缩短事务。你可以使用innodb_print_all_deadlocks选项来测试,在MySQL错误日志中查看所有死锁警告,而不仅仅是SHOW ENGINE INNODB STATUS输出中的最后一个警告。

规划存储布局
为了从InnoDB表中获得最佳性能,您可以调整一些与存储布局相关的参数。

当您转换大型、频繁访问和保存重要数据的MyISAM表时,请调查并考虑innodb_file_per_table、innodb_file_format和innodb_page_size配置选项,以及CREATE TABLE语句的ROW_FORMAT和KEY_BLOCK_SIZE子句。

在最初的实验中,最重要的设置是innodb_file_per_table。当启用这个设置时,MySQL 5.6.6默认会在file-per–table表空间中隐式创建新的InnoDB表。与InnoDB系统表空间不同的是,在表被截断或删除时,操作系统可以通过file-per-table表空间回收磁盘空间。file-per-table表空间还支持Barracuda文件格式和相关特性,如表压缩、变长列的高效页外存储和大索引前缀。

您也可以将InnoDB表存储在共享的通用表空间中。通用表空间支持Barracuda文件格式,可以包含多个表。

转换现有表
使用ALTER table命令将一个非InnoDB表转换为InnoDB表。
ALTER TABLE table_name ENGINE=InnoDB;

不要将MySQL数据库中的MySQL系统表从MyISAM转换为InnoDB类型。这是一个不受支持的操作。类型。

克隆表的结构
你可能会为一个MyISAM表克隆一个InnoDB表,而不是使用ALTER table执行转换,以便在切换之前并行测试新旧表。

用相同的列和索引定义创建一个空的InnoDB表。使用SHOW CREATE TABLE table_name\G查看完整的CREATE TABLE语句。将ENGINE子句更改为引擎= INNODB。

转换现有表
为了将大量数据转移到上一节创建的空InnoDB表中,使用insert into innodb_table SELECT * FROM myisam_table ORDER BY primary_key_columns来插入记录。

也可以在插入数据后为InnoDB表创建索引。以前,创建新的二级索引对于InnoDB来说是一个很慢的操作,但是现在您可以在加载数据之后创建索引,而创建索引的开销相对较小。

如果你在副键上有UNIQUE约束,你可以通过在导入操作中暂时关闭唯一性检查来加速表的导入:

SET unique_checks=0;
... import operation ...
SET unique_checks=1;

对于大型表,这节省了磁盘I/O,因为InnoDB可以使用它的更改缓冲区来批量写入二级索引记录。确保数据不包含重复键。Unique_checks允许但不要求存储引擎忽略重复的键。

为了更好地控制插入过程,您可以将大表分段插入:

INSERT INTO newtable SELECT * FROM oldtable WHERE yourkey > something AND yourkey < = somethingelse;

插入所有记录后,可以重命名表。

在转换大表的过程中,增加InnoDB缓冲池的大小以减少磁盘I/O,最大不超过物理内存的80%。你也可以增加InnoDB日志文件的大小。

储存需求
如果您打算在转换过程中为InnoDB表中的数据创建多个临时副本,建议您以文件/表的方式创建表,以便在删除表时回收磁盘空间。当innodb_file_per_table配置选项被启用(默认)时,新创建的InnoDB表将隐式地创建在file-per-table表空间中。

无论您是直接转换MyISAM表还是创建一个克隆的InnoDB表,都要确保在转换过程中有足够的磁盘空间来容纳新旧表。InnoDB表比MyISAM表需要更多的磁盘空间。如果ALTER TABLE操作耗尽了空间,它将启动回滚,如果是磁盘绑定,则回滚可能需要数小时。对于插入,InnoDB使用insert buffer将辅助索引记录批量合并到索引中。这节省了大量的磁盘I/O。对于回滚,没有使用这种机制,回滚可能比插入时间长30倍。

在回滚失控的情况下,如果您的数据库中没有有价值的数据,那么建议终止数据库进程,而不是等待数百万个磁盘I/O操作完成。

为每个表定义一个主键
主键子句是影响MySQL查询性能以及表和索引空间使用的一个关键因素。主键唯一地标识表中的一行。表中的每一行都必须有一个主键值,并且任何两行都不能有相同的主键值。

这些是主键的指导原则,后面是更详细的解释。
.为每个表声明一个主键。通常,在WHERE子句中查询单行时,它是最重要的一列。

.在原始的CREATE TABLE语句中声明PRIMARY KEY子句,而不是稍后通过ALTER TABLE语句添加它。

.仔细选择列及其数据类型。首选数字列,而不是字符或字符串列。

.如果没有其他稳定的、唯一的、非空的数字列可供使用,请考虑使用自动递增列。

.如果怀疑主键列的值是否会改变,自动递增列也是一个不错的选择。更改主键列的值是一项代价高昂的操作,可能涉及重新安排表内和每个辅助索引内的数据。

考虑为任何还没有主键的表添加一个主键。根据表的最大投影大小,使用最小的实际数值类型。这可以使每一行稍微紧凑一些,对于大型表可以节省大量空间。如果表有辅助索引,那么节省的空间会成倍增加,因为主键值在每个辅助索引项中都是重复的。除了减少磁盘上的数据大小,小主键还可以让缓冲池容纳更多的数据,加快各种操作并提高并发性。

如果表中某些较长的列已经有了主键,比如VARCHAR,可以考虑添加一个新的unsigned AUTO_INCREMENT列,并切换主键到该列,即使该列在查询中没有被引用。这种设计改变可以在二级索引中节省大量空间。用户可以将之前的主键列指定为UNIQUE NOT NULL,以实施与主键子句相同的约束,即防止所有这些列中出现重复值或NULL值。

如果您将相关信息分散到多个表中,通常每个表使用相同的列作为其主键。例如,人事数据库可能有几个表,每个表都有一个员工编号的主键。销售数据库中可能有一些表的主键是客户编号,还有一些表的主键是订单编号。因为使用主键的查找非常快,所以可以为这样的表构造高效的连接查询。

应用程序性能考虑
InnoDB的可靠性和可扩展性比等价的MyISAM表需要更多的磁盘存储空间。您可以稍微改变列和索引的定义,以便更好地利用空间,减少处理结果集时的I/O和内存消耗,以及更好地利用索引查找的查询优化计划。

如果你设置了一个数字ID作为主键,使用这个值与其他表中的相关值进行交叉引用,尤其是在连接查询中。例如,与其接受一个国家名作为输入并进行查询以搜索相同的名称,不如进行一次查找以确定国家ID,然后进行其他查询(或单个连接查询)以跨几个表查找相关信息。与其将顾客或商品编号存储为数字字符串(可能会占用几个字节),不如将其转换为数字ID以便存储和查询。一个4字节的unsigned INT列可以索引超过40亿个元素。

MySQL 5.7移动或复制InnoDB表

移动或复制InnoDB表
将部分或全部InnoDB表移动或复制到不同的服务器或实例的技术。例如,您可以将整个MySQL实例移动到一个更大、更快的服务器上;你可以将整个MySQL实例克隆到一个新的复制从服务器上;您可以将单个表复制到另一个实例以开发和测试应用程序,或者复制到数据仓库服务器以生成报告。

在Windows上,InnoDB总是在内部以小写形式存储数据库和表名。要将二进制格式的数据库从Unix移动到Windows或从Windows移动到Unix,请使用小写名称创建所有数据库和表。实现这一点的一个方便的方法是在创建任何数据库或表之前,在my.cnf或my.ini文件的[mysqld]部分添加以下一行:

[mysqld]
lower_case_table_names=1
mysql> show variables like 'lower_case_table%';
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| lower_case_table_names | 1     |
+------------------------+-------+
1 row in set (0.01 sec)

传输表空间
传输表空间特性使用FLUSH TABLES…FOR EXPORT准备好从一个服务器实例复制到另一个服务器实例的InnoDB表。为了使用这个特性,InnoDB表创建时必须将innodb_file_per_table设置为ON,这样每个InnoDB表都有自己的表空间。

MySQL企业备份
MySQL企业备份产品允许您备份正在运行的MySQL数据库,最小化操作中断,同时生成数据库的一致快照。当MySQL Enterprise Backup正在复制表时,可以继续读写。此外,MySQL Enterprise Backup可以创建压缩备份文件,并备份表的子集。结合MySQL二进制日志,您可以执行时间点恢复。MySQL企业备份是MySQL企业订阅的一部分。

拷贝数据文件(冷备份方式)
你可以通过复制“冷备份”中列出的所有相关文件来移动InnoDB数据库。

InnoDB数据和日志文件在所有平台上都是二进制兼容的,具有相同的浮点数格式。如果浮点格式不同,但在表中没有使用FLOAT或DOUBLE数据类型,则过程是相同的:只需复制相关文件。

当移动或复制file-per-table的.ibd文件时,源系统和目标系统上的数据库目录名称必须相同。存储在InnoDB共享表空间中的表定义包含了数据库名称。存储在表空间文件中的事务id和日志序列号也因数据库而异。

要将.ibd文件和相关的表从一个数据库移动到另一个数据库,使用RENAME table语句:

RENAME TABLE db1.tbl_name TO db2.tbl_name;

如果你有一个.ibd文件的“干净”备份,你可以将它恢复到它最初的MySQL安装目录,如下所示:
1.在复制.ibd文件后,不能删除或截断表,因为这样做会更改存储在表空间中的表ID。

2.执行ALTER TABLE语句删除当前的.ibd文件:

ALTER TABLE tbl_name DISCARD TABLESPACE;

3.将备份的.ibd文件复制到适当的数据库目录。

4.执行ALTER TABLE语句,告诉InnoDB对表使用新的.ibd文件:

ALTER TABLE tbl_name IMPORT TABLESPACE;

ALTER TABLE…IMPORT TABLESPACE特性不会对导入的数据强制执行外键约束。

在这种情况下,“干净的”.ibd文件备份是指满足以下要求的备份:
.在.ibd文件中没有未提交修改的事务。
.在.ibd文件中没有未合并的插入缓冲区项。
.Purge已经从.ibd文件中删除了所有已删除标记的索引记录。
.Mysqld已将.ibd文件的所有修改页从缓冲池刷新到该文件。

您可以使用以下方法对.ibd文件进行干净备份:
1.停止mysqld服务器上的所有活动并提交所有事务。
2.等待,直到SHOW ENGINE INNODB STATUS显示数据库中没有活动事务,并且INNODB的主线程状态为Waiting for server activity。然后,您可以复制.ibd文件。

另一种复制。ibd文件的方法是使用MySQL企业备份产品:
1.使用MySQL Enterprise Backup备份InnoDB安装。
2.在备份机上启动第二个mysqld服务器,并让它清理备份中的.ibd文件。

导出和导入(mysqldump)
您可以使用mysqldump将表转储到一台机器上,然后在另一台机器上导入转储文件。使用此方法,格式是否不同或表是否包含浮点数据都无关紧要。

提高此方法性能的一种方法是在导入数据时关闭自动提交模式,假设表空间有足够的空间容纳导入事务生成的大回滚段。只有在导入整个表或表的一个段后才执行提交操作

Oracle Linux 7.1 通过systemctl将Weblogic设置为开机自启动

1 说明
设置开机自启动,需要用到systemctl工具。systemctl是一个systemd工具,主要负责控制systemd系统和服务管理器。systemd是一个系统管理守护进程、工具和库的集合,用于取代System V初始进程。Systemd的功能是用于集中管理和配置类UNIX系统。

2 准备
操作系统:Oracle Linux 7.1
systemctl –version : systemd 208
weblogic version:12.2.1.3.0
3 编写系统服务文件
3.1 adminserver 系统服务文件

[root@localhost system]# vi weblogic.service
[Unit]
Description=WebLogic Adminserver Service[Service]
[Service]
Type=simple
WorkingDirectory=/weblogic/Oracle/Middleware/user_projects/domains/base_domain
ExecStart=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin/startWebLogic.sh
ExecStop=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin/stopWebLogic.sh
User=weblogic
Group=weblogic
[Install]
WantedBy=multi-user.target

3.2 配置weblogic将日志输出到指定文件${DOMAIN_HOME}/admin.log,也就是在以下命令后面加上>”${DOMAIN_HOME}/admin.log” 2>&1

[weblogic@localhost bin]$ vi startWebLogic.sh
if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
        echo "Starting WLS with line:"
        echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${LAUNCH_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${LAUNCH_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS} >"${DOMAIN_HOME}/admin.log"  2>&1
else
        echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
        ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${LAUNCH_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}  >"${DOMAIN_HOME}/admin.log"  2>&1

3.3 查看系统服务文件是否被识别

[root@localhost system]# systemctl list-unit-files|grep weblogic
weblogic.service                            disabled

3.4 禁用防火墙和SELinux
[root@localhost system]# setenforce 0
[root@localhost system]# sed -i "/^SELINUX=/s#enforcing#disabled#" /etc/selinux/config
[root@localhost system]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@localhost system]# systemctl is-enabled firewalld
enabled
[root@localhost system]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
   Active: active (running) since Fri 2023-03-31 14:11:15 CST; 1h 16min ago
 Main PID: 602 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─602 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Mar 31 14:11:15 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
[root@localhost system]# systemctl stop firewalld
[root@localhost system]# systemctl disable firewalld
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'
[root@localhost system]# systemctl is-enabled firewalld
disabled
[root@localhost system]# firewall-cmd --zone=public --list-ports
FirewallD is not running

4 测试系统服务
4.1 启动系统服务

[root@localhost system]# systemctl start weblogic.service

[root@localhost base_domain]# tail -f admin.log
<Mar 31, 2023 3:56:09 PM CST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Mar 31, 2023 3:56:09 PM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<Mar 31, 2023 3:56:10 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.131-b11 from Oracle Corporation.>
<Mar 31, 2023 3:56:10 PM CST> <Info> <RCM> <BEA-2165021> <“ResourceManagement” is not enabled in this JVM. Enable “ResourceManagement” to use the WebLogic Server “Resource Consumption Management” feature. To enable “ResourceManagement”, you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>
<Mar 31, 2023 3:56:10 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.3.0 Thu Aug 17 13:39:49 PDT 2017 1882952>
<Mar 31, 2023 3:59:53 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Mar 31, 2023 3:59:53 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<Mar 31, 2023 3:59:53 PM CST> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.>
<Mar 31, 2023 4:01:39,810 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=460171696
Current log file=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log
Rotation dir=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/logs
is opened. All server side log events will be written to this file.>
<Mar 31, 2023 4:01:40,077 PM CST> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm>
<Mar 31, 2023 4:01:40,771 PM CST> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm>
<Mar 31, 2023 4:01:41,826 PM CST> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm>
<Mar 31, 2023 4:01:42,631 PM CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://10.138.130.64:7001/jndi/weblogic.management.mbeanservers.runtime.>

4.2 停止系统服务

[root@localhost system]# systemctl stop weblogic.service

5 将服务设置成开机自启动

[root@localhost system]# systemctl enable weblogic.service
ln -s '/etc/systemd/system/weblogic.service' '/etc/systemd/system/multi-user.target.wants/weblogic.service'
[root@localhost system]# systemctl list-unit-files|grep weblogic
weblogic.service                            enabled

反向命令:

[root@localhost system]# systemctl disable weblogic.service
rm '/etc/systemd/system/multi-user.target.wants/weblogic.service'
[root@localhost system]# systemctl list-unit-files|grep weblogic
weblogic.service                            disabled

6 重启服务器并检查weblogic是否自启动

[root@localhost system]#reboot

[root@localhost ~]# ps -ef | grep java
weblogic   721     1  0 16:13 ?        00:00:01 /usr/java/jdk1.8.0_131/bin/java -Dderby.system.home=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/common/db -classpath /weblogic/Oracle/Middleware/wlserver/common/derby/lib/derby.jar:/weblogic/Oracle/Middleware/wlserver/common/derby/lib/derbynet.jar:/weblogic/Oracle/Middleware/wlserver/common/derby/lib/derbytools.jar:/weblogic/Oracle/Middleware/wlserver/common/derby/lib/derbyclient.jar org.apache.derby.drda.NetworkServerControl start
weblogic   722   645  6 16:13 ?        00:01:07 /usr/java/jdk1.8.0_131/bin/java -server -Xms256m -Xmx512m -XX:CompileThreshold=8000 -cp /weblogic/Oracle/Middleware/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=AdminServer -Djava.security.policy=/weblogic/Oracle/Middleware/wlserver/server/lib/weblogic.policy -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader -javaagent:/weblogic/Oracle/Middleware/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/weblogic/Oracle/Middleware/wlserver/server -Dweblogic.home=/weblogic/Oracle/Middleware/wlserver/server weblogic.Server
root      3094  3019  0 16:31 pts/0    00:00:00 grep --color=auto java

MySQL 5.7 InnoDB Tablespace Encryption

InnoDB Tablespace Encryption

InnoDB支持对存储file-per-table表空间中的InnoDB表中的数据进行加密。该特性为物理表空间数据文件提供静态加密。

InnoDB表空间加密使用两层加密密钥架构,由主加密密钥和表空间密钥组成。当一个InnoDB表被加密时,表空间密钥被加密并存储在表空间头中。当应用程序或经过认证的用户想要访问加密的表空间数据时,InnoDB使用一个主加密密钥来解密表空间密钥。表空间密钥的解密版本永远不会改变,但主加密密钥可以根据需要改变。此操作称为主键旋转。

InnoDB表空间加密特性依赖于keyring插件进行主加密密钥管理。

所有MySQL版本都提供了keyring_file插件,该插件将主加密密钥数据存储在keyring_file_data配置选项指定的位置的keyring文件中。

非企业版MySQL中的InnoDB表空间加密特性使用keyring_file插件进行加密密钥管理,这并不是一个符合法规的解决方案。安全标准,如PCI,FIPS和其他要求使用密钥管理系统来保护、管理和保护密钥库或硬件安全模块(hsm)中的加密密钥。

MySQL企业版提供了keyring_okv插件,其中包括一个KMIP客户端(KMIP 1.1),它与Oracle密钥库(OKV)一起工作,提供加密密钥管理。当InnoDB表空间加密使用OKV进行加密密钥管理时,该特性被称为“MySQL企业”透明数据加密(TDE)。

一个安全、健壮的加密密钥管理解决方案(如OKV)对于安全性和符合各种安全标准至关重要。在其他好处中,使用密钥库可确保密钥安全存储,永远不会丢失,并且只有授权的密钥管理员知道。密钥库还维护加密密钥历史记录

InnoDB表空间加密支持AES (Advanced encryption Standard)块加密算法。它采用ECB (Electronic Codebook)块加密方式对表空间密钥进行加密CBC (Cipher Block chainaining)块加密方式,用于数据加密

InnoDB表空间加密前提条件

必须安装和配置keyring插件(keyring_file插件或keyring_okv插件)。Keyring插件安装在启动时使用–early-plugin-load选项执行。提前加载可以确保插件在InnoDB存储引擎初始化之前可用。

一次只能启用一个keyring插件。不支持启用多个密匙环插件。

一旦在MySQL实例中创建了加密表,在创建加密表时加载的keyring插件必须在InnoDB初始化之前使用–early-plugin-load选项继续加载。如果不这样做,会导致启动和恢复InnoDB时出现错误。

启用加密模块

mysql> INSTALL PLUGIN keyring_file soname 'keyring_file.so';
Query OK, 0 rows affected (0.09 sec)

创建密钥文件目录

[mysql@localhost ~]$ mkdir -p /mysqldata/mysql/mysql-keyring/
[mysql@localhost ~]$ chown -R mysql:mysql /mysqldata/mysql/mysql-keyring/
[mysql@localhost ~]$ chmod -R 775 /mysqldata/mysql/mysql-keyring/

设置加密key存放路径

mysql> set global keyring_file_data='/mysqldata/mysql/mysql-keyring/keyring';
Query OK, 0 rows affected (0.00 sec)

永久启用设置
上诉两个步骤都是临时的,重启服务都会失效,我们把配置写到配置文件里,确保重启服务后也能生效

[mysqld]
early-plugin-load=keyring_file.so
keyring_file_data=/mysqldata/mysql/mysql-keyring/keyring

查看key的存放路径

mysql> show global variables like '%keyring_file_data%';
+-------------------+----------------------------------------+
| Variable_name     | Value                                  |
+-------------------+----------------------------------------+
| keyring_file_data | /mysqldata/mysql/mysql-keyring/keyring |
+-------------------+----------------------------------------+
1 row in set (0.02 sec)

要验证keyring插件是否处于活动状态,请使用SHOW PLUGINS语句或查询INFORMATION_SCHEMA.PLUGINS表。例如:

mysql> show plugins;
+----------------------------+----------+--------------------+-----------------+---------+
| Name                       | Status   | Type               | Library         | License |
+----------------------------+----------+--------------------+-----------------+---------+
| keyring_file               | ACTIVE   | KEYRING            | keyring_file.so | GPL     |
| binlog                     | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| mysql_native_password      | ACTIVE   | AUTHENTICATION     | NULL            | GPL     |
| sha256_password            | ACTIVE   | AUTHENTICATION     | NULL            | GPL     |
| CSV                        | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| MEMORY                     | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| InnoDB                     | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| INNODB_TRX                 | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_LOCKS               | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_LOCK_WAITS          | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_CMP                 | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_CMP_RESET           | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_CMPMEM              | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_CMPMEM_RESET        | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_CMP_PER_INDEX       | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_CMP_PER_INDEX_RESET | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_BUFFER_PAGE         | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_BUFFER_PAGE_LRU     | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_BUFFER_POOL_STATS   | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_TEMP_TABLE_INFO     | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_METRICS             | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_FT_DEFAULT_STOPWORD | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_FT_DELETED          | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_FT_BEING_DELETED    | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_FT_CONFIG           | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_FT_INDEX_CACHE      | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_FT_INDEX_TABLE      | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_TABLES          | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_TABLESTATS      | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_INDEXES         | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_COLUMNS         | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_FIELDS          | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_FOREIGN         | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_FOREIGN_COLS    | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_TABLESPACES     | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_DATAFILES       | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| INNODB_SYS_VIRTUAL         | ACTIVE   | INFORMATION SCHEMA | NULL            | GPL     |
| MyISAM                     | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| MRG_MYISAM                 | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| PERFORMANCE_SCHEMA         | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| ARCHIVE                    | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| BLACKHOLE                  | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| FEDERATED                  | DISABLED | STORAGE ENGINE     | NULL            | GPL     |
| partition                  | ACTIVE   | STORAGE ENGINE     | NULL            | GPL     |
| ngram                      | ACTIVE   | FTPARSER           | NULL            | GPL     |
+----------------------------+----------+--------------------+-----------------+---------+

mysql> SELECT PLUGIN_NAME, PLUGIN_STATUS
    -> FROM INFORMATION_SCHEMA.PLUGINS
    -> WHERE PLUGIN_NAME LIKE 'keyring%';
+--------------+---------------+
| PLUGIN_NAME  | PLUGIN_STATUS |
+--------------+---------------+
| keyring_file | ACTIVE        |
+--------------+---------------+
1 row in set (0.00 sec)

必须启用innodb_file_per_table选项(默认值)。InnoDB表空间加密只支持每表一个文件的表空间。或者,您可以指定TABLESPACE=’innodb_file_per_table’选项,用于创建加密表或修改现有表以启用加密。

mysql> show variables like '%innodb_file_per_table%';
+-----------------------+-------+
| Variable_name         | Value |
+-----------------------+-------+
| innodb_file_per_table | ON    |
+-----------------------+-------+
1 row in set (0.01 sec)

在对生产数据使用InnoDB表空间加密特性之前,请确保已采取措施防止丢失主加密密钥。如果主加密密钥丢失,则无法恢复加密表空间文件中存储的数据。如果您正在使用keyring_file插件,建议您在创建第一个加密表之后以及主密钥旋转前后立即创建keyring文件的备份。keyring文件位置由keyring_file_data配置选项定义。如果您正在使用keyring_okv插件,请确保您已经执行了必要的keyring_okv插件和Oracle密钥库(OKV)配置。

开启和关闭InnoDB表空间加密

要为一个新的InnoDB表启用加密,在create table语句中指定encryption选项。

mysql> CREATE TABLE t1 (c1 INT) ENCRYPTION='Y';
Query OK, 0 rows affected (0.01 sec)

要对现有的InnoDB表启用加密,请在alter table语句中指定encryption选项。

mysql> alter table abc encryption='y';
Query OK, 1 row affected (0.04 sec)
Records: 1  Duplicates: 0  Warnings: 0

mysql> show create table abc;
+-------+-------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                            |
+-------+-------------------------------------------------------------------------------------------------------------------------+
| abc   | CREATE TABLE `abc` (
  `a` int(11) NOT NULL,
  PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ENCRYPTION='y' |
+-------+-------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

使用alter table设置encryption =’N’来禁用InnoDB表的加密功能

mysql> alter table abc encryption='n';
Query OK, 1 row affected (0.02 sec)
Records: 1  Duplicates: 0  Warnings: 0

mysql> show create table abc;
+-------+-------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                            |
+-------+-------------------------------------------------------------------------------------------------------------------------+
| abc   | CREATE TABLE `abc` (
  `a` int(11) NOT NULL,
  PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ENCRYPTION='n' |
+-------+-------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

InnoDB表空间加密和主密钥轮换
主加密密钥应该定期轮换,只要您怀疑密钥可能已被泄露。

主密钥轮换是一个原子的实例级操作。每次轮换主加密密钥时,MySQL实例中的所有表空间密钥都将重新加密并保存回各自的表空间头中。作为原子操作,一旦启动轮换操作,所有表空间密钥都必须重新加密成功。如果主密钥轮换因服务器故障而中断,InnoDB将在服务器重启时前滚该操作。

轮换主加密密钥只会更改主加密密钥并重新加密表空间密钥。它不解密或重新加密相关的表空间数据

轮换主加密密钥,执行以下命令:

[root@localhost ~]# cd /mysqldata/mysql/mysql-keyring/
[root@localhost mysql-keyring]# ll
total 4
-rw-r-----. 1 mysql mysql 155 Mar  3 17:20 keyring

mysql> ALTER INSTANCE ROTATE INNODB MASTER KEY;
Query OK, 0 rows affected (0.00 sec)

[root@localhost mysql-keyring]# ll
total 4
-rw-r-----. 1 mysql mysql 283 Mar 10 15:58 keyring

alter instance rotate innodb master key支持并发DML。但是,它不能与create table … encryption或alter table … encryption操作一起并发执行,采用锁来防止这些语句并发执行时可能产生的冲突。如果一个冲突的语句正在运行,那么它必须在另一个语句运行之前完成。

InnoDB表空间加密与恢复
ALTER INSTANCE ROTATE INNODB MASTER KEY语句仅在主数据库和从数据库所运行的MySQL版本支持表空间加密特性的复制环境中被支持。

成功的ALTER INSTANCE ROTATE INNODB MASTER KEY语句被写入二进制日志,用于在slave上复制。

如果一个ALTER INSTANCE ROTATE INNODB MASTER KEY语句失败,它不会被记录到二进制日志中,也不会被复制到slave上。

如果keyring插件安装在主节点上而从节点没有安装,复制ALTER INSTANCE ROTATE INNODB MASTER KEY操作失败。

如果keyring_file插件同时安装在主服务器和从服务器上,但是从服务器上没有keyring文件,假设keyring文件数据没有缓存在内存中,复制的ALTER INSTANCE ROTATE INNODB MASTER KEY语句将在从服务器上创建keyring文件。如果可用的话,ALTER INSTANCE INNODB MASTER KEY使用缓存在内存中的keyring文件数据。

识别使用InnoDB表空间加密的表
当在CREATE TABLE或ALTER TABLE语句中指定了ENCRYPTION选项时,它将记录在INFORMATION_SCHEMA.TABLES的CREATE_OPTIONS字段中。可以查询该字段以识别MySQL实例中的加密表。

mysql> SELECT TABLE_SCHEMA, TABLE_NAME, CREATE_OPTIONS FROM INFORMATION_SCHEMA.TABLES
    -> WHERE CREATE_OPTIONS LIKE '%ENCRYPTION="Y"%';
+--------------+------------+-------------------------------------------------------+
| TABLE_SCHEMA | TABLE_NAME | CREATE_OPTIONS                                        |
+--------------+------------+-------------------------------------------------------+
| test         | t1         | ENCRYPTION="Y"                                        |
| test         | ts02       | row_format=COMPRESSED KEY_BLOCK_SIZE=4 ENCRYPTION="Y" |
| test         | ts03       | COMPRESSION="zlib" ENCRYPTION="Y"                     |
+--------------+------------+-------------------------------------------------------+
3 rows in set (0.42 sec)

InnoDB表空间加密使用说明
a.如果服务器在正常运行期间退出或停止,建议使用之前配置的相同加密设置重新启动服务器。

b.第一个主加密密钥是在对第一个新表或现有表进行加密时生成的。

c.主密钥轮换会重新加密表空间密钥,但不会改变表空间密钥本身。要更改表空间密钥,必须使用alter table tbl_name encryption禁用并重新启用表加密,这是一个ALGORITHM=COPY操作来重建表。

d.Keyring_file插件使用说明
如果keyring文件为空或缺失,第一次执行ALTER INSTANCE ROTATE INNODB MASTER KEY将创建一个主加密密钥。

卸载keyring_file插件不会删除现有的keyring文件。

建议不要将keyring文件与表空间数据文件放在同一个目录下。keyring文件的位置由keyring_file_data选项指定。

在运行时修改keyring_file_data选项或使用新的keyring_file_data设置重新启动服务器可能导致以前加密的表不可访问,从而导致数据丢失。

InnoDB表空间加密限制
.系统目前只支持AES (Advanced Encryption Standard)加密算法。InnoDB表空间加密使用ECB (Electronic Codebook)块加密方式对表空间密钥进行加密,使用CBC (Cipher block Chaining)块加密方式对数据进行加密。

.修改表的ENCRYPTION属性是一个ALGORITHM=COPY操作。不支持ALGORITHM=INPLACE。

.InnoDB表空间加密只支持存储在file-per-table表空间中的InnoDB表。存储在其他InnoDB表空间类型中的表不支持加密,包括普通表空间、系统表空间、undo log表空间和临时表空间。

.不能将加密表从file-per-table表空间移动或复制到不支持的InnoDB表空间类型。

.表空间加密只适用于表空间中的数据。重做日志、undo日志或二进制日志中的数据不加密。

.目前不支持直接从keyring_file插件迁移到keyring_okv插件,反之亦然。更改密匙环插件需要解密表,卸载当前的密匙环插件,安装和配置其他密匙环插件,并重新加密表。

Oracle Linux 7.1 静默安装Weblogic 12.2.1.3

安装前准备
下载软件
Java SE 8 (jdk-linux-x64.tar.gz)
WebLogic Server 12cR2 (12.2.1) (fmw_12.2.1.3.0_wls.jar)

1.创建weblogic用户
[root@localhost java]# id weblogic
id: weblogic: no such user
[root@localhost java]# groupadd weblogic
[root@localhost java]# useradd -g weblogic weblogic
[root@localhost java]# passwd weblogic
Changing password for user weblogic.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

2.安装java
[root@localhost soft]# mkdir -p /usr/java
[root@localhost soft]# tar -zxvf jdk-linux-x64.tar.gz -C /usr/java

3.配置JAVA_HOME
[root@localhost ~]# cd /usr/java
[root@localhost java]# ll
total 4
drwxr-xr-x. 8 10 143 4096 Mar 15 2017 jdk1.8.0_131
[root@localhost java]# cp /etc/profile /etc/profile20230309
[root@localhost java]# vi /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

# It’s NOT a good idea to change this file unless you know what you
# are doing. It’s much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

pathmunge () {
case “:${PATH}:” in
*:”$1″:*)
;;
*)
if [ “$2” = “after” ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}

if [ -x /usr/bin/id ]; then
if [ -z “$EUID” ]; then
# ksh workaround
EUID=`id -u`
UID=`id -ru`
fi
USER=”`id -un`”
LOGNAME=$USER
MAIL=”/var/spool/mail/$USER”
fi

# Path manipulation
if [ “$EUID” = “0” ]; then
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
fi

HOSTNAME=`/usr/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ “$HISTCONTROL” = “ignorespace” ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ “`id -gn`” = “`id -un`” ]; then
umask 002
else
umask 022
fi

for i in /etc/profile.d/*.sh ; do
if [ -r “$i” ]; then
if [ “${-#*i}” != “$-” ]; then
. “$i”
else
. “$i” >/dev/null
fi
fi
done

#java
JAVA_HOME=/usr/java/jdk1.8.0_131
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export PATH JAVA_HOME CLASSPATH
“/etc/profile” 82L, 1906C written
[root@localhost java]# source /etc/profile

4.查看java -version
[root@localhost java]# java -version
java version “1.8.0_131”
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

5.创建目录,并设定权限
[weblogic@localhost weblogic]$ mkdir -p /weblogic/Oracle/Middleware
[weblogic@localhost weblogic]$ chmod -R 775 /weblogic/Oracle/Middleware

[root@localhost soft]# vi /etc/profile
#weblogic
export MW_HOME=/weblogic/Oracle/Middleware
export WLS_HOME=$MW_HOME/wlserver
export WL_HOME=$WLS_HOME

[root@localhost ~]# source /etc/profile
[root@localhost ~]# echo

[root@localhost ~]# echo $MW_HOME
/weblogic/Oracle/Middleware
[root@localhost ~]# su – weblogic
Last login: Fri Mar 10 07:56:30 CST 2023 on pts/1
[weblogic@localhost ~]$ java -version
java version “1.8.0_131″
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
[weblogic@localhost ~]$ echo $MW_HOME
/weblogic/Oracle/Middleware

安装weblogic软件
6.创建响应文件
编辑文件/weblogic/wls.rsp
[weblogic@localhost weblogic]$ vi wls.rsp
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=/weblogic/Oracle/Middleware
INSTALL_TYPE=WebLogic Server
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=<SECURE VALUE>
COLLECTOR_SUPPORTHUB_URL=

7.指定Oracle的库存位置
编辑文件/weblogic/oraInst.loc
[weblogic@localhost weblogic]$ vi oraInst.loc

inventory_loc=/weblogic/oraInventory

inst_group=weblogic

[weblogic@localhost weblogic]$ mkdir -p /weblogic/oraInventory
[weblogic@localhost weblogic]$ ll
total 819548
-r-xr-xr-x. 1 weblogic weblogic 839208313 Aug 22 2017 fmw_12.2.1.3.0_wls.jar
drwxrwxr-x. 3 weblogic weblogic 23 Mar 10 08:00 Oracle
-rw-rw-r–. 1 weblogic weblogic 59 Mar 9 15:34 oraInst.loc
drwxrwxr-x. 2 weblogic weblogic 6 Mar 10 08:11 oraInventory
-rw-rw-r–. 1 weblogic weblogic 342 Mar 10 08:09 wls.rsp

8.安装weblogic
[weblogic@localhost weblogic]$ java -Xmx1024m -jar /weblogic/fmw_12.2.1.3.0_wls.jar -silent -responseFile /weblogic/wls.rsp -invPtrLoc /weblogic/oraInst.loc
Launcher log file is /tmp/OraInstall2023-03-10_08-16-04AM/launcher2023-03-10_08-16-04AM.log.
Extracting the installer . . . . . . . Done
Checking if CPU speed is above 300 MHz. Actual 2000.000 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 8063 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Checking temp space: must be greater than 300 MB. Actual 81295 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2023-03-10_08-16-04AM
Log: /tmp/OraInstall2023-03-10_08-16-04AM/install2023-03-10_08-16-04AM.log
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of oracle-6, oracle-7, redhat-7, redhat-6, SuSE-11, SuSE-12
Actual Result: oracle-7.1
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.

Starting check : CheckJDKVersion
Expected result: 1.8.0_131
Actual Result: 1.8.0_131
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.

Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.3.0 completed successfully.
Logs successfully copied to /weblogic/oraInventory/logs.

9.创建domain域名

[weblogic@localhost bin]$ ./wlst.sh
WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.

Initializing WebLogic Scripting Tool (WLST) …

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate(‘/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar’)
WARNING: The readTemplate is deprecated. Use selectTemplate followed by loadTemplates in place of readTemplate.
wls:/offline/base_domain>cd(‘Servers/AdminServer’)
wls:/offline/base_domain/Server/AdminServer>set(‘ListenAddress’,”)
wls:/offline/base_domain/Server/AdminServer>set(‘ListenPort’, 7001)
wls:/offline/base_domain/Server/AdminServer>cd(‘/’)
wls:/offline/base_domain>cd(‘Security/base_domain/User/weblogic’)
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword(‘Xxzx$7817600’)
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption(‘OverwriteDomain’, ‘true’)
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain(‘/weblogic/Oracle/Middleware/user_projects/domains/base_domain’)
wls:/offline/base_domain/Security/base_domain/User/weblogic>closeTemplate()
wls:/offline>exit()

Exiting WebLogic Scripting Tool.

10.启动weblogic
修改weblogic端口号和IP
[weblogic@localhost config]$ vi config.xml
….
<server>
<name>AdminServer</name>
<listen-port>7001</listen-port>
<iiop-enabled>false</iiop-enabled>
<listen-address>10.13.13.4</listen-address>
</server>
…..

设置免密启动/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security目录下,编辑文件boot.properties
[weblogic@localhost security]$ cat boot.properties
# Generated by Configuration Wizard on Fri Mar 10 09:20:49 CST 2023
username={AES}m1DMhibRLp4hckxgycOV3fFtVs309buJFfJPxHa162Q=
password={AES}1UeQbtMNEYL40/c37MYUTfpPIoON7ql50cD/tparxp0=
[weblogic@localhost security]$ vi boot.properties
# Generated by Configuration Wizard on Fri Mar 10 09:20:49 CST 2023
username=weblogic
password=Xxzx$7817600

[[weblogic@localhost bin]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000
.
CLASSPATH=/usr/java/jdk1.8.0_131/lib/tools.jar:/weblogic/Oracle/Middleware/wlserver/server/lib/weblogic.jar:/weblogic/Oracle/Middleware/wlserver/../oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/weblogic/Oracle/Middleware/wlserver/modules/features/oracle.wls.common.nodemanager.jar::/weblogic/Oracle/Middleware/wlserver/common/derby/lib/derbynet.jar:/weblogic/Oracle/Middleware/wlserver/common/derby/lib/derbyclient.jar:/weblogic/Oracle/Middleware/wlserver/common/derby/lib/derby.jar:/usr/java/jdk1.8.0_131/jre/lib/ext:/usr/java/jdk1.8.0_131/lib/tools.jar
.
PATH=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin:/weblogic/Oracle/Middleware/wlserver/server/bin:/weblogic/Oracle/Middleware/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin:/usr/java/jdk1.8.0_131/jre/bin:/usr/java/jdk1.8.0_131/bin:/usr/java/jdk1.8.0_131/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/weblogic/.local/bin:/home/weblogic/bin
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
***************************************************
Starting WLS with line:
/usr/java/jdk1.8.0_131/bin/java -server -Xms256m -Xmx512m -XX:CompileThreshold=8000 -cp /weblogic/Oracle/Middleware/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=AdminServer -Djava.security.policy=/weblogic/Oracle/Middleware/wlserver/server/lib/weblogic.policy -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader -javaagent:/weblogic/Oracle/Middleware/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/weblogic/Oracle/Middleware/wlserver/server -Dweblogic.home=/weblogic/Oracle/Middleware/wlserver/server weblogic.Server
<Mar 10, 2023 10:10:21 AM CST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Mar 10, 2023 10:10:21 AM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<Mar 10, 2023 10:10:22 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.131-b11 from Oracle Corporation.>
<Mar 10, 2023 10:10:22 AM CST> <Info> <RCM> <BEA-2165021> <“ResourceManagement” is not enabled in this JVM. Enable “ResourceManagement” to use the WebLogic Server “Resource Consumption Management” feature. To enable “ResourceManagement”, you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>
<Mar 10, 2023 10:10:23 AM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.3.0 Thu Aug 17 13:39:49 PDT 2017 1882952>
<Mar 10, 2023 10:12:23 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Mar 10, 2023 10:12:23 AM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<Mar 10, 2023 10:12:23 AM CST> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.>
<Mar 10, 2023 10:13:37,658 AM CST> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=414943286
Current log file=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log
Rotation dir=/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/logs
is opened. All server side log events will be written to this file.>
<Mar 10, 2023 10:13:37,911 AM CST> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm>
<Mar 10, 2023 10:13:38,607 AM CST> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm>
<Mar 10, 2023 10:13:39,600 AM CST> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm>
<Mar 10, 2023 10:13:39,664 AM CST> <Notice> <Security> <BEA-090083> <Storing boot identity in the file: /weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties.>
<Mar 10, 2023 10:19:50,908 AM CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://10.13.13.4:7001/jndi/weblogic.management.mbeanservers.runtime.>
<Mar 10, 2023 10:19:50,949 AM CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://10.13.13.4:7001/jndi/weblogic.management.mbeanservers.domainruntime.>
<Mar 10, 2023 10:19:50,966 AM CST> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://10.13.13.4:7001/jndi/weblogic.management.mbeanservers.edit.>
<Mar 10, 2023 10:21:52,707 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<Mar 10, 2023 10:21:52,708 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Mar 10, 2023 10:21:52,785 AM CST> <Notice> <Log Management> <BEA-170036> <The Logging monitoring service timer has started to check for logged message counts every 30 seconds.>
<Mar 10, 2023 10:21:53,221 AM CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>
<Mar 10, 2023 10:21:53,401 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<Mar 10, 2023 10:21:53,509 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<Mar 10, 2023 10:21:53,608 AM CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server “AdminServer” for domain “base_domain” running in development mode.>
<Mar 10, 2023 10:21:53,615 AM CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<Mar 10, 2023 10:21:53,615 AM CST> <Notice> <Server> <BEA-002613> <Channel “Default” is now listening on 10.13.13.4:7001 for protocols iiop, t3, ldap, snmp, http.>
<Mar 10, 2023 10:21:53,616 AM CST> <Notice> <Server> <BEA-002613> <Channel “Default” is now listening on 10.13.13.4:7001 for protocols iiop, t3, ldap, snmp, http.>
<Mar 10, 2023 10:21:53,628 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>

benchmark 压测Oracle 11g

benchmarksql 5.0 支持对MySQL的TPC-C测试
根据官方文档介绍的测试环境,本文中涉及的TPC-C测试将使用 BenchmarkSQL5.0 软件实现。BenchmarkSQL是一款基于JDBC实现的类似于OLTP的TPC-C标准测试工具,目前支持的数据库如:PostgreSQL、Oracle等。

一.下载&编译安装

1.先要确定服务器是否安装了 JDK1.8

[root@sjjh /]# java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.2.0.1.el7_0-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

因为自带jdk存储在/usr/lib/jvm下,需要将其删除。

[root@sjjh lib]# mv jvm jvmold
[root@sjjh lib]# java -version
-bash: /usr/bin/java: ???

2.安装JDK1.8

[root@sjjh /]# tar -zxvf jdk-linux-x64.tar.gz

[root@sjjh /]# mkdir /usr/java
[root@sjjh /]# mv jdk1.8.0_131 /usr/java/
[root@sjjh /]# vi /etc/profile
....
export JAVA_HOME=/usr/java/jdk1.8.0_131
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}

[root@sjjh /]# source /etc/profile
[root@sjjh /]# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

[root@shard1 /]# unzip benchmarksql-5.0.zip
[root@shard1 /]# cd benchmarksql-5.0/

加载oracle 驱动

[oracle@sjjh lib]$ ls -lrt
total 26084
-rw-r--r--. 1 oracle oinstall 2091135 Jul 11  2013 ojdbc5.jar
-rw-r--r--. 1 oracle oinstall 2739616 Jul 11  2013 ojdbc6.jar
-rw-r--r--. 1 oracle oinstall 2609739 Jul 11  2013 ojdbc5dms.jar
-rw-r--r--. 1 oracle oinstall 3350717 Jul 11  2013 ojdbc6dms.jar
-rw-r--r--. 1 oracle oinstall 3424145 Jul 11  2013 ojdbc5_g.jar
-rw-r--r--. 1 oracle oinstall 3445412 Jul 11  2013 ojdbc5dms_g.jar
-rw-r--r--. 1 oracle oinstall 4494540 Jul 11  2013 ojdbc6_g.jar
-rw-r--r--. 1 oracle oinstall 4517780 Jul 11  2013 ojdbc6dms_g.jar
-rw-r--r--. 1 oracle oinstall   20365 Jul 11  2013 simplefan.jar
[oracle@sjjh lib]$ pwd
/u01/app/oracle/product/11.2.0.4/db/jdbc/lib

[oracle@sjjh lib]$ cp ojdbc6.jar /benchmarksql-5.0/lib/oracle/

[oracle@sjjh lib]$ cd /benchmarksql-5.0/lib/oracle/
[oracle@sjjh oracle]$ pwd
/benchmarksql-5.0/lib/oracle
[oracle@sjjh oracle]$ ls -lrt
total 2680
-rwxrwxr-x. 1 oracle oinstall     174 May 26  2016 README.txt
-rw-r--r--. 1 oracle oinstall 2739616 Nov 14 10:21 ojdbc6.jar


修改props.ora

[oracle@sjjh run]$ vi props.ora
db=oracle
driver=oracle.jdbc.driver.OracleDriver
conn=jdbc:oracle:thin:@localhost:1521:sjjh
user=tpcs
password=tpcs

warehouses=40
loadWorkers=10

terminals=10
//To run specified transactions per terminal- runMins must equal zero
runTxnsPerTerminal=
//To run for specified minutes- runTxnsPerTerminal must equal zero
runMins=10
//Number of total transactions per minute
limitTxnsPerMin=0

//Set to true to run in 4.x compatible mode. Set to false to use the
//entire configured database evenly.
terminalWarehouseFixed=true

//The following five values must add up to 100
newOrderWeight=45
paymentWeight=43
orderStatusWeight=4
deliveryWeight=4
stockLevelWeight=4

// Directory name to create for collecting detailed result data.
// Comment this out to suppress.
resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS
osCollectorScript=./misc/os_collector_linux.py
osCollectorInterval=1
//osCollectorSSHAddr=user@dbhost
//osCollectorDevices=net_eth0 blk_sda

使用ant进行编译

[oracle@sjjh benchmarksql-5.0]$ ant
Buildfile: /benchmarksql-5.0/build.xml

init:

compile:
    [javac] Compiling 11 source files to /benchmarksql-5.0/build

dist:
    [mkdir] Created dir: /benchmarksql-5.0/dist
      [jar] Building jar: /benchmarksql-5.0/dist/BenchmarkSQL-5.0.jar

BUILD SUCCESSFUL
Total time: 2 seconds


初始化数据

[oracle@sjjh run]$  ./runDatabaseBuild.sh props.ora
# ------------------------------------------------------------
# Loading SQL file ./sql.common/tableCreates.sql
# ------------------------------------------------------------
create table bmsql_config (
cfg_name    varchar(30) primary key,
cfg_value   varchar(50)
);
create table bmsql_warehouse (
w_id        integer   not null,
w_ytd       decimal(12,2),
w_tax       decimal(4,4),
w_name      varchar(10),
w_street_1  varchar(20),
w_street_2  varchar(20),
w_city      varchar(20),
w_state     char(2),
w_zip       char(9)
);
create table bmsql_district (
d_w_id       integer       not null,
d_id         integer       not null,
d_ytd        decimal(12,2),
d_tax        decimal(4,4),
d_next_o_id  integer,
d_name       varchar(10),
d_street_1   varchar(20),
d_street_2   varchar(20),
d_city       varchar(20),
d_state      char(2),
d_zip        char(9)
);
create table bmsql_customer (
c_w_id         integer        not null,
c_d_id         integer        not null,
c_id           integer        not null,
c_discount     decimal(4,4),
c_credit       char(2),
c_last         varchar(16),
c_first        varchar(16),
c_credit_lim   decimal(12,2),
c_balance      decimal(12,2),
c_ytd_payment  decimal(12,2),
c_payment_cnt  integer,
c_delivery_cnt integer,
c_street_1     varchar(20),
c_street_2     varchar(20),
c_city         varchar(20),
c_state        char(2),
c_zip          char(9),
c_phone        char(16),
c_since        timestamp,
c_middle       char(2),
c_data         varchar(500)
);
create sequence bmsql_hist_id_seq;
create table bmsql_history (
hist_id  integer,
h_c_id   integer,
h_c_d_id integer,
h_c_w_id integer,
h_d_id   integer,
h_w_id   integer,
h_date   timestamp,
h_amount decimal(6,2),
h_data   varchar(24)
);
create table bmsql_new_order (
no_w_id  integer   not null,
no_d_id  integer   not null,
no_o_id  integer   not null
);
create table bmsql_oorder (
o_w_id       integer      not null,
o_d_id       integer      not null,
o_id         integer      not null,
o_c_id       integer,
o_carrier_id integer,
o_ol_cnt     integer,
o_all_local  integer,
o_entry_d    timestamp
);
create table bmsql_order_line (
ol_w_id         integer   not null,
ol_d_id         integer   not null,
ol_o_id         integer   not null,
ol_number       integer   not null,
ol_i_id         integer   not null,
ol_delivery_d   timestamp,
ol_amount       decimal(6,2),
ol_supply_w_id  integer,
ol_quantity     integer,
ol_dist_info    char(24)
);
create table bmsql_item (
i_id     integer      not null,
i_name   varchar(24),
i_price  decimal(5,2),
i_data   varchar(50),
i_im_id  integer
);
create table bmsql_stock (
s_w_id       integer       not null,
s_i_id       integer       not null,
s_quantity   integer,
s_ytd        integer,
s_order_cnt  integer,
s_remote_cnt integer,
s_data       varchar(50),
s_dist_01    char(24),
s_dist_02    char(24),
s_dist_03    char(24),
s_dist_04    char(24),
s_dist_05    char(24),
s_dist_06    char(24),
s_dist_07    char(24),
s_dist_08    char(24),
s_dist_09    char(24),
s_dist_10    char(24)
);
Starting BenchmarkSQL LoadData

driver=oracle.jdbc.driver.OracleDriver
conn=jdbc:oracle:thin:@10.138.130.101:1521:sjjh
user=tpcs
password=***********
warehouses=40
loadWorkers=10
fileLocation (not defined)
csvNullValue (not defined - using default 'NULL')

Worker 000: Loading ITEM
Worker 001: Loading Warehouse      1
Worker 002: Loading Warehouse      2
Worker 003: Loading Warehouse      3
Worker 004: Loading Warehouse      4
Worker 005: Loading Warehouse      5
Worker 006: Loading Warehouse      6
Worker 007: Loading Warehouse      7
Worker 008: Loading Warehouse      8
Worker 009: Loading Warehouse      9
Worker 000: Loading ITEM done
Worker 000: Loading Warehouse     10
Worker 004: Loading Warehouse      4 done
Worker 004: Loading Warehouse     11
Worker 007: Loading Warehouse      7 done
Worker 007: Loading Warehouse     12
Worker 005: Loading Warehouse      5 done
Worker 005: Loading Warehouse     13
Worker 008: Loading Warehouse      8 done
Worker 008: Loading Warehouse     14
Worker 006: Loading Warehouse      6 done
Worker 001: Loading Warehouse      1 done
Worker 006: Loading Warehouse     15
Worker 001: Loading Warehouse     16
Worker 009: Loading Warehouse      9 done
Worker 009: Loading Warehouse     17
Worker 002: Loading Warehouse      2 done
Worker 002: Loading Warehouse     18
Worker 003: Loading Warehouse      3 done
Worker 003: Loading Warehouse     19
Worker 000: Loading Warehouse     10 done
Worker 000: Loading Warehouse     20
Worker 004: Loading Warehouse     11 done
Worker 004: Loading Warehouse     21
Worker 008: Loading Warehouse     14 done
Worker 008: Loading Warehouse     22
Worker 005: Loading Warehouse     13 done
Worker 005: Loading Warehouse     23
Worker 007: Loading Warehouse     12 done
Worker 006: Loading Warehouse     15 done
Worker 007: Loading Warehouse     24
Worker 006: Loading Warehouse     25
Worker 003: Loading Warehouse     19 done
Worker 003: Loading Warehouse     26
Worker 002: Loading Warehouse     18 done
Worker 002: Loading Warehouse     27
Worker 000: Loading Warehouse     20 done
Worker 000: Loading Warehouse     28
Worker 001: Loading Warehouse     16 done
Worker 001: Loading Warehouse     29
Worker 009: Loading Warehouse     17 done
Worker 009: Loading Warehouse     30
Worker 004: Loading Warehouse     21 done
Worker 004: Loading Warehouse     31
Worker 008: Loading Warehouse     22 done
Worker 008: Loading Warehouse     32
Worker 006: Loading Warehouse     25 done
Worker 006: Loading Warehouse     33
Worker 007: Loading Warehouse     24 done
Worker 007: Loading Warehouse     34
Worker 003: Loading Warehouse     26 done
Worker 001: Loading Warehouse     29 done
Worker 003: Loading Warehouse     35
Worker 001: Loading Warehouse     36
Worker 005: Loading Warehouse     23 done
Worker 005: Loading Warehouse     37
Worker 002: Loading Warehouse     27 done
Worker 002: Loading Warehouse     38
Worker 000: Loading Warehouse     28 done
Worker 000: Loading Warehouse     39
Worker 009: Loading Warehouse     30 done
Worker 009: Loading Warehouse     40
Worker 007: Loading Warehouse     34 done
Worker 004: Loading Warehouse     31 done
Worker 008: Loading Warehouse     32 done
Worker 006: Loading Warehouse     33 done
Worker 003: Loading Warehouse     35 done
Worker 001: Loading Warehouse     36 done
Worker 005: Loading Warehouse     37 done
Worker 000: Loading Warehouse     39 done
Worker 009: Loading Warehouse     40 done
Worker 002: Loading Warehouse     38 done
# ------------------------------------------------------------
# Loading SQL file ./sql.common/indexCreates.sql
# ------------------------------------------------------------
alter table bmsql_warehouse add constraint bmsql_warehouse_pkey
primary key (w_id);
alter table bmsql_district add constraint bmsql_district_pkey
primary key (d_w_id, d_id);
alter table bmsql_customer add constraint bmsql_customer_pkey
primary key (c_w_id, c_d_id, c_id);
create index bmsql_customer_idx1
on  bmsql_customer (c_w_id, c_d_id, c_last, c_first);
alter table bmsql_oorder add constraint bmsql_oorder_pkey
primary key (o_w_id, o_d_id, o_id);
create unique index bmsql_oorder_idx1
on  bmsql_oorder (o_w_id, o_d_id, o_carrier_id, o_id);
alter table bmsql_new_order add constraint bmsql_new_order_pkey
primary key (no_w_id, no_d_id, no_o_id);
alter table bmsql_order_line add constraint bmsql_order_line_pkey
primary key (ol_w_id, ol_d_id, ol_o_id, ol_number);
alter table bmsql_stock add constraint bmsql_stock_pkey
primary key (s_w_id, s_i_id);
alter table bmsql_item add constraint bmsql_item_pkey
primary key (i_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.common/foreignKeys.sql
# ------------------------------------------------------------
alter table bmsql_district add constraint d_warehouse_fkey
foreign key (d_w_id)
references bmsql_warehouse (w_id);
alter table bmsql_customer add constraint c_district_fkey
foreign key (c_w_id, c_d_id)
references bmsql_district (d_w_id, d_id);
alter table bmsql_history add constraint h_customer_fkey
foreign key (h_c_w_id, h_c_d_id, h_c_id)
references bmsql_customer (c_w_id, c_d_id, c_id);
alter table bmsql_history add constraint h_district_fkey
foreign key (h_w_id, h_d_id)
references bmsql_district (d_w_id, d_id);
alter table bmsql_new_order add constraint no_order_fkey
foreign key (no_w_id, no_d_id, no_o_id)
references bmsql_oorder (o_w_id, o_d_id, o_id);
alter table bmsql_oorder add constraint o_customer_fkey
foreign key (o_w_id, o_d_id, o_c_id)
references bmsql_customer (c_w_id, c_d_id, c_id);
alter table bmsql_order_line add constraint ol_order_fkey
foreign key (ol_w_id, ol_d_id, ol_o_id)
references bmsql_oorder (o_w_id, o_d_id, o_id);
alter table bmsql_order_line add constraint ol_stock_fkey
foreign key (ol_supply_w_id, ol_i_id)
references bmsql_stock (s_w_id, s_i_id);
alter table bmsql_stock add constraint s_warehouse_fkey
foreign key (s_w_id)
references bmsql_warehouse (w_id);
alter table bmsql_stock add constraint s_item_fkey
foreign key (s_i_id)
references bmsql_item (i_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.oracle/extraHistID.sql
# ------------------------------------------------------------
-- ----
-- Extra Schema objects/definitions for history.hist_id in Oracle
-- ----
-- ----
--      This is an extra column not present in the TPC-C
--      specs. It is useful for replication systems like
--      Bucardo and Slony-I, which like to have a primary
--      key on a table. It is an auto-increment or serial
--      column type. The definition below is compatible
--      with Oracle 11g, using the sequence in a trigger.
-- ----
-- Adjust the sequence above the current max(hist_id)
alter sequence bmsql_hist_id_seq increment by 30000;
declare
n integer;
i integer;
dummy integer;
begin
select max(hist_id) into n from bmsql_history;
i := 0;
while i < = n loop
select bmsql_hist_id_seq.nextval into dummy from dual;
i := i + 30000;
end loop;
end;
;
alter sequence bmsql_hist_id_seq increment by 1;
-- Create a trigger that forces hist_id to be hist_id_seq.nextval
create trigger bmsql_history_before_insert
before insert on bmsql_history
for each row
begin
if :new.hist_id is null then
select bmsql_hist_id_seq.nextval into :new.hist_id from dual;
end if;
end;
;
-- Add a primary key history(hist_id)
alter table bmsql_history add primary key (hist_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.common/buildFinish.sql
# ------------------------------------------------------------
-- ----
-- Extra commands to run after the tables are created, loaded,
-- indexes built and extra's created.
-- ----‘

执行压测

[oracle@sjjh run]$ ./runBenchmark.sh props.ora
10:51:30,810 [main] INFO   jTPCC : Term-00,
10:51:30,815 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:51:30,816 [main] INFO   jTPCC : Term-00,      BenchmarkSQL v5.0
10:51:30,816 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:51:30,816 [main] INFO   jTPCC : Term-00,  (c) 2003, Raul Barbosa
10:51:30,817 [main] INFO   jTPCC : Term-00,  (c) 2004-2016, Denis Lussier
10:51:30,821 [main] INFO   jTPCC : Term-00,  (c) 2016, Jan Wieck
10:51:30,821 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:51:30,822 [main] INFO   jTPCC : Term-00,
10:51:30,822 [main] INFO   jTPCC : Term-00, db=oracle
10:51:30,822 [main] INFO   jTPCC : Term-00, driver=oracle.jdbc.driver.OracleDriver
10:51:30,823 [main] INFO   jTPCC : Term-00, conn=jdbc:oracle:thin:@10.138.130.101:1521:sjjh
10:51:30,823 [main] INFO   jTPCC : Term-00, user=tpcs
10:51:30,823 [main] INFO   jTPCC : Term-00,
10:51:30,823 [main] INFO   jTPCC : Term-00, warehouses=40
10:51:30,824 [main] INFO   jTPCC : Term-00, terminals=10
10:51:30,827 [main] INFO   jTPCC : Term-00, runMins=10
10:51:30,827 [main] INFO   jTPCC : Term-00, limitTxnsPerMin=0
10:51:30,827 [main] INFO   jTPCC : Term-00, terminalWarehouseFixed=true
10:51:30,828 [main] INFO   jTPCC : Term-00,
10:51:30,828 [main] INFO   jTPCC : Term-00, newOrderWeight=45
10:51:30,828 [main] INFO   jTPCC : Term-00, paymentWeight=43
10:51:30,828 [main] INFO   jTPCC : Term-00, orderStatusWeight=4
10:51:30,829 [main] INFO   jTPCC : Term-00, deliveryWeight=4
10:51:30,829 [main] INFO   jTPCC : Term-00, stockLevelWeight=4
10:51:30,829 [main] INFO   jTPCC : Term-00,
10:51:30,829 [main] INFO   jTPCC : Term-00, resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS
10:51:30,830 [main] INFO   jTPCC : Term-00, osCollectorScript=./misc/os_collector_linux.py
10:51:30,830 [main] INFO   jTPCC : Term-00,
10:51:31,026 [main] INFO   jTPCC : Term-00, copied props.ora to my_result_2022-11-14_105131/run.properties
10:51:31,027 [main] INFO   jTPCC : Term-00, created my_result_2022-11-14_105131/data/runInfo.csv for runID 1
10:51:31,027 [main] INFO   jTPCC : Term-00, writing per transaction results to my_result_2022-11-14_105131/data/result.csv
10:51:31,028 [main] INFO   jTPCC : Term-00, osCollectorScript=./misc/os_collector_linux.py
10:51:31,029 [main] INFO   jTPCC : Term-00, osCollectorInterval=1
10:51:31,029 [main] INFO   jTPCC : Term-00, osCollectorSSHAddr=null
10:51:31,029 [main] INFO   jTPCC : Term-00, osCollectorDevices=null
10:51:31,161 [main] INFO   jTPCC : Term-00,
10:51:31,676 [main] INFO   jTPCC : Term-00, C value for C_LAST during load: 243
10:51:31,677 [main] INFO   jTPCC : Term-00, C value for C_LAST this run:    125
10:51:31,677 [main] INFO   jTPCC : Term-00,
Term-00, Running Average tpmTOTAL: 10382.94    Current tpmTOTAL: 684828    Memory Usage: 107MB / 649MB
11:01:32,117 [Thread-2] INFO   jTPCC : Term-00,
11:01:32,118 [Thread-2] INFO   jTPCC : Term-00,
11:01:32,118 [Thread-2] INFO   jTPCC : Term-00, Measured tpmC (NewOrders) = 4686.82
11:01:32,118 [Thread-2] INFO   jTPCC : Term-00, Measured tpmTOTAL = 10382.59
11:01:32,118 [Thread-2] INFO   jTPCC : Term-00, Session Start     = 2022-11-14 10:51:32
11:01:32,118 [Thread-2] INFO   jTPCC : Term-00, Session End       = 2022-11-14 11:01:32
11:01:32,119 [Thread-2] INFO   jTPCC : Term-00, Transaction Count = 103831'

清理数据

[oracle@sjjh run]$ ./runDatabaseDestroy.sh props.ora
# ------------------------------------------------------------
# Loading SQL file ./sql.common/tableDrops.sql
# ------------------------------------------------------------
drop table bmsql_config;
drop table bmsql_new_order;
drop table bmsql_order_line;
drop table bmsql_oorder;
drop table bmsql_history;
drop table bmsql_customer;
drop table bmsql_stock;
drop table bmsql_item;
drop table bmsql_district;
drop table bmsql_warehouse;
drop sequence bmsql_hist_id_seq;

benchmark 压测Oracle 12c

benchmarksql 5.0 支持对MySQL的TPC-C测试
根据官方文档介绍的测试环境,本文中涉及的TPC-C测试将使用 BenchmarkSQL5.0 软件实现。BenchmarkSQL是一款基于JDBC实现的类似于OLTP的TPC-C标准测试工具,目前支持的数据库如:PostgreSQL、Oracle等。

一.下载&编译安装

1.先要确定服务器是否安装了 JDK1.8

[root@shard1 /]# java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.2.0.1.el7_0-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

因为自带jdk存储在/usr/lib/jvm下,需要将其删除。

[root@shard1 lib]# mv jvm jvmold
[root@shard1 lib]# java -version
-bash: /usr/bin/java: ???

2.安装JDK1.8

[root@shard1 /]# tar -zxvf jdk-linux-x64.tar.gz

[root@shard1 /]# mkdir /usr/java
[root@shard1 /]# mv jdk1.8.0_131 /usr/java/
[root@shard1 /]# vi /etc/profile
....
export JAVA_HOME=/usr/java/jdk1.8.0_131
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}

[root@shard1 /]# source /etc/profile
[root@shard1 /]# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

[root@shard1 /]# unzip benchmarksql-5.0.zip
[root@shard1 /]# cd benchmarksql-5.0/


加载oracle 驱动(这里要使用11g版本的驱动ojdbc6.jar不能使用oracle 12c的ojdbc8.jar)

[oracle@shard1 lib]$ pwd
/u01/app/oracle/product/12.2.0/db/jdbc/lib
[oracle@shard1 lib]$ ls -lrt
2604
-rw-r--r--. 1 oracle oinstall   29051 123 2016 simplefan.jar
-rw-r--r--. 1 oracle oinstall 4036257 123 2016 ojdbc8.jar
-rw-r--r--. 1 oracle oinstall 5623186 123 2016 ojdbc8dms.jar
-rw-r--r--. 1 oracle oinstall 6708730 123 2016 ojdbc8_g.jar
-rw-r--r--. 1 oracle oinstall 6738172 123 2016 ojdbc8dms_g.jar
[oracle@shard1 lib]$ cp ojdbc8.jar /benchmarksql-5.0/lib/oracle/

使用oracle 12c的ojdbc8.jar在执行测试时就会报以下错误信息

[oracle@shard1 run]$ ./runBenchmark.sh props.ora
10:04:25,158 [main] INFO   jTPCC : Term-00,
10:04:25,192 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:04:25,192 [main] INFO   jTPCC : Term-00,      BenchmarkSQL v5.0
10:04:25,192 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:04:25,192 [main] INFO   jTPCC : Term-00,  (c) 2003, Raul Barbosa
10:04:25,192 [main] INFO   jTPCC : Term-00,  (c) 2004-2016, Denis Lussier
10:04:25,196 [main] INFO   jTPCC : Term-00,  (c) 2016, Jan Wieck
10:04:25,196 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:04:25,197 [main] INFO   jTPCC : Term-00,
10:04:25,197 [main] INFO   jTPCC : Term-00, db=oracle
10:04:25,197 [main] INFO   jTPCC : Term-00, driver=oracle.jdbc.driver.OracleDriver
10:04:25,197 [main] INFO   jTPCC : Term-00, conn=jdbc:oracle:thin:@localhost:1521:shardcat
10:04:25,197 [main] INFO   jTPCC : Term-00, user=tpcs
10:04:25,198 [main] INFO   jTPCC : Term-00,
10:04:25,198 [main] INFO   jTPCC : Term-00, warehouses=40
10:04:25,198 [main] INFO   jTPCC : Term-00, terminals=10
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:592)
        at java.lang.Integer.parseInt(Integer.java:615)
        at jTPCC.(jTPCC.java:95)
        at jTPCC.main(jTPCC.java:53)


[oracle@shard1 lib]$ ls -lrt
total 26084
-rw-r--r--. 1 oracle oinstall 2091135 Jul 11  2013 ojdbc5.jar
-rw-r--r--. 1 oracle oinstall 2739616 Jul 11  2013 ojdbc6.jar
-rw-r--r--. 1 oracle oinstall 2609739 Jul 11  2013 ojdbc5dms.jar
-rw-r--r--. 1 oracle oinstall 3350717 Jul 11  2013 ojdbc6dms.jar
-rw-r--r--. 1 oracle oinstall 3424145 Jul 11  2013 ojdbc5_g.jar
-rw-r--r--. 1 oracle oinstall 3445412 Jul 11  2013 ojdbc5dms_g.jar
-rw-r--r--. 1 oracle oinstall 4494540 Jul 11  2013 ojdbc6_g.jar
-rw-r--r--. 1 oracle oinstall 4517780 Jul 11  2013 ojdbc6dms_g.jar
-rw-r--r--. 1 oracle oinstall   20365 Jul 11  2013 simplefan.jar
[oracle@shard1 lib]$ pwd
/u01/app/oracle/product/11.2.0.4/db/jdbc/lib

[oracle@shard1 lib]$ cp ojdbc6.jar /benchmarksql-5.0/lib/oracle/

[oracle@shard1 lib]$ cd /benchmarksql-5.0/lib/oracle/
[oracle@shard1 oracle]$ pwd
/benchmarksql-5.0/lib/oracle
[oracle@shard1 oracle]$ ls -lrt
total 2680
-rwxrwxr-x. 1 oracle oinstall     174 May 26  2016 README.txt
-rw-r--r--. 1 oracle oinstall 2739616 Nov 14 10:21 ojdbc6.jar

修改props.ora

[oracle@shard1 run]$ vi props.ora
db=oracle
driver=oracle.jdbc.driver.OracleDriver
conn=jdbc:oracle:thin:@localhost:1521:shardcat
user=tpcs
password=tpcs

warehouses=40
loadWorkers=10

terminals=10
//To run specified transactions per terminal- runMins must equal zero
runTxnsPerTerminal=
//To run for specified minutes- runTxnsPerTerminal must equal zero
runMins=10
//Number of total transactions per minute
limitTxnsPerMin=0

//Set to true to run in 4.x compatible mode. Set to false to use the
//entire configured database evenly.
terminalWarehouseFixed=true

//The following five values must add up to 100
newOrderWeight=45
paymentWeight=43
orderStatusWeight=4
deliveryWeight=4
stockLevelWeight=4

// Directory name to create for collecting detailed result data.
// Comment this out to suppress.
resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS
osCollectorScript=./misc/os_collector_linux.py
osCollectorInterval=1
//osCollectorSSHAddr=user@dbhost
//osCollectorDevices=net_eth0 blk_sda

使用ant进行编译

[oracle@shard1 benchmarksql-5.0]$ ant
Buildfile: /benchmarksql-5.0/build.xml

init:

compile:
    [javac] Compiling 11 source files to /benchmarksql-5.0/build

dist:
    [mkdir] Created dir: /benchmarksql-5.0/dist
      [jar] Building jar: /benchmarksql-5.0/dist/BenchmarkSQL-5.0.jar

BUILD SUCCESSFUL
Total time: 2 seconds


初始化数据

[oracle@shard1 run]$ ./runDatabaseBuild.sh props.ora
# ------------------------------------------------------------
# Loading SQL file ./sql.common/tableCreates.sql
# ------------------------------------------------------------
create table bmsql_config (
cfg_name    varchar(30) primary key,
cfg_value   varchar(50)
);
create table bmsql_warehouse (
w_id        integer   not null,
w_ytd       decimal(12,2),
w_tax       decimal(4,4),
w_name      varchar(10),
w_street_1  varchar(20),
w_street_2  varchar(20),
w_city      varchar(20),
w_state     char(2),
w_zip       char(9)
);
create table bmsql_district (
d_w_id       integer       not null,
d_id         integer       not null,
d_ytd        decimal(12,2),
d_tax        decimal(4,4),
d_next_o_id  integer,
d_name       varchar(10),
d_street_1   varchar(20),
d_street_2   varchar(20),
d_city       varchar(20),
d_state      char(2),
d_zip        char(9)
);
create table bmsql_customer (
c_w_id         integer        not null,
c_d_id         integer        not null,
c_id           integer        not null,
c_discount     decimal(4,4),
c_credit       char(2),
c_last         varchar(16),
c_first        varchar(16),
c_credit_lim   decimal(12,2),
c_balance      decimal(12,2),
c_ytd_payment  decimal(12,2),
c_payment_cnt  integer,
c_delivery_cnt integer,
c_street_1     varchar(20),
c_street_2     varchar(20),
c_city         varchar(20),
c_state        char(2),
c_zip          char(9),
c_phone        char(16),
c_since        timestamp,
c_middle       char(2),
c_data         varchar(500)
);
create sequence bmsql_hist_id_seq;
ORA-00955: name is already used by an existing object

create table bmsql_history (
hist_id  integer,
h_c_id   integer,
h_c_d_id integer,
h_c_w_id integer,
h_d_id   integer,
h_w_id   integer,
h_date   timestamp,
h_amount decimal(6,2),
h_data   varchar(24)
);
create table bmsql_new_order (
no_w_id  integer   not null,
no_d_id  integer   not null,
no_o_id  integer   not null
);
create table bmsql_oorder (
o_w_id       integer      not null,
o_d_id       integer      not null,
o_id         integer      not null,
o_c_id       integer,
o_carrier_id integer,
o_ol_cnt     integer,
o_all_local  integer,
o_entry_d    timestamp
);
create table bmsql_order_line (
ol_w_id         integer   not null,
ol_d_id         integer   not null,
ol_o_id         integer   not null,
ol_number       integer   not null,
ol_i_id         integer   not null,
ol_delivery_d   timestamp,
ol_amount       decimal(6,2),
ol_supply_w_id  integer,
ol_quantity     integer,
ol_dist_info    char(24)
);
create table bmsql_item (
i_id     integer      not null,
i_name   varchar(24),
i_price  decimal(5,2),
i_data   varchar(50),
i_im_id  integer
);
create table bmsql_stock (
s_w_id       integer       not null,
s_i_id       integer       not null,
s_quantity   integer,
s_ytd        integer,
s_order_cnt  integer,
s_remote_cnt integer,
s_data       varchar(50),
s_dist_01    char(24),
s_dist_02    char(24),
s_dist_03    char(24),
s_dist_04    char(24),
s_dist_05    char(24),
s_dist_06    char(24),
s_dist_07    char(24),
s_dist_08    char(24),
s_dist_09    char(24),
s_dist_10    char(24)
);
Starting BenchmarkSQL LoadData

driver=oracle.jdbc.driver.OracleDriver
conn=jdbc:oracle:thin:@localhost:1521:shardcat
user=tpcc
password=***********
warehouses=40
loadWorkers=10
fileLocation (not defined)
csvNullValue (not defined - using default 'NULL')

Worker 000: Loading ITEM
Worker 001: Loading Warehouse      1
Worker 002: Loading Warehouse      2
Worker 003: Loading Warehouse      3
Worker 004: Loading Warehouse      4
Worker 005: Loading Warehouse      5
Worker 006: Loading Warehouse      6
Worker 007: Loading Warehouse      7
Worker 008: Loading Warehouse      8
Worker 009: Loading Warehouse      9
Worker 000: Loading ITEM done
Worker 000: Loading Warehouse     10
Worker 003: Loading Warehouse      3 done
Worker 003: Loading Warehouse     11
Worker 004: Loading Warehouse      4 done
Worker 004: Loading Warehouse     12
Worker 006: Loading Warehouse      6 done
Worker 006: Loading Warehouse     13
Worker 002: Loading Warehouse      2 done
Worker 002: Loading Warehouse     14
Worker 005: Loading Warehouse      5 done
Worker 005: Loading Warehouse     15
Worker 007: Loading Warehouse      7 done
Worker 007: Loading Warehouse     16
Worker 001: Loading Warehouse      1 done
Worker 001: Loading Warehouse     17
Worker 009: Loading Warehouse      9 done
Worker 009: Loading Warehouse     18
Worker 008: Loading Warehouse      8 done
Worker 008: Loading Warehouse     19
Worker 000: Loading Warehouse     10 done
Worker 000: Loading Warehouse     20
Worker 006: Loading Warehouse     13 done
Worker 006: Loading Warehouse     21
Worker 002: Loading Warehouse     14 done
Worker 002: Loading Warehouse     22
Worker 003: Loading Warehouse     11 done
Worker 003: Loading Warehouse     23
Worker 005: Loading Warehouse     15 done
Worker 005: Loading Warehouse     24
Worker 004: Loading Warehouse     12 done
Worker 004: Loading Warehouse     25
Worker 007: Loading Warehouse     16 done
Worker 007: Loading Warehouse     26
Worker 008: Loading Warehouse     19 done
Worker 008: Loading Warehouse     27
Worker 000: Loading Warehouse     20 done
Worker 000: Loading Warehouse     28
Worker 009: Loading Warehouse     18 done
Worker 009: Loading Warehouse     29
Worker 001: Loading Warehouse     17 done
Worker 001: Loading Warehouse     30
Worker 000: Loading Warehouse     28 done
Worker 000: Loading Warehouse     31
Worker 006: Loading Warehouse     21 done
Worker 006: Loading Warehouse     32
Worker 009: Loading Warehouse     29 done
Worker 009: Loading Warehouse     33
Worker 008: Loading Warehouse     27 done
Worker 008: Loading Warehouse     34
Worker 003: Loading Warehouse     23 done
Worker 003: Loading Warehouse     35
Worker 007: Loading Warehouse     26 done
Worker 007: Loading Warehouse     36
Worker 005: Loading Warehouse     24 done
Worker 005: Loading Warehouse     37
Worker 001: Loading Warehouse     30 done
Worker 001: Loading Warehouse     38
Worker 002: Loading Warehouse     22 done
Worker 002: Loading Warehouse     39
Worker 004: Loading Warehouse     25 done
Worker 004: Loading Warehouse     40
Worker 000: Loading Warehouse     31 done
Worker 009: Loading Warehouse     33 done
Worker 005: Loading Warehouse     37 done
Worker 004: Loading Warehouse     40 done
Worker 008: Loading Warehouse     34 done
Worker 007: Loading Warehouse     36 done
Worker 003: Loading Warehouse     35 done
Worker 006: Loading Warehouse     32 done
Worker 001: Loading Warehouse     38 done
Worker 002: Loading Warehouse     39 done
# ------------------------------------------------------------
# Loading SQL file ./sql.common/indexCreates.sql
# ------------------------------------------------------------
alter table bmsql_warehouse add constraint bmsql_warehouse_pkey
primary key (w_id);
alter table bmsql_district add constraint bmsql_district_pkey
primary key (d_w_id, d_id);
alter table bmsql_customer add constraint bmsql_customer_pkey
primary key (c_w_id, c_d_id, c_id);
create index bmsql_customer_idx1
on  bmsql_customer (c_w_id, c_d_id, c_last, c_first);
alter table bmsql_oorder add constraint bmsql_oorder_pkey
primary key (o_w_id, o_d_id, o_id);
create unique index bmsql_oorder_idx1
on  bmsql_oorder (o_w_id, o_d_id, o_carrier_id, o_id);
alter table bmsql_new_order add constraint bmsql_new_order_pkey
primary key (no_w_id, no_d_id, no_o_id);
alter table bmsql_order_line add constraint bmsql_order_line_pkey
primary key (ol_w_id, ol_d_id, ol_o_id, ol_number);
alter table bmsql_stock add constraint bmsql_stock_pkey
primary key (s_w_id, s_i_id);
alter table bmsql_item add constraint bmsql_item_pkey
primary key (i_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.common/foreignKeys.sql
# ------------------------------------------------------------
alter table bmsql_district add constraint d_warehouse_fkey
foreign key (d_w_id)
references bmsql_warehouse (w_id);
alter table bmsql_customer add constraint c_district_fkey
foreign key (c_w_id, c_d_id)
references bmsql_district (d_w_id, d_id);
alter table bmsql_history add constraint h_customer_fkey
foreign key (h_c_w_id, h_c_d_id, h_c_id)
references bmsql_customer (c_w_id, c_d_id, c_id);
alter table bmsql_history add constraint h_district_fkey
foreign key (h_w_id, h_d_id)
references bmsql_district (d_w_id, d_id);
alter table bmsql_new_order add constraint no_order_fkey
foreign key (no_w_id, no_d_id, no_o_id)
references bmsql_oorder (o_w_id, o_d_id, o_id);
alter table bmsql_oorder add constraint o_customer_fkey
foreign key (o_w_id, o_d_id, o_c_id)
references bmsql_customer (c_w_id, c_d_id, c_id);
alter table bmsql_order_line add constraint ol_order_fkey
foreign key (ol_w_id, ol_d_id, ol_o_id)
references bmsql_oorder (o_w_id, o_d_id, o_id);
alter table bmsql_order_line add constraint ol_stock_fkey
foreign key (ol_supply_w_id, ol_i_id)
references bmsql_stock (s_w_id, s_i_id);
alter table bmsql_stock add constraint s_warehouse_fkey
foreign key (s_w_id)
references bmsql_warehouse (w_id);
alter table bmsql_stock add constraint s_item_fkey
foreign key (s_i_id)
references bmsql_item (i_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.oracle/extraHistID.sql
# ------------------------------------------------------------
-- ----
-- Extra Schema objects/definitions for history.hist_id in Oracle
-- ----
-- ----
--      This is an extra column not present in the TPC-C
--      specs. It is useful for replication systems like
--      Bucardo and Slony-I, which like to have a primary
--      key on a table. It is an auto-increment or serial
--      column type. The definition below is compatible
--      with Oracle 11g, using the sequence in a trigger.
-- ----
-- Adjust the sequence above the current max(hist_id)
alter sequence bmsql_hist_id_seq increment by 30000;
declare
n integer;
i integer;
dummy integer;
begin
select max(hist_id) into n from bmsql_history;
i := 0;
while i < = n loop
select bmsql_hist_id_seq.nextval into dummy from dual;
i := i + 30000;
end loop;
end;
;
alter sequence bmsql_hist_id_seq increment by 1;
-- Create a trigger that forces hist_id to be hist_id_seq.nextval
create trigger bmsql_history_before_insert
before insert on bmsql_history
for each row
begin
if :new.hist_id is null then
select bmsql_hist_id_seq.nextval into :new.hist_id from dual;
end if;
end;
;
-- Add a primary key history(hist_id)
alter table bmsql_history add primary key (hist_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.common/buildFinish.sql
# ------------------------------------------------------------
-- ----
-- Extra commands to run after the tables are created, loaded,
-- indexes built and extra's created.
-- ----

执行压测

[oracle@shard1 run]$ ./runBenchmark.sh props.ora
10:55:01,136 [main] INFO   jTPCC : Term-00,
10:55:01,142 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:55:01,142 [main] INFO   jTPCC : Term-00,      BenchmarkSQL v5.0
10:55:01,142 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:55:01,143 [main] INFO   jTPCC : Term-00,  (c) 2003, Raul Barbosa
10:55:01,143 [main] INFO   jTPCC : Term-00,  (c) 2004-2016, Denis Lussier
10:55:01,147 [main] INFO   jTPCC : Term-00,  (c) 2016, Jan Wieck
10:55:01,147 [main] INFO   jTPCC : Term-00, +-------------------------------------------------------------+
10:55:01,147 [main] INFO   jTPCC : Term-00,
10:55:01,147 [main] INFO   jTPCC : Term-00, db=oracle
10:55:01,148 [main] INFO   jTPCC : Term-00, driver=oracle.jdbc.driver.OracleDriver
10:55:01,148 [main] INFO   jTPCC : Term-00, conn=jdbc:oracle:thin:@localhost:1521:shardcat
10:55:01,148 [main] INFO   jTPCC : Term-00, user=tpcc
10:55:01,148 [main] INFO   jTPCC : Term-00,
10:55:01,148 [main] INFO   jTPCC : Term-00, warehouses=40
10:55:01,149 [main] INFO   jTPCC : Term-00, terminals=10
10:55:01,151 [main] INFO   jTPCC : Term-00, runMins=10
10:55:01,152 [main] INFO   jTPCC : Term-00, limitTxnsPerMin=0
10:55:01,152 [main] INFO   jTPCC : Term-00, terminalWarehouseFixed=true
10:55:01,152 [main] INFO   jTPCC : Term-00,
10:55:01,152 [main] INFO   jTPCC : Term-00, newOrderWeight=45
10:55:01,152 [main] INFO   jTPCC : Term-00, paymentWeight=43
10:55:01,152 [main] INFO   jTPCC : Term-00, orderStatusWeight=4
10:55:01,153 [main] INFO   jTPCC : Term-00, deliveryWeight=4
10:55:01,153 [main] INFO   jTPCC : Term-00, stockLevelWeight=4
10:55:01,153 [main] INFO   jTPCC : Term-00,
10:55:01,153 [main] INFO   jTPCC : Term-00, resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS
10:55:01,154 [main] INFO   jTPCC : Term-00, osCollectorScript=./misc/os_collector_linux.py
10:55:01,154 [main] INFO   jTPCC : Term-00,
10:55:01,455 [main] INFO   jTPCC : Term-00, copied props.ora to my_result_2022-11-14_105501/run.properties
10:55:01,456 [main] INFO   jTPCC : Term-00, created my_result_2022-11-14_105501/data/runInfo.csv for runID 5
10:55:01,456 [main] INFO   jTPCC : Term-00, writing per transaction results to my_result_2022-11-14_105501/data/result.csv
10:55:01,457 [main] INFO   jTPCC : Term-00, osCollectorScript=./misc/os_collector_linux.py
10:55:01,457 [main] INFO   jTPCC : Term-00, osCollectorInterval=1
10:55:01,458 [main] INFO   jTPCC : Term-00, osCollectorSSHAddr=null
10:55:01,458 [main] INFO   jTPCC : Term-00, osCollectorDevices=null
10:55:01,543 [main] INFO   jTPCC : Term-00,
10:55:02,053 [main] INFO   jTPCC : Term-00, C value for C_LAST during load: 74
10:55:02,054 [main] INFO   jTPCC : Term-00, C value for C_LAST this run:    175
10:55:02,054 [main] INFO   jTPCC : Term-00,
Term-00, Running Average tpmTOTAL: 33105.98    Current tpmTOTAL: 2183436    Memory Usage: 39MB / 196MB
11:05:02,526 [Thread-6] INFO   jTPCC : Term-00,
11:05:02,526 [Thread-6] INFO   jTPCC : Term-00,
11:05:02,527 [Thread-6] INFO   jTPCC : Term-00, Measured tpmC (NewOrders) = 14913.98
11:05:02,527 [Thread-6] INFO   jTPCC : Term-00, Measured tpmTOTAL = 33102.08
11:05:02,527 [Thread-6] INFO   jTPCC : Term-00, Session Start     = 2022-11-14 10:55:02
11:05:02,528 [Thread-6] INFO   jTPCC : Term-00, Session End       = 2022-11-14 11:05:02
11:05:02,528 [Thread-6] INFO   jTPCC : Term-00, Transaction Count = 331069

清理数据

[oracle@shard1 run]$ ./runDatabaseDestroy.sh props.ora
# ------------------------------------------------------------
# Loading SQL file ./sql.common/tableDrops.sql
# ------------------------------------------------------------
drop table bmsql_config;
drop table bmsql_new_order;
drop table bmsql_order_line;
drop table bmsql_oorder;
drop table bmsql_history;
drop table bmsql_customer;
drop table bmsql_stock;
drop table bmsql_item;
drop table bmsql_district;
drop table bmsql_warehouse;
drop sequence bmsql_hist_id_seq;

sysbench压测Oracle 11g

sysbench是一款测试工具主要包括以下几种方式的测试:
1、cpu性能
2、磁盘io性能
3、调度程式性能
4、内存分配及传输速度
5、POSIX线程性能
6、数据库性能(OLTP基准测试)现在sysbench主要支持 MySQL,pgsql,oracle 这3种数据库,默认支持MySQL,想要支持pgsql和oracle需要在编译时指定参数

环境介绍

名称	             版本
sysbench软件版本	sysbench 0.5
操作系统	        oracle linux 7.1
Oracle	          11.2.0.4

安装
1.安装依赖包

[root@shard1 /]# yum -y install make m4  autoconf automake libtool pkgconfig libaio-devel

2.解压sysbench软件

[root@sjjh /]# unzip sysbench-0.5.zip
Archive:  sysbench-0.5.zip
b23a7db377916e424cb555108dc5f784f615993b
   creating: sysbench-0.5/
  inflating: sysbench-0.5/.gitignore
  inflating: sysbench-0.5/.travis.yml
  inflating: sysbench-0.5/COPYING
  inflating: sysbench-0.5/ChangeLog
  inflating: sysbench-0.5/Makefile.am
  inflating: sysbench-0.5/README-WIN.txt
  inflating: sysbench-0.5/README.md
 extracting: sysbench-0.5/TODO
  inflating: sysbench-0.5/autogen.sh
   creating: sysbench-0.5/config/
  inflating: sysbench-0.5/config/config.rpath
  inflating: sysbench-0.5/configure.ac
   creating: sysbench-0.5/doc/
  inflating: sysbench-0.5/doc/Makefile.am
  inflating: sysbench-0.5/doc/manual.xml
   creating: sysbench-0.5/doc/xsl/
  inflating: sysbench-0.5/doc/xsl/Makefile.am
  inflating: sysbench-0.5/doc/xsl/catalog.xml.in
  inflating: sysbench-0.5/doc/xsl/xhtml-chunk.xsl
  inflating: sysbench-0.5/doc/xsl/xhtml-common.xsl
  inflating: sysbench-0.5/doc/xsl/xhtml.xsl
  inflating: sysbench-0.5/install-sh
   creating: sysbench-0.5/m4/
  inflating: sysbench-0.5/m4/ac_check_aio.m4
  inflating: sysbench-0.5/m4/ac_check_mysqlr.m4
  inflating: sysbench-0.5/m4/ac_check_pgsql.m4
  inflating: sysbench-0.5/m4/ac_lua_devel.m4
  inflating: sysbench-0.5/m4/acx_pthread.m4
  inflating: sysbench-0.5/m4/ax_check_docbook.m4
  inflating: sysbench-0.5/m4/extensions.m4
  inflating: sysbench-0.5/m4/lib-ld.m4
  inflating: sysbench-0.5/m4/lib-link.m4
  inflating: sysbench-0.5/m4/lib-prefix.m4
  inflating: sysbench-0.5/missing
  inflating: sysbench-0.5/mkinstalldirs
   creating: sysbench-0.5/sysbench/
  inflating: sysbench-0.5/sysbench/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/Makefile.am
  inflating: sysbench-0.5/sysbench/db_driver.c
  inflating: sysbench-0.5/sysbench/db_driver.h
   creating: sysbench-0.5/sysbench/drivers/
  inflating: sysbench-0.5/sysbench/drivers/Makefile.am
   creating: sysbench-0.5/sysbench/drivers/attachsql/
  inflating: sysbench-0.5/sysbench/drivers/attachsql/Makefile.am
  inflating: sysbench-0.5/sysbench/drivers/attachsql/drv_attachsql.c
   creating: sysbench-0.5/sysbench/drivers/drizzle/
  inflating: sysbench-0.5/sysbench/drivers/drizzle/Makefile.am
  inflating: sysbench-0.5/sysbench/drivers/drizzle/drv_drizzle.c
   creating: sysbench-0.5/sysbench/drivers/mysql/
  inflating: sysbench-0.5/sysbench/drivers/mysql/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/drivers/mysql/Makefile.am
  inflating: sysbench-0.5/sysbench/drivers/mysql/drv_mysql.c
   creating: sysbench-0.5/sysbench/drivers/oracle/
  inflating: sysbench-0.5/sysbench/drivers/oracle/Makefile.am
  inflating: sysbench-0.5/sysbench/drivers/oracle/drv_oracle.c
   creating: sysbench-0.5/sysbench/drivers/pgsql/
  inflating: sysbench-0.5/sysbench/drivers/pgsql/Makefile.am
  inflating: sysbench-0.5/sysbench/drivers/pgsql/drv_pgsql.c
  inflating: sysbench-0.5/sysbench/sb_barrier.c
  inflating: sysbench-0.5/sysbench/sb_barrier.h
  inflating: sysbench-0.5/sysbench/sb_list.h
  inflating: sysbench-0.5/sysbench/sb_logger.c
  inflating: sysbench-0.5/sysbench/sb_logger.h
  inflating: sysbench-0.5/sysbench/sb_options.c
  inflating: sysbench-0.5/sysbench/sb_options.h
  inflating: sysbench-0.5/sysbench/sb_percentile.c
  inflating: sysbench-0.5/sysbench/sb_percentile.h
  inflating: sysbench-0.5/sysbench/sb_timer.c
  inflating: sysbench-0.5/sysbench/sb_timer.h
  inflating: sysbench-0.5/sysbench/sb_win.c
  inflating: sysbench-0.5/sysbench/sb_win.h
   creating: sysbench-0.5/sysbench/scripting/
  inflating: sysbench-0.5/sysbench/scripting/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/scripting/Makefile.am
   creating: sysbench-0.5/sysbench/scripting/lua/
  inflating: sysbench-0.5/sysbench/scripting/lua/COPYRIGHT
  inflating: sysbench-0.5/sysbench/scripting/lua/Makefile.am
  inflating: sysbench-0.5/sysbench/scripting/lua/README
   creating: sysbench-0.5/sysbench/scripting/lua/src/
  inflating: sysbench-0.5/sysbench/scripting/lua/src/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/scripting/lua/src/Makefile.am
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lapi.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lapi.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lauxlib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lauxlib.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lbaselib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lcode.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lcode.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ldblib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ldebug.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ldebug.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ldo.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ldo.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ldump.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lfunc.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lfunc.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lgc.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lgc.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/linit.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/liolib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/llex.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/llex.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/llimits.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lmathlib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lmem.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lmem.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/loadlib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lobject.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lobject.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lopcodes.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lopcodes.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/loslib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lparser.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lparser.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lstate.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lstate.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lstring.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lstring.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lstrlib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ltable.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ltable.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ltablib.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ltm.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/ltm.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lua.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/luaconf.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lualib.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lundump.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lundump.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lvm.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lvm.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lzio.c
  inflating: sysbench-0.5/sysbench/scripting/lua/src/lzio.h
  inflating: sysbench-0.5/sysbench/scripting/lua/src/print.c
  inflating: sysbench-0.5/sysbench/scripting/sb_script.c
  inflating: sysbench-0.5/sysbench/scripting/sb_script.h
  inflating: sysbench-0.5/sysbench/scripting/script_lua.c
  inflating: sysbench-0.5/sysbench/scripting/script_lua.h
  inflating: sysbench-0.5/sysbench/sysbench.c
  inflating: sysbench-0.5/sysbench/sysbench.h
   creating: sysbench-0.5/sysbench/tests/
  inflating: sysbench-0.5/sysbench/tests/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/tests/Makefile.am
   creating: sysbench-0.5/sysbench/tests/cpu/
  inflating: sysbench-0.5/sysbench/tests/cpu/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/tests/cpu/Makefile.am
  inflating: sysbench-0.5/sysbench/tests/cpu/sb_cpu.c
   creating: sysbench-0.5/sysbench/tests/db/
  inflating: sysbench-0.5/sysbench/tests/db/Makefile.am
  inflating: sysbench-0.5/sysbench/tests/db/bulk_insert.lua
  inflating: sysbench-0.5/sysbench/tests/db/common.lua
  inflating: sysbench-0.5/sysbench/tests/db/delete.lua
  inflating: sysbench-0.5/sysbench/tests/db/insert.lua
  inflating: sysbench-0.5/sysbench/tests/db/oltp.lua
  inflating: sysbench-0.5/sysbench/tests/db/oltp_simple.lua
  inflating: sysbench-0.5/sysbench/tests/db/parallel_prepare.lua
  inflating: sysbench-0.5/sysbench/tests/db/select.lua
  inflating: sysbench-0.5/sysbench/tests/db/select_random_points.lua
  inflating: sysbench-0.5/sysbench/tests/db/select_random_ranges.lua
  inflating: sysbench-0.5/sysbench/tests/db/update_index.lua
  inflating: sysbench-0.5/sysbench/tests/db/update_non_index.lua
   creating: sysbench-0.5/sysbench/tests/fileio/
  inflating: sysbench-0.5/sysbench/tests/fileio/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/tests/fileio/Makefile.am
  inflating: sysbench-0.5/sysbench/tests/fileio/crc32.c
  inflating: sysbench-0.5/sysbench/tests/fileio/crc32.h
  inflating: sysbench-0.5/sysbench/tests/fileio/crc32tbl.h
  inflating: sysbench-0.5/sysbench/tests/fileio/sb_fileio.c
   creating: sysbench-0.5/sysbench/tests/memory/
  inflating: sysbench-0.5/sysbench/tests/memory/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/tests/memory/Makefile.am
  inflating: sysbench-0.5/sysbench/tests/memory/sb_memory.c
   creating: sysbench-0.5/sysbench/tests/mutex/
  inflating: sysbench-0.5/sysbench/tests/mutex/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/tests/mutex/Makefile.am
  inflating: sysbench-0.5/sysbench/tests/mutex/sb_mutex.c
  inflating: sysbench-0.5/sysbench/tests/sb_cpu.h
  inflating: sysbench-0.5/sysbench/tests/sb_fileio.h
  inflating: sysbench-0.5/sysbench/tests/sb_memory.h
  inflating: sysbench-0.5/sysbench/tests/sb_mutex.h
  inflating: sysbench-0.5/sysbench/tests/sb_threads.h
   creating: sysbench-0.5/sysbench/tests/threads/
  inflating: sysbench-0.5/sysbench/tests/threads/CMakeLists.txt
  inflating: sysbench-0.5/sysbench/tests/threads/Makefile.am
  inflating: sysbench-0.5/sysbench/tests/threads/sb_threads.c
   creating: sysbench-0.5/tests/
  inflating: sysbench-0.5/tests/Makefile.am
  inflating: sysbench-0.5/tests/README.md
   creating: sysbench-0.5/tests/include/
  inflating: sysbench-0.5/tests/include/config.sh.in
  inflating: sysbench-0.5/tests/include/drv_common.sh
  inflating: sysbench-0.5/tests/include/script_oltp_common.sh
   creating: sysbench-0.5/tests/t/
 extracting: sysbench-0.5/tests/t/1st.t
  inflating: sysbench-0.5/tests/t/api_basic.t
  inflating: sysbench-0.5/tests/t/api_rand.t
  inflating: sysbench-0.5/tests/t/api_sql.t
  inflating: sysbench-0.5/tests/t/cleanup.t
  inflating: sysbench-0.5/tests/t/commands.t
  inflating: sysbench-0.5/tests/t/drivers.t
  inflating: sysbench-0.5/tests/t/drv_mysql.t
  inflating: sysbench-0.5/tests/t/drv_pgsql.t
  inflating: sysbench-0.5/tests/t/help.t
  inflating: sysbench-0.5/tests/t/help_drv_mysql.t
  inflating: sysbench-0.5/tests/t/help_drv_pgsql.t
  inflating: sysbench-0.5/tests/t/prepare.t
  inflating: sysbench-0.5/tests/t/run.t
  inflating: sysbench-0.5/tests/t/script_oltp_mysql.t
  inflating: sysbench-0.5/tests/t/script_oltp_pgsql.t
  inflating: sysbench-0.5/tests/t/test_cpu.t
  inflating: sysbench-0.5/tests/t/test_fileio.t
  inflating: sysbench-0.5/tests/t/test_memory.t
  inflating: sysbench-0.5/tests/t/test_mutex.t
  inflating: sysbench-0.5/tests/t/test_threads.t
  inflating: sysbench-0.5/tests/t/tests.t
  inflating: sysbench-0.5/tests/t/version.t
  inflating: sysbench-0.5/tests/test_run.sh

3.配置环境变量,使用实际的ORACLE_HOME目录

export CC=cc
export CXX=c++
export CFLAGS="-m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public"
export CXXFLAGS="$CFLAGS"
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db
export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.4/db/lib

[root@sjjh /]# export CC=cc
[root@sjjh /]# export CXX=c++
[root@sjjh /]# export CFLAGS="-m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public"
[root@sjjh /]# export CXXFLAGS="$CFLAGS"
[root@sjjh /]# export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db
[root@sjjh /]# export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.4/db/lib

4.运行autogen.sh,生成configure目录

[root@sjjh sysbench-0.5]# ./autogen.sh
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake -c --foreign --add-missing'
configure.ac:25: installing `config/compile'
configure.ac:11: installing `config/config.guess'
configure.ac:11: installing `config/config.sub'
configure.ac:16: installing `config/install-sh'
configure.ac:16: installing `config/missing'
sysbench/Makefile.am: installing `config/depcomp'
./autogen.sh: running `autoconf'
Libtoolized with: libtoolize (GNU libtool) 2.2.6b
Automade with: automake (GNU automake) 1.11.1
Configured with: autoconf (GNU Autoconf) 2.63

5.编译参数配置,加上–with-oracle

[root@sjjh sysbench-0.5]# ./configure --with-oracle --libdir=/u01/app/oracle/product/11.2.0.4/db/lib --without-mysql
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking how to run the C preprocessor... cc -E
checking whether cc understands -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether __SUNPRO_C is declared... no
checking "C Compiler version"... "cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)"
checking whether to compile with MySQL support... (cached) no
checking whether to compile with Drizzle support... (cached) yes
checking whether to compile with libattachsql support... (cached) yes
checking whether to compile with Oracle support... (cached) yes
checking whether to compile with PostgreSQL support... (cached) no
checking whether to compile with Lua support... (cached) yes
checking whether SHM_HUGETLB is declared... yes
checking whether O_SYNC is declared... yes
checking for xsltproc... xsltproc
checking whether xsltproc works... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for sqrt in -lm... yes
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for libdrizzle... no
checking for libattachsql... no
checking libaio.h usability... yes
checking libaio.h presence... yes
checking for libaio.h... yes
checking for io_queue_init in -laio... yes
checking if io_getevents() has an old interface... no
checking for malloc in -lumem... no
checking for malloc in -lmtmalloc... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/aio.h usability... no
checking sys/aio.h presence... no
checking for sys/aio.h... no
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking thread.h usability... no
checking thread.h presence... no
checking for thread.h... no
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of size_t... 8
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking whether clock_gettime is declared... yes
checking for library containing clock_gettime... -lrt
checking for alarm... yes
checking for directio... no
checking for fdatasync... yes
checking for gettimeofday... yes
checking for lrand48... yes
checking for drand48... yes
checking for memalign... yes
checking for memset... yes
checking for mkstemp... yes
checking for popen... yes
checking for posix_memalign... yes
checking for pthread_yield... yes
checking for _setjmp... yes
checking for setvbuf... yes
checking for sqrt... yes
checking for strdup... yes
checking for thr_setconcurrency... no
checking for valloc... yes
checking for pthread_once... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/xsl/Makefile
config.status: creating doc/xsl/catalog.xml
config.status: creating doc/Makefile
config.status: creating sysbench/Makefile
config.status: creating sysbench/drivers/Makefile
config.status: creating sysbench/drivers/mysql/Makefile
config.status: creating sysbench/drivers/drizzle/Makefile
config.status: creating sysbench/drivers/oracle/Makefile
config.status: creating sysbench/drivers/pgsql/Makefile
config.status: creating sysbench/drivers/attachsql/Makefile
config.status: creating sysbench/tests/Makefile
config.status: creating sysbench/tests/cpu/Makefile
config.status: creating sysbench/tests/fileio/Makefile
config.status: creating sysbench/tests/memory/Makefile
config.status: creating sysbench/tests/threads/Makefile
config.status: creating sysbench/tests/mutex/Makefile
config.status: creating sysbench/tests/db/Makefile
config.status: creating sysbench/scripting/Makefile
config.status: creating sysbench/scripting/lua/Makefile
config.status: creating sysbench/scripting/lua/src/Makefile
config.status: creating tests/Makefile
config.status: creating tests/include/config.sh
config.status: creating config/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

6.编译及安装,注意这里要带上oracle的一个so

[oracle@sjjh db]$ pwd
/u01/app/oracle/product/11.2.0.4/db
[oracle@sjjh db]$ cd /u01/app/oracle/product/11.2.0.4/db/lib
[oracle@sjjh lib]$ ls -lrt libclntsh.so
lrwxrwxrwx. 1 oracle oinstall 57 Sep 18 10:06 libclntsh.so -> /u01/app/oracle/product/11.2.0.4/db/lib/libclntsh.so.11.1

[root@sjjh sysbench-0.5]# make ORA_LIBS=/u01/app/oracle/product/11.2.0.4/db/lib/libclntsh.so -j 4
Making all in doc
make[1]: Entering directory `/sysbench-0.5/doc'
Making all in xsl
make[2]: Entering directory `/sysbench-0.5/doc/xsl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/sysbench-0.5/doc/xsl'
make[2]: Entering directory `/sysbench-0.5/doc'
XML_CATALOG_FILES=./xsl/catalog.xml xsltproc --nonet -o manual.html ./xsl/xhtml.xsl ../doc/manual.xml
make[2]: Leaving directory `/sysbench-0.5/doc'
make[1]: Leaving directory `/sysbench-0.5/doc'
Making all in sysbench
make[1]: Entering directory `/sysbench-0.5/sysbench'
Making all in drivers
make[2]: Entering directory `/sysbench-0.5/sysbench/drivers'
Making all in oracle
make[3]: Entering directory `/sysbench-0.5/sysbench/drivers/oracle'
cc -DHAVE_CONFIG_H -I. -I../../../config  -Iyes/rdbms/demo -Iyes/rdbms/public -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsboracle_a-drv_oracle.o -MD -MP -MF .deps/libsboracle_a-drv_oracle.Tpo -c -o libsboracle_a-drv_oracle.o `test -f 'drv_oracle.c' || echo './'`drv_oracle.c
In file included from /u01/app/oracle/product/11.2.0.4/db/rdbms/public/oci.h:3045,
                 from drv_oracle.c:30:
/u01/app/oracle/product/11.2.0.4/db/rdbms/public/ociap.h:10795: warning: function declaration isn’t a prototype
/u01/app/oracle/product/11.2.0.4/db/rdbms/public/ociap.h:10801: warning: function declaration isn’t a prototype
drv_oracle.c: In function ‘ora_drv_init’:
drv_oracle.c:243: warning: pointer targets in assignment differ in signedness
drv_oracle.c: In function ‘ora_drv_connect’:
drv_oracle.c:310: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
drv_oracle.c: In function ‘ora_drv_prepare’:
drv_oracle.c:472: warning: pointer targets in passing argument 3 of ‘OCIStmtPrepare’ differ in signedness
/u01/app/oracle/product/11.2.0.4/db/rdbms/public/ociap.h:7163: note: expected ‘const OraText *’ but argument is of type ‘char *’
drv_oracle.c: In function ‘ora_drv_store_results’:
drv_oracle.c:852: warning: pointer targets in assignment differ in signedness
drv_oracle.c:855: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
drv_oracle.c:855: note: expected ‘char *’ but argument is of type ‘text *’
drv_oracle.c:855: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
drv_oracle.c:855: note: expected ‘const char *’ but argument is of type ‘text *’
drv_oracle.c: At top level:
drv_oracle.c:1077: warning: no previous prototype for ‘get_db_bind_type’
mv -f .deps/libsboracle_a-drv_oracle.Tpo .deps/libsboracle_a-drv_oracle.Po
rm -f libsboracle.a
ar cru libsboracle.a libsboracle_a-drv_oracle.o
ranlib libsboracle.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/drivers/oracle'
make[3]: Entering directory `/sysbench-0.5/sysbench/drivers'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/sysbench-0.5/sysbench/drivers'
make[2]: Leaving directory `/sysbench-0.5/sysbench/drivers'
Making all in tests
make[2]: Entering directory `/sysbench-0.5/sysbench/tests'
Making all in cpu
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/cpu'
cc -DHAVE_CONFIG_H -I. -I../../../config  -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbcpu_a-sb_cpu.o -MD -MP -MF .deps/libsbcpu_a-sb_cpu.Tpo -c -o libsbcpu_a-sb_cpu.o `test -f 'sb_cpu.c' || echo './'`sb_cpu.c
mv -f .deps/libsbcpu_a-sb_cpu.Tpo .deps/libsbcpu_a-sb_cpu.Po
rm -f libsbcpu.a
ar cru libsbcpu.a libsbcpu_a-sb_cpu.o
ranlib libsbcpu.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/cpu'
Making all in fileio
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/fileio'
cc -DHAVE_CONFIG_H -I. -I../../../config  -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbfileio_a-sb_fileio.o -MD -MP -MF .deps/libsbfileio_a-sb_fileio.Tpo -c -o libsbfileio_a-sb_fileio.o `test -f 'sb_fileio.c' || echo './'`sb_fileio.c
cc -DHAVE_CONFIG_H -I. -I../../../config  -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbfileio_a-crc32.o -MD -MP -MF .deps/libsbfileio_a-crc32.Tpo -c -o libsbfileio_a-crc32.o `test -f 'crc32.c' || echo './'`crc32.c
mv -f .deps/libsbfileio_a-crc32.Tpo .deps/libsbfileio_a-crc32.Po
mv -f .deps/libsbfileio_a-sb_fileio.Tpo .deps/libsbfileio_a-sb_fileio.Po
rm -f libsbfileio.a
ar cru libsbfileio.a libsbfileio_a-sb_fileio.o libsbfileio_a-crc32.o
ranlib libsbfileio.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/fileio'
Making all in memory
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/memory'
cc -DHAVE_CONFIG_H -I. -I../../../config  -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbmemory_a-sb_memory.o -MD -MP -MF .deps/libsbmemory_a-sb_memory.Tpo -c -o libsbmemory_a-sb_memory.o `test -f 'sb_memory.c' || echo './'`sb_memory.c
mv -f .deps/libsbmemory_a-sb_memory.Tpo .deps/libsbmemory_a-sb_memory.Po
rm -f libsbmemory.a
ar cru libsbmemory.a libsbmemory_a-sb_memory.o
ranlib libsbmemory.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/memory'
Making all in threads
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/threads'
cc -DHAVE_CONFIG_H -I. -I../../../config  -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbthreads_a-sb_threads.o -MD -MP -MF .deps/libsbthreads_a-sb_threads.Tpo -c -o libsbthreads_a-sb_threads.o `test -f 'sb_threads.c' || echo './'`sb_threads.c
mv -f .deps/libsbthreads_a-sb_threads.Tpo .deps/libsbthreads_a-sb_threads.Po
rm -f libsbthreads.a
ar cru libsbthreads.a libsbthreads_a-sb_threads.o
ranlib libsbthreads.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/threads'
Making all in mutex
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/mutex'
cc -DHAVE_CONFIG_H -I. -I../../../config  -I../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbmutex_a-sb_mutex.o -MD -MP -MF .deps/libsbmutex_a-sb_mutex.Tpo -c -o libsbmutex_a-sb_mutex.o `test -f 'sb_mutex.c' || echo './'`sb_mutex.c
mv -f .deps/libsbmutex_a-sb_mutex.Tpo .deps/libsbmutex_a-sb_mutex.Po
rm -f libsbmutex.a
ar cru libsbmutex.a libsbmutex_a-sb_mutex.o
ranlib libsbmutex.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/mutex'
Making all in db
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/db'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/db'
make[3]: Entering directory `/sysbench-0.5/sysbench/tests'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests'
make[2]: Leaving directory `/sysbench-0.5/sysbench/tests'
Making all in scripting
make[2]: Entering directory `/sysbench-0.5/sysbench/scripting'
Making all in lua
make[3]: Entering directory `/sysbench-0.5/sysbench/scripting/lua'
Making all in src
make[4]: Entering directory `/sysbench-0.5/sysbench/scripting/lua/src'
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lapi.o -MD -MP -MF .deps/lapi.Tpo -c -o lapi.o lapi.c
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lcode.o -MD -MP -MF .deps/lcode.Tpo -c -o lcode.o lcode.c
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ldebug.o -MD -MP -MF .deps/ldebug.Tpo -c -o ldebug.o ldebug.c
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ldo.o -MD -MP -MF .deps/ldo.Tpo -c -o ldo.o ldo.c
mv -f .deps/ldebug.Tpo .deps/ldebug.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ldump.o -MD -MP -MF .deps/ldump.Tpo -c -o ldump.o ldump.c
mv -f .deps/ldo.Tpo .deps/ldo.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lfunc.o -MD -MP -MF .deps/lfunc.Tpo -c -o lfunc.o lfunc.c
mv -f .deps/lcode.Tpo .deps/lcode.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lgc.o -MD -MP -MF .deps/lgc.Tpo -c -o lgc.o lgc.c
mv -f .deps/ldump.Tpo .deps/ldump.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT llex.o -MD -MP -MF .deps/llex.Tpo -c -o llex.o llex.c
mv -f .deps/lapi.Tpo .deps/lapi.Po
mv -f .deps/lfunc.Tpo .deps/lfunc.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lmem.o -MD -MP -MF .deps/lmem.Tpo -c -o lmem.o lmem.c
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lobject.o -MD -MP -MF .deps/lobject.Tpo -c -o lobject.o lobject.c
mv -f .deps/lmem.Tpo .deps/lmem.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lopcodes.o -MD -MP -MF .deps/lopcodes.Tpo -c -o lopcodes.o lopcodes.c
mv -f .deps/lopcodes.Tpo .deps/lopcodes.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lparser.o -MD -MP -MF .deps/lparser.Tpo -c -o lparser.o lparser.c
mv -f .deps/lobject.Tpo .deps/lobject.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lstate.o -MD -MP -MF .deps/lstate.Tpo -c -o lstate.o lstate.c
mv -f .deps/llex.Tpo .deps/llex.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lstring.o -MD -MP -MF .deps/lstring.Tpo -c -o lstring.o lstring.c
mv -f .deps/lstate.Tpo .deps/lstate.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ltable.o -MD -MP -MF .deps/ltable.Tpo -c -o ltable.o ltable.c
mv -f .deps/lgc.Tpo .deps/lgc.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ltm.o -MD -MP -MF .deps/ltm.Tpo -c -o ltm.o ltm.c
mv -f .deps/lstring.Tpo .deps/lstring.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lundump.o -MD -MP -MF .deps/lundump.Tpo -c -o lundump.o lundump.c
mv -f .deps/ltm.Tpo .deps/ltm.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lvm.o -MD -MP -MF .deps/lvm.Tpo -c -o lvm.o lvm.c
mv -f .deps/lundump.Tpo .deps/lundump.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lzio.o -MD -MP -MF .deps/lzio.Tpo -c -o lzio.o lzio.c
mv -f .deps/lparser.Tpo .deps/lparser.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lauxlib.o -MD -MP -MF .deps/lauxlib.Tpo -c -o lauxlib.o lauxlib.c
mv -f .deps/ltable.Tpo .deps/ltable.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lbaselib.o -MD -MP -MF .deps/lbaselib.Tpo -c -o lbaselib.o lbaselib.c
mv -f .deps/lzio.Tpo .deps/lzio.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ldblib.o -MD -MP -MF .deps/ldblib.Tpo -c -o ldblib.o ldblib.c
mv -f .deps/ldblib.Tpo .deps/ldblib.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT liolib.o -MD -MP -MF .deps/liolib.Tpo -c -o liolib.o liolib.c
mv -f .deps/lauxlib.Tpo .deps/lauxlib.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lmathlib.o -MD -MP -MF .deps/lmathlib.Tpo -c -o lmathlib.o lmathlib.c
mv -f .deps/lbaselib.Tpo .deps/lbaselib.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT loslib.o -MD -MP -MF .deps/loslib.Tpo -c -o loslib.o loslib.c
mv -f .deps/lvm.Tpo .deps/lvm.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT ltablib.o -MD -MP -MF .deps/ltablib.Tpo -c -o ltablib.o ltablib.c
mv -f .deps/loslib.Tpo .deps/loslib.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT lstrlib.o -MD -MP -MF .deps/lstrlib.Tpo -c -o lstrlib.o lstrlib.c
mv -f .deps/lmathlib.Tpo .deps/lmathlib.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT loadlib.o -MD -MP -MF .deps/loadlib.Tpo -c -o loadlib.o loadlib.c
mv -f .deps/ltablib.Tpo .deps/ltablib.Po
cc -DHAVE_CONFIG_H -I. -I../../../../config  -I../../../../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -Wno-bad-function-cast -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT linit.o -MD -MP -MF .deps/linit.Tpo -c -o linit.o linit.c
mv -f .deps/liolib.Tpo .deps/liolib.Po
mv -f .deps/linit.Tpo .deps/linit.Po
mv -f .deps/loadlib.Tpo .deps/loadlib.Po
mv -f .deps/lstrlib.Tpo .deps/lstrlib.Po
rm -f liblua.a
ar cru liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
make[4]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua/src'
make[4]: Entering directory `/sysbench-0.5/sysbench/scripting/lua'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua'
make[3]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua'
Making all in .
make[3]: Entering directory `/sysbench-0.5/sysbench/scripting'
cc -DHAVE_CONFIG_H -I. -I../../config  -I../../sysbench -I./lua/src -DDATA_PATH=\"/usr/local/share/sysbench\" -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbscript_a-sb_script.o -MD -MP -MF .deps/libsbscript_a-sb_script.Tpo -c -o libsbscript_a-sb_script.o `test -f 'sb_script.c' || echo './'`sb_script.c
cc -DHAVE_CONFIG_H -I. -I../../config  -I../../sysbench -I./lua/src -DDATA_PATH=\"/usr/local/share/sysbench\" -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT libsbscript_a-script_lua.o -MD -MP -MF .deps/libsbscript_a-script_lua.Tpo -c -o libsbscript_a-script_lua.o `test -f 'script_lua.c' || echo './'`script_lua.c
mv -f .deps/libsbscript_a-sb_script.Tpo .deps/libsbscript_a-sb_script.Po
mv -f .deps/libsbscript_a-script_lua.Tpo .deps/libsbscript_a-script_lua.Po
rm -f libsbscript.a
ar cru libsbscript.a libsbscript_a-sb_script.o libsbscript_a-script_lua.o
ranlib libsbscript.a
make[3]: Leaving directory `/sysbench-0.5/sysbench/scripting'
make[2]: Leaving directory `/sysbench-0.5/sysbench/scripting'
Making all in .
make[2]: Entering directory `/sysbench-0.5/sysbench'
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT sysbench.o -MD -MP -MF .deps/sysbench.Tpo -c -o sysbench.o sysbench.c
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT sb_timer.o -MD -MP -MF .deps/sb_timer.Tpo -c -o sb_timer.o sb_timer.c
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT sb_options.o -MD -MP -MF .deps/sb_options.Tpo -c -o sb_options.o sb_options.c
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT sb_logger.o -MD -MP -MF .deps/sb_logger.Tpo -c -o sb_logger.o sb_logger.c
mv -f .deps/sb_timer.Tpo .deps/sb_timer.Po
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT db_driver.o -MD -MP -MF .deps/db_driver.Tpo -c -o db_driver.o db_driver.c
mv -f .deps/sb_logger.Tpo .deps/sb_logger.Po
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT sb_percentile.o -MD -MP -MF .deps/sb_percentile.Tpo -c -o sb_percentile.o sb_percentile.c
mv -f .deps/sb_options.Tpo .deps/sb_options.Po
cc -DHAVE_CONFIG_H -I. -I../config  -I../sysbench -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -MT sb_barrier.o -MD -MP -MF .deps/sb_barrier.Tpo -c -o sb_barrier.o sb_barrier.c
mv -f .deps/sb_barrier.Tpo .deps/sb_barrier.Po
mv -f .deps/sb_percentile.Tpo .deps/sb_percentile.Po
mv -f .deps/sysbench.Tpo .deps/sysbench.Po
mv -f .deps/db_driver.Tpo .deps/db_driver.Po
/bin/sh ../libtool --tag=CC   --mode=link cc -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast   -Wstrict-prototypes -Wnested-externs -Winline   -funroll-loops  -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align        -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public       -L/u01/app/oracle/product/11.2.0.4/db/lib -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o sb_percentile.o sb_barrier.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/mutex/libsbmutex.a scripting/libsbscript.a     drivers/oracle/libsboracle.a /u01/app/oracle/product/11.2.0.4/db/lib/libclntsh.so scripting/lua/src/liblua.a -lm -ldl -lrt -laio -lm
libtool: link: cc -W -Wall -Wextra -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Winline -funroll-loops -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align -pthread -O2 -ggdb3 -m64 -I /u01/app/oracle/product/11.2.0.4/db/rdbms/public -o sysbench sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o sb_percentile.o sb_barrier.o /u01/app/oracle/product/11.2.0.4/db/lib/libclntsh.so  -L/u01/app/oracle/product/11.2.0.4/db/lib tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/mutex/libsbmutex.a scripting/libsbscript.a drivers/oracle/libsboracle.a scripting/lua/src/liblua.a -ldl -lrt -laio -lm -pthread
make[2]: Leaving directory `/sysbench-0.5/sysbench'
make[1]: Leaving directory `/sysbench-0.5/sysbench'
Making all in tests
make[1]: Entering directory `/sysbench-0.5/tests'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/sysbench-0.5/tests'
make[1]: Entering directory `/sysbench-0.5'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/sysbench-0.5'


[root@sjjh sysbench-0.5]# make install
Making install in doc
make[1]: Entering directory `/sysbench-0.5/doc'
Making install in xsl
make[2]: Entering directory `/sysbench-0.5/doc/xsl'
make[3]: Entering directory `/sysbench-0.5/doc/xsl'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/sysbench-0.5/doc/xsl'
make[2]: Leaving directory `/sysbench-0.5/doc/xsl'
make[2]: Entering directory `/sysbench-0.5/doc'
make[3]: Entering directory `/sysbench-0.5/doc'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/doc/sysbench" || /bin/mkdir -p "/usr/local/share/doc/sysbench"
 /usr/bin/install -c -m 644 manual.html '/usr/local/share/doc/sysbench'
make[3]: Leaving directory `/sysbench-0.5/doc'
make[2]: Leaving directory `/sysbench-0.5/doc'
make[1]: Leaving directory `/sysbench-0.5/doc'
Making install in sysbench
make[1]: Entering directory `/sysbench-0.5/sysbench'
Making install in drivers
make[2]: Entering directory `/sysbench-0.5/sysbench/drivers'
Making install in oracle
make[3]: Entering directory `/sysbench-0.5/sysbench/drivers/oracle'
make[4]: Entering directory `/sysbench-0.5/sysbench/drivers/oracle'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/drivers/oracle'
make[3]: Leaving directory `/sysbench-0.5/sysbench/drivers/oracle'
make[3]: Entering directory `/sysbench-0.5/sysbench/drivers'
make[4]: Entering directory `/sysbench-0.5/sysbench/drivers'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/drivers'
make[3]: Leaving directory `/sysbench-0.5/sysbench/drivers'
make[2]: Leaving directory `/sysbench-0.5/sysbench/drivers'
Making install in tests
make[2]: Entering directory `/sysbench-0.5/sysbench/tests'
Making install in cpu
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/cpu'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests/cpu'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests/cpu'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/cpu'
Making install in fileio
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/fileio'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests/fileio'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests/fileio'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/fileio'
Making install in memory
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/memory'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests/memory'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests/memory'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/memory'
Making install in threads
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/threads'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests/threads'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests/threads'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/threads'
Making install in mutex
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/mutex'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests/mutex'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests/mutex'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/mutex'
Making install in db
make[3]: Entering directory `/sysbench-0.5/sysbench/tests/db'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests/db'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/sysbench" || /bin/mkdir -p "/usr/local/share/sysbench"
 /usr/bin/install -c -m 644 common.lua delete.lua insert.lua bulk_insert.lua oltp.lua oltp_simple.lua parallel_prepare.lua select_random_points.lua select_random_ranges.lua select.lua update_index.lua update_non_index.lua '/usr/local/share/sysbench'
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests/db'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests/db'
make[3]: Entering directory `/sysbench-0.5/sysbench/tests'
make[4]: Entering directory `/sysbench-0.5/sysbench/tests'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/tests'
make[3]: Leaving directory `/sysbench-0.5/sysbench/tests'
make[2]: Leaving directory `/sysbench-0.5/sysbench/tests'
Making install in scripting
make[2]: Entering directory `/sysbench-0.5/sysbench/scripting'
Making install in lua
make[3]: Entering directory `/sysbench-0.5/sysbench/scripting/lua'
Making install in src
make[4]: Entering directory `/sysbench-0.5/sysbench/scripting/lua/src'
make[5]: Entering directory `/sysbench-0.5/sysbench/scripting/lua/src'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua/src'
make[4]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua/src'
make[4]: Entering directory `/sysbench-0.5/sysbench/scripting/lua'
make[5]: Entering directory `/sysbench-0.5/sysbench/scripting/lua'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua'
make[4]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua'
make[3]: Leaving directory `/sysbench-0.5/sysbench/scripting/lua'
Making install in .
make[3]: Entering directory `/sysbench-0.5/sysbench/scripting'
make[4]: Entering directory `/sysbench-0.5/sysbench/scripting'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/sysbench-0.5/sysbench/scripting'
make[3]: Leaving directory `/sysbench-0.5/sysbench/scripting'
make[2]: Leaving directory `/sysbench-0.5/sysbench/scripting'
Making install in .
make[2]: Entering directory `/sysbench-0.5/sysbench'
make[3]: Entering directory `/sysbench-0.5/sysbench'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /bin/sh ../libtool   --mode=install /usr/bin/install -c sysbench '/usr/local/bin'
libtool: install: /usr/bin/install -c sysbench /usr/local/bin/sysbench
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/sysbench-0.5/sysbench'
make[2]: Leaving directory `/sysbench-0.5/sysbench'
make[1]: Leaving directory `/sysbench-0.5/sysbench'
Making install in tests
make[1]: Entering directory `/sysbench-0.5/tests'
make[2]: Entering directory `/sysbench-0.5/tests'
make[2]: Nothing to be done for `install-exec-am'.
make    INSTALL_TO_DIR="/usr/local/share/sysbench/tests" install_test_files
make[3]: Entering directory `/sysbench-0.5/tests'
make[3]: Leaving directory `/sysbench-0.5/tests'
test -z "/usr/local/share/sysbench/tests" || /bin/mkdir -p "/usr/local/share/sysbench/tests"
 /usr/bin/install -c test_run.sh '/usr/local/share/sysbench/tests'
make[2]: Leaving directory `/sysbench-0.5/tests'
make[1]: Leaving directory `/sysbench-0.5/tests'
make[1]: Entering directory `/sysbench-0.5'
make[2]: Entering directory `/sysbench-0.5'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/sysbench-0.5'
make[1]: Leaving directory `/sysbench-0.5'


[root@shard1 sysbench-0.5]# which sysbench
/usr/local/bin/sysbench

7.设置sysbench到path环境变量

[root@sjjh sysbench-0.5]# echo "export PATH=$PATH:/usr/local/sysbench/bin">>/etc/profile
[root@sjjh sysbench-0.5]# source /etc/profile

8.验证安装是否成功

[root@sjjh ~]# su - oracle
[oracle@sjjh ~]$ sysbench
Missing required command argument.
Usage:
  sysbench --test= [options]... 

Commands: prepare run cleanup help version

General options:
  --num-threads=N             number of threads to use [1]
  --max-requests=N            limit for total number of requests [10000]
  --max-time=N                limit for total execution time in seconds [0]
  --forced-shutdown=STRING    amount of time to wait after --max-time before forcing shutdown [off]
  --thread-stack-size=SIZE    size of stack per thread [64K]
  --tx-rate=N                 target transaction rate (tps) [0]
  --report-interval=N         periodically report intermediate statistics with a specified interval in seconds. 0 disables intermediate reports [0]
  --report-checkpoints=[LIST,...]dump full statistics and reset all counters at specified points in time. The argument is a list of comma-separated values representing the amount of time in seconds elapsed from start of test when report checkpoint(s) must be performed. Report checkpoints are off by default. []
  --test=STRING               test to run
  --debug=[on|off]            print more debugging info [off]
  --validate=[on|off]         perform validation checks where possible [off]
  --help=[on|off]             print help and exit
  --version=[on|off]          print version and exit [off]
  --rand-init=[on|off]        initialize random number generator [off]
  --rand-type=STRING          random numbers distribution {uniform,gaussian,special,pareto} [special]
  --rand-spec-iter=N          number of iterations used for numbers generation [12]
  --rand-spec-pct=N           percentage of values to be treated as 'special' (for special distribution) [1]
  --rand-spec-res=N           percentage of 'special' values to use (for special distribution) [75]
  --rand-seed=N               seed for random number generator, ignored when 0 [0]
  --rand-pareto-h=N           parameter h for pareto distibution [0.2]
  --config-file=FILENAME      File containing command line options

Log options:
  --verbosity=N      verbosity level {5 - debug, 0 - only critical messages} [3]

  --percentile=N      percentile rank of query response times to count [95]

General database options:

  --db-driver=STRING  specifies database driver to use ('help' to get list of available drivers)
  --db-ps-mode=STRING prepared statements usage mode {auto, disable} [auto]
  --db-debug=[on|off] print database-specific debug information [off]


Compiled-in database drivers:
  oracle - Oracle driver

oracle options:
  --oracle-user=STRING     Oracle user [sbtest]
  --oracle-password=STRING Oracle password []
  --oracle-db=STRING       Oracle database name [sbtest]

Compiled-in tests:
  fileio - File I/O test
  cpu - CPU performance test
  memory - Memory functions speed test
  threads - Threads subsystem performance test
  mutex - Mutex performance test

See 'sysbench --test= help' for a list of options for each test.

9.将.lua文件存储在sysbench-0.5/tests/db

[root@sjjh /]# unzip sysbench_lua-master.zip
Archive:  sysbench_lua-master.zip
f2ceb6cdf7315dbb8dd5f43d9c6757320a80a270
   creating: sysbench_lua-master/
  inflating: sysbench_lua-master/README.md
   creating: sysbench_lua-master/lua/
  inflating: sysbench_lua-master/lua/common.lua
  inflating: sysbench_lua-master/lua/delete.lua
  inflating: sysbench_lua-master/lua/insert.lua
  inflating: sysbench_lua-master/lua/oltp.lua
  inflating: sysbench_lua-master/lua/oltp_simple.lua
  inflating: sysbench_lua-master/lua/parallel_prepare.lua
  inflating: sysbench_lua-master/lua/select.lua
  inflating: sysbench_lua-master/lua/select_ora.lua
  inflating: sysbench_lua-master/lua/select_random_points.lua
  inflating: sysbench_lua-master/lua/select_random_ranges.lua
  inflating: sysbench_lua-master/lua/update_index.lua
  inflating: sysbench_lua-master/lua/update_index_ora.lua
  inflating: sysbench_lua-master/lua/update_index_pg_with_prepare.lua
  inflating: sysbench_lua-master/lua/update_index_with_commit.lua
  inflating: sysbench_lua-master/lua/update_non_index.lua
  inflating: sysbench_lua-master/lua/update_non_index_pg_with_prepare.lua
  inflating: sysbench_lua-master/lua/update_non_index_with_commit.lua

[root@sjjh db]# cd /sysbench_lua-master
[root@sjjh sysbench_lua-master]# ls
lua  README.md
[root@sjjh sysbench_lua-master]# cd lua
[root@sjjh lua]# ls -lrt
total 72
-rw-r--r--. 1 root root  595 Dec 18  2015 update_non_index_with_commit.lua
-rw-r--r--. 1 root root  640 Dec 18  2015 update_non_index_pg_with_prepare.lua
-rw-r--r--. 1 root root  552 Dec 18  2015 update_non_index.lua
-rw-r--r--. 1 root root  386 Dec 18  2015 update_index_with_commit.lua
-rw-r--r--. 1 root root  496 Dec 18  2015 update_index_pg_with_prepare.lua
-rw-r--r--. 1 root root  551 Dec 18  2015 update_index_ora.lua
-rw-r--r--. 1 root root  343 Dec 18  2015 update_index.lua
-rw-r--r--. 1 root root 4066 Dec 18  2015 select_random_ranges.lua
-rw-r--r--. 1 root root 3964 Dec 18  2015 select_random_points.lua
-rw-r--r--. 1 root root  526 Dec 18  2015 select_ora.lua
-rw-r--r--. 1 root root  343 Dec 18  2015 select.lua
-rw-r--r--. 1 root root  425 Dec 18  2015 parallel_prepare.lua
-rw-r--r--. 1 root root  342 Dec 18  2015 oltp_simple.lua
-rw-r--r--. 1 root root 3139 Dec 18  2015 oltp.lua
-rw-r--r--. 1 root root  830 Dec 18  2015 insert.lua
-rw-r--r--. 1 root root  340 Dec 18  2015 delete.lua
-rw-r--r--. 1 root root 4576 Dec 18  2015 common.lua

[root@sjjh lua]# cp *.lua  /sysbench-0.5/tests/db/
[root@sjjh lua]# cd /sysbench-0.5/tests/db/
[root@sjjh db]# ls -lrt
total 72
-rw-r--r--. 1 root root  830 Nov 10 12:18 insert.lua
-rw-r--r--. 1 root root  340 Nov 10 12:18 delete.lua
-rw-r--r--. 1 root root 4576 Nov 10 12:18 common.lua
-rw-r--r--. 1 root root  526 Nov 10 12:18 select_ora.lua
-rw-r--r--. 1 root root  343 Nov 10 12:18 select.lua
-rw-r--r--. 1 root root  425 Nov 10 12:18 parallel_prepare.lua
-rw-r--r--. 1 root root  342 Nov 10 12:18 oltp_simple.lua
-rw-r--r--. 1 root root 3139 Nov 10 12:18 oltp.lua
-rw-r--r--. 1 root root  640 Nov 10 12:18 update_non_index_pg_with_prepare.lua
-rw-r--r--. 1 root root  552 Nov 10 12:18 update_non_index.lua
-rw-r--r--. 1 root root  386 Nov 10 12:18 update_index_with_commit.lua
-rw-r--r--. 1 root root  496 Nov 10 12:18 update_index_pg_with_prepare.lua
-rw-r--r--. 1 root root  551 Nov 10 12:18 update_index_ora.lua
-rw-r--r--. 1 root root  343 Nov 10 12:18 update_index.lua
-rw-r--r--. 1 root root 4066 Nov 10 12:18 select_random_ranges.lua
-rw-r--r--. 1 root root 3964 Nov 10 12:18 select_random_points.lua
-rw-r--r--. 1 root root  595 Nov 10 12:18 update_non_index_with_commit.lua

测试
1.创建测试用户

SQL> create user sysbench identified by sysbench default tablespace users;

User created.

SQL> grant connect,resource,dba to sysbench;

Grant succeeded.

2.准备数据,lua文件需要指定绝对路径 需要进去oracle用户,并且数据库TNS配置在tnsnames.ora中

[oracle@sjjh admin]$ cat tnsnames.ora
sjjh =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.138.130.101)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = sjjh)(UR=A)
    )
  )


[oracle@sjjh admin]$ sysbench --test=/sysbench-0.5/tests/db/oltp.lua --db-driver=oracle --oltp-table-name=sysbench --oltp-table-size=250000 --oltp-tables-count=25 --oracle-db=sjjh --oracle-user=sysbench --oracle-password=sysbench --max-time=600 --max-requests=10000000 --num-threads=32 --report-interval=1 prepare
sysbench 0.5:  multi-threaded system evaluation benchmark

Creating table 'sbtest1'...
Inserting 250000 records into 'sbtest1'
Creating table 'sbtest2'...
Inserting 250000 records into 'sbtest2'
Creating table 'sbtest3'...
Inserting 250000 records into 'sbtest3'
Creating table 'sbtest4'...
Inserting 250000 records into 'sbtest4'
Creating table 'sbtest5'...
Inserting 250000 records into 'sbtest5'
Creating table 'sbtest6'...
Inserting 250000 records into 'sbtest6'
Creating table 'sbtest7'...
Inserting 250000 records into 'sbtest7'
Creating table 'sbtest8'...
Inserting 250000 records into 'sbtest8'
Creating table 'sbtest9'...
Inserting 250000 records into 'sbtest9'
Creating table 'sbtest10'...
Inserting 250000 records into 'sbtest10'
Creating table 'sbtest11'...
Inserting 250000 records into 'sbtest11'
Creating table 'sbtest12'...
Inserting 250000 records into 'sbtest12'
Creating table 'sbtest13'...
Inserting 250000 records into 'sbtest13'
Creating table 'sbtest14'...
Inserting 250000 records into 'sbtest14'
Creating table 'sbtest15'...
Inserting 250000 records into 'sbtest15'
Creating table 'sbtest16'...
Inserting 250000 records into 'sbtest16'
Creating table 'sbtest17'...
Inserting 250000 records into 'sbtest17'
Creating table 'sbtest18'...
Inserting 250000 records into 'sbtest18'
Creating table 'sbtest19'...
Inserting 250000 records into 'sbtest19'
Creating table 'sbtest20'...
Inserting 250000 records into 'sbtest20'
Creating table 'sbtest21'...
Inserting 250000 records into 'sbtest21'
Creating table 'sbtest22'...
Inserting 250000 records into 'sbtest22'
Creating table 'sbtest23'...
Inserting 250000 records into 'sbtest23'
Creating table 'sbtest24'...
Inserting 250000 records into 'sbtest24'
Creating table 'sbtest25'...
Inserting 250000 records into 'sbtest25'
[oracle@sjjh admin]$ sysbench --test=/sysbench-0.5/tests/db/oltp.lua --db-driver=oracle --oltp-table-name=sysbench --oltp-table-size=250000 --oltp-tables-count=25 --oracle-db=sjjh --oracle-user=sysbench --oracle-password=sysbench --max-time=600 --max-requests=10000000 --num-threads=32 --report-interval=1 run
sysbench 0.5:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 32
Report intermediate results every 1 second(s)
Random number generator seed is 0 and will be ignored


Initializing worker threads...

Threads started!

[   1s] threads: 32, tps: 193.63, reads: 2939.43, writes: 792.50, response time: 381.18ms (95%), errors: 0.00, reconnects:  0.00
[   2s] threads: 32, tps: 254.03, reads: 3611.49, writes: 1015.14, response time: 181.98ms (95%), errors: 0.00, reconnects:  0.00
[   3s] threads: 32, tps: 267.99, reads: 3887.91, writes: 1105.97, response time: 156.17ms (95%), errors: 0.00, reconnects:  0.00
[   4s] threads: 32, tps: 295.00, reads: 3854.02, writes: 1129.00, response time: 150.21ms (95%), errors: 0.00, reconnects:  0.00
[   5s] threads: 32, tps: 270.00, reads: 3867.02, writes: 1105.00, response time: 153.39ms (95%), errors: 0.00, reconnects:  0.00
[   6s] threads: 32, tps: 271.00, reads: 3825.97, writes: 1099.99, response time: 153.76ms (95%), errors: 0.00, reconnects:  0.00
[   7s] threads: 32, tps: 267.01, reads: 3880.10, writes: 1091.03, response time: 174.88ms (95%), errors: 0.00, reconnects:  0.00
[   8s] threads: 32, tps: 289.99, reads: 4054.90, writes: 1143.97, response time: 141.61ms (95%), errors: 0.00, reconnects:  0.00
[   9s] threads: 32, tps: 279.00, reads: 3897.03, writes: 1127.01, response time: 190.62ms (95%), errors: 0.00, reconnects:  0.00
[  10s] threads: 32, tps: 268.00, reads: 3746.98, writes: 1074.99, response time: 201.17ms (95%), errors: 0.00, reconnects:  0.00
[  11s] threads: 32, tps: 297.99, reads: 3987.83, writes: 1136.95, response time: 147.84ms (95%), errors: 0.00, reconnects:  0.00
[  12s] threads: 32, tps: 297.01, reads: 4255.20, writes: 1208.06, response time: 142.07ms (95%), errors: 0.00, reconnects:  0.00
[  13s] threads: 32, tps: 304.96, reads: 4248.48, writes: 1225.85, response time: 145.12ms (95%), errors: 0.00, reconnects:  0.00
[  14s] threads: 32, tps: 296.04, reads: 4177.59, writes: 1185.17, response time: 144.60ms (95%), errors: 0.00, reconnects:  0.00
[  15s] threads: 32, tps: 302.99, reads: 4357.84, writes: 1256.95, response time: 148.51ms (95%), errors: 0.00, reconnects:  0.00
[  16s] threads: 32, tps: 298.01, reads: 4097.07, writes: 1166.02, response time: 194.31ms (95%), errors: 0.00, reconnects:  0.00
[  17s] threads: 32, tps: 311.00, reads: 4312.98, writes: 1202.99, response time: 132.82ms (95%), errors: 0.00, reconnects:  0.00
[  18s] threads: 32, tps: 274.00, reads: 3973.01, writes: 1202.00, response time: 151.43ms (95%), errors: 0.00, reconnects:  0.00
[  19s] threads: 32, tps: 300.00, reads: 4070.02, writes: 1101.01, response time: 179.71ms (95%), errors: 0.00, reconnects:  0.00
[  20s] threads: 32, tps: 306.00, reads: 4347.07, writes: 1270.02, response time: 144.78ms (95%), errors: 0.00, reconnects:  0.00
[  21s] threads: 32, tps: 285.00, reads: 3910.99, writes: 1075.00, response time: 177.94ms (95%), errors: 0.00, reconnects:  0.00
[  22s] threads: 32, tps: 302.99, reads: 4350.84, writes: 1249.96, response time: 151.79ms (95%), errors: 0.00, reconnects:  0.00
[  23s] threads: 32, tps: 313.01, reads: 4256.07, writes: 1261.02, response time: 141.78ms (95%), errors: 0.00, reconnects:  0.00
[  24s] threads: 32, tps: 300.01, reads: 4042.08, writes: 1155.02, response time: 160.58ms (95%), errors: 0.00, reconnects:  0.00
[  25s] threads: 32, tps: 318.00, reads: 4708.94, writes: 1304.98, response time: 123.46ms (95%), errors: 0.00, reconnects:  0.00
[  26s] threads: 32, tps: 318.99, reads: 4360.92, writes: 1260.98, response time: 142.24ms (95%), errors: 0.00, reconnects:  0.00
[  27s] threads: 32, tps: 316.01, reads: 4531.16, writes: 1281.05, response time: 128.56ms (95%), errors: 0.00, reconnects:  0.00
[  28s] threads: 32, tps: 307.00, reads: 4296.94, writes: 1279.98, response time: 163.10ms (95%), errors: 0.00, reconnects:  0.00
[  29s] threads: 32, tps: 293.00, reads: 4101.96, writes: 1156.99, response time: 196.06ms (95%), errors: 0.00, reconnects:  0.00
[  30s] threads: 32, tps: 309.00, reads: 4371.06, writes: 1274.02, response time: 132.46ms (95%), errors: 0.00, reconnects:  0.00
[  31s] threads: 32, tps: 289.00, reads: 3932.93, writes: 1111.98, response time: 206.17ms (95%), errors: 0.00, reconnects:  0.00
[  32s] threads: 32, tps: 334.00, reads: 4695.96, writes: 1307.99, response time: 130.22ms (95%), errors: 0.00, reconnects:  0.00
[  33s] threads: 32, tps: 280.01, reads: 3995.12, writes: 1176.03, response time: 206.73ms (95%), errors: 0.00, reconnects:  0.00
[  34s] threads: 32, tps: 334.00, reads: 4484.98, writes: 1291.99, response time: 142.07ms (95%), errors: 0.00, reconnects:  0.00
[  35s] threads: 32, tps: 319.00, reads: 4671.97, writes: 1322.99, response time: 122.95ms (95%), errors: 0.00, reconnects:  0.00
[  36s] threads: 32, tps: 308.00, reads: 4333.04, writes: 1261.01, response time: 126.72ms (95%), errors: 0.00, reconnects:  0.00
[  37s] threads: 32, tps: 332.97, reads: 4528.63, writes: 1255.90, response time: 156.03ms (95%), errors: 0.00, reconnects:  0.00
[  38s] threads: 32, tps: 336.02, reads: 4702.32, writes: 1304.09, response time: 128.59ms (95%), errors: 0.00, reconnects:  0.00
[  39s] threads: 32, tps: 323.00, reads: 4603.01, writes: 1349.00, response time: 129.99ms (95%), errors: 0.00, reconnects:  0.00
[  40s] threads: 32, tps: 341.91, reads: 4618.82, writes: 1338.66, response time: 130.96ms (95%), errors: 0.00, reconnects:  0.00
[  41s] threads: 32, tps: 305.07, reads: 4395.94, writes: 1218.26, response time: 171.76ms (95%), errors: 0.00, reconnects:  0.00
[  42s] threads: 32, tps: 321.01, reads: 4574.20, writes: 1343.06, response time: 123.02ms (95%), errors: 0.00, reconnects:  0.00
[  43s] threads: 32, tps: 319.01, reads: 4298.11, writes: 1215.03, response time: 141.82ms (95%), errors: 0.00, reconnects:  0.00
[  44s] threads: 32, tps: 314.99, reads: 4544.90, writes: 1282.97, response time: 144.39ms (95%), errors: 0.00, reconnects:  0.00
[  45s] threads: 32, tps: 287.00, reads: 4068.02, writes: 1217.01, response time: 191.77ms (95%), errors: 0.00, reconnects:  0.00
[  46s] threads: 32, tps: 340.98, reads: 4629.77, writes: 1246.94, response time: 135.96ms (95%), errors: 0.00, reconnects:  0.00
[  47s] threads: 32, tps: 325.01, reads: 4626.17, writes: 1306.05, response time: 123.76ms (95%), errors: 0.00, reconnects:  0.00
[  48s] threads: 32, tps: 341.00, reads: 4773.01, writes: 1428.00, response time: 123.24ms (95%), errors: 0.00, reconnects:  0.00
[  49s] threads: 32, tps: 343.00, reads: 4723.06, writes: 1314.02, response time: 120.61ms (95%), errors: 0.00, reconnects:  0.00
[  50s] threads: 32, tps: 328.00, reads: 4604.96, writes: 1352.99, response time: 137.88ms (95%), errors: 0.00, reconnects:  0.00
[  51s] threads: 32, tps: 330.99, reads: 4719.90, writes: 1344.97, response time: 135.92ms (95%), errors: 0.00, reconnects:  0.00
[  52s] threads: 32, tps: 360.00, reads: 4867.04, writes: 1399.01, response time: 123.61ms (95%), errors: 0.00, reconnects:  0.00
[  53s] threads: 32, tps: 298.01, reads: 4214.08, writes: 1208.02, response time: 168.76ms (95%), errors: 0.00, reconnects:  0.00
[  54s] threads: 32, tps: 343.89, reads: 4698.55, writes: 1331.59, response time: 130.07ms (95%), errors: 0.00, reconnects:  0.00
[  55s] threads: 32, tps: 275.08, reads: 4147.25, writes: 1211.37, response time: 185.11ms (95%), errors: 0.00, reconnects:  0.00
[  56s] threads: 32, tps: 309.01, reads: 4289.08, writes: 1182.02, response time: 153.57ms (95%), errors: 0.00, reconnects:  0.00
[  57s] threads: 32, tps: 322.99, reads: 4494.91, writes: 1264.98, response time: 179.28ms (95%), errors: 0.00, reconnects:  0.00
[  58s] threads: 32, tps: 300.00, reads: 4186.94, writes: 1222.98, response time: 154.91ms (95%), errors: 0.00, reconnects:  0.00
[  59s] threads: 32, tps: 335.00, reads: 4638.05, writes: 1286.01, response time: 151.15ms (95%), errors: 0.00, reconnects:  0.00
[  60s] threads: 32, tps: 310.01, reads: 4353.11, writes: 1263.03, response time: 184.89ms (95%), errors: 0.00, reconnects:  0.00
[  61s] threads: 32, tps: 318.99, reads: 4528.81, writes: 1278.95, response time: 168.71ms (95%), errors: 0.00, reconnects:  0.00
[  62s] threads: 32, tps: 337.00, reads: 4681.06, writes: 1338.02, response time: 147.62ms (95%), errors: 0.00, reconnects:  0.00
[  63s] threads: 32, tps: 345.00, reads: 4830.05, writes: 1361.02, response time: 130.69ms (95%), errors: 0.00, reconnects:  0.00
[  64s] threads: 32, tps: 332.00, reads: 4660.98, writes: 1386.99, response time: 123.87ms (95%), errors: 0.00, reconnects:  0.00
[  65s] threads: 32, tps: 317.00, reads: 4494.98, writes: 1300.99, response time: 173.26ms (95%), errors: 0.00, reconnects:  0.00
[  66s] threads: 32, tps: 341.00, reads: 4772.93, writes: 1339.98, response time: 128.52ms (95%), errors: 0.00, reconnects:  0.00
[  67s] threads: 32, tps: 300.01, reads: 4011.18, writes: 1163.05, response time: 140.13ms (95%), errors: 0.00, reconnects:  0.00
[  68s] threads: 32, tps: 309.00, reads: 4331.98, writes: 1222.99, response time: 238.46ms (95%), errors: 0.00, reconnects:  0.00
[  69s] threads: 32, tps: 322.99, reads: 4679.90, writes: 1329.97, response time: 169.26ms (95%), errors: 0.00, reconnects:  0.00
[  70s] threads: 32, tps: 353.93, reads: 4895.04, writes: 1354.73, response time: 118.89ms (95%), errors: 0.00, reconnects:  0.00
[  71s] threads: 32, tps: 339.07, reads: 4717.98, writes: 1373.28, response time: 131.87ms (95%), errors: 0.00, reconnects:  0.00
[  72s] threads: 32, tps: 322.00, reads: 4472.01, writes: 1309.00, response time: 149.71ms (95%), errors: 0.00, reconnects:  0.00
[  73s] threads: 32, tps: 308.00, reads: 4313.95, writes: 1234.99, response time: 146.92ms (95%), errors: 0.00, reconnects:  0.00
[  74s] threads: 32, tps: 335.00, reads: 4647.02, writes: 1307.01, response time: 133.78ms (95%), errors: 0.00, reconnects:  0.00
[  75s] threads: 32, tps: 356.00, reads: 4998.99, writes: 1427.00, response time: 121.78ms (95%), errors: 0.00, reconnects:  0.00
[  76s] threads: 32, tps: 347.00, reads: 4898.01, writes: 1390.00, response time: 124.47ms (95%), errors: 0.00, reconnects:  0.00
[  77s] threads: 32, tps: 353.00, reads: 4987.02, writes: 1425.01, response time: 121.78ms (95%), errors: 0.00, reconnects:  0.00
[  78s] threads: 32, tps: 320.00, reads: 4449.97, writes: 1303.99, response time: 208.91ms (95%), errors: 0.00, reconnects:  0.00
[  79s] threads: 32, tps: 348.00, reads: 4819.00, writes: 1363.00, response time: 122.21ms (95%), errors: 0.00, reconnects:  0.00
[  80s] threads: 32, tps: 297.00, reads: 4221.07, writes: 1220.02, response time: 166.90ms (95%), errors: 0.00, reconnects:  0.00
[  81s] threads: 32, tps: 328.99, reads: 4644.85, writes: 1303.96, response time: 137.80ms (95%), errors: 0.00, reconnects:  0.00
[  82s] threads: 32, tps: 327.97, reads: 4574.64, writes: 1316.90, response time: 148.86ms (95%), errors: 0.00, reconnects:  0.00
[  83s] threads: 32, tps: 344.04, reads: 4840.55, writes: 1351.15, response time: 130.69ms (95%), errors: 0.00, reconnects:  0.00
[  84s] threads: 32, tps: 351.98, reads: 4789.74, writes: 1399.92, response time: 124.80ms (95%), errors: 0.00, reconnects:  0.00
[  85s] threads: 32, tps: 296.01, reads: 4302.14, writes: 1249.04, response time: 166.55ms (95%), errors: 0.00, reconnects:  0.00
[  86s] threads: 32, tps: 332.99, reads: 4558.89, writes: 1279.97, response time: 146.13ms (95%), errors: 0.00, reconnects:  0.00
[  87s] threads: 32, tps: 323.01, reads: 4473.21, writes: 1291.06, response time: 154.86ms (95%), errors: 0.00, reconnects:  0.00
[  88s] threads: 32, tps: 345.00, reads: 4957.94, writes: 1396.98, response time: 129.79ms (95%), errors: 0.00, reconnects:  0.00
[  89s] threads: 32, tps: 327.00, reads: 4489.93, writes: 1285.98, response time: 136.00ms (95%), errors: 0.00, reconnects:  0.00
[  90s] threads: 32, tps: 362.01, reads: 5145.08, writes: 1453.02, response time: 115.08ms (95%), errors: 0.00, reconnects:  0.00
[  91s] threads: 32, tps: 350.00, reads: 4819.95, writes: 1391.99, response time: 142.80ms (95%), errors: 0.00, reconnects:  0.00
[  92s] threads: 32, tps: 310.00, reads: 4515.03, writes: 1325.01, response time: 157.81ms (95%), errors: 0.00, reconnects:  0.00
[  93s] threads: 32, tps: 312.00, reads: 4374.02, writes: 1267.01, response time: 133.26ms (95%), errors: 0.00, reconnects:  0.00
[  94s] threads: 32, tps: 340.00, reads: 4684.99, writes: 1254.00, response time: 222.26ms (95%), errors: 0.00, reconnects:  0.00
[  95s] threads: 32, tps: 349.00, reads: 4889.06, writes: 1410.02, response time: 121.85ms (95%), errors: 0.00, reconnects:  0.00
[  96s] threads: 32, tps: 343.99, reads: 4776.86, writes: 1383.96, response time: 135.47ms (95%), errors: 0.00, reconnects:  0.00
[  97s] threads: 32, tps: 341.01, reads: 4677.12, writes: 1340.04, response time: 136.28ms (95%), errors: 0.00, reconnects:  0.00
[  98s] threads: 32, tps: 313.00, reads: 4432.93, writes: 1280.98, response time: 172.80ms (95%), errors: 0.00, reconnects:  0.00
[  99s] threads: 32, tps: 358.00, reads: 4953.01, writes: 1383.00, response time: 121.81ms (95%), errors: 0.00, reconnects:  0.00
[ 100s] threads: 32, tps: 337.99, reads: 4868.87, writes: 1410.96, response time: 118.18ms (95%), errors: 0.00, reconnects:  0.00
[ 101s] threads: 32, tps: 339.01, reads: 4697.16, writes: 1301.04, response time: 132.66ms (95%), errors: 0.00, reconnects:  0.00
[ 102s] threads: 32, tps: 337.00, reads: 4741.97, writes: 1385.99, response time: 136.73ms (95%), errors: 0.00, reconnects:  0.00
[ 103s] threads: 32, tps: 316.00, reads: 4489.00, writes: 1296.00, response time: 178.95ms (95%), errors: 0.00, reconnects:  0.00
[ 104s] threads: 32, tps: 368.00, reads: 5075.99, writes: 1405.00, response time: 115.46ms (95%), errors: 0.00, reconnects:  0.00
[ 105s] threads: 32, tps: 356.00, reads: 4953.01, writes: 1445.00, response time: 121.81ms (95%), errors: 0.00, reconnects:  0.00
[ 106s] threads: 32, tps: 318.99, reads: 4472.89, writes: 1276.97, response time: 169.36ms (95%), errors: 0.00, reconnects:  0.00
[ 107s] threads: 32, tps: 351.84, reads: 4843.87, writes: 1412.38, response time: 140.00ms (95%), errors: 0.00, reconnects:  0.00
[ 108s] threads: 32, tps: 351.16, reads: 4884.20, writes: 1406.63, response time: 129.83ms (95%), errors: 0.00, reconnects:  0.00
[ 109s] threads: 32, tps: 355.00, reads: 5105.00, writes: 1428.00, response time: 119.86ms (95%), errors: 0.00, reconnects:  0.00
[ 110s] threads: 32, tps: 359.01, reads: 4830.14, writes: 1392.04, response time: 121.09ms (95%), errors: 0.00, reconnects:  0.00
[ 111s] threads: 32, tps: 353.00, reads: 5070.01, writes: 1424.00, response time: 118.72ms (95%), errors: 0.00, reconnects:  0.00
[ 112s] threads: 32, tps: 349.99, reads: 4980.91, writes: 1447.97, response time: 127.10ms (95%), errors: 0.00, reconnects:  0.00
[ 113s] threads: 32, tps: 318.01, reads: 4486.08, writes: 1242.02, response time: 175.66ms (95%), errors: 0.00, reconnects:  0.00
[ 114s] threads: 32, tps: 344.99, reads: 4861.91, writes: 1445.97, response time: 127.10ms (95%), errors: 0.00, reconnects:  0.00
[ 115s] threads: 32, tps: 320.00, reads: 4415.97, writes: 1188.99, response time: 160.05ms (95%), errors: 0.00, reconnects:  0.00
[ 116s] threads: 32, tps: 314.00, reads: 4468.96, writes: 1344.99, response time: 132.82ms (95%), errors: 0.00, reconnects:  0.00
[ 117s] threads: 32, tps: 369.01, reads: 5009.17, writes: 1426.05, response time: 143.18ms (95%), errors: 0.00, reconnects:  0.00
[ 118s] threads: 32, tps: 343.99, reads: 5002.89, writes: 1459.97, response time: 115.73ms (95%), errors: 0.00, reconnects:  0.00
[ 119s] threads: 32, tps: 343.00, reads: 4781.00, writes: 1327.00, response time: 173.21ms (95%), errors: 0.00, reconnects:  0.00
[ 120s] threads: 32, tps: 370.01, reads: 5124.11, writes: 1466.03, response time: 114.87ms (95%), errors: 0.00, reconnects:  0.00
[ 121s] threads: 32, tps: 319.99, reads: 4556.89, writes: 1333.97, response time: 141.48ms (95%), errors: 0.00, reconnects:  0.00
[ 122s] threads: 32, tps: 377.00, reads: 5042.00, writes: 1399.00, response time: 131.95ms (95%), errors: 0.00, reconnects:  0.00
[ 123s] threads: 32, tps: 304.01, reads: 4402.10, writes: 1228.03, response time: 203.54ms (95%), errors: 0.00, reconnects:  0.00
[ 124s] threads: 32, tps: 348.00, reads: 4917.02, writes: 1417.01, response time: 142.12ms (95%), errors: 0.00, reconnects:  0.00
[ 125s] threads: 32, tps: 374.00, reads: 5098.99, writes: 1463.00, response time: 116.78ms (95%), errors: 0.00, reconnects:  0.00
[ 126s] threads: 32, tps: 354.00, reads: 4958.01, writes: 1401.00, response time: 126.49ms (95%), errors: 0.00, reconnects:  0.00
[ 127s] threads: 32, tps: 361.99, reads: 5137.87, writes: 1496.96, response time: 120.36ms (95%), errors: 0.00, reconnects:  0.00
[ 128s] threads: 32, tps: 314.01, reads: 4457.09, writes: 1272.03, response time: 173.00ms (95%), errors: 0.00, reconnects:  0.00
[ 129s] threads: 32, tps: 326.00, reads: 4567.00, writes: 1303.00, response time: 165.95ms (95%), errors: 0.00, reconnects:  0.00
[ 130s] threads: 32, tps: 338.99, reads: 4750.89, writes: 1372.97, response time: 128.29ms (95%), errors: 0.00, reconnects:  0.00
[ 131s] threads: 32, tps: 365.96, reads: 5082.44, writes: 1440.84, response time: 138.59ms (95%), errors: 0.00, reconnects:  0.00
[ 132s] threads: 32, tps: 368.05, reads: 5083.68, writes: 1413.19, response time: 111.78ms (95%), errors: 0.00, reconnects:  0.00
[ 133s] threads: 32, tps: 368.95, reads: 5047.36, writes: 1473.81, response time: 119.97ms (95%), errors: 0.00, reconnects:  0.00
[ 134s] threads: 32, tps: 327.03, reads: 4749.51, writes: 1358.14, response time: 128.98ms (95%), errors: 0.00, reconnects:  0.00
[ 135s] threads: 32, tps: 348.01, reads: 4954.08, writes: 1429.02, response time: 130.69ms (95%), errors: 0.00, reconnects:  0.00
[ 136s] threads: 32, tps: 345.99, reads: 4696.93, writes: 1300.98, response time: 135.96ms (95%), errors: 0.00, reconnects:  0.00
[ 137s] threads: 32, tps: 346.00, reads: 4934.04, writes: 1438.01, response time: 133.86ms (95%), errors: 0.00, reconnects:  0.00
[ 138s] threads: 32, tps: 374.00, reads: 5179.06, writes: 1496.02, response time: 117.20ms (95%), errors: 0.00, reconnects:  0.00
[ 139s] threads: 32, tps: 350.99, reads: 4988.88, writes: 1385.97, response time: 118.72ms (95%), errors: 0.00, reconnects:  0.00
[ 140s] threads: 32, tps: 388.01, reads: 5286.12, writes: 1530.04, response time: 113.50ms (95%), errors: 0.00, reconnects:  0.00
[ 141s] threads: 32, tps: 347.99, reads: 5062.88, writes: 1492.97, response time: 119.11ms (95%), errors: 0.00, reconnects:  0.00
[ 142s] threads: 32, tps: 340.01, reads: 4637.12, writes: 1241.03, response time: 140.21ms (95%), errors: 0.00, reconnects:  0.00
[ 143s] threads: 32, tps: 320.99, reads: 4474.89, writes: 1288.97, response time: 154.73ms (95%), errors: 0.00, reconnects:  0.00
[ 144s] threads: 32, tps: 367.01, reads: 5105.10, writes: 1463.03, response time: 112.12ms (95%), errors: 0.00, reconnects:  0.00
[ 145s] threads: 32, tps: 360.99, reads: 4917.91, writes: 1443.97, response time: 120.40ms (95%), errors: 0.00, reconnects:  0.00
[ 146s] threads: 32, tps: 243.00, reads: 3641.00, writes: 1075.00, response time: 193.67ms (95%), errors: 0.00, reconnects:  0.00
[ 147s] threads: 32, tps: 317.00, reads: 4520.02, writes: 1293.01, response time: 126.72ms (95%), errors: 0.00, reconnects:  0.00
[ 148s] threads: 32, tps: 292.00, reads: 3823.97, writes: 1050.99, response time: 191.19ms (95%), errors: 0.00, reconnects:  0.00
[ 149s] threads: 32, tps: 221.01, reads: 3349.09, writes: 973.03, response time: 226.36ms (95%), errors: 0.00, reconnects:  0.00
[ 150s] threads: 32, tps: 360.99, reads: 4948.92, writes: 1355.98, response time: 116.53ms (95%), errors: 0.00, reconnects:  0.00
[ 151s] threads: 32, tps: 354.79, reads: 4965.10, writes: 1426.17, response time: 120.69ms (95%), errors: 0.00, reconnects:  0.00
[ 152s] threads: 32, tps: 292.17, reads: 4084.35, writes: 1164.67, response time: 194.25ms (95%), errors: 0.00, reconnects:  0.00
[ 153s] threads: 32, tps: 368.01, reads: 5193.12, writes: 1466.03, response time: 109.01ms (95%), errors: 0.00, reconnects:  0.00
[ 154s] threads: 32, tps: 360.00, reads: 5010.93, writes: 1445.98, response time: 118.47ms (95%), errors: 0.00, reconnects:  0.00
[ 155s] threads: 32, tps: 327.00, reads: 4531.95, writes: 1299.98, response time: 175.77ms (95%), errors: 0.00, reconnects:  0.00
[ 156s] threads: 32, tps: 348.99, reads: 4992.89, writes: 1422.97, response time: 125.74ms (95%), errors: 0.00, reconnects:  0.00
[ 157s] threads: 32, tps: 347.02, reads: 4815.23, writes: 1399.07, response time: 135.06ms (95%), errors: 0.00, reconnects:  0.00
[ 158s] threads: 32, tps: 389.00, reads: 5460.00, writes: 1531.00, response time: 107.32ms (95%), errors: 0.00, reconnects:  0.00
[ 159s] threads: 32, tps: 314.00, reads: 4373.00, writes: 1316.00, response time: 146.26ms (95%), errors: 0.00, reconnects:  0.00
[ 160s] threads: 32, tps: 380.99, reads: 5295.90, writes: 1465.97, response time: 112.83ms (95%), errors: 0.00, reconnects:  0.00
[ 161s] threads: 32, tps: 344.01, reads: 4851.08, writes: 1361.02, response time: 128.09ms (95%), errors: 0.00, reconnects:  0.00
[ 162s] threads: 32, tps: 347.00, reads: 4899.94, writes: 1484.98, response time: 129.41ms (95%), errors: 0.00, reconnects:  0.00
[ 163s] threads: 32, tps: 361.00, reads: 5078.00, writes: 1436.00, response time: 126.95ms (95%), errors: 0.00, reconnects:  0.00
[ 164s] threads: 32, tps: 302.00, reads: 4192.04, writes: 1170.01, response time: 179.81ms (95%), errors: 0.00, reconnects:  0.00
[ 165s] threads: 32, tps: 324.00, reads: 4407.02, writes: 1259.01, response time: 185.72ms (95%), errors: 0.00, reconnects:  0.00
[ 166s] threads: 32, tps: 334.00, reads: 4688.01, writes: 1315.00, response time: 147.62ms (95%), errors: 0.00, reconnects:  0.00
[ 167s] threads: 32, tps: 364.00, reads: 5177.99, writes: 1504.00, response time: 118.43ms (95%), errors: 0.00, reconnects:  0.00
[ 168s] threads: 32, tps: 331.00, reads: 4674.01, writes: 1298.00, response time: 140.05ms (95%), errors: 0.00, reconnects:  0.00
[ 169s] threads: 32, tps: 354.96, reads: 4924.44, writes: 1454.83, response time: 136.24ms (95%), errors: 0.00, reconnects:  0.00
[ 170s] threads: 32, tps: 358.03, reads: 5118.49, writes: 1483.14, response time: 118.15ms (95%), errors: 0.00, reconnects:  0.00
[ 171s] threads: 32, tps: 352.00, reads: 4882.95, writes: 1352.99, response time: 132.50ms (95%), errors: 0.00, reconnects:  0.00
[ 172s] threads: 32, tps: 377.01, reads: 5209.15, writes: 1507.04, response time: 107.71ms (95%), errors: 0.00, reconnects:  0.00
[ 173s] threads: 32, tps: 372.98, reads: 5084.79, writes: 1459.94, response time: 117.58ms (95%), errors: 0.00, reconnects:  0.00
[ 174s] threads: 32, tps: 315.01, reads: 4669.11, writes: 1368.03, response time: 136.16ms (95%), errors: 0.00, reconnects:  0.00
[ 175s] threads: 32, tps: 355.00, reads: 4941.03, writes: 1405.01, response time: 147.67ms (95%), errors: 0.00, reconnects:  0.00
[ 176s] threads: 32, tps: 361.00, reads: 5064.04, writes: 1398.01, response time: 118.93ms (95%), errors: 0.00, reconnects:  0.00
[ 177s] threads: 32, tps: 370.00, reads: 5096.01, writes: 1417.00, response time: 120.15ms (95%), errors: 0.00, reconnects:  0.00
[ 178s] threads: 32, tps: 379.00, reads: 5254.02, writes: 1551.01, response time: 111.68ms (95%), errors: 0.00, reconnects:  0.00
[ 179s] threads: 32, tps: 333.99, reads: 4752.86, writes: 1383.96, response time: 150.39ms (95%), errors: 0.00, reconnects:  0.00
[ 180s] threads: 32, tps: 378.00, reads: 5328.00, writes: 1505.00, response time: 107.55ms (95%), errors: 0.00, reconnects:  0.00
[ 181s] threads: 32, tps: 395.01, reads: 5419.13, writes: 1515.04, response time: 106.97ms (95%), errors: 0.00, reconnects:  0.00
[ 182s] threads: 32, tps: 359.95, reads: 5037.36, writes: 1476.81, response time: 126.49ms (95%), errors: 0.00, reconnects:  0.00
[ 183s] threads: 32, tps: 335.03, reads: 4836.50, writes: 1386.14, response time: 127.22ms (95%), errors: 0.00, reconnects:  0.00
[ 184s] threads: 32, tps: 362.01, reads: 4945.12, writes: 1400.03, response time: 129.99ms (95%), errors: 0.00, reconnects:  0.00
[ 185s] threads: 32, tps: 325.99, reads: 4654.88, writes: 1294.97, response time: 133.62ms (95%), errors: 0.00, reconnects:  0.00
[ 186s] threads: 32, tps: 352.00, reads: 4969.03, writes: 1495.01, response time: 120.40ms (95%), errors: 0.00, reconnects:  0.00
[ 187s] threads: 32, tps: 330.00, reads: 4480.00, writes: 1221.00, response time: 180.03ms (95%), errors: 0.00, reconnects:  0.00
[ 188s] threads: 32, tps: 333.99, reads: 4487.83, writes: 1322.95, response time: 170.13ms (95%), errors: 0.00, reconnects:  0.00
[ 189s] threads: 32, tps: 357.02, reads: 5295.31, writes: 1488.09, response time: 119.11ms (95%), errors: 0.00, reconnects:  0.00
[ 190s] threads: 32, tps: 365.98, reads: 5046.71, writes: 1458.92, response time: 141.06ms (95%), errors: 0.00, reconnects:  0.00
[ 191s] threads: 32, tps: 340.01, reads: 4868.21, writes: 1417.06, response time: 113.67ms (95%), errors: 0.00, reconnects:  0.00
[ 192s] threads: 32, tps: 393.00, reads: 5283.04, writes: 1496.01, response time: 175.30ms (95%), errors: 0.00, reconnects:  0.00
[ 193s] threads: 32, tps: 353.00, reads: 5133.03, writes: 1436.01, response time: 125.03ms (95%), errors: 0.00, reconnects:  0.00
[ 194s] threads: 32, tps: 378.90, reads: 5276.55, writes: 1512.58, response time: 122.65ms (95%), errors: 0.00, reconnects:  0.00
[ 195s] threads: 32, tps: 376.10, reads: 5191.42, writes: 1458.40, response time: 115.56ms (95%), errors: 0.00, reconnects:  0.00
[ 196s] threads: 32, tps: 357.99, reads: 5046.86, writes: 1432.96, response time: 112.32ms (95%), errors: 0.00, reconnects:  0.00
[ 197s] threads: 32, tps: 344.01, reads: 4882.15, writes: 1407.04, response time: 127.86ms (95%), errors: 0.00, reconnects:  0.00
[ 198s] threads: 32, tps: 351.99, reads: 4934.84, writes: 1445.95, response time: 130.26ms (95%), errors: 0.00, reconnects:  0.00
[ 199s] threads: 32, tps: 342.01, reads: 4670.11, writes: 1294.03, response time: 163.24ms (95%), errors: 0.00, reconnects:  0.00
[ 200s] threads: 32, tps: 328.00, reads: 4497.00, writes: 1293.00, response time: 183.07ms (95%), errors: 0.00, reconnects:  0.00
[ 201s] threads: 32, tps: 330.99, reads: 4760.92, writes: 1396.98, response time: 166.80ms (95%), errors: 0.00, reconnects:  0.00
[ 202s] threads: 32, tps: 340.00, reads: 4760.00, writes: 1355.00, response time: 134.90ms (95%), errors: 0.00, reconnects:  0.00
[ 203s] threads: 32, tps: 352.00, reads: 4974.02, writes: 1390.01, response time: 134.34ms (95%), errors: 0.00, reconnects:  0.00
[ 204s] threads: 32, tps: 325.00, reads: 4576.07, writes: 1286.02, response time: 163.93ms (95%), errors: 0.00, reconnects:  0.00
[ 205s] threads: 32, tps: 355.00, reads: 4897.01, writes: 1388.00, response time: 119.93ms (95%), errors: 0.00, reconnects:  0.00
[ 206s] threads: 32, tps: 327.00, reads: 4633.00, writes: 1333.00, response time: 137.10ms (95%), errors: 0.00, reconnects:  0.00
[ 207s] threads: 32, tps: 387.00, reads: 5284.02, writes: 1533.01, response time: 113.78ms (95%), errors: 0.00, reconnects:  0.00
[ 208s] threads: 32, tps: 380.00, reads: 5446.96, writes: 1531.99, response time: 111.12ms (95%), errors: 0.00, reconnects:  0.00
[ 209s] threads: 32, tps: 379.99, reads: 5080.91, writes: 1494.97, response time: 115.01ms (95%), errors: 0.00, reconnects:  0.00
[ 210s] threads: 32, tps: 330.00, reads: 4919.03, writes: 1430.01, response time: 140.47ms (95%), errors: 0.00, reconnects:  0.00
[ 211s] threads: 32, tps: 366.00, reads: 4933.98, writes: 1412.99, response time: 119.14ms (95%), errors: 0.00, reconnects:  0.00
[ 212s] threads: 32, tps: 366.01, reads: 5259.11, writes: 1483.03, response time: 137.84ms (95%), errors: 0.00, reconnects:  0.00
[ 213s] threads: 32, tps: 397.99, reads: 5443.87, writes: 1521.96, response time: 107.84ms (95%), errors: 0.00, reconnects:  0.00
[ 214s] threads: 32, tps: 320.00, reads: 4568.04, writes: 1328.01, response time: 199.50ms (95%), errors: 0.00, reconnects:  0.00
[ 215s] threads: 32, tps: 380.00, reads: 5314.05, writes: 1488.01, response time: 115.77ms (95%), errors: 0.00, reconnects:  0.00
[ 216s] threads: 32, tps: 349.00, reads: 4963.03, writes: 1430.01, response time: 126.00ms (95%), errors: 0.00, reconnects:  0.00
[ 217s] threads: 32, tps: 321.99, reads: 4422.89, writes: 1248.97, response time: 185.94ms (95%), errors: 0.00, reconnects:  0.00
[ 218s] threads: 32, tps: 359.00, reads: 5013.03, writes: 1445.01, response time: 162.95ms (95%), errors: 0.00, reconnects:  0.00
[ 219s] threads: 32, tps: 366.00, reads: 5039.96, writes: 1438.99, response time: 115.28ms (95%), errors: 0.00, reconnects:  0.00
[ 220s] threads: 32, tps: 378.01, reads: 5367.14, writes: 1572.04, response time: 107.20ms (95%), errors: 0.00, reconnects:  0.00
[ 221s] threads: 32, tps: 380.99, reads: 5382.83, writes: 1468.95, response time: 109.50ms (95%), errors: 0.00, reconnects:  0.00
[ 222s] threads: 32, tps: 394.01, reads: 5502.16, writes: 1599.05, response time: 106.52ms (95%), errors: 0.00, reconnects:  0.00
[ 223s] threads: 32, tps: 364.99, reads: 5081.88, writes: 1447.97, response time: 127.98ms (95%), errors: 0.00, reconnects:  0.00
[ 224s] threads: 32, tps: 367.01, reads: 5104.12, writes: 1463.04, response time: 123.95ms (95%), errors: 0.00, reconnects:  0.00
[ 225s] threads: 32, tps: 336.00, reads: 4804.99, writes: 1366.00, response time: 154.73ms (95%), errors: 0.00, reconnects:  0.00
[ 226s] threads: 32, tps: 342.99, reads: 4787.86, writes: 1354.96, response time: 176.24ms (95%), errors: 0.00, reconnects:  0.00
[ 227s] threads: 32, tps: 356.00, reads: 5052.06, writes: 1518.02, response time: 113.67ms (95%), errors: 0.00, reconnects:  0.00
[ 228s] threads: 32, tps: 352.00, reads: 4781.99, writes: 1291.00, response time: 151.56ms (95%), errors: 0.00, reconnects:  0.00
[ 229s] threads: 32, tps: 381.00, reads: 5282.99, writes: 1540.00, response time: 109.99ms (95%), errors: 0.00, reconnects:  0.00
[ 230s] threads: 32, tps: 353.98, reads: 4951.72, writes: 1407.92, response time: 127.56ms (95%), errors: 0.00, reconnects:  0.00
[ 231s] threads: 32, tps: 351.02, reads: 5018.32, writes: 1431.09, response time: 136.16ms (95%), errors: 0.00, reconnects:  0.00
[ 232s] threads: 32, tps: 394.01, reads: 5438.09, writes: 1552.03, response time: 105.67ms (95%), errors: 0.00, reconnects:  0.00
[ 233s] threads: 32, tps: 375.94, reads: 5376.12, writes: 1575.74, response time: 112.79ms (95%), errors: 0.00, reconnects:  0.00
[ 234s] threads: 32, tps: 345.05, reads: 4748.70, writes: 1367.20, response time: 157.25ms (95%), errors: 0.00, reconnects:  0.00
[ 235s] threads: 32, tps: 366.00, reads: 4969.96, writes: 1420.99, response time: 146.13ms (95%), errors: 0.00, reconnects:  0.00
[ 236s] threads: 32, tps: 351.00, reads: 5127.01, writes: 1433.00, response time: 120.98ms (95%), errors: 0.00, reconnects:  0.00
[ 237s] threads: 32, tps: 392.01, reads: 5540.13, writes: 1578.04, response time: 105.32ms (95%), errors: 0.00, reconnects:  0.00
[ 238s] threads: 32, tps: 360.00, reads: 4950.01, writes: 1441.00, response time: 126.34ms (95%), errors: 0.00, reconnects:  0.00
[ 239s] threads: 32, tps: 352.99, reads: 4882.83, writes: 1349.95, response time: 140.51ms (95%), errors: 0.00, reconnects:  0.00
[ 240s] threads: 32, tps: 376.01, reads: 5290.08, writes: 1524.02, response time: 118.79ms (95%), errors: 0.00, reconnects:  0.00
[ 241s] threads: 32, tps: 338.00, reads: 4859.00, writes: 1413.00, response time: 145.69ms (95%), errors: 0.00, reconnects:  0.00
[ 242s] threads: 32, tps: 369.00, reads: 5111.00, writes: 1448.00, response time: 120.04ms (95%), errors: 0.00, reconnects:  0.00
[ 243s] threads: 32, tps: 355.00, reads: 5034.06, writes: 1462.02, response time: 133.38ms (95%), errors: 0.00, reconnects:  0.00
[ 244s] threads: 32, tps: 374.99, reads: 5166.93, writes: 1415.98, response time: 122.10ms (95%), errors: 0.00, reconnects:  0.00
[ 245s] threads: 32, tps: 338.01, reads: 4736.08, writes: 1368.02, response time: 132.30ms (95%), errors: 0.00, reconnects:  0.00
[ 246s] threads: 32, tps: 377.99, reads: 5261.93, writes: 1526.98, response time: 120.76ms (95%), errors: 0.00, reconnects:  0.00
[ 247s] threads: 32, tps: 336.01, reads: 4781.07, writes: 1364.02, response time: 174.56ms (95%), errors: 0.00, reconnects:  0.00
[ 248s] threads: 32, tps: 377.00, reads: 5224.01, writes: 1477.00, response time: 118.57ms (95%), errors: 0.00, reconnects:  0.00
[ 249s] threads: 32, tps: 355.00, reads: 5079.96, writes: 1510.99, response time: 115.11ms (95%), errors: 0.00, reconnects:  0.00
[ 250s] threads: 32, tps: 377.96, reads: 5149.49, writes: 1417.86, response time: 140.38ms (95%), errors: 0.00, reconnects:  0.00
[ 251s] threads: 32, tps: 338.03, reads: 4851.43, writes: 1387.12, response time: 188.52ms (95%), errors: 0.00, reconnects:  0.00
[ 252s] threads: 32, tps: 366.01, reads: 4935.11, writes: 1395.03, response time: 169.62ms (95%), errors: 0.00, reconnects:  0.00
[ 253s] threads: 32, tps: 316.99, reads: 4639.88, writes: 1379.96, response time: 158.86ms (95%), errors: 0.00, reconnects:  0.00
[ 254s] threads: 32, tps: 386.00, reads: 5337.01, writes: 1465.00, response time: 117.48ms (95%), errors: 0.00, reconnects:  0.00
[ 255s] threads: 32, tps: 343.00, reads: 4792.01, writes: 1370.00, response time: 183.79ms (95%), errors: 0.00, reconnects:  0.00
[ 256s] threads: 32, tps: 408.94, reads: 5645.21, writes: 1616.77, response time: 105.10ms (95%), errors: 0.00, reconnects:  0.00
[ 257s] threads: 32, tps: 359.06, reads: 5139.80, writes: 1487.23, response time: 121.70ms (95%), errors: 0.00, reconnects:  0.00
[ 258s] threads: 32, tps: 387.97, reads: 5441.53, writes: 1527.87, response time: 108.94ms (95%), errors: 0.00, reconnects:  0.00
[ 259s] threads: 32, tps: 388.03, reads: 5408.37, writes: 1597.11, response time: 107.49ms (95%), errors: 0.00, reconnects:  0.00
[ 260s] threads: 32, tps: 363.00, reads: 5100.98, writes: 1415.99, response time: 125.93ms (95%), errors: 0.00, reconnects:  0.00
[ 261s] threads: 32, tps: 405.01, reads: 5593.13, writes: 1587.04, response time: 107.29ms (95%), errors: 0.00, reconnects:  0.00
[ 262s] threads: 32, tps: 388.88, reads: 5202.41, writes: 1540.53, response time: 147.71ms (95%), errors: 0.00, reconnects:  0.00
[ 263s] threads: 32, tps: 379.11, reads: 5549.63, writes: 1588.47, response time: 109.20ms (95%), errors: 0.00, reconnects:  0.00
[ 264s] threads: 32, tps: 345.00, reads: 4955.98, writes: 1436.00, response time: 128.21ms (95%), errors: 0.00, reconnects:  0.00
[ 265s] threads: 32, tps: 387.01, reads: 5352.08, writes: 1440.02, response time: 120.69ms (95%), errors: 0.00, reconnects:  0.00
[ 266s] threads: 32, tps: 401.98, reads: 5456.79, writes: 1587.94, response time: 111.58ms (95%), errors: 0.00, reconnects:  0.00
[ 267s] threads: 32, tps: 363.00, reads: 5267.05, writes: 1543.02, response time: 116.74ms (95%), errors: 0.00, reconnects:  0.00
[ 268s] threads: 32, tps: 358.01, reads: 4943.15, writes: 1361.04, response time: 174.82ms (95%), errors: 0.00, reconnects:  0.00
[ 269s] threads: 32, tps: 375.99, reads: 5368.85, writes: 1580.95, response time: 109.43ms (95%), errors: 0.00, reconnects:  0.00
[ 270s] threads: 32, tps: 407.00, reads: 5591.01, writes: 1536.00, response time: 113.16ms (95%), errors: 0.00, reconnects:  0.00
[ 271s] threads: 32, tps: 388.00, reads: 5447.05, writes: 1579.01, response time: 105.19ms (95%), errors: 0.00, reconnects:  0.00
[ 272s] threads: 32, tps: 344.99, reads: 4747.80, writes: 1390.94, response time: 147.80ms (95%), errors: 0.00, reconnects:  0.00
[ 273s] threads: 32, tps: 343.01, reads: 4918.14, writes: 1377.04, response time: 149.09ms (95%), errors: 0.00, reconnects:  0.00
[ 274s] threads: 32, tps: 337.00, reads: 4764.07, writes: 1397.02, response time: 127.67ms (95%), errors: 0.00, reconnects:  0.00
[ 275s] threads: 32, tps: 390.99, reads: 5451.89, writes: 1510.97, response time: 118.33ms (95%), errors: 0.00, reconnects:  0.00
[ 276s] threads: 32, tps: 336.00, reads: 4754.00, writes: 1428.00, response time: 167.95ms (95%), errors: 0.00, reconnects:  0.00
[ 277s] threads: 32, tps: 320.01, reads: 4231.13, writes: 1152.04, response time: 156.50ms (95%), errors: 0.00, reconnects:  0.00
[ 278s] threads: 32, tps: 349.99, reads: 5044.91, writes: 1443.97, response time: 117.34ms (95%), errors: 0.00, reconnects:  0.00
[ 279s] threads: 32, tps: 392.00, reads: 5502.04, writes: 1562.01, response time: 109.34ms (95%), errors: 0.00, reconnects:  0.00
[ 280s] threads: 32, tps: 396.00, reads: 5592.97, writes: 1574.99, response time: 112.89ms (95%), errors: 0.00, reconnects:  0.00
[ 281s] threads: 32, tps: 393.00, reads: 5416.94, writes: 1603.98, response time: 114.87ms (95%), errors: 0.00, reconnects:  0.00
[ 282s] threads: 32, tps: 373.01, reads: 5323.09, writes: 1533.03, response time: 115.25ms (95%), errors: 0.00, reconnects:  0.00
[ 283s] threads: 32, tps: 365.00, reads: 4963.98, writes: 1403.00, response time: 121.01ms (95%), errors: 0.00, reconnects:  0.00
[ 284s] threads: 32, tps: 294.95, reads: 4124.28, writes: 1178.79, response time: 163.58ms (95%), errors: 0.00, reconnects:  0.00
[ 285s] threads: 32, tps: 370.06, reads: 5205.90, writes: 1499.26, response time: 114.77ms (95%), errors: 0.00, reconnects:  0.00
[ 286s] threads: 32, tps: 389.01, reads: 5550.11, writes: 1546.03, response time: 108.03ms (95%), errors: 0.00, reconnects:  0.00
[ 287s] threads: 32, tps: 336.00, reads: 4502.95, writes: 1298.99, response time: 217.13ms (95%), errors: 0.00, reconnects:  0.00
[ 288s] threads: 32, tps: 337.00, reads: 4908.93, writes: 1355.98, response time: 144.00ms (95%), errors: 0.00, reconnects:  0.00
[ 289s] threads: 32, tps: 384.96, reads: 5382.48, writes: 1557.85, response time: 115.87ms (95%), errors: 0.00, reconnects:  0.00
[ 290s] threads: 32, tps: 344.04, reads: 4781.50, writes: 1360.14, response time: 175.24ms (95%), errors: 0.00, reconnects:  0.00
[ 291s] threads: 32, tps: 385.00, reads: 5367.99, writes: 1584.00, response time: 109.76ms (95%), errors: 0.00, reconnects:  0.00
[ 292s] threads: 32, tps: 375.00, reads: 5371.01, writes: 1564.00, response time: 104.07ms (95%), errors: 0.00, reconnects:  0.00
[ 293s] threads: 32, tps: 405.99, reads: 5578.89, writes: 1512.97, response time: 122.29ms (95%), errors: 0.00, reconnects:  0.00
[ 294s] threads: 32, tps: 377.79, reads: 5239.15, writes: 1512.18, response time: 114.73ms (95%), errors: 0.00, reconnects:  0.00
[ 295s] threads: 32, tps: 377.22, reads: 5375.13, writes: 1586.92, response time: 113.37ms (95%), errors: 0.00, reconnects:  0.00
[ 296s] threads: 32, tps: 320.00, reads: 4337.98, writes: 1201.99, response time: 167.85ms (95%), errors: 0.00, reconnects:  0.00
[ 297s] threads: 32, tps: 359.97, reads: 4927.64, writes: 1430.90, response time: 126.00ms (95%), errors: 0.00, reconnects:  0.00
[ 298s] threads: 32, tps: 374.03, reads: 5461.39, writes: 1568.11, response time: 110.98ms (95%), errors: 0.00, reconnects:  0.00
[ 299s] threads: 32, tps: 371.96, reads: 5235.40, writes: 1428.84, response time: 115.25ms (95%), errors: 0.00, reconnects:  0.00
[ 300s] threads: 32, tps: 389.04, reads: 5288.52, writes: 1556.15, response time: 110.52ms (95%), errors: 0.00, reconnects:  0.00
[ 301s] threads: 32, tps: 315.99, reads: 4350.84, writes: 1253.95, response time: 165.51ms (95%), errors: 0.00, reconnects:  0.00
[ 302s] threads: 32, tps: 331.01, reads: 4778.19, writes: 1318.05, response time: 161.20ms (95%), errors: 0.00, reconnects:  0.00
[ 303s] threads: 32, tps: 380.00, reads: 5329.02, writes: 1565.01, response time: 111.08ms (95%), errors: 0.00, reconnects:  0.00
[ 304s] threads: 32, tps: 376.00, reads: 5347.96, writes: 1492.99, response time: 122.58ms (95%), errors: 0.00, reconnects:  0.00
[ 305s] threads: 32, tps: 400.99, reads: 5589.88, writes: 1597.96, response time: 112.02ms (95%), errors: 0.00, reconnects:  0.00
[ 306s] threads: 32, tps: 377.02, reads: 5279.22, writes: 1496.06, response time: 115.49ms (95%), errors: 0.00, reconnects:  0.00
[ 307s] threads: 32, tps: 362.97, reads: 5040.65, writes: 1475.90, response time: 122.62ms (95%), errors: 0.00, reconnects:  0.00
[ 308s] threads: 32, tps: 380.02, reads: 5385.29, writes: 1523.08, response time: 112.69ms (95%), errors: 0.00, reconnects:  0.00
[ 309s] threads: 32, tps: 383.99, reads: 5311.92, writes: 1503.98, response time: 124.35ms (95%), errors: 0.00, reconnects:  0.00
[ 310s] threads: 32, tps: 381.00, reads: 5280.01, writes: 1532.00, response time: 109.43ms (95%), errors: 0.00, reconnects:  0.00
[ 311s] threads: 32, tps: 331.97, reads: 4788.55, writes: 1365.87, response time: 181.60ms (95%), errors: 0.00, reconnects:  0.00
[ 312s] threads: 32, tps: 367.04, reads: 5164.52, writes: 1507.15, response time: 118.61ms (95%), errors: 0.00, reconnects:  0.00
[ 313s] threads: 32, tps: 362.00, reads: 4896.05, writes: 1354.01, response time: 179.54ms (95%), errors: 0.00, reconnects:  0.00
[ 314s] threads: 32, tps: 338.00, reads: 4817.06, writes: 1383.02, response time: 147.31ms (95%), errors: 0.00, reconnects:  0.00
[ 315s] threads: 32, tps: 381.99, reads: 5402.88, writes: 1582.96, response time: 109.27ms (95%), errors: 0.00, reconnects:  0.00
[ 316s] threads: 32, tps: 401.00, reads: 5372.02, writes: 1518.00, response time: 109.86ms (95%), errors: 0.00, reconnects:  0.00
[ 317s] threads: 32, tps: 249.00, reads: 3766.02, writes: 1118.01, response time: 186.11ms (95%), errors: 0.00, reconnects:  0.00
[ 318s] threads: 32, tps: 298.99, reads: 4024.91, writes: 1131.97, response time: 153.11ms (95%), errors: 0.00, reconnects:  0.00
[ 319s] threads: 32, tps: 269.01, reads: 3866.09, writes: 1030.02, response time: 165.80ms (95%), errors: 0.00, reconnects:  0.00
[ 320s] threads: 32, tps: 248.00, reads: 3289.98, writes: 977.99, response time: 177.67ms (95%), errors: 0.00, reconnects:  0.00
[ 321s] threads: 32, tps: 220.00, reads: 3314.98, writes: 969.00, response time: 285.97ms (95%), errors: 0.00, reconnects:  0.00
[ 322s] threads: 32, tps: 246.01, reads: 3318.09, writes: 970.03, response time: 159.19ms (95%), errors: 0.00, reconnects:  0.00
[ 323s] threads: 32, tps: 255.00, reads: 3700.93, writes: 1064.98, response time: 174.93ms (95%), errors: 0.00, reconnects:  0.00
[ 324s] threads: 32, tps: 272.00, reads: 3558.00, writes: 992.00, response time: 200.09ms (95%), errors: 0.00, reconnects:  0.00
[ 325s] threads: 32, tps: 219.00, reads: 3297.02, writes: 935.01, response time: 218.11ms (95%), errors: 0.00, reconnects:  0.00
[ 326s] threads: 32, tps: 268.00, reads: 3771.97, writes: 1100.99, response time: 162.66ms (95%), errors: 0.00, reconnects:  0.00
[ 327s] threads: 32, tps: 179.00, reads: 2508.02, writes: 728.00, response time: 217.91ms (95%), errors: 0.00, reconnects:  0.00
[ 328s] threads: 32, tps: 280.00, reads: 3692.02, writes: 1004.01, response time: 196.65ms (95%), errors: 0.00, reconnects:  0.00
[ 329s] threads: 32, tps: 265.00, reads: 3897.93, writes: 1143.98, response time: 181.22ms (95%), errors: 0.00, reconnects:  0.00
[ 330s] threads: 32, tps: 275.00, reads: 3890.06, writes: 1132.02, response time: 151.93ms (95%), errors: 0.00, reconnects:  0.00
[ 331s] threads: 32, tps: 243.00, reads: 3401.97, writes: 970.99, response time: 179.92ms (95%), errors: 0.00, reconnects:  0.00
[ 332s] threads: 32, tps: 289.01, reads: 3886.08, writes: 1081.02, response time: 178.31ms (95%), errors: 0.00, reconnects:  0.00
[ 333s] threads: 32, tps: 211.00, reads: 3005.97, writes: 795.99, response time: 209.85ms (95%), errors: 0.00, reconnects:  0.00
[ 334s] threads: 32, tps: 211.00, reads: 3061.94, writes: 966.98, response time: 176.19ms (95%), errors: 0.00, reconnects:  0.00
[ 335s] threads: 32, tps: 206.00, reads: 2884.02, writes: 825.01, response time: 244.17ms (95%), errors: 0.00, reconnects:  0.00
[ 336s] threads: 32, tps: 246.00, reads: 3365.99, writes: 936.00, response time: 181.00ms (95%), errors: 0.00, reconnects:  0.00
[ 337s] threads: 32, tps: 225.00, reads: 3228.02, writes: 948.01, response time: 178.15ms (95%), errors: 0.00, reconnects:  0.00
[ 338s] threads: 32, tps: 218.99, reads: 2897.87, writes: 827.96, response time: 378.11ms (95%), errors: 0.00, reconnects:  0.00
[ 339s] threads: 32, tps: 222.01, reads: 3274.11, writes: 932.03, response time: 198.54ms (95%), errors: 0.00, reconnects:  0.00
[ 340s] threads: 32, tps: 237.01, reads: 3306.10, writes: 899.03, response time: 204.21ms (95%), errors: 0.00, reconnects:  0.00
[ 341s] threads: 32, tps: 274.00, reads: 3849.97, writes: 1139.99, response time: 169.16ms (95%), errors: 0.00, reconnects:  0.00
[ 342s] threads: 32, tps: 232.98, reads: 3032.74, writes: 844.93, response time: 199.56ms (95%), errors: 0.00, reconnects:  0.00
[ 343s] threads: 32, tps: 216.02, reads: 3253.26, writes: 959.08, response time: 182.91ms (95%), errors: 0.00, reconnects:  0.00
[ 344s] threads: 32, tps: 242.99, reads: 3401.90, writes: 972.97, response time: 201.17ms (95%), errors: 0.00, reconnects:  0.00
[ 345s] threads: 32, tps: 292.01, reads: 3945.17, writes: 1044.04, response time: 192.86ms (95%), errors: 0.00, reconnects:  0.00
[ 346s] threads: 32, tps: 225.00, reads: 3292.97, writes: 1023.99, response time: 185.67ms (95%), errors: 0.00, reconnects:  0.00
[ 347s] threads: 32, tps: 261.00, reads: 3520.97, writes: 959.99, response time: 190.85ms (95%), errors: 0.00, reconnects:  0.00
[ 348s] threads: 32, tps: 208.00, reads: 3045.01, writes: 914.00, response time: 214.29ms (95%), errors: 0.00, reconnects:  0.00
[ 349s] threads: 32, tps: 208.00, reads: 2902.95, writes: 787.99, response time: 221.40ms (95%), errors: 0.00, reconnects:  0.00
[ 350s] threads: 32, tps: 246.01, reads: 3240.11, writes: 902.03, response time: 203.05ms (95%), errors: 0.00, reconnects:  0.00
[ 351s] threads: 32, tps: 203.00, reads: 2903.94, writes: 811.98, response time: 243.22ms (95%), errors: 0.00, reconnects:  0.00
[ 352s] threads: 32, tps: 249.00, reads: 3637.01, writes: 1124.00, response time: 182.63ms (95%), errors: 0.00, reconnects:  0.00
[ 353s] threads: 32, tps: 258.99, reads: 3625.86, writes: 1034.96, response time: 171.05ms (95%), errors: 0.00, reconnects:  0.00
[ 354s] threads: 32, tps: 259.01, reads: 3626.08, writes: 1036.02, response time: 181.65ms (95%), errors: 0.00, reconnects:  0.00
[ 355s] threads: 32, tps: 258.00, reads: 3611.06, writes: 1019.02, response time: 211.04ms (95%), errors: 0.00, reconnects:  0.00
[ 356s] threads: 32, tps: 239.00, reads: 3334.98, writes: 909.99, response time: 198.13ms (95%), errors: 0.00, reconnects:  0.00
[ 357s] threads: 32, tps: 234.00, reads: 3288.02, writes: 996.01, response time: 217.72ms (95%), errors: 0.00, reconnects:  0.00
[ 358s] threads: 32, tps: 286.00, reads: 3991.97, writes: 1111.99, response time: 185.83ms (95%), errors: 0.00, reconnects:  0.00
[ 359s] threads: 32, tps: 274.00, reads: 3848.04, writes: 1128.01, response time: 148.78ms (95%), errors: 0.00, reconnects:  0.00
[ 360s] threads: 32, tps: 273.00, reads: 3807.99, writes: 1078.00, response time: 183.73ms (95%), errors: 0.00, reconnects:  0.00
[ 361s] threads: 32, tps: 324.00, reads: 4209.97, writes: 1205.99, response time: 154.54ms (95%), errors: 0.00, reconnects:  0.00
[ 362s] threads: 32, tps: 194.00, reads: 3038.02, writes: 856.00, response time: 330.56ms (95%), errors: 0.00, reconnects:  0.00
[ 363s] threads: 32, tps: 260.00, reads: 3580.99, writes: 1020.00, response time: 150.52ms (95%), errors: 0.00, reconnects:  0.00
[ 364s] threads: 32, tps: 305.00, reads: 4041.01, writes: 1144.00, response time: 148.91ms (95%), errors: 0.00, reconnects:  0.00
[ 365s] threads: 32, tps: 292.00, reads: 4388.98, writes: 1252.00, response time: 156.92ms (95%), errors: 0.00, reconnects:  0.00
[ 366s] threads: 32, tps: 237.00, reads: 3240.06, writes: 861.02, response time: 211.49ms (95%), errors: 0.00, reconnects:  0.00
[ 367s] threads: 32, tps: 257.00, reads: 3680.97, writes: 1149.99, response time: 162.17ms (95%), errors: 0.00, reconnects:  0.00
[ 368s] threads: 32, tps: 260.00, reads: 3634.01, writes: 989.00, response time: 184.61ms (95%), errors: 0.00, reconnects:  0.00
[ 369s] threads: 32, tps: 252.99, reads: 3497.93, writes: 1007.98, response time: 173.21ms (95%), errors: 0.00, reconnects:  0.00
[ 370s] threads: 32, tps: 281.00, reads: 3981.03, writes: 1173.01, response time: 142.71ms (95%), errors: 0.00, reconnects:  0.00
[ 371s] threads: 32, tps: 226.00, reads: 3009.06, writes: 811.02, response time: 212.69ms (95%), errors: 0.00, reconnects:  0.00
[ 372s] threads: 32, tps: 215.00, reads: 3167.93, writes: 958.98, response time: 237.53ms (95%), errors: 0.00, reconnects:  0.00
[ 373s] threads: 32, tps: 256.00, reads: 3577.94, writes: 1007.98, response time: 191.48ms (95%), errors: 0.00, reconnects:  0.00
[ 374s] threads: 32, tps: 215.01, reads: 3016.07, writes: 876.02, response time: 269.76ms (95%), errors: 0.00, reconnects:  0.00
[ 375s] threads: 32, tps: 292.01, reads: 3868.07, writes: 1041.02, response time: 181.38ms (95%), errors: 0.00, reconnects:  0.00
[ 376s] threads: 32, tps: 264.00, reads: 3849.99, writes: 1095.00, response time: 175.24ms (95%), errors: 0.00, reconnects:  0.00
[ 377s] threads: 32, tps: 275.99, reads: 3921.90, writes: 1152.97, response time: 152.84ms (95%), errors: 0.00, reconnects:  0.00
[ 378s] threads: 32, tps: 239.00, reads: 3322.03, writes: 940.01, response time: 225.21ms (95%), errors: 0.00, reconnects:  0.00
[ 379s] threads: 32, tps: 292.00, reads: 4030.93, writes: 1122.98, response time: 163.54ms (95%), errors: 0.00, reconnects:  0.00
[ 380s] threads: 32, tps: 240.00, reads: 3416.05, writes: 1041.02, response time: 182.42ms (95%), errors: 0.00, reconnects:  0.00
[ 381s] threads: 32, tps: 234.00, reads: 3309.02, writes: 956.00, response time: 225.95ms (95%), errors: 0.00, reconnects:  0.00
[ 382s] threads: 32, tps: 246.00, reads: 3307.00, writes: 881.00, response time: 197.36ms (95%), errors: 0.00, reconnects:  0.00
[ 383s] threads: 32, tps: 212.00, reads: 3105.00, writes: 947.00, response time: 204.33ms (95%), errors: 0.00, reconnects:  0.00
[ 384s] threads: 32, tps: 248.00, reads: 3472.00, writes: 995.00, response time: 188.75ms (95%), errors: 0.00, reconnects:  0.00
[ 385s] threads: 32, tps: 242.00, reads: 3385.99, writes: 960.00, response time: 200.87ms (95%), errors: 0.00, reconnects:  0.00
[ 386s] threads: 32, tps: 215.00, reads: 2958.04, writes: 775.01, response time: 244.82ms (95%), errors: 0.00, reconnects:  0.00
[ 387s] threads: 32, tps: 292.99, reads: 4129.92, writes: 1229.98, response time: 144.60ms (95%), errors: 0.00, reconnects:  0.00
[ 388s] threads: 32, tps: 227.00, reads: 3163.06, writes: 851.02, response time: 235.48ms (95%), errors: 0.00, reconnects:  0.00
[ 389s] threads: 32, tps: 247.00, reads: 3495.94, writes: 1075.98, response time: 162.61ms (95%), errors: 0.00, reconnects:  0.00
[ 390s] threads: 32, tps: 246.00, reads: 3213.02, writes: 889.00, response time: 212.06ms (95%), errors: 0.00, reconnects:  0.00
[ 391s] threads: 32, tps: 237.00, reads: 3327.04, writes: 972.01, response time: 203.90ms (95%), errors: 0.00, reconnects:  0.00
[ 392s] threads: 32, tps: 267.97, reads: 3836.54, writes: 1106.87, response time: 148.69ms (95%), errors: 0.00, reconnects:  0.00
[ 393s] threads: 32, tps: 277.03, reads: 4005.38, writes: 1136.11, response time: 172.38ms (95%), errors: 0.00, reconnects:  0.00
[ 394s] threads: 32, tps: 229.01, reads: 3122.08, writes: 811.02, response time: 188.75ms (95%), errors: 0.00, reconnects:  0.00
[ 395s] threads: 32, tps: 228.00, reads: 3059.00, writes: 922.00, response time: 207.47ms (95%), errors: 0.00, reconnects:  0.00
[ 396s] threads: 32, tps: 247.97, reads: 3572.62, writes: 975.90, response time: 206.17ms (95%), errors: 0.00, reconnects:  0.00
[ 397s] threads: 32, tps: 251.02, reads: 3640.29, writes: 1097.09, response time: 171.51ms (95%), errors: 0.00, reconnects:  0.00
[ 398s] threads: 32, tps: 217.01, reads: 3001.07, writes: 792.02, response time: 241.04ms (95%), errors: 0.00, reconnects:  0.00
[ 399s] threads: 32, tps: 265.00, reads: 3510.02, writes: 1059.01, response time: 173.63ms (95%), errors: 0.00, reconnects:  0.00
[ 400s] threads: 32, tps: 237.00, reads: 3326.98, writes: 983.99, response time: 193.32ms (95%), errors: 0.00, reconnects:  0.00
[ 401s] threads: 32, tps: 254.00, reads: 3786.97, writes: 1086.99, response time: 159.76ms (95%), errors: 0.00, reconnects:  0.00
[ 402s] threads: 32, tps: 267.00, reads: 3738.01, writes: 1068.00, response time: 170.94ms (95%), errors: 0.00, reconnects:  0.00
[ 403s] threads: 32, tps: 318.99, reads: 4457.89, writes: 1246.97, response time: 159.57ms (95%), errors: 0.00, reconnects:  0.00
[ 404s] threads: 32, tps: 262.01, reads: 3603.10, writes: 970.03, response time: 178.53ms (95%), errors: 0.00, reconnects:  0.00
[ 405s] threads: 32, tps: 234.00, reads: 3311.94, writes: 1017.98, response time: 235.83ms (95%), errors: 0.00, reconnects:  0.00
[ 406s] threads: 32, tps: 306.00, reads: 4304.97, writes: 1168.99, response time: 171.35ms (95%), errors: 0.00, reconnects:  0.00
[ 407s] threads: 32, tps: 265.99, reads: 3739.91, writes: 1143.97, response time: 150.39ms (95%), errors: 0.00, reconnects:  0.00
[ 408s] threads: 32, tps: 350.00, reads: 4769.03, writes: 1353.01, response time: 215.84ms (95%), errors: 0.00, reconnects:  0.00
[ 409s] threads: 32, tps: 339.01, reads: 4838.12, writes: 1355.03, response time: 135.39ms (95%), errors: 0.00, reconnects:  0.00
[ 410s] threads: 32, tps: 345.01, reads: 4735.11, writes: 1336.03, response time: 154.59ms (95%), errors: 0.00, reconnects:  0.00
[ 411s] threads: 32, tps: 321.99, reads: 4623.92, writes: 1352.98, response time: 150.61ms (95%), errors: 0.00, reconnects:  0.00
[ 412s] threads: 32, tps: 335.00, reads: 4708.02, writes: 1368.01, response time: 145.12ms (95%), errors: 0.00, reconnects:  0.00
[ 413s] threads: 32, tps: 307.99, reads: 4115.93, writes: 1174.98, response time: 169.62ms (95%), errors: 0.00, reconnects:  0.00
[ 414s] threads: 32, tps: 351.00, reads: 5039.98, writes: 1353.99, response time: 148.38ms (95%), errors: 0.00, reconnects:  0.00
[ 415s] threads: 32, tps: 323.01, reads: 4584.08, writes: 1390.02, response time: 155.84ms (95%), errors: 0.00, reconnects:  0.00
[ 416s] threads: 32, tps: 257.00, reads: 3605.99, writes: 1034.00, response time: 228.67ms (95%), errors: 0.00, reconnects:  0.00
[ 417s] threads: 32, tps: 385.01, reads: 5295.08, writes: 1458.02, response time: 140.68ms (95%), errors: 0.00, reconnects:  0.00
[ 418s] threads: 32, tps: 329.99, reads: 4685.92, writes: 1310.98, response time: 125.66ms (95%), errors: 0.00, reconnects:  0.00
[ 419s] threads: 32, tps: 386.01, reads: 5300.10, writes: 1523.03, response time: 123.10ms (95%), errors: 0.00, reconnects:  0.00
[ 420s] threads: 32, tps: 389.99, reads: 5430.84, writes: 1569.95, response time: 116.22ms (95%), errors: 0.00, reconnects:  0.00
[ 421s] threads: 32, tps: 305.01, reads: 4431.08, writes: 1312.02, response time: 175.30ms (95%), errors: 0.00, reconnects:  0.00
[ 422s] threads: 32, tps: 262.00, reads: 3666.98, writes: 1041.99, response time: 165.21ms (95%), errors: 0.00, reconnects:  0.00
[ 423s] threads: 32, tps: 327.99, reads: 4472.80, writes: 1233.94, response time: 147.31ms (95%), errors: 0.00, reconnects:  0.00
[ 424s] threads: 32, tps: 395.99, reads: 5570.85, writes: 1598.96, response time: 105.04ms (95%), errors: 0.00, reconnects:  0.00
[ 425s] threads: 32, tps: 389.03, reads: 5283.45, writes: 1532.13, response time: 137.39ms (95%), errors: 0.00, reconnects:  0.00
[ 426s] threads: 32, tps: 375.99, reads: 5397.90, writes: 1499.97, response time: 118.22ms (95%), errors: 0.00, reconnects:  0.00
[ 427s] threads: 32, tps: 288.00, reads: 4155.05, writes: 1260.01, response time: 170.84ms (95%), errors: 0.00, reconnects:  0.00
[ 428s] threads: 32, tps: 298.00, reads: 4107.05, writes: 1097.01, response time: 160.67ms (95%), errors: 0.00, reconnects:  0.00
[ 429s] threads: 32, tps: 368.00, reads: 5186.98, writes: 1503.99, response time: 124.28ms (95%), errors: 0.00, reconnects:  0.00
[ 430s] threads: 32, tps: 331.00, reads: 4588.93, writes: 1340.98, response time: 145.52ms (95%), errors: 0.00, reconnects:  0.00
[ 431s] threads: 32, tps: 381.01, reads: 5345.10, writes: 1496.03, response time: 114.56ms (95%), errors: 0.00, reconnects:  0.00
[ 432s] threads: 32, tps: 371.99, reads: 5249.84, writes: 1532.95, response time: 113.06ms (95%), errors: 0.00, reconnects:  0.00
[ 433s] threads: 32, tps: 313.00, reads: 4346.02, writes: 1182.01, response time: 148.29ms (95%), errors: 0.00, reconnects:  0.00
[ 434s] threads: 32, tps: 325.01, reads: 4556.11, writes: 1350.03, response time: 165.16ms (95%), errors: 0.00, reconnects:  0.00
[ 435s] threads: 32, tps: 404.00, reads: 5644.00, writes: 1593.00, response time: 105.86ms (95%), errors: 0.00, reconnects:  0.00
[ 436s] threads: 32, tps: 302.99, reads: 4305.91, writes: 1285.97, response time: 154.63ms (95%), errors: 0.00, reconnects:  0.00
[ 437s] threads: 32, tps: 311.00, reads: 4311.00, writes: 1154.00, response time: 161.83ms (95%), errors: 0.00, reconnects:  0.00
[ 438s] threads: 32, tps: 398.00, reads: 5538.97, writes: 1580.99, response time: 107.32ms (95%), errors: 0.00, reconnects:  0.00
[ 439s] threads: 32, tps: 323.00, reads: 4598.04, writes: 1391.01, response time: 141.31ms (95%), errors: 0.00, reconnects:  0.00
[ 440s] threads: 32, tps: 359.00, reads: 4912.04, writes: 1333.01, response time: 142.03ms (95%), errors: 0.00, reconnects:  0.00
[ 441s] threads: 32, tps: 379.00, reads: 5195.04, writes: 1540.01, response time: 131.79ms (95%), errors: 0.00, reconnects:  0.00
[ 442s] threads: 32, tps: 262.00, reads: 3757.98, writes: 1032.99, response time: 173.99ms (95%), errors: 0.00, reconnects:  0.00
[ 443s] threads: 32, tps: 289.00, reads: 4123.01, writes: 1184.00, response time: 181.82ms (95%), errors: 0.00, reconnects:  0.00
[ 444s] threads: 32, tps: 324.94, reads: 4482.17, writes: 1281.76, response time: 193.50ms (95%), errors: 0.00, reconnects:  0.00
[ 445s] threads: 32, tps: 294.04, reads: 4237.60, writes: 1216.17, response time: 175.93ms (95%), errors: 0.00, reconnects:  0.00
[ 446s] threads: 32, tps: 312.01, reads: 4177.20, writes: 1182.06, response time: 176.82ms (95%), errors: 0.00, reconnects:  0.00
[ 447s] threads: 32, tps: 353.99, reads: 5000.89, writes: 1422.97, response time: 162.51ms (95%), errors: 0.00, reconnects:  0.00
[ 448s] threads: 32, tps: 299.00, reads: 4281.06, writes: 1209.02, response time: 178.15ms (95%), errors: 0.00, reconnects:  0.00
[ 449s] threads: 32, tps: 290.00, reads: 3897.97, writes: 1134.99, response time: 169.31ms (95%), errors: 0.00, reconnects:  0.00
[ 450s] threads: 32, tps: 387.99, reads: 5597.82, writes: 1582.95, response time: 109.56ms (95%), errors: 0.00, reconnects:  0.00
[ 451s] threads: 32, tps: 348.97, reads: 4864.65, writes: 1398.90, response time: 152.56ms (95%), errors: 0.00, reconnects:  0.00
[ 452s] threads: 32, tps: 347.04, reads: 4869.49, writes: 1360.14, response time: 143.40ms (95%), errors: 0.00, reconnects:  0.00
[ 453s] threads: 32, tps: 402.00, reads: 5592.02, writes: 1605.01, response time: 114.19ms (95%), errors: 0.00, reconnects:  0.00
[ 454s] threads: 32, tps: 351.00, reads: 4770.01, writes: 1410.00, response time: 137.14ms (95%), errors: 0.00, reconnects:  0.00
[ 455s] threads: 32, tps: 331.00, reads: 4602.01, writes: 1320.00, response time: 141.90ms (95%), errors: 0.00, reconnects:  0.00
[ 456s] threads: 32, tps: 375.00, reads: 5331.04, writes: 1504.01, response time: 140.76ms (95%), errors: 0.00, reconnects:  0.00
[ 457s] threads: 32, tps: 265.99, reads: 3915.89, writes: 1169.97, response time: 207.91ms (95%), errors: 0.00, reconnects:  0.00
[ 458s] threads: 32, tps: 250.99, reads: 3513.82, writes: 1005.95, response time: 170.59ms (95%), errors: 0.00, reconnects:  0.00
[ 459s] threads: 32, tps: 300.01, reads: 4049.15, writes: 1149.04, response time: 211.36ms (95%), errors: 0.00, reconnects:  0.00
[ 460s] threads: 32, tps: 320.01, reads: 4609.19, writes: 1278.05, response time: 151.83ms (95%), errors: 0.00, reconnects:  0.00
[ 461s] threads: 32, tps: 219.00, reads: 3078.93, writes: 873.98, response time: 225.95ms (95%), errors: 0.00, reconnects:  0.00
[ 462s] threads: 32, tps: 227.00, reads: 3136.99, writes: 899.00, response time: 238.32ms (95%), errors: 0.00, reconnects:  0.00
[ 463s] threads: 32, tps: 298.01, reads: 4191.11, writes: 1151.03, response time: 156.36ms (95%), errors: 0.00, reconnects:  0.00
[ 464s] threads: 32, tps: 349.99, reads: 4841.89, writes: 1440.97, response time: 122.14ms (95%), errors: 0.00, reconnects:  0.00
[ 465s] threads: 32, tps: 390.01, reads: 5447.08, writes: 1545.02, response time: 112.19ms (95%), errors: 0.00, reconnects:  0.00
[ 466s] threads: 32, tps: 255.00, reads: 3671.98, writes: 1096.99, response time: 190.85ms (95%), errors: 0.00, reconnects:  0.00
[ 467s] threads: 32, tps: 344.00, reads: 4705.03, writes: 1275.01, response time: 131.83ms (95%), errors: 0.00, reconnects:  0.00
[ 468s] threads: 32, tps: 328.00, reads: 4679.00, writes: 1383.00, response time: 166.70ms (95%), errors: 0.00, reconnects:  0.00
[ 469s] threads: 32, tps: 356.00, reads: 4749.98, writes: 1327.99, response time: 169.97ms (95%), errors: 0.00, reconnects:  0.00
[ 470s] threads: 32, tps: 327.98, reads: 4716.75, writes: 1353.93, response time: 137.06ms (95%), errors: 0.00, reconnects:  0.00
[ 471s] threads: 32, tps: 333.01, reads: 4775.21, writes: 1382.06, response time: 210.10ms (95%), errors: 0.00, reconnects:  0.00
[ 472s] threads: 32, tps: 329.00, reads: 4622.05, writes: 1348.02, response time: 156.17ms (95%), errors: 0.00, reconnects:  0.00
[ 473s] threads: 32, tps: 318.00, reads: 4300.99, writes: 1160.00, response time: 131.00ms (95%), errors: 0.00, reconnects:  0.00
[ 474s] threads: 32, tps: 366.99, reads: 5279.91, writes: 1559.97, response time: 121.12ms (95%), errors: 0.00, reconnects:  0.00
[ 475s] threads: 32, tps: 392.01, reads: 5435.17, writes: 1485.05, response time: 106.46ms (95%), errors: 0.00, reconnects:  0.00
[ 476s] threads: 32, tps: 361.99, reads: 5016.81, writes: 1497.94, response time: 139.67ms (95%), errors: 0.00, reconnects:  0.00
[ 477s] threads: 32, tps: 382.01, reads: 5385.15, writes: 1470.04, response time: 118.50ms (95%), errors: 0.00, reconnects:  0.00
[ 478s] threads: 32, tps: 352.00, reads: 5007.95, writes: 1519.99, response time: 113.03ms (95%), errors: 0.00, reconnects:  0.00
[ 479s] threads: 32, tps: 258.96, reads: 3499.48, writes: 1001.85, response time: 177.30ms (95%), errors: 0.00, reconnects:  0.00
[ 480s] threads: 32, tps: 384.07, reads: 5340.93, writes: 1481.26, response time: 157.34ms (95%), errors: 0.00, reconnects:  0.00
[ 481s] threads: 32, tps: 362.99, reads: 5088.92, writes: 1466.98, response time: 134.74ms (95%), errors: 0.00, reconnects:  0.00
[ 482s] threads: 32, tps: 327.00, reads: 4576.06, writes: 1278.02, response time: 203.48ms (95%), errors: 0.00, reconnects:  0.00
[ 483s] threads: 32, tps: 390.93, reads: 5542.94, writes: 1573.70, response time: 111.08ms (95%), errors: 0.00, reconnects:  0.00
[ 484s] threads: 32, tps: 353.06, reads: 4681.85, writes: 1393.25, response time: 196.94ms (95%), errors: 0.00, reconnects:  0.00
[ 485s] threads: 32, tps: 219.95, reads: 3041.27, writes: 883.79, response time: 210.16ms (95%), errors: 0.00, reconnects:  0.00
[ 486s] threads: 32, tps: 209.05, reads: 3195.69, writes: 826.18, response time: 238.24ms (95%), errors: 0.00, reconnects:  0.00
[ 487s] threads: 32, tps: 373.01, reads: 5316.14, writes: 1578.04, response time: 110.19ms (95%), errors: 0.00, reconnects:  0.00
[ 488s] threads: 32, tps: 368.00, reads: 5136.02, writes: 1442.01, response time: 130.57ms (95%), errors: 0.00, reconnects:  0.00
[ 489s] threads: 32, tps: 401.98, reads: 5614.77, writes: 1593.93, response time: 112.83ms (95%), errors: 0.00, reconnects:  0.00
[ 490s] threads: 32, tps: 343.01, reads: 4854.19, writes: 1452.06, response time: 123.06ms (95%), errors: 0.00, reconnects:  0.00
[ 491s] threads: 32, tps: 275.98, reads: 3556.78, writes: 1011.94, response time: 183.51ms (95%), errors: 0.00, reconnects:  0.00
[ 492s] threads: 32, tps: 391.02, reads: 5612.33, writes: 1562.09, response time: 109.99ms (95%), errors: 0.00, reconnects:  0.00
[ 493s] threads: 32, tps: 374.99, reads: 5307.90, writes: 1475.97, response time: 117.30ms (95%), errors: 0.00, reconnects:  0.00
[ 494s] threads: 32, tps: 326.00, reads: 4593.95, writes: 1375.98, response time: 154.17ms (95%), errors: 0.00, reconnects:  0.00
[ 495s] threads: 32, tps: 400.01, reads: 5657.21, writes: 1571.06, response time: 107.26ms (95%), errors: 0.00, reconnects:  0.00
[ 496s] threads: 32, tps: 371.99, reads: 5231.90, writes: 1557.97, response time: 111.72ms (95%), errors: 0.00, reconnects:  0.00
[ 497s] threads: 32, tps: 339.01, reads: 4592.09, writes: 1248.02, response time: 156.92ms (95%), errors: 0.00, reconnects:  0.00
[ 498s] threads: 32, tps: 366.00, reads: 5277.97, writes: 1576.99, response time: 121.52ms (95%), errors: 0.00, reconnects:  0.00
[ 499s] threads: 32, tps: 376.01, reads: 5036.07, writes: 1400.02, response time: 152.15ms (95%), errors: 0.00, reconnects:  0.00
[ 500s] threads: 32, tps: 318.00, reads: 4437.96, writes: 1266.99, response time: 163.83ms (95%), errors: 0.00, reconnects:  0.00
[ 501s] threads: 32, tps: 332.99, reads: 4840.89, writes: 1346.97, response time: 155.47ms (95%), errors: 0.00, reconnects:  0.00
[ 502s] threads: 32, tps: 358.01, reads: 4944.13, writes: 1473.04, response time: 140.55ms (95%), errors: 0.00, reconnects:  0.00
[ 503s] threads: 32, tps: 340.99, reads: 4783.92, writes: 1317.98, response time: 131.87ms (95%), errors: 0.00, reconnects:  0.00
[ 504s] threads: 32, tps: 378.01, reads: 5237.07, writes: 1519.02, response time: 120.94ms (95%), errors: 0.00, reconnects:  0.00
[ 505s] threads: 32, tps: 339.99, reads: 4935.89, writes: 1450.97, response time: 138.09ms (95%), errors: 0.00, reconnects:  0.00
[ 506s] threads: 32, tps: 326.01, reads: 4259.11, writes: 1177.03, response time: 147.75ms (95%), errors: 0.00, reconnects:  0.00
[ 507s] threads: 32, tps: 391.00, reads: 5628.99, writes: 1607.00, response time: 107.36ms (95%), errors: 0.00, reconnects:  0.00
[ 508s] threads: 32, tps: 384.00, reads: 5370.01, writes: 1519.00, response time: 109.24ms (95%), errors: 0.00, reconnects:  0.00
[ 509s] threads: 32, tps: 340.99, reads: 4929.89, writes: 1465.97, response time: 120.72ms (95%), errors: 0.00, reconnects:  0.00
[ 510s] threads: 32, tps: 415.95, reads: 5623.38, writes: 1561.83, response time: 114.77ms (95%), errors: 0.00, reconnects:  0.00
[ 511s] threads: 32, tps: 290.03, reads: 4121.49, writes: 1190.14, response time: 170.99ms (95%), errors: 0.00, reconnects:  0.00
[ 512s] threads: 32, tps: 335.00, reads: 4777.04, writes: 1346.01, response time: 126.46ms (95%), errors: 0.00, reconnects:  0.00
[ 513s] threads: 32, tps: 383.00, reads: 5413.94, writes: 1597.98, response time: 103.32ms (95%), errors: 0.00, reconnects:  0.00
[ 514s] threads: 32, tps: 349.00, reads: 4884.96, writes: 1389.99, response time: 159.38ms (95%), errors: 0.00, reconnects:  0.00
[ 515s] threads: 32, tps: 317.73, reads: 4393.31, writes: 1173.01, response time: 182.85ms (95%), errors: 0.00, reconnects:  0.00
[ 516s] threads: 32, tps: 373.32, reads: 5281.47, writes: 1589.35, response time: 119.36ms (95%), errors: 0.00, reconnects:  0.00
[ 517s] threads: 32, tps: 386.00, reads: 5405.02, writes: 1551.00, response time: 115.39ms (95%), errors: 0.00, reconnects:  0.00
[ 518s] threads: 32, tps: 341.00, reads: 4590.94, writes: 1255.98, response time: 158.62ms (95%), errors: 0.00, reconnects:  0.00
[ 519s] threads: 32, tps: 357.01, reads: 4980.11, writes: 1415.03, response time: 116.39ms (95%), errors: 0.00, reconnects:  0.00
[ 520s] threads: 32, tps: 389.00, reads: 5605.00, writes: 1612.00, response time: 107.68ms (95%), errors: 0.00, reconnects:  0.00
[ 521s] threads: 32, tps: 341.00, reads: 4706.99, writes: 1353.00, response time: 131.75ms (95%), errors: 0.00, reconnects:  0.00
[ 522s] threads: 32, tps: 407.99, reads: 5784.90, writes: 1627.97, response time: 106.49ms (95%), errors: 0.00, reconnects:  0.00
[ 523s] threads: 32, tps: 370.01, reads: 5177.11, writes: 1527.03, response time: 114.56ms (95%), errors: 0.00, reconnects:  0.00
[ 524s] threads: 32, tps: 352.00, reads: 4641.99, writes: 1322.00, response time: 155.93ms (95%), errors: 0.00, reconnects:  0.00
[ 525s] threads: 32, tps: 360.00, reads: 5265.99, writes: 1468.00, response time: 121.67ms (95%), errors: 0.00, reconnects:  0.00
[ 526s] threads: 32, tps: 320.99, reads: 4554.88, writes: 1270.97, response time: 139.63ms (95%), errors: 0.00, reconnects:  0.00
[ 527s] threads: 32, tps: 290.01, reads: 3888.11, writes: 1140.03, response time: 339.38ms (95%), errors: 0.00, reconnects:  0.00
[ 528s] threads: 32, tps: 395.44, reads: 5621.02, writes: 1607.72, response time: 107.97ms (95%), errors: 0.00, reconnects:  0.00
[ 529s] threads: 32, tps: 342.48, reads: 4823.72, writes: 1375.92, response time: 141.52ms (95%), errors: 0.00, reconnects:  0.00
[ 530s] threads: 32, tps: 267.00, reads: 3779.03, writes: 1083.01, response time: 170.53ms (95%), errors: 0.00, reconnects:  0.00
[ 531s] threads: 32, tps: 367.01, reads: 5163.08, writes: 1452.02, response time: 120.51ms (95%), errors: 0.00, reconnects:  0.00
[ 532s] threads: 32, tps: 314.00, reads: 4425.96, writes: 1348.99, response time: 232.33ms (95%), errors: 0.00, reconnects:  0.00
[ 533s] threads: 32, tps: 342.00, reads: 4675.06, writes: 1310.02, response time: 130.69ms (95%), errors: 0.00, reconnects:  0.00
[ 534s] threads: 32, tps: 406.99, reads: 5572.93, writes: 1566.98, response time: 107.29ms (95%), errors: 0.00, reconnects:  0.00
[ 535s] threads: 32, tps: 340.01, reads: 4842.07, writes: 1370.02, response time: 149.76ms (95%), errors: 0.00, reconnects:  0.00
[ 536s] threads: 32, tps: 282.99, reads: 3919.89, writes: 1121.97, response time: 171.92ms (95%), errors: 0.00, reconnects:  0.00
[ 537s] threads: 32, tps: 375.00, reads: 5410.06, writes: 1569.02, response time: 105.64ms (95%), errors: 0.00, reconnects:  0.00
[ 538s] threads: 32, tps: 368.00, reads: 5190.06, writes: 1522.02, response time: 125.93ms (95%), errors: 0.00, reconnects:  0.00
[ 539s] threads: 32, tps: 338.00, reads: 4578.04, writes: 1233.01, response time: 169.82ms (95%), errors: 0.00, reconnects:  0.00
[ 540s] threads: 32, tps: 354.00, reads: 4899.98, writes: 1421.99, response time: 143.23ms (95%), errors: 0.00, reconnects:  0.00
[ 541s] threads: 32, tps: 409.00, reads: 5767.01, writes: 1631.00, response time: 107.58ms (95%), errors: 0.00, reconnects:  0.00
[ 542s] threads: 32, tps: 314.00, reads: 4355.98, writes: 1255.99, response time: 159.90ms (95%), errors: 0.00, reconnects:  0.00
[ 543s] threads: 32, tps: 354.99, reads: 5150.88, writes: 1477.97, response time: 142.80ms (95%), errors: 0.00, reconnects:  0.00
[ 544s] threads: 32, tps: 417.00, reads: 5630.06, writes: 1628.02, response time: 106.14ms (95%), errors: 0.00, reconnects:  0.00
[ 545s] threads: 32, tps: 338.00, reads: 4926.07, writes: 1396.02, response time: 130.42ms (95%), errors: 0.00, reconnects:  0.00
[ 546s] threads: 32, tps: 385.00, reads: 5379.02, writes: 1505.01, response time: 119.61ms (95%), errors: 0.00, reconnects:  0.00
[ 547s] threads: 32, tps: 341.99, reads: 4798.90, writes: 1435.97, response time: 165.46ms (95%), errors: 0.00, reconnects:  0.00
[ 548s] threads: 32, tps: 321.01, reads: 4424.07, writes: 1185.02, response time: 156.78ms (95%), errors: 0.00, reconnects:  0.00
[ 549s] threads: 32, tps: 386.00, reads: 5448.98, writes: 1602.00, response time: 108.26ms (95%), errors: 0.00, reconnects:  0.00
[ 550s] threads: 32, tps: 396.00, reads: 5438.96, writes: 1580.99, response time: 104.79ms (95%), errors: 0.00, reconnects:  0.00
[ 551s] threads: 32, tps: 362.01, reads: 5071.07, writes: 1412.02, response time: 128.40ms (95%), errors: 0.00, reconnects:  0.00
[ 552s] threads: 32, tps: 387.00, reads: 5341.96, writes: 1523.99, response time: 116.32ms (95%), errors: 0.00, reconnects:  0.00
[ 553s] threads: 32, tps: 389.00, reads: 5543.97, writes: 1592.99, response time: 116.85ms (95%), errors: 0.00, reconnects:  0.00
[ 554s] threads: 32, tps: 252.00, reads: 3662.98, writes: 1058.99, response time: 175.82ms (95%), errors: 0.00, reconnects:  0.00
[ 555s] threads: 32, tps: 397.01, reads: 5374.08, writes: 1536.02, response time: 124.58ms (95%), errors: 0.00, reconnects:  0.00
[ 556s] threads: 32, tps: 357.00, reads: 5110.99, writes: 1411.00, response time: 142.37ms (95%), errors: 0.00, reconnects:  0.00
[ 557s] threads: 32, tps: 250.00, reads: 3397.96, writes: 988.99, response time: 309.95ms (95%), errors: 0.00, reconnects:  0.00
[ 558s] threads: 32, tps: 378.01, reads: 5371.11, writes: 1553.03, response time: 118.89ms (95%), errors: 0.00, reconnects:  0.00
[ 559s] threads: 32, tps: 389.00, reads: 5492.99, writes: 1543.00, response time: 114.08ms (95%), errors: 0.00, reconnects:  0.00
[ 560s] threads: 32, tps: 342.00, reads: 4722.99, writes: 1339.00, response time: 131.71ms (95%), errors: 0.00, reconnects:  0.00
[ 561s] threads: 32, tps: 357.99, reads: 5099.91, writes: 1521.97, response time: 126.12ms (95%), errors: 0.00, reconnects:  0.00
[ 562s] threads: 32, tps: 414.99, reads: 5505.87, writes: 1562.96, response time: 110.42ms (95%), errors: 0.00, reconnects:  0.00
[ 563s] threads: 32, tps: 272.01, reads: 4003.16, writes: 1088.04, response time: 165.70ms (95%), errors: 0.00, reconnects:  0.00
[ 564s] threads: 32, tps: 401.96, reads: 5625.48, writes: 1620.85, response time: 107.26ms (95%), errors: 0.00, reconnects:  0.00
[ 565s] threads: 32, tps: 378.03, reads: 5381.39, writes: 1545.11, response time: 114.87ms (95%), errors: 0.00, reconnects:  0.00
[ 566s] threads: 32, tps: 264.99, reads: 3767.91, writes: 1140.97, response time: 170.94ms (95%), errors: 0.00, reconnects:  0.00
[ 567s] threads: 32, tps: 399.01, reads: 5519.10, writes: 1545.03, response time: 159.81ms (95%), errors: 0.00, reconnects:  0.00
[ 568s] threads: 32, tps: 408.00, reads: 5672.05, writes: 1609.02, response time: 109.34ms (95%), errors: 0.00, reconnects:  0.00
[ 569s] threads: 32, tps: 309.99, reads: 4315.93, writes: 1221.98, response time: 162.36ms (95%), errors: 0.00, reconnects:  0.00
[ 570s] threads: 32, tps: 403.01, reads: 5680.12, writes: 1617.03, response time: 104.66ms (95%), errors: 0.00, reconnects:  0.00
[ 571s] threads: 32, tps: 401.99, reads: 5602.89, writes: 1602.97, response time: 109.14ms (95%), errors: 0.00, reconnects:  0.00
[ 572s] threads: 32, tps: 319.00, reads: 4349.06, writes: 1281.02, response time: 202.02ms (95%), errors: 0.00, reconnects:  0.00
[ 573s] threads: 32, tps: 402.01, reads: 5696.10, writes: 1580.03, response time: 102.58ms (95%), errors: 0.00, reconnects:  0.00
[ 574s] threads: 32, tps: 380.00, reads: 5344.94, writes: 1529.98, response time: 114.70ms (95%), errors: 0.00, reconnects:  0.00
[ 575s] threads: 32, tps: 320.00, reads: 4604.00, writes: 1351.00, response time: 137.55ms (95%), errors: 0.00, reconnects:  0.00
[ 576s] threads: 32, tps: 364.00, reads: 4962.98, writes: 1363.99, response time: 169.47ms (95%), errors: 0.00, reconnects:  0.00
[ 577s] threads: 32, tps: 388.00, reads: 5480.02, writes: 1599.01, response time: 114.80ms (95%), errors: 0.00, reconnects:  0.00
[ 578s] threads: 32, tps: 309.00, reads: 4316.05, writes: 1210.01, response time: 192.57ms (95%), errors: 0.00, reconnects:  0.00
[ 579s] threads: 32, tps: 398.00, reads: 5648.01, writes: 1652.00, response time: 102.58ms (95%), errors: 0.00, reconnects:  0.00
[ 580s] threads: 32, tps: 359.00, reads: 5009.00, writes: 1408.00, response time: 129.44ms (95%), errors: 0.00, reconnects:  0.00
[ 581s] threads: 32, tps: 306.00, reads: 4269.93, writes: 1234.98, response time: 198.07ms (95%), errors: 0.00, reconnects:  0.00
[ 582s] threads: 32, tps: 399.01, reads: 5489.09, writes: 1536.02, response time: 117.66ms (95%), errors: 0.00, reconnects:  0.00
[ 583s] threads: 32, tps: 396.00, reads: 5557.00, writes: 1612.00, response time: 103.72ms (95%), errors: 0.00, reconnects:  0.00
[ 584s] threads: 32, tps: 328.00, reads: 4709.00, writes: 1331.00, response time: 147.75ms (95%), errors: 0.00, reconnects:  0.00
[ 585s] threads: 32, tps: 385.99, reads: 5346.92, writes: 1548.98, response time: 121.74ms (95%), errors: 0.00, reconnects:  0.00
[ 586s] threads: 32, tps: 392.95, reads: 5418.35, writes: 1550.81, response time: 109.04ms (95%), errors: 0.00, reconnects:  0.00
[ 587s] threads: 32, tps: 288.00, reads: 4045.05, writes: 1140.01, response time: 292.82ms (95%), errors: 0.00, reconnects:  0.00
[ 588s] threads: 32, tps: 424.04, reads: 5822.59, writes: 1704.17, response time: 104.28ms (95%), errors: 0.00, reconnects:  0.00
[ 589s] threads: 32, tps: 384.99, reads: 5625.91, writes: 1570.97, response time: 105.48ms (95%), errors: 0.00, reconnects:  0.00
[ 590s] threads: 32, tps: 293.01, reads: 4088.08, writes: 1184.02, response time: 175.40ms (95%), errors: 0.00, reconnects:  0.00
[ 591s] threads: 32, tps: 398.87, reads: 5499.15, writes: 1588.47, response time: 109.30ms (95%), errors: 0.00, reconnects:  0.00
[ 592s] threads: 32, tps: 368.13, reads: 5275.86, writes: 1487.52, response time: 111.18ms (95%), errors: 0.00, reconnects:  0.00
[ 593s] threads: 32, tps: 320.00, reads: 4214.94, writes: 1208.98, response time: 149.71ms (95%), errors: 0.00, reconnects:  0.00
[ 594s] threads: 32, tps: 369.99, reads: 5391.92, writes: 1501.98, response time: 128.09ms (95%), errors: 0.00, reconnects:  0.00
[ 595s] threads: 32, tps: 422.01, reads: 5743.16, writes: 1660.05, response time: 104.79ms (95%), errors: 0.00, reconnects:  0.00
[ 596s] threads: 32, tps: 284.00, reads: 4063.01, writes: 1142.00, response time: 211.42ms (95%), errors: 0.00, reconnects:  0.00
[ 597s] threads: 32, tps: 362.99, reads: 4952.92, writes: 1439.98, response time: 148.91ms (95%), errors: 0.00, reconnects:  0.00
[ 598s] threads: 32, tps: 348.00, reads: 5008.07, writes: 1451.02, response time: 129.83ms (95%), errors: 0.00, reconnects:  0.00
[ 599s] threads: 32, tps: 289.00, reads: 4145.93, writes: 1152.98, response time: 202.44ms (95%), errors: 0.00, reconnects:  0.00
[ 600s] threads: 32, tps: 399.01, reads: 5461.11, writes: 1553.03, response time: 133.98ms (95%), errors: 0.00, reconnects:  0.00
OLTP test statistics:
    queries performed:
        read:                            2773638
        write:                           792468
        other:                           396234
        total:                           3962340
    transactions:                        198117 (330.16 per sec.)
    read/write requests:                 3566106 (5942.79 per sec.)
    other operations:                    396234 (660.31 per sec.)
    ignored errors:                      0      (0.00 per sec.)
    reconnects:                          0      (0.00 per sec.)

General statistics:
    total time:                          600.0722s
    total number of events:              198117
    total time taken by event execution: 19200.3205s
    response time:
         min:                                 28.03ms
         avg:                                 96.91ms
         max:                               1212.17ms
         approx.  95 percentile:             157.20ms

Threads fairness:
    events (avg/stddev):           6191.1562/14.19
    execution time (avg/stddev):   600.0100/0.02

[oracle@sjjh admin]$ sysbench --test=/sysbench-0.5/tests/db/oltp.lua --db-driver=oracle --oltp-table-name=sysbench --oltp-table-size=250000 --oltp-tables-count=25 --oracle-db=sjjh --oracle-user=sysbench --oracle-password=sysbench --max-time=600 --max-requests=10000000 --num-threads=32 --report-interval=1 cleanup
sysbench 0.5:  multi-threaded system evaluation benchmark

Dropping table 'sbtest1'...
Dropping table 'sbtest2'...
Dropping table 'sbtest3'...
Dropping table 'sbtest4'...
Dropping table 'sbtest5'...
Dropping table 'sbtest6'...
Dropping table 'sbtest7'...
Dropping table 'sbtest8'...
Dropping table 'sbtest9'...
Dropping table 'sbtest10'...
Dropping table 'sbtest11'...
Dropping table 'sbtest12'...
Dropping table 'sbtest13'...
Dropping table 'sbtest14'...
Dropping table 'sbtest15'...
Dropping table 'sbtest16'...
Dropping table 'sbtest17'...
Dropping table 'sbtest18'...
Dropping table 'sbtest19'...
Dropping table 'sbtest20'...
Dropping table 'sbtest21'...
Dropping table 'sbtest22'...
Dropping table 'sbtest23'...
Dropping table 'sbtest24'...
Dropping table 'sbtest25'...