OS: centos 7.x
DB:Oracle 11.2.0.4

下载压测工具和演练脚本

cd /home/oracle
git clone https://gitee.com/yangguocang1/sysbench.git

创建数据库用户

drop user sysbench cascade;
create user sysbench identified by sysbench;
grant connect,resource to sysbench;

准备数据

./sysbench_ora --test=/home/oracle/sysbench/lua/oltp.lua --db-driver=oracle --oltp-table-name=sysbench --oltp-table-size=100000 --oltp-tables-count=8 --oracle-db=orcl --oracle-user=sysbench --oracle-password=sysbench --max-time=60 --max-requests=10000000 --num-threads=2 --report-interval=1 prepare

压测

./sysbench_ora --test=/home/oracle/sysbench/lua/oltp.lua --db-driver=oracle --oltp-table-name=sysbench --oltp-table-size=100000 --oltp-tables-count=8 --oracle-db=orcl --oracle-user=sysbench --oracle-password=sysbench --max-time=60 --max-requests=10000000 --num-threads=10 --report-interval=1 run

清理数据

./sysbench_ora --test=/home/oracle/sysbench/lua/oltp.lua --db-driver=oracle --oltp-table-name=sysbench --oltp-table-size=100000 --oltp-tables-count=8 --oracle-db=orcl --oracle-user=sysbench --oracle-password=sysbench --max-time=60 --max-requests=10000000 --num-threads=2 --report-interval=1 cleanup

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2021-07-24
  • 2022-01-01
  • 2021-11-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-01-01
  • 2022-01-01
  • 2021-10-24
  • 2021-06-28
相关资源
相似解决方案