+ All Categories
Home > Documents > BMC LOADPLUS Utility – Introduction

BMC LOADPLUS Utility – Introduction

Date post: 07-Apr-2015
Category:
Upload: kaanalneer01
View: 1,318 times
Download: 2 times
Share this document with a friend
15
BMC LOADPLUS BMC LOADPLUS Utility – Utility – Introduction Introduction
Transcript
Page 1: BMC LOADPLUS Utility – Introduction

BMC LOADPLUS Utility – BMC LOADPLUS Utility – IntroductionIntroduction

Page 2: BMC LOADPLUS Utility – Introduction

LOADPLUS SolutionLOADPLUS Solution

The BMC Software LOADPLUS for DB2 The BMC Software LOADPLUS for DB2 product replaces most of the functions of product replaces most of the functions of the IBM DB2 LOAD utility and provides the IBM DB2 LOAD utility and provides several additional functions.several additional functions.

Advanced techniques and additional Advanced techniques and additional functions allow LOADPLUS to load more functions allow LOADPLUS to load more types of data faster than the IBM DB2 types of data faster than the IBM DB2 LOAD utility does.LOAD utility does.

Page 3: BMC LOADPLUS Utility – Introduction

LOADPLUS PerformsLOADPLUS Performs Resources Resources

analyzes and allocates memory and CPU resources for maximum throughputanalyzes and allocates memory and CPU resources for maximum throughput optionally analyzes data set resources that are needed for the specific load joboptionally analyzes data set resources that are needed for the specific load job optionally allocates input, load data, index work, sort work, discard, error, and optionally allocates input, load data, index work, sort work, discard, error, and

copy files dynamicallycopy files dynamically

IndexesIndexes optionally reorganizes the participating indexesoptionally reorganizes the participating indexes optionally updates indexes, which can improve performance when loading a optionally updates indexes, which can improve performance when loading a

small number of rows into an existing table that has a large number of rowssmall number of rows into an existing table that has a large number of rows

PerformancePerformance optionally provides single-phase load processing, which combines the PRELOAD optionally provides single-phase load processing, which combines the PRELOAD

and LOAD phases into one phase (the COMBINED phase)and LOAD phases into one phase (the COMBINED phase) provides an option to improve performance by not sorting the data or clustering provides an option to improve performance by not sorting the data or clustering

index if the data is already in correct clustering index sequenceindex if the data is already in correct clustering index sequence

Page 4: BMC LOADPLUS Utility – Introduction

LOADPLUS PerformsLOADPLUS Performs AvailabilityAvailability

provides an option for the utility to pause in its processing before the data is provides an option for the utility to pause in its processing before the data is loaded if any input records are discardedloaded if any input records are discarded

provides an option to leave tables in read-only status while loading your dataprovides an option to leave tables in read-only status while loading your data provides an option to leave tables in read/write status while loading your dataprovides an option to leave tables in read/write status while loading your data

Loading DataLoading Data loads data from one or more data sets into one or more tables or table space loads data from one or more data sets into one or more tables or table space

partitions in a single command execution, either replacing or adding to the partitions in a single command execution, either replacing or adding to the existing dataexisting data

avoids adding rows and keys to the table spaces and indexes if they cause avoids adding rows and keys to the table spaces and indexes if they cause duplicate keys in a unique index, so that the rows and keys do not need to be duplicate keys in a unique index, so that the rows and keys do not need to be deleted later in the LOAD phasedeleted later in the LOAD phase

CopiesCopies with a self-contained copy function, produces image copies or DSN1COPYs with a self-contained copy function, produces image copies or DSN1COPYs

concurrently with the loadconcurrently with the load optionally produces inline image copies optionally produces inline image copies as as it loads your tables, rather than it loads your tables, rather than

DSN1COPYs or image copies DSN1COPYs or image copies after after it loads your tablesit loads your tables

Page 5: BMC LOADPLUS Utility – Introduction

Difference between LOADPLUS Difference between LOADPLUS and IBM Loadand IBM Load

LOADPLUS combines RELOAD, INDEXVAL, DISCARD, REPORT, SORT, BUILD, or LOADPLUS combines RELOAD, INDEXVAL, DISCARD, REPORT, SORT, BUILD, or SORTBLD into the PRELOAD and LOAD phases for a two-phase load, and into the SORTBLD into the PRELOAD and LOAD phases for a two-phase load, and into the COMBINED phase for a single-phase load.COMBINED phase for a single-phase load.

For segmented table spaces, you can specify LOAD RESUME YES INTO TABLE For segmented table spaces, you can specify LOAD RESUME YES INTO TABLE name name REPLACE to load just the tables in which you want to replace data, leaving the REPLACE to load just the tables in which you want to replace data, leaving the other tables intact.other tables intact.

LOADPLUS optimizes the processing of INTO PART statements by combining LOADPLUS optimizes the processing of INTO PART statements by combining statements that are the same. For example, if you specify INTO PART 1 twice on the statements that are the same. For example, if you specify INTO PART 1 twice on the same LOAD command, LOADPLUS combines these statements into a single INTO same LOAD command, LOADPLUS combines these statements into a single INTO statement and loads one set of rows. In contrast, the IBM DB2 LOAD utility loads two statement and loads one set of rows. In contrast, the IBM DB2 LOAD utility loads two sets of rows into partition 1 in this example.sets of rows into partition 1 in this example.

LOADPLUS does not have an ENFORCE CONSTRAINTS option for referential LOADPLUS does not have an ENFORCE CONSTRAINTS option for referential integrity violations. Instead, LOADPLUS places the affected table spaces in CHECK integrity violations. Instead, LOADPLUS places the affected table spaces in CHECK pending status. pending status.

Page 6: BMC LOADPLUS Utility – Introduction

Difference between LOADPLUS Difference between LOADPLUS and IBM Loadand IBM Load

When you specify COPY NO, LOADPLUS places the table space in COPY pending status only if the value of When you specify COPY NO, LOADPLUS places the table space in COPY pending status only if the value of COPYPEND is YES. If the value of COPYPEND is NO, LOADPLUS does not place the table space in COPY COPYPEND is YES. If the value of COPYPEND is NO, LOADPLUS does not place the table space in COPY pending status.pending status.

LOADPLUS uses work files until it loads all the data. Therefore, the work files should not be temporary data sets LOADPLUS uses work files until it loads all the data. Therefore, the work files should not be temporary data sets if you want to be able to restart the job.if you want to be able to restart the job.

To restart the IBM Load utility, To restart the IBM Load utility, RESTART(PHASE) RESTART(PHASE) RESTART(CURRENT). RESTART(CURRENT). Has to be specified in the UTPROC Parm.Has to be specified in the UTPROC Parm.//LKPKTRAA EXEC PROC=DB2UTILB, //LKPKTRAA EXEC PROC=DB2UTILB, // UID='D816AA.TADJ', // UID='D816AA.TADJ', //* UTPROC='RESTART(PHASE)', //* UTPROC='RESTART(PHASE)', // SSID=&SSID,NODE=&NODE // SSID=&SSID,NODE=&NODE

To restart the BMC LOADPLUS Utility To restart the BMC LOADPLUS Utility RESTARTRESTART RESTART(PHASE)RESTART(PHASE) NEW (!) NEW (!) NEW/RESTARTNEW/RESTARTHas to be specified in the RESTART parameter Has to be specified in the RESTART parameter //STEP01 EXEC BMCLOAD, //STEP01 EXEC BMCLOAD, // SSID=DST2,NODE=TESTDRM, // SSID=DST2,NODE=TESTDRM, // UTILID=D865AA.TDWSSCN, // UTILID=D865AA.TDWSSCN, // RESTART='NEW/RESTART' // RESTART='NEW/RESTART'

Page 7: BMC LOADPLUS Utility – Introduction

Difference between LOADPLUS Difference between LOADPLUS and IBM Loadand IBM Load

To Terminate a BMC Utility To Terminate a BMC Utility //STEP01 EXEC BMCLOAD, //STEP01 EXEC BMCLOAD, // SSID=DST2,NODE=TESTDRM, // SSID=DST2,NODE=TESTDRM, // UTILID=D865AA.TDWSSCN, // UTILID=D865AA.TDWSSCN, // RESTART=‘TERM' // RESTART=‘TERM'

All BMC Utilities are entered in the table All BMC Utilities are entered in the table CMN_BMCUTIL owned by BMCUTILCMN_BMCUTIL owned by BMCUTIL

To Terminate any IBM Utility, use the DB2 Command from option 7 in the To Terminate any IBM Utility, use the DB2 Command from option 7 in the DB2I MenuDB2I Menu - TERM UTIL(UTILID)- TERM UTIL(UTILID)

All IBM utilities are entered in the DB2 Directory table SYSIBM.SYSUTILX. All IBM utilities are entered in the DB2 Directory table SYSIBM.SYSUTILX. This table cannot be queried and the only way to get the entries is by using This table cannot be queried and the only way to get the entries is by using the DB2 commandthe DB2 command - DIS UTIL(*) - DIS UTIL(*)

Page 8: BMC LOADPLUS Utility – Introduction

LOADPLUS Execution PhasesLOADPLUS Execution Phases

UTILINIT UTILINIT This phase initializes the job; reads, parses, and verifies the LOAD command, This phase initializes the job; reads, parses, and verifies the LOAD command,

performs DB2 catalog lookupperforms DB2 catalog lookup

ANALYZEANALYZE This optional phase analyzes the objects that are being loaded and optionally This optional phase analyzes the objects that are being loaded and optionally

produces statistics to help determine data set size for allocating those data sets.produces statistics to help determine data set size for allocating those data sets.

PRELOADPRELOAD This phase reads data from the input data sets. In this phase, LOADPLUS This phase reads data from the input data sets. In this phase, LOADPLUS

converts data as needed and verifies that the data is correct, builds DB2 rows in converts data as needed and verifies that the data is correct, builds DB2 rows in the SORTOUT data set, builds index information in the SYSUT1 data set, and the SORTOUT data set, builds index information in the SYSUT1 data set, and writes any input records that are in error to the SYSDISC discard data set. The writes any input records that are in error to the SYSDISC discard data set. The PRELOAD phase also builds the compression dictionary and compresses the PRELOAD phase also builds the compression dictionary and compresses the data rows.data rows.

Page 9: BMC LOADPLUS Utility – Introduction

LOADPLUS Execution PhasesLOADPLUS Execution Phases

LOADLOAD LOADPLUS reads the rows from the SORTOUT and SYSUT1 data sets and LOADPLUS reads the rows from the SORTOUT and SYSUT1 data sets and

loads the data into the table space and indexes. This phase invokes BMCSORT loads the data into the table space and indexes. This phase invokes BMCSORT for indexes that are not sorted in the PRELOAD phase. The LOAD phase creates for indexes that are not sorted in the PRELOAD phase. The LOAD phase creates any requested copies and registers them with the DB2 catalog.any requested copies and registers them with the DB2 catalog.

COMBINEDCOMBINED This phase combines all functions of the PRELOAD and LOAD phases into a This phase combines all functions of the PRELOAD and LOAD phases into a

single processing phase. The COMBINED phase avoids the intermediate steps single processing phase. The COMBINED phase avoids the intermediate steps of writing to the SORTOUT and SYSUT1 data sets either by writing data directly of writing to the SORTOUT and SYSUT1 data sets either by writing data directly to the table space and index space or by sending data directly to Apply Plus for to the table space and index space or by sending data directly to Apply Plus for inserting to the table space and index space.inserting to the table space and index space.

UTILTERMUTILTERM This phase performs cleanup tasks. In this phase, LOADPLUS sets the pending This phase performs cleanup tasks. In this phase, LOADPLUS sets the pending

status of all affected tables and table spaces and updates the BMC Software status of all affected tables and table spaces and updates the BMC Software BMCHIST table, the BMCSTATS tables and the DB2 catalog statistics. In BMCHIST table, the BMCSTATS tables and the DB2 catalog statistics. In addition, for LOAD REPLACE SHRLEVEL REFERENCE and for LOAD addition, for LOAD REPLACE SHRLEVEL REFERENCE and for LOAD REPLACE SHRLEVEL CHANGE, this phase performs the rename and delete REPLACE SHRLEVEL CHANGE, this phase performs the rename and delete operations that are associated with the staging data sets.operations that are associated with the staging data sets.

Page 10: BMC LOADPLUS Utility – Introduction

LOADPLUS LOADPLUS Execution Execution Phases – Phases –

Two phaseTwo phase

Page 11: BMC LOADPLUS Utility – Introduction

LOADPLUS LOADPLUS Execution Execution Phases – Phases –

One phaseOne phase

Page 12: BMC LOADPLUS Utility – Introduction

LOADPLUS DatasetsLOADPLUS Datasets

Page 13: BMC LOADPLUS Utility – Introduction

LOADPLUS DatasetsLOADPLUS Datasets

Page 14: BMC LOADPLUS Utility – Introduction

IBM Load IBM Load execution execution PhasesPhases

Page 15: BMC LOADPLUS Utility – Introduction

Thanks for your time Thanks for your time & To be continued …& To be continued …


Recommended