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.

Maybe you have implemented a space allocation strategy at your site. You do not have to alter<br />

your current strategy in order to benefit from the automated secondary quantity space<br />

management. Specifying MGEXTSZ=YES triggers <strong>DB2</strong> to manage the size of secondary<br />

allocations by the sliding scale mechanism. This guarantees that you will never run out of<br />

extents and still honors the SECQTY that you specified if greater than the <strong>DB2</strong> calculated<br />

value.<br />

5.3 Online schema<br />

Note: PTF UK08807 <strong>for</strong> APAR PK0564 provides a data set pre<strong>for</strong>mat quantity adjustment<br />

to take into account the larger sizes of secondary extents.<br />

In the past, <strong>DB2</strong> releases have implemented most DDL ALTER enhancements without<br />

actively addressing the problem of data unavailability while modifying object attributes.<br />

Some schema changes could already be done without having to drop and recreate an object,<br />

or stopping and starting the object, such as adding a column to a table, renaming a table,<br />

altering the primary and secondary quantity of an object, or changing partition boundaries.<br />

But many changes to table, table space, and index schemas (DDL) prior to <strong>DB2</strong> V8 require<br />

that you adhere to the following procedure to implement them:<br />

– Unload the data, extract the DDL and authorizations of the object you are about to<br />

change, and all dependent objects, like tables, indexes, views, synonyms, triggers, and<br />

so on.<br />

– Drop the object.<br />

– Create the object with the new definition and reestablish authorizations <strong>for</strong> the object.<br />

– Recreate all dependent objects, such as views and indexes, and so <strong>for</strong>th, and their<br />

authorizations.<br />

– Reload the data.<br />

– Rebind plans and packages.<br />

– Test that all is OK.<br />

Without the use of <strong>DB2</strong> administration tools, this is a cumbersome and error prone process.<br />

<strong>DB2</strong> V8 allows many more schema changes without having to drop and recreate the objects.<br />

5.3.1 Changing attributes<br />

Online schema evolution allows <strong>for</strong> table space, table and index attribute changes while<br />

minimizing impact on availability.<br />

The following schema changes are allowed in <strong>DB2</strong> V8:<br />

Alter column data type<br />

Column data types can be changed without losing data availability.<br />

► Increase column size within a data type<br />

► Change the data type<br />

After the change:<br />

► The table space is placed in Advisory Reorg Pending (AREO*) state.<br />

230 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

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

Saved successfully!

Ooh no, something went wrong!