19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

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

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

4.10 New CI size<br />

To preserve the SECLABEL values that are in the table, you need to execute the SQL in<br />

separate tasks with the various unique seclabels in the table, and include the predicate:<br />

WHERE SECLABEL_COLUMN = GETVARIABLE(SYSTEM.SECLABEL)<br />

An alternative is to include another SET clause in the SQL UPDATE statement in order to<br />

preserve the SECLABLE values already in the table.<br />

UPDATE PAYROLL<br />

SET SALARY = SALARY * 1.1,<br />

SECLABEL_COLUMN = SECLABEL_COLUMN<br />

This technique would require write-down authority <strong>for</strong> the user running the job. If there are<br />

any rows in the table that dominate (not equivalent) the user's seclabel, then they are not<br />

updated.<br />

In summary, although MLS Row Level Security can simplify the separation in an application, it<br />

is not transparent. You need to review how your application INSERTs and UPDATEs the data,<br />

as these processes probably need to change in order to manage and maintain the<br />

SECLABEL values in the data. There are similar considerations <strong>for</strong> batch processes and<br />

some utilities. Utilities may also take a little longer to execute. Processes <strong>for</strong> managing and<br />

controlling which processes have the write-down authority must also be developed.<br />

With V7, <strong>DB2</strong> only uses the VSAM Control Interval (CI) size of 4 KB. If the page size is 8, 16<br />

or 32 KB, <strong>DB2</strong> treats the page as a chain of 2, 4, or 8 CIs and requires VSAM to only allocate<br />

CIs in 4 KB blocks.<br />

<strong>DB2</strong> V8 introduces support <strong>for</strong> VSAM CI sizes of 8, 16, and 32 KB, activated by the new<br />

DSNZPARM parameter, DSVCI, in panel DSNTIP7. This is valid <strong>for</strong> both user-defined and<br />

<strong>DB2</strong> STOGROUP-defined table spaces. Index spaces only use 4 KB pages.<br />

Once you have activated the new CI sizes (in NFM), all new table spaces are allocated by<br />

<strong>DB2</strong> with a CI corresponding to the page size. The table spaces already existing at the time of<br />

migration to <strong>DB2</strong> V8 are later converted by the first execution of LOAD REPLACE or REORG.<br />

When using <strong>DB2</strong> user-defined objects (USING VCAT), it is your responsibility to define the<br />

underlying VSAM cluster with the correct CISIZE.<br />

<strong>DB2</strong> uses VSAM linear data sets, (LDS), which only uses a CI size which is a multiple of 4<br />

KB, and no CIDF. CIs are written by VSAM in physical blocks which try to use the best fit<br />

within the CI, and keep track occupancy decent.<br />

Now, consider Table 4-12, which describes the existing relationship between <strong>DB2</strong> V7 page<br />

sizes and VSAM CI sizes assuming a 3390 disk.<br />

Table 4-12 <strong>DB2</strong> V7 - Sizes in KB (usable track size 48 KB <strong>for</strong> 3390)<br />

<strong>DB2</strong> page size VSAM CI size VSAM physical<br />

block size<br />

Blocks per track <strong>DB2</strong> pages per<br />

track<br />

4 4 4 12 12<br />

8 4 4 12 6<br />

16 4 4 12 3<br />

32 4 4 12 1.5<br />

Chapter 4. <strong>DB2</strong> subsystem per<strong>for</strong>mance 199

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

Saved successfully!

Ooh no, something went wrong!