IBM Books

DB2 Replication Guide and Reference


DB2 for MVS Rules Regarding Indexes

Do not specify TYPE 1 indexes if the table space containing the identified table has a LOCKSIZE or ROW. If you specify TYPE 1 in a data sharing environment, a warning message is issued if you specify a value greater than 1 for SUBPAGES. A TYPE 1 index with more than one subpage cannot be accessed when there is inter-DB2 read/write interest in the index.

You cannot use an isolation UR option with an access path that uses a TYPE 1 index.

TYPE 2 indexes are a new type of index in MVS Version 4. Because TYPE 2 indexes do not lock index pages, your applications can avoid deadlock and timeout problems on the index. The key advantage of TYPE 2 indexes is that they allow you to use other Version 4 enhancements, such as parallel query central processor (CP) processing, improved partition independence, row locking, and the ability to read through locks. If you specify TYPE 2, all specifications of SUBPAGES are ignored, and an error message is issued.

If you do not specify a type of index, the type is determined as follows:

Recommendation


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]