- Page 1 and 2: IBM Flex System x240UsingDB2 9.7 En
- Page 3: IBM Flex System x240 w/DB2® v9.7TP
- Page 7 and 8: 6.2. Functionality and Performance
- Page 9 and 10: PrefaceTPC Benchmark TM C Standard
- Page 11 and 12: IBM Flex System x240 Benchmark Conf
- Page 13 and 14: 2. Clause 2: Transaction & Terminal
- Page 15 and 16: 2.11. Mix of Transaction TypesThe m
- Page 17 and 18: Verify that the data base is initia
- Page 19 and 20: 7. The system was powered back on.8
- Page 21 and 22: 4.4. Partitions/Replications Mappin
- Page 23 and 24: dev/disk/by-id/wwn-0x60080e5000233b
- Page 25 and 26: 4.5. 60-Day Space CalculationsDetai
- Page 27 and 28: 5.3. Response Time Frequency Distri
- Page 29 and 30: 80000007000000Avg = 0.2736000000500
- Page 31 and 32: 5.6. Throughput versus Elapsed Time
- Page 33 and 34: written to disk as part of the “S
- Page 35 and 36: 7. Clause 7: Pricing Related Items7
- Page 37 and 38: 7.4. Statement of tpmC and Price/Pe
- Page 42 and 43: 9. Appendix A: Client Server Code9.
- Page 44 and 45: }if (neword->s_transtatus s_transta
- Page 46 and 47: eturn ( clientRc ) ;}// -----------
- Page 48 and 49: {SQL_STRUCTURE sqlca sqlca;}sqleAtt
- Page 50 and 51: fprintf(debug_fp,"out_neword_struct
- Page 52 and 53: * equal to ITEMS + 1. *//* ********
- Page 54 and 55:
@REM ** IMPORTANT NOTE **@REM The k
- Page 56 and 57:
#include#include#include "sqlca.h"#
- Page 58 and 59:
current_tmstmp(&timeStamp[0]);timeS
- Page 60 and 61:
all:clean:connect explain catalog $
- Page 62 and 63:
SPECIFIC PAY_C_LAST, C_CITY VARCHAR
- Page 64 and 65:
VAR: BEGIN ATOMICDECLARE I_PRICE DE
- Page 66 and 67:
int inputItemArrayIndex ;char stock
- Page 68 and 69:
;) AS INSFROM DATA, I_PRICE, I_NAME
- Page 70 and 71:
;SELECT I_PRICE , I_NAME , I_DATA ,
- Page 72 and 73:
, I_SUPPLY_W_ID, (TIMESTAMP('0001-0
- Page 74 and 75:
;) AS INSFROM DATA, TOTAL_PRICE, OL
- Page 76 and 77:
;, OL_W_ID, OL_NUMBER, OL_I_ID, OL_
- Page 78 and 79:
:ol_quantity0 ):ol_quantity1 ):ol_q
- Page 80 and 81:
}break ;case 12:EXEC SQL OPEN ISOL_
- Page 82 and 83:
:c_lastINTO :o_id, :o_carrier_id ,
- Page 84 and 85:
#define A_C_LAST 255#define A_C_ID
- Page 86 and 87:
char *msg);extern void stk_print (s
- Page 88 and 89:
Automatic runstats (AUTO_RUNSTATS)
- Page 90 and 91:
1301461633193551678399115131147164d
- Page 92 and 93:
"RegistrationEnabled"=dword:0000000
- Page 94 and 95:
"DhcpGatewayHardware"=hex:0a,01,01,
- Page 96 and 97:
echo "Before: /proc/sys/kernel/rand
- Page 98 and 99:
dev/disk/by-id/wwn-0x60080e5000233a
- Page 100 and 101:
11. Database Setup Code11.1. Databa
- Page 102 and 103:
create regular tablespace W_030 PAG
- Page 104 and 105:
using ( device '/dev/tpcc/W_066' 25
- Page 106 and 107:
using ( device '/dev/tpcc/W_102' 25
- Page 108 and 109:
using ( device '/dev/tpcc/D_018' 10
- Page 110 and 111:
using ( device '/dev/tpcc/D_054' 10
- Page 112 and 113:
using ( device '/dev/tpcc/D_090' 10
- Page 114 and 115:
connect reset;CRTS_S_006.ddlconnect
- Page 116 and 117:
drop tablespace S_042;create regula
- Page 118 and 119:
using ( device '/dev/tpcc/S_078' 95
- Page 120 and 121:
using ( device '/dev/tpcc/S_114' 95
- Page 122 and 123:
using ( device '/dev/tpcc/C_030' 68
- Page 124 and 125:
using ( device '/dev/tpcc/C_066' 68
- Page 126 and 127:
using ( device '/dev/tpcc/C_102' 68
- Page 128 and 129:
using ( device '/dev/tpcc/O_018' 21
- Page 130 and 131:
using ( device '/dev/tpcc/O_054' 21
- Page 132 and 133:
using ( device '/dev/tpcc/O_090' 21
- Page 134 and 135:
using ( device '/dev/tpcc/OL_006' 5
- Page 136 and 137:
using ( device '/dev/tpcc/OL_042' 5
- Page 138 and 139:
using ( device '/dev/tpcc/OL_078' 5
- Page 140 and 141:
using ( device '/dev/tpcc/OL_114' 5
- Page 142 and 143:
using ( device '/dev/tpcc/N_030' 10
- Page 144 and 145:
using ( device '/dev/tpcc/N_066' 10
- Page 146 and 147:
using ( device '/dev/tpcc/N_102' 10
- Page 148 and 149:
using ( device '/dev/tpcc/H_018' 16
- Page 150 and 151:
using ( device '/dev/tpcc/H_054' 16
- Page 152 and 153:
using ( device '/dev/tpcc/H_090' 16
- Page 154 and 155:
using ( device '/dev/tpcc/O2_006' 1
- Page 156 and 157:
using ( device '/dev/tpcc/O2_042' 1
- Page 158 and 159:
using ( device '/dev/tpcc/O2_078' 1
- Page 160 and 161:
using ( device '/dev/tpcc/O2_114' 1
- Page 162 and 163:
using ( device '/dev/tpcc/C2_030' 2
- Page 164 and 165:
using ( device '/dev/tpcc/C2_066' 2
- Page 166 and 167:
using ( device '/dev/tpcc/C2_102' 2
- Page 168 and 169:
alter tablespace C_057 prefetchsize
- Page 170 and 171:
alter tablespace N_064 prefetchsize
- Page 172 and 173:
alter tablespace O_072 prefetchsize
- Page 174 and 175:
connect reset;(W_NAME CHAR(10) NOT
- Page 176 and 177:
connect reset;W_ZIP CHAR(9) NOT NUL
- Page 178 and 179:
connect reset;W_ID STARTING FROM 35
- Page 180 and 181:
DROP TABLE WAREHOUSE50;CREATE TABLE
- Page 182 and 183:
connect reset;W_ZIP CHAR(9) NOT NUL
- Page 184 and 185:
connect reset;W_ID STARTING FROM 84
- Page 186 and 187:
DROP TABLE WAREHOUSE96;CREATE TABLE
- Page 188 and 189:
connect reset;W_ZIP CHAR(9) NOT NUL
- Page 190 and 191:
CREATE TABLE DISTRICT6(D_NEXT_O_ID
- Page 192 and 193:
connect reset;D_ID STARTING FROM 1
- Page 194 and 195:
connect reset;D_STREET_1 CHAR(20) N
- Page 196 and 197:
CRTB_DISTRICT47.ddlconnect to TPCC
- Page 198 and 199:
connect reset;D_W_ID INTEGER NOT NU
- Page 200 and 201:
connect reset;(D_NEXT_O_ID INTEGER
- Page 202 and 203:
connect reset;D_ID STARTING FROM 1
- Page 204 and 205:
connect reset;D_STREET_1 CHAR(20) N
- Page 206 and 207:
CRTB_DISTRICT115.ddlconnect to TPCC
- Page 208 and 209:
connect reset;CRTB_STOCK7.ddlS_DIST
- Page 210 and 211:
connect reset;)IN S_017INDEX IN S_0
- Page 212 and 213:
connect reset;S_W_ID STARTING FROM
- Page 214 and 215:
CRTB_STOCK40.ddlconnect to TPCC in
- Page 216 and 217:
CREATE TABLE STOCK51(S_REMOTE_CNT I
- Page 218 and 219:
connect reset;S_YTD INTEGER NOT NUL
- Page 220 and 221:
connect reset;S_DIST_04 CHAR(24) NO
- Page 222 and 223:
connect reset;S_DIST_08 CHAR(24) NO
- Page 224 and 225:
connect reset;)IN S_095INDEX IN S_0
- Page 226 and 227:
connect reset;S_W_ID STARTING FROM
- Page 228 and 229:
CRTB_STOCK118.ddlconnect to TPCC in
- Page 230 and 231:
connect to TPCC in share mode;DROP
- Page 232 and 233:
connect reset;IN C_017INDEX IN C2_0
- Page 234 and 235:
connect reset;C_DATA VARCHAR(500) N
- Page 236 and 237:
DROP TABLE CUSTOMER37;CREATE TABLE
- Page 238 and 239:
connect reset;INDEX IN C2_046ORGANI
- Page 240 and 241:
connect reset;C_DATA VARCHAR(500) N
- Page 242 and 243:
DROP TABLE CUSTOMER66;CREATE TABLE
- Page 244 and 245:
connect reset;INDEX IN C2_075ORGANI
- Page 246 and 247:
connect reset;C_DATA VARCHAR(500) N
- Page 248 and 249:
DROP TABLE CUSTOMER95;CREATE TABLE
- Page 250 and 251:
connect reset;INDEX IN C2_104ORGANI
- Page 252 and 253:
connect reset;C_DATA VARCHAR(500) N
- Page 254 and 255:
connect reset;INDEX IN O2_005ORGANI
- Page 256 and 257:
connect reset;O_CARRIER_ID SMALLINT
- Page 258 and 259:
CRTB_ORDERS35.ddlconnect to TPCC in
- Page 260 and 261:
connect reset;INDEX IN O2_049ORGANI
- Page 262 and 263:
connect reset;O_CARRIER_ID SMALLINT
- Page 264 and 265:
CRTB_ORDERS79.ddlconnect to TPCC in
- Page 266 and 267:
connect reset;INDEX IN O2_093ORGANI
- Page 268 and 269:
connect reset;O_CARRIER_ID SMALLINT
- Page 270 and 271:
connect reset;OL_O_ID STARTING FROM
- Page 272 and 273:
connect reset;CRTB_ORDER_LINE16.ddl
- Page 274 and 275:
connect to TPCC in share mode;DROP
- Page 276 and 277:
connect reset;OL_DELIVERY_D TIMESTA
- Page 278 and 279:
connect reset;OL_QUANTITY SMALLINT
- Page 280 and 281:
connect reset;OL_W_ID INTEGER NOT N
- Page 282 and 283:
connect reset;INDEX IN OL_081ORGANI
- Page 284 and 285:
connect reset;OL_O_ID STARTING FROM
- Page 286 and 287:
connect reset;CRTB_ORDER_LINE108.dd
- Page 288 and 289:
connect to TPCC in share mode;DROP
- Page 290 and 291:
connect reset;IN N_019INDEX IN N_01
- Page 292 and 293:
connect reset;CRTB_NEW_ORDER38.ddlc
- Page 294 and 295:
connect reset;NO_O_ID INTEGER NOT N
- Page 296 and 297:
connect reset;NO_D_ID STARTING FROM
- Page 298 and 299:
connect to TPCC in share mode;DROP
- Page 300 and 301:
connect reset;IN N_111INDEX IN N_11
- Page 302 and 303:
connect reset;CRTB_HISTORY10.ddlcon
- Page 304 and 305:
H_C_ID INTEGER NOT NULL,H_C_D_ID SM
- Page 306 and 307:
)IN H_046INDEX IN H_046;ALTER TABLE
- Page 308 and 309:
connect to TPCC in share mode;DROP
- Page 310 and 311:
H_W_ID INTEGER NOT NULL,H_DATE TIME
- Page 312 and 313:
connect reset;CRTB_HISTORY102.ddlco
- Page 314 and 315:
H_C_ID INTEGER NOT NULL,H_C_D_ID SM
- Page 316 and 317:
autobench/sources/db2_tpcc-1/users/
- Page 318 and 319:
autobench/sources/db2_tpcc-1/users/
- Page 320 and 321:
autobench/sources/db2_tpcc-1/users/
- Page 322 and 323:
autobench/sources/db2_tpcc-1/users/
- Page 324 and 325:
autobench/sources/db2_tpcc-1/users/
- Page 326 and 327:
autobench/sources/db2_tpcc-1/users/
- Page 328 and 329:
autobench/sources/db2_tpcc-1/users/
- Page 330 and 331:
autobench/sources/db2_tpcc-1/users/
- Page 332 and 333:
autobench/sources/db2_tpcc-1/users/
- Page 334 and 335:
autobench/sources/db2_tpcc-1/users/
- Page 336 and 337:
autobench/sources/db2_tpcc-1/users/
- Page 338 and 339:
CONNECT TO TPCC IN SHARE MODE;IMPOR
- Page 340 and 341:
IMPORT FROM /database/flats/flat50/
- Page 342 and 343:
IMPORT FROM /database/flats/flat90/
- Page 344 and 345:
IMPORT FROM /database/flats/flat10/
- Page 346 and 347:
IMPORT FROM /database/flats/flat50/
- Page 348 and 349:
IMPORT FROM /database/flats/flat90/
- Page 350 and 351:
LOAD_STOCK8_1.ddlCONNECT TO TPCC IN
- Page 352 and 353:
LOAD_STOCK41_1.ddlCONNECT TO TPCC I
- Page 354 and 355:
LOAD_STOCK74_1.ddlCONNECT TO TPCC I
- Page 356 and 357:
LOAD_STOCK107_1.ddlCONNECT TO TPCC
- Page 358 and 359:
LOAD_CUSTOMER20_1.ddlCONNECT TO TPC
- Page 360 and 361:
LOAD_CUSTOMER53_1.ddlCONNECT TO TPC
- Page 362 and 363:
LOAD_CUSTOMER86_1.ddlCONNECT TO TPC
- Page 364 and 365:
LOAD_CUSTOMER119_1.ddlCONNECT TO TP
- Page 366 and 367:
LOAD_ORDERS32_1.ddlCONNECT TO TPCC
- Page 368 and 369:
LOAD_ORDERS65_1.ddlCONNECT TO TPCC
- Page 370 and 371:
LOAD_ORDERS98_1.ddlCONNECT TO TPCC
- Page 372 and 373:
LOAD_ORDER_LINE11_1.ddlCONNECT TO T
- Page 374 and 375:
LOAD_ORDER_LINE44_1.ddlCONNECT TO T
- Page 376 and 377:
LOAD_ORDER_LINE77_1.ddlCONNECT TO T
- Page 378 and 379:
LOAD_ORDER_LINE110_1.ddlCONNECT TO
- Page 380 and 381:
CONNECT TO TPCC IN SHARE MODE;IMPOR
- Page 382 and 383:
IMPORT FROM /database/flats/flat68/
- Page 384 and 385:
IMPORT FROM /database/flats/flat108
- Page 386 and 387:
LOAD FROM /database/flats/flat36/hi
- Page 388 and 389:
LOAD FROM /database/flats/flat88/hi
- Page 390 and 391:
connect to TPCC in share mode;SET I
- Page 392 and 393:
SET INTEGRITY FOR WAREHOUSE56 ALL I
- Page 394 and 395:
CRCONST_WAREHOUSE97.ddlconnect to T
- Page 396 and 397:
connect to TPCC in share mode;SET I
- Page 398 and 399:
SET INTEGRITY FOR DISTRICT55 ALL IM
- Page 400 and 401:
connect to TPCC in share mode;SET I
- Page 402 and 403:
connect to TPCC in share mode;SET I
- Page 404 and 405:
SET INTEGRITY FOR STOCK54 ALL IMMED
- Page 406 and 407:
SET INTEGRITY FOR STOCK95 OFF;ALTER
- Page 408 and 409:
connect reset;CRCONST_CUSTOMER16.dd
- Page 410 and 411:
ALTER TABLE CUSTOMER56 DROP CONSTRA
- Page 412 and 413:
ALTER TABLE CUSTOMER96 ADD CONSTRAI
- Page 414 and 415:
connect to TPCC in share mode;SET I
- Page 416 and 417:
SET INTEGRITY FOR ORDERS54 ALL IMME
- Page 418 and 419:
SET INTEGRITY FOR ORDERS95 OFF;ALTE
- Page 420 and 421:
ALTER TABLE ORDER_LINE14 DROP CONST
- Page 422 and 423:
ALTER TABLE ORDER_LINE50 ADD CONSTR
- Page 424 and 425:
ALTER TABLE ORDER_LINE86 ADD CONSTR
- Page 426 and 427:
CRCONST_NEW_ORDER3.ddlconnect to TP
- Page 428 and 429:
SET INTEGRITY FOR NEW_ORDER40 OFF;A
- Page 430 and 431:
ALTER TABLE NEW_ORDER76 ADD CONSTRA
- Page 432 and 433:
ALTER TABLE NEW_ORDER112 ADD CONSTR
- Page 434 and 435:
SET INTEGRITY FOR HISTORY32 OFF;ALT
- Page 436 and 437:
connect reset;CRCONST_HISTORY73.ddl
- Page 438 and 439:
connect to TPCC in share mode;SET I
- Page 440 and 441:
connect reset;CRIDX_CUST_IDXB36.ddl
- Page 442 and 443:
DROP INDEX CUST_IDXB81;CREATE INDEX
- Page 444 and 445:
DROP INDEX ORDR_IDXB6;CREATE INDEX
- Page 446 and 447:
PCTFREE 20;connect reset;CRIDX_ORDR
- Page 448 and 449:
PCTFREE 20;connect reset;CRIDX_ORDR
- Page 450 and 451:
connect to TPCC in share mode;RUNST
- Page 452 and 453:
connect to TPCC in share mode;RUNST
- Page 454 and 455:
connect to TPCC in share mode;RUNST
- Page 456 and 457:
connect to TPCC in share mode;RUNST
- Page 458 and 459:
connect to TPCC in share mode;RUNST
- Page 460 and 461:
connect to TPCC in share mode;RUNST
- Page 462 and 463:
connect to TPCC in share mode;RUNST
- Page 464 and 465:
connect to TPCC in share mode;RUNST
- Page 466 and 467:
connect to TPCC in share mode;RUNST
- Page 468 and 469:
connect to TPCC in share mode;RUNST
- Page 470 and 471:
connect to TPCC in share mode;RUNST
- Page 472 and 473:
connect to TPCC in share mode;RUNST
- Page 474 and 475:
connect to TPCC in share mode;RUNST
- Page 476 and 477:
connect to TPCC in share mode;RUNST
- Page 478 and 479:
connect to TPCC in share mode;RUNST
- Page 480 and 481:
connect to TPCC in share mode;RUNST
- Page 482 and 483:
connect to TPCC in share mode;RUNST
- Page 484 and 485:
connect to TPCC in share mode;RUNST
- Page 486 and 487:
connect to TPCC in share mode;RUNST
- Page 488 and 489:
alter tablespace D_001 prefetchsize
- Page 490 and 491:
alter tablespace O2_008 prefetchsiz
- Page 492 and 493:
alter tablespace S_016 prefetchsize
- Page 494 and 495:
CREATE BUFFERPOOL HST11 SIZE 100 PA
- Page 496 and 497:
ALTER TABLESPACE C_004 BUFFERPOOL C
- Page 498 and 499:
ALTER TABLESPACE O_036 BUFFERPOOL O
- Page 500 and 501:
ALTER TABLESPACE N_068 BUFFERPOOL N
- Page 502 and 503:
Makefile.config####################
- Page 504 and 505:
* Current time in SECONDS, precisio
- Page 506 and 507:
* Scaling Report: -s* Quiet Mode: -
- Page 508 and 509:
if (rc != 0) { goto item_done; }for
- Page 510 and 511:
create_random_a_string( ware_name,
- Page 512 and 513:
}for (ware_num = ware_start; ware_n
- Page 514 and 515:
}/*--------------------------------
- Page 516 and 517:
oline_dist_info,ord_num,dist_num,wa
- Page 518 and 519:
***********************************
- Page 520 and 521:
* random alphanumeric string with t
- Page 522 and 523:
if ( semop(hnd, &semBuf, 1) < 0 ) \
- Page 524:
#endif // __TPCCRND_Hinclude/tpccen