为benchmarksql的PostgreSQL java驱动进行升级
2016-01-19 15:52
489 查看
为benchmarksql的PostgreSQL java驱动进行升级
[root@minion1 benchmarksql-4.1.0]# wget https://jdbc.postgresql.org/download/postgresql-9.4.1207.jre7.jar --2016-01-19 15:38:17-- https://jdbc.postgresql.org/download/postgresql-9.4.1207.jre7.jar Resolving jdbc.postgresql.org... 174.143.35.228, 2001:4800:1501:1::228
Connecting to jdbc.postgresql.org|174.143.35.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 608054 (594K) [application/java-archive]
Saving to: ?.ostgresql-9.4.1207.jre7.jar?
100%[===============================================================================>] 608,054 66.8K/s in 8.8s
2016-01-19 15:38:28 (67.3 KB/s) - ?.ostgresql-9.4.1207.jre7.jar?.saved [608054/608054]
[root@minion1 benchmarksql-4.1.0]# ls
build build.xml dist HOW-TO-RUN.txt lib postgresql-9.4.1207.jre7.jar README.txt run src
[root@minion1 benchmarksql-4.1.0]# mv postgresql-9.4.1207.jre7.jar lib/
[root@minion1 benchmarksql-4.1.0]# cd lib/
[root@minion1 lib]# ls
apache-log4j-extras-1.1.jar log4j-1.2.17.jar postgresql-9.3-1101.jdbc41.jar postgresql-9.4.1207.jre7.jar
[root@minion1 lib]# cd /opt/soft_bak/benchmarksql-4.1.0/run/
[root@minion1 run]# ls
clean.sh log4j.xml props.pg runLoader.sh sqlIndexCreates sqlTableCopies sqlTableDrops
log props.ora runBenchmark.sh runSQL.sh sqlIndexDrops sqlTableCreates sqlTableTruncates
修改benchmark脚本里PG驱动程序为新的驱动 程序
[root@minion1 run]# vim runBenchmark.sh
java -cp .:../lib/postgresql-9.4.1207.jre7.jar:../lib/log4j-1.2.17.jar:../lib/apache-log4j-extras-1.1.jar:../dist/BenchmarkSQL-4.1.jar -Dprop=$1 jTPCC
[root@minion1 run]# vim runLoader.sh
java -cp .:../lib/postgresql-9.4.1207.jre7.jar:../dist/BenchmarkSQL-4.1.jar -Dprop=$1 LoadData $2 $3 $4 $5
[root@minion1 run]# vim runSQL.sh
myCP="../lib/postgresql-9.4.1207.jre7.jar"
myCP="$myCP:../dist/BenchmarkSQL-4.1.jar"
myOPTS="-Dprop=$1"
myOPTS="$myOPTS -DcommandFile=$2"
java -cp .:$myCP $myOPTS ExecJDBC
[root@minion1 benchmarksql-4.1.0]# wget https://jdbc.postgresql.org/download/postgresql-9.4.1207.jre7.jar --2016-01-19 15:38:17-- https://jdbc.postgresql.org/download/postgresql-9.4.1207.jre7.jar Resolving jdbc.postgresql.org... 174.143.35.228, 2001:4800:1501:1::228
Connecting to jdbc.postgresql.org|174.143.35.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 608054 (594K) [application/java-archive]
Saving to: ?.ostgresql-9.4.1207.jre7.jar?
100%[===============================================================================>] 608,054 66.8K/s in 8.8s
2016-01-19 15:38:28 (67.3 KB/s) - ?.ostgresql-9.4.1207.jre7.jar?.saved [608054/608054]
[root@minion1 benchmarksql-4.1.0]# ls
build build.xml dist HOW-TO-RUN.txt lib postgresql-9.4.1207.jre7.jar README.txt run src
[root@minion1 benchmarksql-4.1.0]# mv postgresql-9.4.1207.jre7.jar lib/
[root@minion1 benchmarksql-4.1.0]# cd lib/
[root@minion1 lib]# ls
apache-log4j-extras-1.1.jar log4j-1.2.17.jar postgresql-9.3-1101.jdbc41.jar postgresql-9.4.1207.jre7.jar
[root@minion1 lib]# cd /opt/soft_bak/benchmarksql-4.1.0/run/
[root@minion1 run]# ls
clean.sh log4j.xml props.pg runLoader.sh sqlIndexCreates sqlTableCopies sqlTableDrops
log props.ora runBenchmark.sh runSQL.sh sqlIndexDrops sqlTableCreates sqlTableTruncates
修改benchmark脚本里PG驱动程序为新的驱动 程序
[root@minion1 run]# vim runBenchmark.sh
java -cp .:../lib/postgresql-9.4.1207.jre7.jar:../lib/log4j-1.2.17.jar:../lib/apache-log4j-extras-1.1.jar:../dist/BenchmarkSQL-4.1.jar -Dprop=$1 jTPCC
[root@minion1 run]# vim runLoader.sh
java -cp .:../lib/postgresql-9.4.1207.jre7.jar:../dist/BenchmarkSQL-4.1.jar -Dprop=$1 LoadData $2 $3 $4 $5
[root@minion1 run]# vim runSQL.sh
myCP="../lib/postgresql-9.4.1207.jre7.jar"
myCP="$myCP:../dist/BenchmarkSQL-4.1.jar"
myOPTS="-Dprop=$1"
myOPTS="$myOPTS -DcommandFile=$2"
java -cp .:$myCP $myOPTS ExecJDBC
相关文章推荐
- JAVA_NEW和赋值的区别
- 浅谈Java中的对象和对象引用
- 一、基础篇 1.1 JVM 1.1.1. Java内存模型,Java内存管理,Java堆和栈,垃圾回收
- 设计模式:观察者模式(基于 Java)
- spring boot--creating your own auto-configuration
- JAVA学习日记(1)
- 自己记一点springMVC的注解
- 数组转换集合
- Quartz+spring实例应用(受教育其他博主的文章,在原来基础之上进行改正)
- SpringMVC拦截器---解决乱码例子(一)
- 初步理解Java的三大特性——封装、继承和多态
- Maven搭建SpringMVC+Mybatis项目详解
- Eclipse下安装的SVN中文插件转变为英文版
- Eclipse 背景颜色豆沙绿护眼
- java之单例模式【整理】
- (java)urlconnection访问ContentEncoding为gzip的网页
- SpringMVC + Spring + Mybatis + Maven整合实例
- java 线程的开始、暂停、继续
- 浅说 JAVA JVM的那些事
- 【转】eclipse -- the project was not built due to a resource exists with a different case...