数据库压测 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和數(shù)據(jù)庫OLTP測試的數(shù)據(jù)準(zhǔn)備階段。
run :性能測試階段
cleanup :移除測試過程中產(chǎn)生的數(shù)據(jù)
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
總結(jié)
以上是生活随笔為你收集整理的数据库压测 oracle,sysbench压测Oracle的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 造车新势力第一!广汽埃安3月销量4001
- 下一篇: oracle数据库安装自动化,自动化Or