Customer Support Note

Size: px
Start display at page:

Download "Customer Support Note"

Transcription

1 Customer Support Note ASG-ViewDirect-MVS 6.4 & 6.5 Contents

2 BIND PLANVDRMVSvv MEMBERVDRDBRvv - ISOLATIONUR - KEEPDYNAMICYES - NOREOPTVARS - RELEASECOMMIT RUN PROGRAMDSNTIAD PLANDSNTIA!! LIB'DSN!!0.RUNLIB.LOAD' BIND PACKAGExxxxxxxx.VDRCOLvv - ACTIONREPLACE - CURRENTDATAYES - DBPROTOCOLDRDA - NODEFERPREPARE - DYNAMICRULESRUN - ENABLE* -

3

4

5 //* plan name must be specified in //* - the BIND PLAN statement of this JCL procedure //* - the GRANT statement of this JCL procedure //* - the DBMS Subsystem Media Table CESMTV09. //* //* 5 In the "RUN PROGRAMDSNTIAD" statement, the user must //* specify the plan name for DSNTIAD normally, DSNTIA!! //* and the load library in which DSNTIAD resides normally, //* DSN!!0.RUNLIB.LOAD, where "!!" denotes a DB2 version/release //* level. DSNTIAD is an IBM-supplied utility its plan name //* and load library are determined during DB2 installation. //* //* 6 In the "GRANT... TO" statement, replace "AUTHID" with //* the authorization ID of the VDRMVS tables to be created. //* Be sure to specify your choice of Owner ID in the //* VDR/MVS DB2 customization module CESMTV09. //* //* 7 For DB2 V9 and later releases, uncomment and add //* the following to both BIND PACKAGE and BIND PLAN. Be sure //* to include or delete the continuation character '-' //* as needed: //* //* ROUNDINGHALFUP //* //* 8 For DB2 V10 and later releases, uncomment and add //* the following to BIND PACKAGE. Be sure to include or //* delete the continuation character '-' as needed: //* //* CONCURRENTACCESSRESOLUTIONUSECURRENTLYCOMMITTED - //* //* Add the following to BIND PLAN. Be sure to include or //* delete the continuation character '-' as needed: //* //* EXTENDEDINDICATORNO - //* //* 9 Add any installation-specific package/plan management //* parameters that are needed, such as ACTION... RETAIN. //* //* BIND Options: //* //* The following are brief descriptions of specified and optional //* parameters. Consult the DB2 documentation for additional //* details and the most current information. //* //* ACQUIREUSE Obtain table space locks on first use. //* ACTIONREPLACE Replace current package/plan on bind. //* Note: RETAIN may also be specified on //* the BIND PLAN to GRANT plan execute //* privileges to the previous owner when //* the plan owner changes. //* CONCURRENTACCESSRESOLUTION DB2 V10 and later releases only: //* USECURRENTLYCOMMITTED Skip uncommitted data on read. //* CURRENTDATAYES Obtain locks for read only cursors. //* DBPROTOCOLDRDA Use DRDA protocol to connect to remote //* sites. //* NODEFERPREPARE PREPARE remote dynamic SQL immediately. //* DISCONNECTEXPLICIT Only disconnect "release pending"

6 //* threads on COMMIT. //* DYNAMICRULESRUN Set RUN behavior for dynamic SQL: //* * Application process AUTH ID and //* CURRENT SQLID value used to //* determine SQL query authorization. //* * CURRENT SCHEMA defaults to //* CURRENT SQLID qualifies tables, //* indexes, aliases. //* * Installation application program //* options apply. //* ENABLE* Permit package/plan access for all //* valid connection types, e.g., //* BATCH, CICS, DB2CALL. //* ENCODINGEBCDIC Default application encoding scheme //* is EBCDIC. //* EXPLAINNO Do not collect/store EXPLAIN //* query data. //* EXTENDEDINDICATORNO DB2 V10 and later releases only: //* Do not use extended indicator //* variables for SQL query data. //* FLAGI Display all messages, including //* informational messages. //* IMMEDWRITENO Data sharing environments only: //* perform updates at COMMIT/ROLLBACK. //* ISOLATIONUR Uncommitted reads permitted locks //* not acquired on read. //* KEEPDYNAMICYES Store dynamic SQL statements in //* cache following COMMIT. //* MEMBERVDRDBR66 DBRM name to be bound into package. //* This becomes the package name. //* OWNER******** Plan/package authorization ID. Must //* match C*SMTV09 SMT OWNERID= parameter. //* Value used to implicitly qualify //* table/index names when //* DYNAMICRULESRUN is in effect. //* PACKAGExxxxxxxx.VDRCOL66 Identifies the collection xxxxxxxx //* is the location. //* PKLISTxxxxxxxx.VDRCOL66.* Identifies the collection of packages //* to be bound into the plan xxxxxxxx //* is the location. //* PLANVDRDBR66 Specifies the bound plan name. //* QUALIFIER******** Authorization ID used as implicit //* qualifier for static distinct types, //* functions, procedures, specific names. //* This value is not used to qualify //* tables/indexes when DYNAMICRULESRUN //* is specified. Use of same value as //* OWNER is recommended. //* RELEASECOMMIT Release in-use program resources at //* COMMIT. //* REOPTNONE Do not determine dynamic statement //* access path at run time. //* ROUNDINGHALFUP DB2 V9 and later releases only: //* Round floating point values up to //* next least significant digit when //* equidistant from greater than/less //* than value. //* SQLERRORNOPACKAGE Do not create the package on SQL error.

7 //* SQLRULESDB2 Type 2 CONNECTs to an existing SQL //* connection are permitted. //* VALIDATERUN Authorization and object existence //* checks may be performed at run time //* rather than at bind time. //* //INSTALL7 PROC DISKPFX='VIEW.DIRECT', <=== DISK DATASET PREFIX // SYSOUT='*' <=== YOUR SYSOUT CLASS //* //BIND EXEC PGM=IKJEFT01,REGION=60M,DYNAMNBR=20 //STEPLIB DD DSN=DSN!!0.SDSNLOAD,DISP=SHR //DBRMLIB DD DSN=&DISKPFX..SOURCE,DISP=SHR //SYSTSPRT DD SYSOUT=&SYSOUT //SYSPRINT DD SYSOUT=&SYSOUT //SYSUDUMP DD SYSOUT=&SYSOUT // PEND //* // EXEC INSTALL7 //BIND.SYSTSIN DD * DSN SYSTEMDS!! BIND PACKAGExxxxxxxx.VDRCOL66 - ACTIONREPLACE - CURRENTDATAYES - DBPROTOCOLDRDA - NODEFERPREPARE - DYNAMICRULESRUN - ENABLE* - ENCODINGEBCDIC - EXPLAINNO - ISOLATIONUR - KEEPDYNAMICYES - MEMBERVDRDBR66 - OWNER****** - QUALIFIER****** - RELEASECOMMIT - REOPTNONE - SQLERRORNOPACKAGE - VALIDATERUN BIND PLANVDRDBR66 - ACQUIREUSE - ACTIONREPLACE - CURRENTDATAYES - DBPROTOCOLDRDA - NODEFERPREPARE - DISCONNECTEXPLICIT - DYNAMICRULESRUN - ENABLE* - ENCODINGEBCDIC - EXPLAINNO - FLAGI - IMMEDWRITENO - ISOLATIONUR - KEEPDYNAMICYES - OWNER****** - PKLISTxxxxxxxx.VDRCOL66.* - QUALIFIER****** - RELEASECOMMIT - REOPTNONE -

8

9

10

11

12 --================================================================== -- General DBMS Definitions --================================================================== ** Database -- CREATE DATABASE VDRMVSxx ** Storage Group -- CREATE STOGROUP VDRGRPid -- VOLUMES VVVVI1, VVVVI2, VVVVI3, VCAT VDRCATLG -- --================================================================== -- DBMS object for Schema Control Table --================================================================== ** Tablespace

13 As of DB2 V9, a segmented table space is recommended for schema control data. -- DROP TABLESPACE VDRMVSxx.SCHMACTL -- COMMIT CREATE TABLESPACE SCHMACTL -- for Control table IN VDRMVSxx -- by default SYSDEFLT PRIQTY 10 SECQTY 10 FREEPAGE 1 PCTFREE 0 TRACKMOD YES BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR LOCKSIZE ANY LOCKMAX SYSTEM CCSID EBCDIC MAXROWS 255 SEGSIZE 4 -- Pages per segment ** Table CREATE TABLE CONTROL SCHEMA_VERSION VARCHAR32 NOT NULL, EXT_ATTR VARCHAR64 DEFAULT NULL in VDRMVSxx.SCHMACTL ** Put the schema version into the Control table INSERT INTO CONTROL SCHEMA_VERSION values'4.0' COMMIT --================================================================== -- Document Reference DBMS object --==================================================================

14 ** Table Space DB2 V8: If you are accessing a DB2 V8 subsystem, both simple and partitioned table spaces can still be created however, you may wish to consider defining non-partitioned table spaces as segmented using the SEGSIZE parameter as discussed below. SEGSIZE cannot be used with NUMPARTS in V8 universal table spaces/option MAXPARTITIONS are not available. If any of your table spaces are partitioned, you may also choose to use table-controlled partitioning as shown below. DB2 V9 or later: As of DB2 V9, range-partitioned universal table spaces are recommended for document reference data: NUMPARTS, Number of partitions, , maximum varies with page size, DSSIZE, extended addressability SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Partition definition: NUMPARTS 1000 Desired number of partitions, LOCKPART YES -- or alternate USING parameters for partitions -- MEMBER CLUSTER is optional, data sharing environment only PART 1 USING... MEMBER CLUSTER, PART 2 USING... MEMBER CLUSTER,... PART 1000 USING... MEMBER CLUSTER Table-controlled partitioning is required for universal table spaces. Other applicable parameters: DSSIZE, Maximum partition size: 1,2,4,8,16,32,64G varies with page size, DSSIZE, EA Sample definitions are provided below customize for your installation data requirements. Consult DB2 documentation for further details. -- DROP TABLESPACE VDRMVSxx.DOCREFTS -- COMMIT CREATE TABLESPACE DOCREFTS -- for DOC_REF table -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later

15 IN VDRMVSxx FREEPAGE 1 PCTFREE 0 TRACKMOD YES BUFFERPOOL BPid -- by default DSNDB04 -- by default SYSDEFLT -- PRIQTY and SECQTY maximum values , DFSMS , >DFSMS integer nnn KB -- integer nnn KB -- YES for security purposes -- BP0, or Buffer pool designated for VDR SEGSIZE Segment size, pages, 4-64 multiple of 4 MEMBER CLUSTER -- Data sharing only, optional -- NUMPARTS Desired number of partitions -- LOCKPART YES Alternate USING parameters for partitions -- PART 1 USING... MEMBER CLUSTER, -- PART 2 USING... MEMBER CLUSTER, PART 1000 USING... MEMBER CLUSTER -- LOCKSIZE ANY LOCKMAX SYSTEM COMPRESS YES CCSID EBCDIC MAXROWS 255 ** Table & Indexes CREATE TABLE DOC_REF DOC_ID NUMERIC19,8 not null, STARTING_PAGE_NUM INTEGER not null, STARTING_PAGE_RBA INTEGER not null, PAGE_COUNT INTEGER not null, RPT_ID CHAR10 not null, RPT_VERSION_ID_CMP CHAR14 not null, SECTION_ID CHAR30 not null in VDRMVSxx.DOCREFTS -- PARTITION BY RANGE -- DOC_ID ASC PARTITION 1 ENDING AT INCLUSIVE, -- PARTITION 2 ENDING AT INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE --

16 CREATE UNIQUE INDEX IX_DOCREF_PK ON DOC_REF DOC_ID ASC -- by default SYSDEFLT -- CLUSTER -- PARTITIONED -- Valid for range-partitioned TS only BUFFERPOOL BPid PIECESIZE <size>g -- Non-partitioned indexes only COPY NO -- BP0, or Buffer pool designated for VDR CREATE UNIQUE INDEX IX_DOCREF_A ON DOC_REF RPT_ID RPT_VERSION_ID_CMP STARTING_PAGE_NUM BUFFERPOOL BPid ASC, ASC, ASC -- by default SYSDEFLT -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- Non-partitioned indexes only COPY NO CREATE INDEX IX_DOCREF_D ON DOC_REF RPT_ID RPT_VERSION_ID_CMP STARTING_PAGE_NUM DESC, DESC, DESC -- by default SYSDEFLT

17 BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR COPY NO CREATE GLOBAL TEMPORARY TABLE TEMP_TOPIC_VALUE DOC_ID numeric19,8 not null, TOPIC_ID char10 not null, TOPIC_DATA_TYPE smallint not null, JOIN_GROUP smallint not null, PAGE_OF_DOC integer not null, LINE_OF_PAGE integer not null, TOPIC_VALUE varchar255 not null CCSID EBCDIC COMMIT --================================================================== --================================================================== -- Annotation DBMS objects --================================================================== ** Tablespaces DB2 V8: If you are accessing a DB2 V8 subsystem, both simple and partitioned table spaces can still be created however, you may wish to consider defining non-partitioned table spaces as segmented using the SEGSIZE parameter as discussed below. SEGSIZE cannot be used with NUMPARTS in V8 universal table spaces/option MAXPARTITIONS are not available. If any of your table spaces are partitioned, you may also choose to use table-controlled partitioning as shown below. DB2 V9 or later: As of DB2 V9, range-partitioned universal table spaces are recommended for most large ViewDirect table spaces, as long as your data provides a key that will result in even data distribution. This may not be possible with annotation tables. NUMPARTS, Number of partitions, , varies with page size, DSSIZE, extended addressability SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Partition definition: NUMPARTS 256 Desired number of partitions

18 LOCKPART YES -- or alternate USING parameters for partitions -- MEMBER CLUSTER is optional, data sharing environment only PART 1 USING... MEMBER CLUSTER, PART 2 USING... MEMBER CLUSTER,... PART 256 USING... MEMBER CLUSTER Otherwise, partition-by-growth table spaces are recommended for table spaces that are expected to be large: MAXPARTITIONS, Maximum number of growth partitions, varies with page size, DSSIZE DSSIZE, Maximum partition size, 1,2,4,8,16,32,64G SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Table-controlled rather than index-controlled partitioning is required for use with range-partitioned and partition-by-growth table spaces. Segmented table space definitions are provided for smaller table spaces however, if you project limited use of annotation support, the table spaces below may also be defined as segmented: select a SEGSIZE value approximately equal to but not less than the expected size of the table. The NUMPARTS, MAXPARTITIONS, and MEMBER CLUSTER parameters should not be specified for segmented table spaces. Table space VDRANNO should be defined as a segmented type. Sample definitions are provided below customize for your installation data requirements. Consult DB2 documentation for further details. -- DROP TABLESPACE VDRMVSxx.VDRANNO -- COMMIT CREATE TABLESPACE VDRANNO IN VDRMVSxx USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE 4 -- Pages per segment, 4-64 multiple of 4 CCSID EBCDIC

19 -- DROP TABLESPACE VDRMVSxx.VDRANDA -- COMMIT CREATE TABLESPACE VDRANDA -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later IN VDRMVSxx USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space CCSID EBCDIC -- DROP TABLESPACE VDRMVSxx.VDRANDT -- COMMIT CREATE TABLESPACE VDRANDT IN VDRMVSxx -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space CCSID EBCDIC

20 -- DROP TABLESPACE VDRMVSxx.VDRANPG -- COMMIT CREATE TABLESPACE VDRANPG IN VDRMVSxx -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space CCSID EBCDIC ** Tables & Indexes CREATE TABLE ANNOTATION_CTL VERSION SMALLINT NOT NULL, SCALE_FACTOR SMALLINT NOT NULL, ROTATION_FACTOR INTEGER NOT NULL, XDIMENSION SMALLINT NOT NULL, YDIMENSION SMALLINT NOT NULL, EXT_ATTR VARCHAR64 IN VDRMVSxx.VDRANNO INSERT INTO ANNOTATION_CTL VERSION, SCALE_FACTOR, ROTATION_FACTOR, XDIMENSION, YDIMENSION VALUES 2, 100, 0, 8, 12

21 CREATE TABLE ANNOTATION_DATA ANNOTATION_ID INTEGER NOT NULL, SEGMENT_ID INTEGER NOT NULL, DATA VARCHAR255 NOT NULL, EXT_ATTR VARCHAR64 IN VDRMVSxx.VDRANDA -- If range-partitioned only: -- ANNOTATION_ID may not provide effective data distribution -- select an appropriate key. -- PARTITION BY RANGE ANNOTATION_ID ASC PARTITION 1 ENDING AT 1000 INCLUSIVE, -- PARTITION 2 ENDING AT 2000 INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE CREATE UNIQUE INDEX ANNOTATION_DATA_IX ON ANNOTATION_DATA ANNOTATION_ID, SEGMENT_ID -- CLUSTER -- PARTITIONED -- Valid for range-partitioned TS only CREATE TABLE ANNOTATION_DETAILS ANNOTATION_ID INTEGER NOT NULL, OBJECT_ID INTEGER NOT NULL, DATETIME_CREATED CHAR14 DEFAULT NULL, DATETIME_UPDATED CHAR14 DEFAULT NULL, RECIP_CREATED VARCHAR128 DEFAULT NULL, RECIP_UPDATED VARCHAR128 DEFAULT NULL, EXT_ATTR VARCHAR64 IN VDRMVSxx.VDRANDT -- If range-partitioned only: -- ANNOTATION_ID may not provide effective data distribution -- select an appropriate key. -- PARTITION BY RANGE --

22 -- ANNOTATION_ID ASC PARTITION 1 ENDING AT 1000 INCLUSIVE, -- PARTITION 2 ENDING AT 2000 INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE CREATE UNIQUE INDEX ANNOTATION_DETS_IX ON ANNOTATION_DETAILS ANNOTATION_ID, OBJECT_ID -- CLUSTER -- PARTITIONED -- Valid for range-partitioned TS only CREATE TABLE ANNOTATION_PAGE ANNOTATION_ID INTEGER NOT NULL, ANNOTATION_TYPE INTEGER NOT NULL, RPT_ID CHAR10 NOT NULL, VERSION_ID CHAR14 NOT NULL, SECTION_ID CHAR45 NOT NULL, PAGE_NUMBER INTEGER NOT NULL, SUBPAGE_NUMBER INTEGER DEFAULT NULL, ABSOLUTE_PAGE_NUM INTEGER DEFAULT NULL, DATA_LENGTH INTEGER DEFAULT NULL, DATETIME_SAVED CHAR14 DEFAULT NULL, EXT_ATTR VARCHAR64 -- If range-partitioned only: -- ANNOTATION_ID may not provide effective data distribution -- select an appropriate key. -- PARTITION BY RANGE ANNOTATION_ID ASC PARTITION 1 ENDING AT 1000 INCLUSIVE, -- PARTITION 2 ENDING AT 2000 INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal

23 -- -- table space DSSIZE IN VDRMVSxx.VDRANPG CREATE UNIQUE INDEX ANNOTATION_ID_IX ON ANNOTATION_PAGE ANNOTATION_ID -- CLUSTER -- PARTITIONED -- Valid for range-partitioned TS only CREATE UNIQUE INDEX ANNOTATION_PAGE_IX ON ANNOTATION_PAGE RPT_ID, VERSION_ID, SECTION_ID, PAGE_NUMBER, SUBPAGE_NUMBER, ANNOTATION_TYPE COMMIT --================================================================== -- Overlay DBMS objects --================================================================== ** Tablespaces DB2 V8: If you are accessing a DB2 V8 subsystem, both simple and partitioned table spaces can still be created however, you may wish to consider defining non-partitioned table spaces as segmented using the SEGSIZE parameter as discussed below. SEGSIZE cannot be used with NUMPARTS in V8 universal table spaces/option MAXPARTITIONS are not available. If any of your table spaces are partitioned, you may also choose to use table-controlled partitioning as shown below. DB2 V9 or later: As of DB2 V9, range-partitioned universal table spaces are recommended for most large ViewDirect table spaces, as long as your data provides a key that will result in even data

24 distribution. This may not be possible with overlay tables. NUMPARTS, Number of partitions, , varies with page size, DSSIZE, extended addressability SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Partition definition: NUMPARTS 256 Desired number of partitions LOCKPART YES -- or alternate USING parameters for partitions -- MEMBER CLUSTER is optional, data sharing environment only PART 1 USING... MEMBER CLUSTER, PART 2 USING... MEMBER CLUSTER,... PART 256 USING... MEMBER CLUSTER Otherwise, partition-by-growth table spaces are recommended for table spaces that are expected to be large: MAXPARTITIONS, Maximum number of growth partitions, varies with page size, DSSIZE DSSIZE, Maximum partition size, 1,2,4,8,16,32,64G SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Table-controlled rather than index-controlled partitioning is required for use with range-partitioned and partition-by-growth table spaces. Segmented table space definitions are provided for smaller table spaces however, if you project limited use of overlay support, the table spaces below may also be defined as segmented: select a SEGSIZE value approximately equal to but not less than the expected size of the table. The NUMPARTS, MAXPARTITIONS, and MEMBER CLUSTER parameters should not be specified for segmented table spaces. Sample definitions are provided below customize for your installation data requirements. Consult DB2 documentation for further details. -- DROP TABLESPACE VDRMVSxx.VDROVAR -- COMMIT CREATE TABLESPACE VDROVAR

25 -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later IN VDRMVSxx USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space CCSID EBCDIC -- DROP TABLESPACE VDRMVSxx.VDROVRL -- COMMIT CREATE TABLESPACE VDROVRL -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later IN VDRMVSxx USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space CCSID EBCDIC -- DROP TABLESPACE VDRMVSxx.VDROVFI -- COMMIT CREATE TABLESPACE VDROVFI -- DSSIZE nng -- Maximum partition size nnn GB -- may be 1,2,4 Prior to DFSMS 1.5

26 -- may be 1,2,4,8,16,32,64 DFSMS 1.5 or later IN VDRMVSxx USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO PCTFREE 5 SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space CCSID EBCDIC ** Tables & Indexes CREATE TABLE OVR_RULE RPT_ID CHAR10 NOT NULL, VERSION_ID CHAR14 NOT NULL, SECTION_ID CHAR45 NOT NULL, START_PAGE INTEGER NOT NULL, FREQ INTEGER NOT NULL, OVERLAY_ID INTEGER NOT NULL, TYPE SMALLINT DEFAULT NULL, X_ORIG INTEGER DEFAULT NULL, Y_ORIG INTEGER DEFAULT NULL, X_SIZE_N INTEGER DEFAULT NULL, X_SIZE_D INTEGER DEFAULT NULL, Y_SIZE_N INTEGER DEFAULT NULL, Y_SIZE_D INTEGER DEFAULT NULL, ROTATION SMALLINT DEFAULT NULL, X_OFFSET SMALLINT DEFAULT NULL, Y_OFFSET SMALLINT DEFAULT NULL, PRIORITY SMALLINT DEFAULT NULL, ODATETIME INTEGER DEFAULT NULL, OWNER VARCHAR128 DEFAULT NULL, EXT_ATTR VARCHAR64 IN VDRMVSxx.VDROVRL -- If range-partitioned only: -- OVERLAY_ID may not provide effective data distribution -- select an appropriate key. -- PARTITION BY RANGE OVERLAY_ID ASC PARTITION 1 ENDING AT 1000 INCLUSIVE, -- PARTITION 2 ENDING AT 2000 INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE

27 -- -- If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE CREATE UNIQUE INDEX OVR_RULE_SEC_IX ON OVR_RULE RPT_ID, VERSION_ID, SECTION_ID, START_PAGE, FREQ CREATE INDEX OVR_RULE_ID_IX ON OVR_RULE OVERLAY_ID -- CLUSTER -- One clustering index per table space -- PARTITIONED -- Valid for range-partitioned TS only CREATE INDEX OVR_RULE_RPT_IX ON OVR_RULE RPT_ID -- CLUSTER -- One clustering index per table space CREATE TABLE OVR_FILE OVERLAY_ID INTEGER NOT NULL, FILE_NAME VARCHAR255 DEFAULT NULL, EXT_ATTR VARCHAR64 IN VDRMVSxx.VDROVFI -- If range-partitioned only: -- OVERLAY_ID may not provide effective data distribution -- select an appropriate key. -- PARTITION BY RANGE

28 -- -- OVERLAY_ID ASC PARTITION 1 ENDING AT 1000 INCLUSIVE, -- PARTITION 2 ENDING AT 2000 INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE CREATE UNIQUE INDEX OVER_FILE_ID_IX ON OVR_FILE OVERLAY_ID -- CLUSTER -- PARTITIONED -- Valid for range-partitioned TS only CREATE TABLE OVR_ARCHIVE OVERLAY_ID INTEGER NOT NULL, RPT_ID CHAR10 NOT NULL, VERSION_ID CHAR14 NOT NULL, SECTION_ID CHAR45 NOT NULL, PAGE INTEGER NOT NULL, SUB_PAGE INTEGER DEFAULT NULL, EXT_ATTR VARCHAR64 IN VDRMVSxx.VDROVAR -- If range-partitioned only: -- OVERLAY_ID may not provide effective data distribution -- select an appropriate key. -- PARTITION BY RANGE OVERLAY_ID ASC PARTITION 1 ENDING AT 1000 INCLUSIVE, -- PARTITION 2 ENDING AT 2000 INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE

29 CREATE UNIQUE INDEX OVR_ARCH_ID_IX ON OVR_ARCHIVE OVERLAY_ID -- PARTITIONED -- Valid for range-partitioned TS only -- CLUSTER -- One clustering index per table space CREATE INDEX OVR_ARCH_SEC_IX ON OVR_ARCHIVE RPT_ID, VERSION_ID, SECTION_ID, PAGE CREATE INDEX OVR_ARCH_VER_IX ON OVR_ARCHIVE RPT_ID, VERSION_ID -- CLUSTER -- One clustering index per table space COMMIT --================================================================== -- Page lock DBMS objects --================================================================== ** Tablespaces As of DB2 V9, segmented table spaces with SEGSIZE 4 are recommended for page lock data. -- DROP TABLESPACE VDRMVSxx.VDRPGLK -- COMMIT

30 CREATE TABLESPACE VDRPGLK IN VDRMVSxx USING -- VCAT VDRCATLG STOGROUP VDRGRPid ERASE YES/NO SEGSIZE 4 -- Pages per segment, 4-64 multiple of 4. CCSID EBCDIC PCTFREE 5 ** Tables & Indexes CREATE TABLE PAGE_LOCKS LRPT_ID CHAR10 NOT NULL, LVERSION_ID CHAR14 NOT NULL, LSECTION_ID CHAR45 NOT NULL, LPAGE_NUMBER INTEGER NOT NULL, LSUBPAGE_NUMBER INTEGER NOT NULL, LLOCK_TYPE INTEGER NOT NULL, LDATETIME CHAR14 DEFAULT NULL, LRECIP_ID VARCHAR128 DEFAULT NULL, EXT_ATTR VARCHAR64 DEFAULT NULL IN VDRMVSxx.VDRPGLK CREATE UNIQUE INDEX PAGE_LCKS_IX ON PAGE_LOCKS LRPT_ID, LVERSION_ID, LSECTION_ID, LPAGE_NUMBER, LSUBPAGE_NUMBER, LLOCK_TYPE -- CLUSTER COMMIT --================================================================== -- Retention Change event DBMS object --================================================================== ** Tablespaces

31 DB2 V8: If you are accessing a DB2 V8 subsystem, both simple and partitioned table spaces can still be created however, you may wish to consider defining non-partitioned table spaces as segmented using the SEGSIZE parameter as discussed below. SEGSIZE cannot be used with NUMPARTS in V8 universal table spaces/option MAXPARTITIONS are not available. If any of your table spaces are partitioned, you may also choose to use table-controlled partitioning as shown below. DB2 V9 or later: As of DB2 V9, range-partitioned universal table spaces are recommended for most large ViewDirect table spaces, as long as your data provides a key that will result in even data distribution. NUMPARTS, Number of partitions, , varies with page size, DSSIZE, extended addressability SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Partition definition: NUMPARTS 256 Desired number of partitions LOCKPART YES -- or alternate USING parameters for partitions -- MEMBER CLUSTER is optional, data sharing environment only PART 1 USING... MEMBER CLUSTER, PART 2 USING... MEMBER CLUSTER,... PART 256 USING... MEMBER CLUSTER Otherwise, partition-by-growth table spaces are recommended for table spaces that are expected to be large: MAXPARTITIONS, Maximum number of growth partitions, varies with page size, DSSIZE DSSIZE, Maximum partition size, 1,2,4,8,16,32,64G SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Table-controlled rather than index-controlled partitioning is required for use with range-partitioned and partition-by-growth table spaces. Segmented table space definitions are provided for smaller table spaces however, if you project limited use of RM support, the table spaces below may also be defined as segmented: select a SEGSIZE value approximately equal to but not less than the expected size of the table. The NUMPARTS, MAXPARTITIONS,

32 and MEMBER CLUSTER parameters should not be specified for segmented table spaces. Sample definitions are provided below customize for your installation data requirements. Consult DB2 documentation for further details. -- DROP TABLESPACE VDRMVSxx.RETCHGTS -- COMMIT CREATE TABLESPACE RETCHGTS -- for RET_CHG table -- DSSIZE nnng -- Maximum partition size nnn GB -- may be 1,2,4 prior to DFSMS may be 1,2,4,8,16,32,64 DFSMS 1.5 or later IN VDRMVSxx -- by default DSNDB04 -- by default SYSDEFLT -- YES for security purposes FREEPAGE 1 PCTFREE 0 TRACKMOD YES BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR -- MEMBER CLUSTER -- Optional for data sharing only. Do not specify for segmented table space. SEGSIZE Segment size, pages, 4-64 multiple of 4 -- Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space LOCKSIZE ANY LOCKMAX SYSTEM COMPRESS YES CCSID EBCDIC MAXROWS 255 ** Table follows: CREATE TABLE TOPIC_RET_CHG RPT_ID CHAR10 not null, RPT_VERSION_CMP CHAR14 not null, ORIGINAL_PAGE_NUM INTEGER not null, SECTION_ID CHAR30 not null, PAGE_OFFSET INTEGER default 0,

33 NUMBER_OF_PAGES INTEGER not null, DOC_REF_ID NUMERIC19,8 default 0, PAGE_OF_DOC INTEGER default -1, LINE_OF_PAGE INTEGER default -1, ITEM_ARCH_EXP CHAR1 default 'N', ITEM_STATUS CHAR1 default 'N', ITEM_N_RET_DATE CHAR8 not null, ITEM_EVENT_DATE CHAR14 not null, ITEM_REASON VARCHAR255 not null, ITEM_TYPE VARCHAR255 not null, ITEM_DESC VARCHAR255 not null, ITEM_REASON_UC VARCHAR255, ITEM_TYPE_UC VARCHAR255, ITEM_DESC_UC VARCHAR255 IN VDRMVSxx.RETCHGTS -- If range-partitioned only: -- PARTITION BY RANGE DOC_REF_ID ASC PARTITION 1 ENDING AT INCLUSIVE, -- PARTITION 2 ENDING AT INCLUSIVE, PARTITION 1000 ENDING AT INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE -- Indexes follow: CREATE INDEX IX_RETCHG_PK_A ON TOPIC_RET_CHG DOC_REF_ID ASC, PAGE_OF_DOC ASC -- by default SYSDEFLT -- CLUSTER -- PARTITIONED -- Valid for range-partitioned TS only BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_PK_D

34 ON TOPIC_RET_CHG DOC_REF_ID PAGE_OF_DOC BUFFERPOOL BPid PIECESIZE DESC, DESC -- by default SYSDEFLT -- BP0, or Buffer pool designated for VDR <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_DR_A ON TOPIC_RET_CHG RPT_ID ASC, RPT_VERSION_CMP ASC, ORIGINAL_PAGE_NUM ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_DR_D ON TOPIC_RET_CHG RPT_ID DESC, RPT_VERSION_CMP DESC, ORIGINAL_PAGE_NUM DESC -- by default SYSDEFLT BUFFERPOOL BPid PIECESIZE -- BP0, or Buffer pool designated for VDR <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only

35 COPY NO CREATE INDEX IX_RETCHG_RSN ON TOPIC_RET_CHG ITEM_REASON BUFFERPOOL BPid PIECESIZE ASC -- by default SYSDEFLT -- BP0, or Buffer pool designated for VDR <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only NO COPY NOT PADDED CREATE INDEX IX_RETCHG_RSN_UC ON TOPIC_RET_CHG ITEM_REASON_UC BUFFERPOOL BPid PIECESIZE ASC -- by default SYSDEFLT -- BP0, or Buffer pool designated for VDR <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only NO COPY NOT PADDED CREATE INDEX IX_RETCHG_TP ON TOPIC_RET_CHG ITEM_TYPE ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR

36 CLOSE PIECESIZE YES <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only NO COPY NOT PADDED CREATE INDEX IX_RETCHG_TP_UC ON TOPIC_RET_CHG ITEM_TYPE_UC ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO NOT PADDED CREATE INDEX IX_RETCHG_RTD_A ON TOPIC_RET_CHG ITEM_N_RET_DATE ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_RTD_D ON TOPIC_RET_CHG ITEM_N_RET_DATE DESC -- by default SYSDEFLT

37 BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_RTD ON TOPIC_RET_CHG DOC_REF_ID ASC, PAGE_OF_DOC ASC, ITEM_N_RET_DATE DESC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_EVD_A ON TOPIC_RET_CHG ITEM_EVENT_DATE ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_EVD_D ON TOPIC_RET_CHG ITEM_EVENT_DATE DESC -- by default SYSDEFLT

38 BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO CREATE INDEX IX_RETCHG_DESC ON TOPIC_RET_CHG ITEM_DESC ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO NOT PADDED CREATE INDEX IX_RETCHG_DESC_UC ON TOPIC_RET_CHG ITEM_DESC_UC ASC -- by default SYSDEFLT BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g -- 2, or other valid size, as desired -- Non-partitioned indexes only COPY NO NOT PADDED -- End of indexes. -- The following section generates triggers for CPCI topics. -- A single insert trigger is generated for the table that creates -- an upper-cased column for all the CPCI topics in the table. -- Then a separate update trigger is generated for each CPCI topic -- in the table to update the upper-cased column for the topic. -- Do not change or remove the following line that changes the SQL terminator. --#SET TERMINATOR!

39 -- Generate the insert trigger for the table. CREATE TRIGGER TRINS_RET_CHG NO CASCADE BEFORE INSERT ON TOPIC_RET_CHG REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL BEGIN ATOMIC SET N.ITEM_REASON_UC = UPPERN.ITEM_REASON SET N.ITEM_TYPE_UC = UPPERN.ITEM_TYPE SET N.ITEM_DESC_UC = UPPERN.ITEM_DESC END! -- Do not change or remove the following line that changes the SQL terminator. --#SET TERMINATOR -- Generate an update trigger for each CPCI column. CREATE TRIGGER TRUPD_RET_CHG_REASON NO CASCADE BEFORE UPDATE OF ITEM_REASON ON TOPIC_RET_CHG REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL SET N.ITEM_REASON_UC = UPPERN.ITEM_REASON CREATE TRIGGER TRUPD_RET_CHG_TYPE NO CASCADE BEFORE UPDATE OF ITEM_TYPE ON TOPIC_RET_CHG REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL SET N.ITEM_TYPE_UC = UPPERN.ITEM_TYPE CREATE TRIGGER TRUPD_RET_CHG_DESC NO CASCADE BEFORE UPDATE OF ITEM_DESC ON TOPIC_RET_CHG REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL SET N.ITEM_DESC_UC = UPPERN.ITEM_DESC COMMIT --================================================================== --================================================================== -- DBMS objects for each Topic being created --==================================================================

40 ** Tablespace DB2 V8: If you are accessing a DB2 V8 subsystem, both simple and partitioned table spaces can still be created however, you may wish to consider defining non-partitioned table spaces as segmented using the SEGSIZE parameter as discussed below. SEGSIZE cannot be used with NUMPARTS in V8 universal table spaces/option MAXPARTITIONS are not available. If any of your table spaces are partitioned, you may also choose to use table-controlled partitioning as shown below. DB2 V9 or later: As of DB2 V9, range-partitioned universal table spaces are recommended for most large ViewDirect table spaces, as long as your data provides a key that will result in even data distribution. This may not be possible with all topic tables. NUMPARTS, Number of partitions, , varies with page size, DSSIZE, extended addressability SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Partition definition: NUMPARTS 256 Desired number of partitions LOCKPART YES -- or alternate USING parameters for partitions -- MEMBER CLUSTER is optional, data sharing environment only PART 1 USING... MEMBER CLUSTER, PART 2 USING... MEMBER CLUSTER,... PART 256 USING... MEMBER CLUSTER Otherwise, partition-by-growth table spaces are recommended for table spaces that are expected to be large: MAXPARTITIONS, Maximum number of growth partitions, varies with page size, DSSIZE DSSIZE, Maximum partition size, 1,2,4,8,16,32,64G SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Table-controlled rather than index-controlled partitioning is required for use with range-partitioned and partition-by-growth table spaces. If you expect a topic table to be small, the table space below may also be defined as segmented: select a SEGSIZE value

41 approximately equal to but not less than the expected size of the table. The NUMPARTS, MAXPARTITIONS, and MEMBER CLUSTER parameters should not be specified for segmented table spaces. Sample definitions are provided below customize for your installation data requirements. Consult DB2 documentation for further details. -- DROP TABLESPACE VDRMVSxx.TPCxxxTS -- COMMIT CREATE TABLESPACE TPCxxxTS -- for TOPIC_<TABLE_SUFFIX> table IN VDRMVSxx PRIQTY <size> SECQTY <size> FREEPAGE 1 PCTFREE 0 TRACKMOD YES -- DSSIZE nng -- Maximum partition size nn GB -- 1,2, 4 Prior to DFSMS ,2,4,8,16,32,64 DFSMS 1.5 or later BUFFERPOOL BPid -- MEMBER CLUSTER -- Data sharing only optional. Do not specify for segmented table space. SEGSIZE Segment size, pages, 4-64 multiple of Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE -- Or SEGSIZE alone above for small, segmented table space -- LOCKSIZE ANY LOCKMAX SYSTEM CCSID EBCDIC MAXROWS 255 ** Table & Indexes -- Topic Item table definition CREATE TABLE TOPIC_<TABLE_SUFFIX> DOC_ID NUMERIC19,8 not null, PAGE_OF_DOC INTEGER not null, LINE_OF_PAGE INTEGER not null default -1,

42 ITEM_<COLUMN_SUFFIX> <VALUE_TYPE> not null, --<BEGIN_CPCI_COLUMNS> - Do not remove or change this line. ITEM_<COLUMN_SUFFIX>_UC <VALUE_TYPE> --<END_CPCI_COLUMNS> - Do not remove or change this line. in VDRMVSxx.TPCxxxTS -- If range-partitioned only: -- PARTITION BY RANGE -- ITEM_<COLUMN_SUFFIX> ASC -- Select a suitable key. If an appropriate key is not available, use a partition-by-growth table space PARTITION 1 ENDING AT 'A' INCLUSIVE, -- PARTITION 2 ENDING AT 'B' INCLUSIVE, PARTITION 26 ENDING AT 'Z' INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE CREATE INDEX IXI_<TABLE_SUFFIX> ON TOPIC_<TABLE_SUFFIX> DOC_ID ASC, PAGE_OF_DOC ASC, LINE_OF_PAGE ASC PRIQTY <size> SECQTY <size> -- PARTITIONED -- Valid for partitioned TS only -- CLUSTER -- One clustering index per table space BUFFERPOOL BPid PIECESIZE <size> G COPY NO --<BEGIN_COLUMN_INDICIES> - Do not remove or change this line. CREATE INDEX IXV_<TABLE_SUFFIX> ON TOPIC_<TABLE_SUFFIX> ITEM_<COLUMN_SUFFIX> ASC PRIQTY <size> SECQTY <size>

43 BUFFERPOOL BPid PIECESIZE <size> G COPY NO NOT PADDED -- PARTITIONED -- Valid for partitioned TS only -- CLUSTER -- One clustering index per table space --<END_COLUMN_INDICIES> - Do not remove or change this line. --<BEGIN_CPCI_SECTION> - Do not remove or change this line. --<BEGIN_COLUMN_INDICIES> - Do not remove or change this line. CREATE INDEX IXVUC_<TABLE_SUFFIX> ON TOPIC_<TABLE_SUFFIX> ITEM_<COLUMN_SUFFIX>_UC ASC PRIQTY <size> SECQTY BUFFERPOOL BPid PIECESIZE <size> G COPY NO NOT PADDED <size> --<END_COLUMN_INDICIES> - Do not remove or change this line. -- The following section generates triggers for CPCI topics. -- A single insert trigger is generated for the table that creates -- an upper-cased column for the CPCI topic. -- Then an update trigger is generated for the base topic item -- column to automatically update the upper-cased column for the -- topic item. CREATE TRIGGER TRINS_<TABLE_SUFFIX> NO CASCADE BEFORE INSERT ON TOPIC_<TABLE_SUFFIX> REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL --<BEGIN_COLUMN_TRIGGERS> - Do not remove or change this line. SET N.ITEM_<COLUMN_SUFFIX>_UC = UPPERN.ITEM_<COLUMN_SUFFIX> --<END_COLUMN_TRIGGERS> - Do not remove or change this line. --<BEGIN_COLUMN_TRIGGERS> - Do not remove or change this line. CREATE TRIGGER TRUPD_<TABLE_SUFFIX> NO CASCADE BEFORE UPDATE OF

44 ITEM_<COLUMN_SUFFIX> ON TOPIC_<TABLE_SUFFIX> REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL SET N.ITEM_<COLUMN_SUFFIX>_UC = UPPERN.ITEM_<COLUMN_SUFFIX> --<END_COLUMN_TRIGGERS> - Do not remove or change this line. --<END_CPCI_SECTION> - Do not remove or change this line. --================================================================== COMMIT --================================================================== --==================================================================== -- DBMS objects for each Topic being created - MH schema - wide tbl --==================================================================== ** Tablespace DB2 V8: If you are accessing a DB2 V8 subsystem, both simple and partitioned table spaces can still be created however, you may wish to consider defining non-partitioned table spaces as segmented using the SEGSIZE parameter as discussed below. SEGSIZE cannot be used with NUMPARTS in V8 universal table spaces/option MAXPARTITIONS are not available. If any of your table spaces are partitioned, you may also choose to use table-controlled partitioning as shown below. DB2 V9 or later: As of DB2 V9, range-partitioned universal table spaces are recommended for most large ViewDirect table spaces, as long as your data provides a key that will result in even data distribution. This may not be possible with all topic tables. NUMPARTS, Number of partitions, , varies with page size, DSSIZE, extended addressability SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Partition definition: NUMPARTS 256 Desired number of partitions LOCKPART YES -- or alternate USING parameters for partitions -- MEMBER CLUSTER is optional, data sharing environment only PART 1 USING... MEMBER CLUSTER, PART 2 USING... MEMBER CLUSTER,... PART 256 USING... MEMBER CLUSTER

45 Otherwise, partition-by-growth table spaces are recommended for table spaces that are expected to be large: MAXPARTITIONS, Maximum number of growth partitions, varies with page size, DSSIZE DSSIZE, Maximum partition size, 1,2,4,8,16,32,64G SEGSIZE, Pages per segment, 4-64 multiple of 4 large, partitioned table spaces >128 pages typically have SEGSIZE 64 MEMBER CLUSTER, With data sharing, optional do not specify for segmented table space Table-controlled rather than index-controlled partitioning is required for use with range-partitioned and partition-by-growth table spaces. If you expect a topic table to be small, the table space below may also be defined as segmented: select a SEGSIZE value approximately equal to but not less than the expected size of the table. The NUMPARTS, MAXPARTITIONS, and MEMBER CLUSTER parameters should not be specified for segmented table spaces. Sample definitions are provided below customize for your installation data requirements. Consult DB2 documentation for further details. -- DROP TABLESPACE VDRMVSxx.TPCxxxTS -- COMMIT CREATE TABLESPACE TPCxxxTS -- for TOPIC_<TABLE_SUFFIX> table IN VDRMVSxx PRIQTY <size> SECQTY <size> FREEPAGE 1 PCTFREE 0 TRACKMOD YES -- DSSIZE nng -- Maximum partition size nn GB -- 1,2,4 Prior to DFSMS ,2,4,8,16,32,64 DFSMS1.5 or later BUFFERPOOL BPid -- MEMBER CLUSTER -- Data sharing only optional. Do not specify for segmented table space. SEGSIZE Segment size, pages, 4-64 multiple of Either NUMPARTS range-partitioned UTS/LOCKPART -- NUMPARTS Varies with page size, DSSIZE -- LOCKPART YES -- Or maxpartitions partition by growth UTS -- MAXPARTITIONS # -- Maximum number of growth partitions, varies with page size, DSSIZE

46 -- Or SEGSIZE alone above for small, segmented table space -- LOCKSIZE ANY LOCKMAX SYSTEM CCSID EBCDIC MAXROWS 255 ** Table & Indexes -- Topic Item table definition CREATE TABLE TOPIC_<TABLE_SUFFIX> RPT_ID CHAR10 not null, RPT_VERSION_CMP CHAR14 not null, ORIGINAL_PAGE_NUM INTEGER not null, SECTION_ID CHAR30 not null, PAGE_OFFSET INTEGER not null, NUMBER_OF_PAGES INTEGER not null, DOC_REF_ID NUMERIC19,8 not null, PAGE_OF_DOC INTEGER not null, LINE_OF_PAGE INTEGER not null default -1, ITEM_<COLUMN_SUFFIX> <VALUE_TYPE>, --<BEGIN_CPCI_COLUMNS> - Do not remove or change this line. ITEM_<COLUMN_SUFFIX>_UC <VALUE_TYPE>, --<END_CPCI_COLUMNS> - Do not remove or change this line. in VDRMVSxx.TPCxxxTS -- If range-partitioned only: -- PARTITION BY RANGE -- ITEM_<COLUMN_SUFFIX> ASC -- Select a suitable key. If an appropriate key is not available, use a partition-by-growth table space PARTITION 1 ENDING AT 'A' INCLUSIVE, -- PARTITION 2 ENDING AT 'B' INCLUSIVE, PARTITION 26 ENDING AT 'Z' INCLUSIVE If partition-by-growth only: -- PARTITION BY SIZE -- EVERY nng -- Optional if specified must equal table space DSSIZE CREATE INDEX IXI_<TABLE_SUFFIX> ON TOPIC_<TABLE_SUFFIX> DOC_REF_ID ASC PRIQTY <size> SECQTY <size>

47 BUFFERPOOL BPid PIECESIZE <size>g COPY NO -- PARTITIONED -- Valid for partitioned TS only -- CLUSTER -- One clustering index per table space CREATE INDEX IX_<TABLE_SUFFIX> ON TOPIC_<TABLE_SUFFIX> RPT_ID ASC, RPT_VERSION_CMP ASC, ORIGINAL_PAGE_NUM ASC -- by default SYSDEFLT PRIQTY <size> SECQTY <size> BUFFERPOOL BPid -- BP0, or Buffer pool designated for VDR PIECESIZE <size>g COPY NO --Create an index on each topic item in the row of the table --<BEGIN_COLUMN_INDICIES> - Do not remove or change this line. CREATE INDEX IXV_<TABLE_SUFFIX>_<COLUMN_SUFFIX> ON TOPIC_<TABLE_SUFFIX> ITEM_<COLUMN_SUFFIX> ASC PRIQTY <size> SECQTY <size> BUFFERPOOL BPid PIECESIZE <size>g COPY NO NOT PADDED -- PARTITIONED --<END_COLUMN_INDICIES> - Do not remove or change this line.

48 -- Begin section that is only generated for CPCI topics. --<BEGIN_CPCI_SECTION> - Do not remove or change this line. -- The following section marks start of repeating generation of -- indices for each upper-case CPCI topic item column. --<BEGIN_COLUMN_INDICIES> - Do not remove or change this line. CREATE INDEX IXVUC_<TABLE_SUFFIX>_<COLUMN_SUFFIX> ON TOPIC_<TABLE_SUFFIX> ITEM_<COLUMN_SUFFIX>_UC ASC PRIQTY <size> SECQTY <size> BUFFERPOOL BPid PIECESIZE <size>g COPY NO NOT PADDED --<END_COLUMN_INDICIES> - Do not remove or change this line. -- The following section generates triggers for CPCI topics. -- A single insert trigger is generated for the table that creates -- an upper-cased column for all the CPCI topics in the table. -- Then a separate update trigger is generated for each CPCI topic -- in the table to update the upper-cased column for the topic. -- Do not change or remove the following line that changes the SQL terminator. --#SET TERMINATOR! -- Generate the insert trigger for the table. CREATE TRIGGER TRINS_<TABLE_SUFFIX> NO CASCADE BEFORE INSERT ON TOPIC_<TABLE_SUFFIX> REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL BEGIN ATOMIC -- Begin repeating section for each CPCI topic column. --<BEGIN_COLUMN_TRIGGERS> - Do not remove or change this line. SET N.ITEM_<COLUMN_SUFFIX>_UC = UPPERN.ITEM_<COLUMN_SUFFIX> --<END_COLUMN_TRIGGERS> - Do not remove or change this line. END! -- Do not change or remove the following line that changes the SQL terminator. --#SET TERMINATOR

Database Design and Implementation

Database Design and Implementation Chapter 2 Database Design and Implementation The concepts in database design and implementation are some of the most important in a DBA s role. Twenty-six percent of the 312 exam revolves around a DBA

More information

z/os Db2 Batch Design for High Performance

z/os Db2 Batch Design for High Performance Division of Fresche Solutions z/os Db2 Batch Design for High Performance Introduction Neal Lozins SoftBase Product Manager All tests in this presentation were run on a dedicated zbc12 server We used our

More information

Eenie Meenie Miney Mo, Which Table (Space) Type and Page Size Shall I Choose for DB2 on z/os?

Eenie Meenie Miney Mo, Which Table (Space) Type and Page Size Shall I Choose for DB2 on z/os? Eenie Meenie Miney Mo, Which Table (Space) Type and Page Size Shall I Choose for DB2 on z/os? September 13, 2012 Mark Rader IBM ATS - DB2 for z/os mrader@us.ibm.com 2012 IBM Corporation Title: Eenie Meenie

More information

Eenie Meenie Miney Mo, Which Table (Space) Type and Page Size Shall I Choose for DB2 on z/os?

Eenie Meenie Miney Mo, Which Table (Space) Type and Page Size Shall I Choose for DB2 on z/os? Eenie Meenie Miney Mo, Which Table (Space) Type and Page Size Shall I Choose for DB2 on z/os? St. Louis DB2 Users Group December 3, 2013 John Iczkovits iczkovit@us.ibm.com 1 Title: Eenie Meenie Miney Mo,

More information

Optimizing Insert Performance - Part 1

Optimizing Insert Performance - Part 1 Optimizing Insert Performance - Part 1 John Campbell Distinguished Engineer DB2 for z/os development CAMPBELJ@uk.ibm.com 2 Disclaimer/Trademarks The information contained in this document has not been

More information

Lookup enhancement to support DEST parameter

Lookup enhancement to support DEST parameter TECHNOTE Using Lua in Optim for z/os to run LOOKUP functions using optim.mask() call Since the GA version of Optim for z/os 11.3 did not include support for the LOOKUP Providers, the documentation explaining

More information

Vendor: IBM. Exam Code: Exam Name: IBM Certified Database Administrator - DB2 10 for z/os. Version: Demo

Vendor: IBM. Exam Code: Exam Name: IBM Certified Database Administrator - DB2 10 for z/os. Version: Demo Vendor: IBM Exam Code: 000-612 Exam Name: IBM Certified Database Administrator - DB2 10 for z/os Version: Demo QUESTION NO: 1 Workload Manager (WLM) manages how many concurrent stored procedures can run

More information

HOLDDATA FOR DB2 9.1 PUT Level ** Please read through all the holddata before acting on any of it. ** GENERAL

HOLDDATA FOR DB2 9.1 PUT Level ** Please read through all the holddata before acting on any of it. ** GENERAL HOLDDATA FOR DB2 9.1 PUT Level 0805 ** Please read through all the holddata before acting on any of it. ** GENERAL 1. Rebind all static DB2 application which match criteria. Member REBIND DSN910.SVSC.HOLDCNTL

More information

With the expansion of web-based computing there is. Getting Started with the OS/390 Security Server LDAP Server

With the expansion of web-based computing there is. Getting Started with the OS/390 Security Server LDAP Server Getting Started with the OS/390 Security Server LDAP Server BY TIM HAHN The IBM OS/390 Security Server now includes a directory server, which provides a generalized Directory Service that is accessible

More information

Copyright 2007 IBM Corporation All rights reserved. Copyright 2007 IBM Corporation All rights reserved

Copyright 2007 IBM Corporation All rights reserved. Copyright 2007 IBM Corporation All rights reserved Structure and Format Enhancements : UTS & RRF Willie Favero Senior Certified IT Specialist DB2 for z/os Software Sales Specialist IBM Sales and Distribution West Region, Americas 713-9401132 wfavero@attglobal.net

More information

Pass IBM C Exam

Pass IBM C Exam Pass IBM C2090-612 Exam Number: C2090-612 Passing Score: 800 Time Limit: 120 min File Version: 37.4 http://www.gratisexam.com/ Exam Code: C2090-612 Exam Name: DB2 10 DBA for z/os Certkey QUESTION 1 Workload

More information

Optimising Insert Performance. John Campbell Distinguished Engineer IBM DB2 for z/os Development

Optimising Insert Performance. John Campbell Distinguished Engineer IBM DB2 for z/os Development DB2 for z/os Optimising Insert Performance John Campbell Distinguished Engineer IBM DB2 for z/os Development Objectives Understand typical performance bottlenecks How to design and optimise for high performance

More information

Can you really change DB2 for z/os Schemas online?

Can you really change DB2 for z/os Schemas online? Can you really change DB2 for z/os Schemas online? Steve Thomas BMC Software Session Code: B17 Thursday 11 th November 2010 at 11:15 Platform: z/os Ever since I started working with DB2 back in 1989 with

More information

WHEN is used to specify rows that meet a criteria such as: WHEN (EMP_SALARY < 90000). SELECT and SUBSET are invalid clauses and would cause an error.

WHEN is used to specify rows that meet a criteria such as: WHEN (EMP_SALARY < 90000). SELECT and SUBSET are invalid clauses and would cause an error. 1. Suppose you have created a test version of a production table, and you want to to use the UNLOAD utility to extract the first 5,000 rows from the production table to load to the test version. Which

More information

DB2 UDB: App Programming - Advanced

DB2 UDB: App Programming - Advanced A Access Methods... 8:6 Access Path Selection... 8:6 Access Paths... 5:22 ACQUIRE(ALLOCATE) / RELEASE(DEALLOCATE)... 5:14 ACQUIRE(USE) / RELEASE(DEALLOCATE)... 5:14 Active Log... 9:3 Active Logs - Determining

More information

Advanced Design Considerations

Advanced Design Considerations Advanced Design Considerations par Phil Grainger, BMC Réunion du Guide DB2 pour z/os France Mercredi 25 novembre 2015 Hôtel Hilton CNIT, Paris-La Défense Introduction Over the last few years, we have gained

More information

WebSphere Data Interchange (WDI) for z/os - Converting from a DB2 DBRM Based Plan to a DB2 Package Based Plan

WebSphere Data Interchange (WDI) for z/os - Converting from a DB2 DBRM Based Plan to a DB2 Package Based Plan IBM Software Group WebSphere Data Interchange (WDI) for z/os - Converting from a DB2 DBRM Based Plan to a DB2 Package Based Plan Jon Kirkwood (kirkwoo@us.ibm.com) WebSphere Data Interchange L2 Support

More information

Micro Focus. Data Express. Requirements and Installation Procedures

Micro Focus. Data Express. Requirements and Installation Procedures Micro Focus Data Express Requirements and Installation Procedures Copyright 2007-2008 Micro Focus (IP) Ltd. All rights reserved. Micro Focus (IP) Ltd. has made every effort to ensure that this book is

More information

Hash Access to DB2 Data Faster, Better, Cheaper

Hash Access to DB2 Data Faster, Better, Cheaper Hash Access to DB2 Data Faster, Better, Cheaper Kalpana Shyam, Karelle Cornwell Developers, DB2 for z/os, IBM Corp Session Code: A10 Wednesday, 10 November 2010, 11:00 AM - 12:00 PM Platform: DB2 10 for

More information

Table and Index Design: DB2 9 Strategies

Table and Index Design: DB2 9 Strategies Table and Index Design: DB2 9 Strategies Susan Lawson YL&A Yevich, Lawson & Assoc. Inc. 3309 Robbins Road PMB 226 Springfield, IL 62704 www.ylassoc.com www.db2expert.com IBM is a registered trademark of

More information

PBR RPN - Removing Partitioning restrictions in Db2 12 for z/os

PBR RPN - Removing Partitioning restrictions in Db2 12 for z/os PBR RPN - Removing Partitioning restrictions in Db2 12 for z/os Steve Thomas CA Technologies 07/11/2017 Session ID Agenda Current Limitations in Db2 for z/os Partitioning Evolution of partitioned tablespaces

More information

CA Repository for z/os CA RS 1406 Service List

CA Repository for z/os CA RS 1406 Service List CA Repository for z/os 7.2 1 CA RS 1406 Service List Description Type 7.2 RO69497 FORGNKEY RULE ERROR PTF RO69499 UDB EXCHANGE - LOB COLUMN EXTRACT PTF RO69500 UDB EXCHANGE - LOB COLUMN EXTRACT PTF RO70095

More information

C Examcollection.Premium.Exam.58q

C Examcollection.Premium.Exam.58q C2090-610.Examcollection.Premium.Exam.58q Number: C2090-610 Passing Score: 800 Time Limit: 120 min File Version: 32.2 http://www.gratisexam.com/ Exam Code: C2090-610 Exam Name: DB2 10.1 Fundamentals Visualexams

More information

Implementing Siebel Business Applications on DB2 for z/os. Siebel Innovation Pack 2013 Version 8.1/8.2 September 2013

Implementing Siebel Business Applications on DB2 for z/os. Siebel Innovation Pack 2013 Version 8.1/8.2 September 2013 Implementing Siebel Business Applications on DB2 for z/os Siebel Innovation Pack 2013 Version 8.1/8.2 September 2013 Copyright 2005, 2013 Oracle and/or its affiliates. All rights reserved. This software

More information

C Exam code: C Exam name: IBM DB2 11 DBA for z/os. Version 15.0

C Exam code: C Exam name: IBM DB2 11 DBA for z/os. Version 15.0 C2090-312 Number: C2090-312 Passing Score: 800 Time Limit: 120 min File Version: 15.0 http://www.gratisexam.com/ Exam code: C2090-312 Exam name: IBM DB2 11 DBA for z/os Version 15.0 C2090-312 QUESTION

More information

Chapter 18. Generating DB2 High Performance Unload jobs

Chapter 18. Generating DB2 High Performance Unload jobs Chapter 18. Generating DB2 High Performance Unload jobs IBM DB2 High Performance Unload (DB2 HPU) is a high-speed DB2 utility for unloading DB2 tables from a table space or from an image copy. DB2 Automation

More information

An A-Z of System Performance for DB2 for z/os

An A-Z of System Performance for DB2 for z/os Phil Grainger, Lead Product Manager BMC Software March, 2016 An A-Z of System Performance for DB2 for z/os The Challenge Simplistically, DB2 will be doing one (and only one) of the following at any one

More information

ODD FACTS ABOUT NEW DB2 for z/os SQL

ODD FACTS ABOUT NEW DB2 for z/os SQL ODD FACTS ABOUT NEW DB2 for z/os SQL NEW WAYS OF THINKING ABOUT OLD THINGS + STATIC/DYNAMIC SQL CHANGES, PREDICATE APPLICATION AND LOCKS. LATCHES, CLAIMS, & DRAINS Bonnie K. Baker Bonnie Baker Corporation

More information

Debug DB2 COBOL stored procedure with IBM Developer for z Systems and IBM Debug for z Systems v14.1

Debug DB2 COBOL stored procedure with IBM Developer for z Systems and IBM Debug for z Systems v14.1 Debug DB2 COBOL stored procedure with IBM Developer for z Systems and IBM Debug for z Systems v14.1 By Olivier Gauneau - IBM IDz support February 16, 2018 1. CONTENTS 1. Pre-requisite... 2 a. JCL Procs...

More information

Version 1 Release 6. IBM Autonomics Director for Db2 for z/os User's Guide IBM SC

Version 1 Release 6. IBM Autonomics Director for Db2 for z/os User's Guide IBM SC Version 1 Release 6 IBM Autonomics Director for Db2 for z/os User's Guide IBM SC19-4389 Version 1 Release 6 IBM Autonomics Director for Db2 for z/os User's Guide IBM SC19-4389 Note: Before using this

More information

Monitoring and Reporting

Monitoring and Reporting Monitoring 2-2 Traces 2-2 DB2 traces 2-3 Diagnostic traces for the attachment facility 2-4 Diagnostic traces for the IRLM 2-5 New traces for DB2 V7 2-6 Real Time Statistics 2-9 Starting the RTS database

More information

Short Summary of DB2 V4 Through V6 Changes

Short Summary of DB2 V4 Through V6 Changes IN THIS CHAPTER DB2 Version 6 Features DB2 Version 5 Features DB2 Version 4 Features Short Summary of DB2 V4 Through V6 Changes This appendix provides short checklists of features for the most recent versions

More information

DB2 UDB: Application Programming

DB2 UDB: Application Programming A ABS or ABSVAL... 4:19 Access Path - Determining... 10:8 Access Strategies... 9:3 Additional Facts About Data Types... 5:18 Aliases... 1:13 ALL, ANY, SOME Operator... 3:21 AND... 3:12 Arithmetic Expressions...

More information

An Introduction to DB2 Indexing

An Introduction to DB2 Indexing An Introduction to DB2 Indexing by Craig S. Mullins This article is adapted from the upcoming edition of Craig s book, DB2 Developer s Guide, 5th edition. This new edition, which will be available in May

More information

DB2 Partitioning Choices, choices, choices

DB2 Partitioning Choices, choices, choices DB2 Partitioning Choices, choices, choices Phil Grainger BMC Software Date of presentation (01/11/2016) Session IB DB2 Version 8 Table Based Partitioning Version 8 introduced TABLE BASED PARTITIONING What

More information

Vendor: IBM. Exam Code: C Exam Name: DB2 10 DBA for z/os. Version: Demo

Vendor: IBM. Exam Code: C Exam Name: DB2 10 DBA for z/os. Version: Demo Vendor: IBM Exam Code: C2090-612 Exam Name: DB2 10 DBA for z/os Version: Demo QUESTION NO: 1 Workload Manager (WLM) manages how many concurrent stored procedures can run in an address space and the number

More information

DB2 10 for z/os Technical Update

DB2 10 for z/os Technical Update DB2 10 for z/os Technical Update James Teng, Ph.D. Distinguished Engineer IBM Silicon Valley Laboratory March 12, 2012 Disclaimers & Trademarks* 2 Information in this presentation about IBM's future plans

More information

CA Repository for z/os CA RS 1312 Service List

CA Repository for z/os CA RS 1312 Service List CA Repository for z/os 7.2 1 CA RS 1312 Service List Description Hiper 7.2 RO60787 0C4 ABEND WHEN SELECTING SYSTEM.LOGO RO61230 DBXSYNC SPACE INCORRECT RO61234 DBXSYNC SPACE INCORRECT RO61368 TRANSLATE

More information

DB2BUS for ASG-Rochade Release Notes

DB2BUS for ASG-Rochade Release Notes DB2BUS for ASG-Rochade Release Notes Version 10.02 for MVS and Windows January 4, 2013 DBB1100-1002 This publication describes all new features, changes and fixes of DB2BUS for ASG- Rochade introduced

More information

A model being updated using this sample SQL must not be checked out and must not have any subsets checked out.

A model being updated using this sample SQL must not be checked out and must not have any subsets checked out. Title: How you can quickly update a model s Dynamic Link options to Compatibility or Default. Environment: Software: AllFusion Gen r7.6 with the Compatibility PTFs applied Models: Schema 9.1.A5 Objective:

More information

Chapter 2. DB2 concepts

Chapter 2. DB2 concepts 4960ch02qxd 10/6/2000 7:20 AM Page 37 DB2 concepts Chapter 2 Structured query language 38 DB2 data structures 40 Enforcing business rules 49 DB2 system structures 52 Application processes and transactions

More information

Develop a batch DB2 for z/os COBOL application using Rational Developer for System z

Develop a batch DB2 for z/os COBOL application using Rational Developer for System z Develop a batch DB2 for z/os COBOL application using Rational Developer for System z Make use of multiple Eclipse perspectives Skill Level: Intermediate Laurence England (englandl@us.ibm.com) STSM IBM

More information

CA Repository for z/os CA RS 1403 Service List

CA Repository for z/os CA RS 1403 Service List CA Repository for z/os 7.2 1 CA RS 1403 Service List Description Hiper 7.2 RO63767 CATSYNC - INCORRECT ENT_TYPE ON TEXT_1 FOR CHK CON RO64483 BIGINT TRANSLATION RO64535 CA REPOSITORY SUPPORT FOR DB2 11

More information

CA Repository for z/os CA RS 1509 Service List

CA Repository for z/os CA RS 1509 Service List CA Repository for z/os 7.2 1 CA RS 1509 Service List Description Type 7.2 RO83227 VARIOUS FIXES PTF RO83233 DATE AND DATETIME2 NOT RECOGNIZED PTF RO83236 DATE AND DATETIME2 NOT RECOGNIZED PTF RO83511 DBXOR03

More information

Chapter 4. Basic SQL. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Chapter 4. Basic SQL. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 Basic SQL Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries

More information

Mainframe Developer NO.2/29, South Dhandapani St, Burkit road, T.nagar, Chennai-17. Telephone: Website:

Mainframe Developer NO.2/29, South Dhandapani St, Burkit road, T.nagar, Chennai-17. Telephone: Website: Mainframe Developer Mainframe Developer Training Syllabus: IBM Mainframe Concepts Architecture Input/output Devices JCL Course Syllabus INTRODUCTION TO JCL JOB STATEMENT CLASS PRTY MSGCLASS MSGLEVEL TYPRUN

More information

CA Plan Analyzer for DB2 for z/os

CA Plan Analyzer for DB2 for z/os CA Plan Analyzer for DB2 for z/os User Guide Version 17.0.00, Fourth Edition This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to

More information

CA Repository for z/os CA RS 1309 Service List

CA Repository for z/os CA RS 1309 Service List CA Repository for z/os 7.2 1 CA RS 1309 Service List Description Hiper 7.2 RO56794 COLUMN "ROUND" NOT FOUND RO56812 REPORT PANELS EDIT JCL => N LOOPS RO57150 TERADATA MUST SORT ON DATABASE RO57504 VIEW

More information

Deadlocks were detected. Deadlocks were detected in the DB2 interval statistics data.

Deadlocks were detected. Deadlocks were detected in the DB2 interval statistics data. Rule DB2-311: Deadlocks were detected Finding: Deadlocks were detected in the DB2 interval statistics data. Impact: This finding can have a MEDIUM IMPACT, or HIGH IMPACT on the performance of the DB2 subsystem.

More information

What s new in DB2 Administration Tool 10.1 for z/os

What s new in DB2 Administration Tool 10.1 for z/os What s new in DB2 Administration Tool 10.1 for z/os Joseph Reynolds, Architect and Development Lead, IBM jreynold@us.ibm.com Calene Janacek, DB2 Tools Product Marketing Manager, IBM cjanace@us.ibm.com

More information

SQL Structured Query Language Introduction

SQL Structured Query Language Introduction SQL Structured Query Language Introduction Rifat Shahriyar Dept of CSE, BUET Tables In relational database systems data are represented using tables (relations). A query issued against the database also

More information

Using dynamic SQL in COBOL

Using dynamic SQL in COBOL Using dynamic SQL in COBOL You can use all forms of dynamic SQL in all supported versions of COBOL. For a detailed description and a working example of the method, see Sample COBOL dynamic SQL program

More information

DB2BUS for ASG-Rochade Release Notes

DB2BUS for ASG-Rochade Release Notes DB2BUS for ASG-Rochade Release Notes Version 11.03 for z/os and Windows July 7, 2016 DBB1100-1103 This publication describes all new features, changes and fixes of DB2BUS for ASG- Rochade introduced in

More information

Db2 12 A new spin on a successful database

Db2 12 A new spin on a successful database Phil Grainger Principal Enablement Manager BMC Software Db2 12 A new spin on a successful database Management Performance Administration So What's new with Performance Performance Management Db2 12? Availability

More information

Craig S. Mullins. A DB2 for z/os Performance Roadmap By Craig S. Mullins. Database Performance Management Return to Home Page.

Craig S. Mullins. A DB2 for z/os Performance Roadmap By Craig S. Mullins. Database Performance Management Return to Home Page. Craig S. Mullins Database Performance Management Return to Home Page December 2002 A DB2 for z/os Performance Roadmap By Craig S. Mullins Assuring optimal performance is one of a database administrator's

More information

How do I keep up with this stuff??

How do I keep up with this stuff?? Michael Cotignola Db2 Software Consultant BMC Software Db2 12 How do I keep up with this stuff?? Or. Add your tag line here So, what s new with Db2 12 We ll take a quick look at the usual suspects: Reliability,

More information

Updates that apply to IBM DB2 Analytics Accelerator Loader for z/os V2R1 User's Guide (SC )

Updates that apply to IBM DB2 Analytics Accelerator Loader for z/os V2R1 User's Guide (SC ) Updates that apply to IBM DB2 Analytics Accelerator Loader for z/os V2R1 User's Guide (SC27-6777-00) Date of change: May 2017 Topic: Multiple Change description: Documentation changes made in support of

More information

CA Repository for z/os CA RS 1408 Service List

CA Repository for z/os CA RS 1408 Service List CA Repository for z/os 7.2 1 CA RS 1408 Service List Description Type 7.2 RO71349 CANNOT CHANGE FOREIGN KEY NAME PTF RO72071 ORACLE CATSYNC - INDEX KEY VERSIONING PTF RO72126 CANNOT CHANGE FOREIGN KEY

More information

IBM DB2 UDB V7.1 Family Fundamentals.

IBM DB2 UDB V7.1 Family Fundamentals. IBM 000-512 DB2 UDB V7.1 Family Fundamentals http://killexams.com/exam-detail/000-512 Answer: E QUESTION: 98 Given the following: A table containing a list of all seats on an airplane. A seat consists

More information

Enhanced Monitoring Support in DB2 10 for z/os

Enhanced Monitoring Support in DB2 10 for z/os DB2 for z/os Version 10 Enhanced Monitoring Support in DB2 10 for z/os Baltimore/Washington DB2 Users Group December 8, 2010 Mark Rader IBM Advanced Technical Skills Disclaimer Copyright IBM Corporation

More information

Chapter 1. Overview Topic: What's new Topic: Features and benefits

Chapter 1. Overview Topic: What's new Topic: Features and benefits Updates that apply to IBM DB2 Analytics Accelerator Loader for z/os V2R1 User's Guide (SC27-6777-00) Date of change: August, 2016 Topics: Multiple Change description: Documentation corrections and updates

More information

IBM C IBM DB2 11 DBA for z/os. Download Full Version :

IBM C IBM DB2 11 DBA for z/os. Download Full Version : IBM C2090-312 IBM DB2 11 DBA for z/os Download Full Version : http://killexams.com/pass4sure/exam-detail/c2090-312 Answer: C, E QUESTION: 58 You want to convert a segmented table space into a partition-by-growth

More information

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: 1. IT Cost Containment 84 topics 2. Cloud Computing Readiness 225

More information

Modern DB2 for z/os Physical Database Design

Modern DB2 for z/os Physical Database Design Modern DB2 for z/os Physical Database Design Northeast Ohio DB2 Users Group Robert Catterall, IBM rfcatter@us.ibm.com May 12, 2016 2016 IBM Corporation Agenda Get your partitioning right Getting to universal

More information

A DB2 Performance Tuning Roadmap: A High-Level View on Managing the Performance of DB2 for z/os. Craig S. Mullins

A DB2 Performance Tuning Roadmap: A High-Level View on Managing the Performance of DB2 for z/os. Craig S. Mullins A DB2 Performance Tuning Roadmap: A High-Level View on Managing the Performance of DB2 for z/os Craig S. Mullins craig@craigsmullins.com Copyright 1999 Author This presentation was prepared by: Craig S.

More information

DB2 for z/os Best Practices Optimizing Insert Performance - Part 1

DB2 for z/os Best Practices Optimizing Insert Performance - Part 1 DB2 for z/os Best Practices Optimizing Insert Performance - Part 1 John J. Campbell IBM Distinguished Engineer DB2 for z/os Development CampbelJ@uk.ibm.com 2011 IBM Corporation Transcript of webcast Slide

More information

Listing of SQLSTATE values

Listing of SQLSTATE values Listing of values 1 of 28 5/15/2008 11:28 AM Listing of values The tables in this topic provide descriptions of codes that can be returned to applications by DB2 UDB for iseries. The tables include values,

More information

Session: B11 DB2 9 for z/os Best Practices for SAP. Johannes Schuetzner IBM Boeblingen Lab. October 7, 2009, 11:00-12:00 Platform: DB2 for z/os

Session: B11 DB2 9 for z/os Best Practices for SAP. Johannes Schuetzner IBM Boeblingen Lab. October 7, 2009, 11:00-12:00 Platform: DB2 for z/os Session: B11 DB2 9 for z/os Best Practices for SAP Johannes Schuetzner IBM Boeblingen Lab October 7, 2009, 11:00-12:00 Platform: DB2 for z/os Agenda Overview DB2 9 for z/os with SAP Managing tablespaces

More information

Working with Databases and Database Objects - Answers

Working with Databases and Database Objects - Answers Working with Databases and Database Objects - Answers 44. The correct answer is D. In order to access a remote database from a client workstation, the database must be cataloged in the system database

More information

CA Performance Handbook

CA Performance Handbook SECTION 2: CHAPTERS 4 6 CA Performance Handbook for DB2 for z/os About the Contributors from Yevich, Lawson and Associates Inc. DAN LUKSETICH is a senior DB2 DBA. He works as a DBA, application architect,

More information

Self-test DB2 for z/os Fundamentals

Self-test DB2 for z/os Fundamentals Self-test DB2 for z/os Fundamentals Document: e1067test.fm 01/04/2017 ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium TRAINING & CONSULTING INTRODUCTION TO THE SELF-TEST DB2 FOR Z/OS FUNDAMENTALS

More information

Contents. Using. Dynamic SQL 44. Bag of Tricks 56. Complex SQL Guidelines 90. Working with Nulls 115. Aggregate Functions 135

Contents. Using. Dynamic SQL 44. Bag of Tricks 56. Complex SQL Guidelines 90. Working with Nulls 115. Aggregate Functions 135 Contents Preface xxiii Part I SQL Techniques, Tips, and Tricks 1 The Magic Words 3 An Overview of SQL 4 SQL Tools of the Trade 13 Static SQL 42 Dynamic SQL 44 SQL Performance Factors 45 2 Data Manipulation

More information

Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms

Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms Agenda Basic Components Terminology Differences Storage Management

More information

CA Database Management Solutions for DB2 for z/os

CA Database Management Solutions for DB2 for z/os CA Database Management Solutions for DB2 for z/os Release Notes Version 17.0.00, Ninth Edition This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter

More information

Ten Breakthroughs That Changed DB2 Forever

Ten Breakthroughs That Changed DB2 Forever Ten Breakthroughs That Changed DB2 Forever Session Number 1066 Craig S. Mullins Mullins Consulting, Inc. http://www.craigsmullins.com http://mullinsconsultinginc.com Objectives 1 Gain an historical perspective

More information

DB2 9 for z/os Technical Briefing

DB2 9 for z/os Technical Briefing DB2 9 for z/os Technical Briefing DB2 9 for z/os and tools workshop April 23 rd 2008 Brussels Kurt Struyf Competence Partners Course materials may not be reproduced in whole or in part without the prior

More information

INSTALLATION INSTRUCTIONS

INSTALLATION INSTRUCTIONS Release 1408 Service Request 15128 INSTALLATION INSTRUCTIONS Document Number install.doc Adam Cohen Information Systems & Computing Office of the President University of California Page 1 This document

More information

Introduction to IBM DB2

Introduction to IBM DB2 Introduction to IBM DB2 Architecture Client-server system Server: SERVEDB, servedb.ing.man 10.17.2.91 Client: IBM Data Studio: graphical DB2 Command Window: command line 2 Architecture Servers, instances,

More information

CA Database Management Solutions for DB2 for z/os

CA Database Management Solutions for DB2 for z/os CA Database Management Solutions for DB2 for z/os Release Notes Version 17.0.00, Fourth Edition This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter

More information

Basi di Dati Complementi. Mainframe

Basi di Dati Complementi. Mainframe Basi di Dati Complementi 3.1. DBMS commerciali DB2-3.1.2 Db2 in ambiente mainframe Andrea Maurino 2007 2008 Mainframe 1 Mainframe Terminologia Mainframe Storage Management Subsystem (SMS) Is an automated

More information

Things to remember when working with Oracle... (for UDB specialists)

Things to remember when working with Oracle... (for UDB specialists) TRAINING & CONSULTING Things to remember when working with Oracle... (for UDB specialists) Kris Van Thillo, ABIS ABIS Training & Consulting www.abis.be training@abis.be 2013 Document number: DB2LUWUserMeeting2013Front.fm

More information

DB2 10 for z/os Technical Overview

DB2 10 for z/os Technical Overview DB2 10 for z/os Technical Overview John Campbell Distinguished Engineer DB2 for z/os Development IBM Silicon Valley Lab Email: CampbelJ@uk.ibm.com 2010 IBM Corporation DB2 10 for z/os IBM Software Group

More information

What Developers must know about DB2 for z/os indexes

What Developers must know about DB2 for z/os indexes CRISTIAN MOLARO CRISTIAN@MOLARO.BE What Developers must know about DB2 for z/os indexes Mardi 22 novembre 2016 Tour Europlaza, Paris-La Défense What Developers must know about DB2 for z/os indexes Introduction

More information

DB2 Users Group. September 8, 2005

DB2 Users Group. September 8, 2005 DB2 Users Group September 8, 2005 1 General Announcements September 13 RICDUG, Richmond DB2 Users Group, Richmond, VA www.ricdug.org September 18 TIB 2005195-1143 Removal of COBOL 2.2 TIB 2005236-1154

More information

DB2 10: For Developers Only

DB2 10: For Developers Only DB2 10: For Developers Only for z/os Sponsored by: align http://www.softbase.com 2011 Mullins Consulting, Inc. Craig S. Mullins Mullins Consulting, Inc. http://www.craigsmullins.com Author This presentation

More information

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement Chapter 4 Basic SQL Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured Query Language Statements for data definitions, queries,

More information

DB2 9 for z/os Hints and Tips for Database Administrators

DB2 9 for z/os Hints and Tips for Database Administrators DB2 9 for z/os Hints and Tips for Database Administrators par Namik Hrle IBM Réunion du Guide DB2 pour z/os France Vendredi 27 novembre 2009 Tour Euro Plaza, Paris-La Défense Disclaimer Copyright IBM Corporation

More information

Installation Verification Procedure for Oracle Database Provider for DRDA

Installation Verification Procedure for Oracle Database Provider for DRDA Installation Verification Procedure for Oracle Database Provider for DRDA Disclaimer The following is intended to outline our general product direction. It is intended for information purposes only, and

More information

I Didn't Know DB2 Did THAT! V9 & V10 Update CENTRAL CANADA DB2 USER GROUP

I Didn't Know DB2 Did THAT! V9 & V10 Update CENTRAL CANADA DB2 USER GROUP I Didn't Know DB2 Did THAT! V9 & V10 Update CENTRAL CANADA DB2 USER GROUP Bonnie K. Baker Bonnie Baker Corporation 1-813-477-4885 bkbaker@bonniebaker.com www.bonniebaker.com INTERNAL MYSTERIES SOLVED 2

More information

Collecting Hydra Statistics

Collecting Hydra Statistics Collecting Hydra Statistics Fabio Massimo Ottaviani EPV Technologies White paper 1 Overview The IBM Virtualization Engine TS7700, code named Hydra, is the new generation of tape virtualization solution

More information

Data types String data types Numeric data types Date, time, and timestamp data types XML data type Large object data types ROWID data type

Data types String data types Numeric data types Date, time, and timestamp data types XML data type Large object data types ROWID data type Data types Every column in every DB2 table has a data type. The data type influences the range of values that the column can have and the set of operators and functions that apply to it. You specify the

More information

January Xephon plc 2001

January Xephon plc 2001 99 January 2001 3 24x7 DB2 applications tips for good design 12 Cloning a DB2 subsystem using SnapShot 23 DB2 Version 6 stored procedures migration issues 28 Utility for generating recovery jobs using

More information

HOLDDATA FOR DB2 9.1 PUT Level ** Please read through all the holddata before acting on any of it. ** GENERAL

HOLDDATA FOR DB2 9.1 PUT Level ** Please read through all the holddata before acting on any of it. ** GENERAL HOLDDATA FOR DB2 9.1 PUT Level 0806 ** Please read through all the holddata before acting on any of it. ** GENERAL 1. Rebind all static DB2 application which match criteria. Member REBIND DSN910.SVSC.HOLDCNTL

More information

Vendor: IBM. Exam Code: C Exam Name: DB Fundamentals. Version: Demo

Vendor: IBM. Exam Code: C Exam Name: DB Fundamentals. Version: Demo Vendor: IBM Exam Code: C2090-610 Exam Name: DB2 10.1 Fundamentals Version: Demo QUESTION 1 If the following command is executed: CREATE DATABASE test What is the page size (in kilobytes) of the database?

More information

CA Chorus for DB2 Database Management

CA Chorus for DB2 Database Management CA Chorus for DB2 Database Management User Guide Version 04.0.00, Second Edition This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter referred

More information

Data Warehousing on System z: Best Practices with DB2 for z/os

Data Warehousing on System z: Best Practices with DB2 for z/os Data Warehousing on System z: Best Practices with DB2 for z/os Willie Favero IBM Silicon Valley Lab Data Warehousing on System z Swat Team (DB2 SME) Thursday, August 9, 2012 1:30 PM 2:30 PM Session Number:

More information

Slides by: Ms. Shree Jaswal

Slides by: Ms. Shree Jaswal Slides by: Ms. Shree Jaswal Overview of SQL, Data Definition Commands, Set operations, aggregate function, null values, Data Manipulation commands, Data Control commands, Views in SQL, Complex Retrieval

More information

COMP 3400 Mainframe Administration 1

COMP 3400 Mainframe Administration 1 COMP 3400 Mainframe Administration 1 Christian Grothoff christian@grothoff.org http://grothoff.org/christian/ 1 These slides are based in part on materials provided by IBM s Academic Initiative. 1 Databases

More information

DB2 11 Global variables

DB2 11 Global variables DB2 11 Global variables Rajesh Venkata Rama Mallina (vmallina@in.ibm.com) DB2 Z/OS DBA IBM 03 March 2017 The following document is for IBM DB2 for z/os, Topic is Global variables. As a DB2 DBA administrator

More information

Basics of SQL Transactions

Basics of SQL Transactions www.dbtechnet.org Basics of SQL Transactions Big Picture for understanding COMMIT and ROLLBACK of SQL transactions Files, Buffers,, Service Threads, and Transactions (Flat) SQL Transaction [BEGIN TRANSACTION]

More information