cannot run 'create tpcc database' on db2 #119
Comments
Did you put "db2jcc4.jar" in the |
Yes, I did. Отправлено со смартфона Samsung Galaxy. -------- Исходное сообщение -------- Did you put "db2jcc4.jar" in the lib directory? We have definitely used the framework with DB2. — |
Actually, try it with ant instead of the command-line script. I don't think that the script is setting the classpath correctly.
If that works, then we should just get rid of that script. |
Should run this command from oltp benchmark machine? Отправлено со смартфона Samsung Galaxy. -------- Исходное сообщение -------- Actually, try it with ant instead of the command-line script. I don't think that the script is setting the classpath correctly. ant execute -Dbenchmark=tpcc -Dconfig=config/d10507 -Dcreate=true If that works, then we should just get rid of that script. — |
Yes, run it on the same machine that you were running the script. |
No, doesn’t work ☹ [root@qa-benchmark oltpbench]# ant execute -Dbenchmark=tpcc -Dconfig=config/d10507 -Dcreate=true execute: BUILD FAILED Total time: 1 second |
Can you try it with SQLite? I think something is wrong with your JDBC jar. |
I did changed the JDBC jar and I have the same problem. |
I will test when I get back to my desk. |
0 Отправлено со смартфона Samsung Galaxy. -------- Исходное сообщение -------- Can you try it with SQLite? I think something is wrong with your JDBC jar. — |
SQLite is working for me using a fresh install. I think something is wrong with your environment. Here is the sample config file and the SQLite TPC-C DDL: sqlite-tpcc.zip
|
Yes., you rigth .I understand rhat I have problem with JDBC . But I don't understand what is this can be.... Отправлено со смартфона Samsung Galaxy. -------- Исходное сообщение -------- SQLite is working for me using a fresh install. I think something is wrong with your environment. Here is the sample config file and the SQLite TPC-C DDL: sqlite-tpcc.ziphttps://github.com/oltpbenchmark/oltpbench/files/388778/sqlite-tpcc.zip pavlo@trajan:/tmp/oltpbench$ ant execute -Dbenchmark=tpcc -Dconfig=config/sqlite_tpcc_config.xml -Dcreate=true -Dload=true execute: — |
Hi, guys,
I did created the tpcc database on db2 . but I cannot run the following command from oltpbench .:
./oltpbenchmark --bench tpcc --config config/d10507 --create true -verbose
[root@qa-benchmark oltpbench]# ./oltpbenchmark --bench tpcc --config config/d10507 --create true -verbose
10:09:33,860 (DBWorkload.java:242) INFO - **********************************************************************************
Benchmark: TPCC {com.oltpbenchmark.benchmarks.tpcc.TPCCBenchmark}
Configuration: config/d10507
Type: DB2
Driver: com.ibm.db2.jcc.DB2Driver
URL: jdbc:DB2://10.10.12.123:50122/d10507
Isolation: TRANSACTION_SERIALIZABLE
Scale Factor: 1.0
10:09:33,862 (DBWorkload.java:243) INFO - **********************************************************************************
10:09:33,878 (DBWorkload.java:495) INFO - Creating new TPCC database...
Exception in thread "main" java.lang.RuntimeException: Unexpected error when trying to create the tpcc database
at com.oltpbenchmark.api.BenchmarkModule.createDatabase(BenchmarkModule.java:224)
at com.oltpbenchmark.DBWorkload.runCreator(DBWorkload.java:685)
at com.oltpbenchmark.DBWorkload.main(DBWorkload.java:496)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:DB2://10.10.12.123:50122/d10507
at java.sql.DriverManager.getConnection(DriverManager.java:689)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at com.oltpbenchmark.api.BenchmarkModule.makeConnection(BenchmarkModule.java:107)
at com.oltpbenchmark.api.BenchmarkModule.createDatabase(BenchmarkModule.java:220)
... 2 more
My config file for db2 d10507:
db2 com.ibm.db2.jcc.DB2Driver jdbc:db2://10.10.12.123:50122/d10507 tpcc db2qa qa1234 100 3600 100 20,20,20,20,20 1 config/dialects/tpcc_dialects.xml TRANSACTION_SERIALIZABLE NewOrder 1 Payment 2 OrderStatus 3 Delivery 4 StockLevel 5And I have the driver for db2 10.5 and on machine of db2 and on machine of oltpbench.
What to do with this?
Thank you !
The text was updated successfully, but these errors were encountered: