13.07.2015 Views

IBM Flex System x240 w

IBM Flex System x240 w

IBM Flex System x240 w

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11. Database Setup Code11.1. Database Creation Scriptscreate_database.ddl------------------------------------------------------------------------------- Licensed Materials - Property of <strong>IBM</strong>---- Governed under the terms of the International-- License Agreement for Non-Warranted Sample Code.---- (C) COPYRIGHT International Business Machines Corp. 1996 - 2010-- All Rights Reserved.---- US Government Users Restricted Rights - Use, duplication or-- disclosure restricted by GSA ADP Schedule Contract with <strong>IBM</strong> Corp.---------------------------------------------------------------------------------- create_database.ddl--drop database tpcc;create database tpcc on /autobench/sources/db2_tpcc-1/db_home using codeset ISO8859-1territory US collate using identity catalog tablespace managed by system using('/autobench/sources/db2_tpcc-1/db_home/db1catalog');create_default_bufferpool.ddl-------------------------------------------------------------------------------- Licensed Materials - Property of <strong>IBM</strong>---- (C) COPYRIGHT International Business Machines Corp. 1996, 2010-- All Rights Reserved.---- US Government Users Restricted Rights - Use, duplication or-- disclosure restricted by GSA ADP Schedule Contract with <strong>IBM</strong> Corp.---------------------------------------------------------------------------------- create_bufferpool.ddl.sample - Sample Create Bufferpool DDL--connect to tpcc;-- @twb01c: change <strong>IBM</strong>DEFAULTBP to ALTER syntax.alter bufferpool <strong>IBM</strong>DEFAULTBP size 1000;create bufferpool <strong>IBM</strong>DEFAULT8K size 1000 pagesize 8192;create bufferpool <strong>IBM</strong>DEFAULT16K size 1000 pagesize 16384;create bufferpool <strong>IBM</strong>DEFAULT32K size 1000 pagesize 32768;connect reset;terminate;CRTS_W_001.ddlconnect to TPCC in share mode;drop tablespace W_001;create regular tablespace W_001 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_001' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_002.ddlconnect to TPCC in share mode;drop tablespace W_002;create regular tablespace W_002 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_002' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_003.ddlconnect to TPCC in share mode;drop tablespace W_003;create regular tablespace W_003 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_003' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_004.ddlconnect to TPCC in share mode;drop tablespace W_004;create regular tablespace W_004 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_004' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_005.ddlconnect to TPCC in share mode;drop tablespace W_005;create regular tablespace W_005 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_005' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_006.ddlconnect to TPCC in share mode;drop tablespace W_006;create regular tablespace W_006 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_006' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_007.ddlconnect to TPCC in share mode;drop tablespace W_007;create regular tablespace W_007 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_007' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_008.ddlconnect to TPCC in share mode;drop tablespace W_008;create regular tablespace W_008 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_008' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_009.ddlconnect to TPCC in share mode;drop tablespace W_009;create regular tablespace W_009 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_009' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_010.ddlconnect to TPCC in share mode;drop tablespace W_010;create regular tablespace W_010 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_010' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_011.ddlconnect to TPCC in share mode;drop tablespace W_011;create regular tablespace W_011 PAGESIZE 4096 managed by databaseusing ( device '/dev/tpcc/W_011' 256 ) EXTENTSIZE 32 PREFETCHSIZE 0 BUFFERPOOL<strong>IBM</strong>DEFAULTBP;connect reset;CRTS_W_012.ddl

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!