rm -f config.cache
./configure --enable-threads --enable-shared
make clean
make
make install
3 安装TK
cd /usr/local/src/tk8.4.5/unix
rm -f config.cache
./configure --with-tcl=../../tcl8.4.5/unix --enable-threads --enable-shared
make clean
make
make install
4 安装TCL Threads
cd /usr/local/src/thread2.5.2/unix
rm -f config.cache
sh ../configure --enable-threads --enable-shared
make clean
make
make install
echo "checking for Oracle 10.0 style toplevel (libclient10.a)" 1>&6
echo "configure:1730: checking for Oracle 10.0 style toplevel (libclient10.a)" >&5
for f in $oracle_directory $oratest1 $oratest2 $oratest3 $oracle4 /opt/oracle /u/oracle /usr/oracle /usr/local/oracle ; do
echo "$ac_t""looking for lib/libclient10.a in $f" 1>&6
if test -r "$f/lib/libclient10.a" ; then
ORA="$f/lib"
ORACLE_HOME=$f
echo "$ac_t""setting ORA to $ORA" 1>&6
testver=10
ORA_MAJOR_VERSION=10
ORA_MINOR_VERSION=0
FOUND_ORACLE=1
break
fi
done
export ORACLE_HOME=your_oracle_home_directory
cd /usr/local/src/oratcl-4-1-branch/unix rm -f config.cache
sh ../configure --with-tcl=../../tcl8.4.5/unix --with-oracle-directory=$ORACLE_HOME --with-oracle-version=9 ( or 10 or 8! ) --enable-threads --enable-shared
注:红色部分为针对不同的数据库版本需要做的调整.
vi Makefile – 把所有的 -rpath 改做 -Wl,-rpath,
make clean
make
make install
sqlplus orabm/orabm @delivery_sp.sql
sqlplus orabm/orabm @new_order_sp.sql.
sqlplus orabm/orabm @ostat_sp.sql
sqlplus orabm/orabm @payment_sp.sql
sqlplus orabm/orabm @slev_sp.sql
步骤
操作
命令
1
创建 ORABM用户(用TOOLS做默认表空间, TEMP 表空间为临时表空间)
sqlplus system/pwd @orabm_user
2
创建表
sqlplus system/pwd @orabm_tab
3
装载数据
$orabmload Warehouses 1
4
创建索引
sqlplus system/pwd @orabm_ind
5
分析表和索引
sqlplus system/pwd @orabm_analyze
6
创建压力测试PL/SQL 过程
sqlplus system/pwd @orabm_serverside_stress
7
把表和索引数据缓冲到SGA
sqlplus system/pwd @orabm_cache
把tpc-c.tcl脚本载入Hammerora中(remember to change the file filter from *.trc to *.tcl to see TCL files),在该tpc-c.tcl中查找connect字符串,调整为你的数据库用户连接信息。并调整虚拟用户信息。
回首页
All Articles (by Fenng) are licensed under a Creative Commons License.
I would welcome any feedback. Please send questions, comments or corrections to dbanotes@gmail.com