数据库压测 oracle,sysbench压测Oracle
用root 用戶安裝:
export CC=cc
export CXX=c++
export CFLAGS="-m64 -I /home/app/oracle/product/12.1.0.2/db_1/rdbms/public"
export CXXFLAGS="$CFLAGS"
export ORACLE_HOME=/home/app/oracle/product/12.1.0.2/db_1
export LD_LIBRARY_PATH=/home/app/oracle/product/12.1.0.2/db_1/lib
yum install m4 autoconf automake libtool -y
./configure --prefix=/usr/local/sysbench --with-oracle --libdir=/home/app/oracle/product/12.1.0.2/db_1/lib --without-mysql
make ORA_LIBS=/home/app/oracle/product/12.1.0.2/db_1/lib/libclntsh.so
make install
echo "export PATH=$PATH:/usr/local/sysbench/bin">>/etc/profile
source /etc/profile
一般語法
prepare :用于文件IO和數據庫OLTP測試的數據準備階段。
run :性能測試階段
cleanup :移除測試過程中產生的數據
sysbench --test=oltp --oracle-user=lianguser --oracle-password=oracle --oracle-db=LGJDB --db-driver=oracle --oltp-table-size=1000000 --oltp-num-tables=10 prepare
sysbench --test=oltp --oracle-user=lianguser --oracle-password=oracle --oracle-db=LGJDB --db-driver=oracle cleanup
sysbench --num-threads=12 --max-requests=10 --test=oltp --oracle-user=lianguser --oracle-password=oracle --oracle-db=LGJDB --db-driver=oracle --oltp-test-mode=complex --oltp-table-size=1000000 --oltp-num-tables=10 run
總結
以上是生活随笔為你收集整理的数据库压测 oracle,sysbench压测Oracle的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 造车新势力第一!广汽埃安3月销量4001
- 下一篇: 特斯拉中国新品官宣亮相:一个铁箱子卖几千