Over 10 Million Study Resources Now at Your Fingertips


Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Language:EN
Pages: 2

Used with tables without clustering index

192

These tables may become fragmented over time. DB2 lets you reorganize fragmented tables without shutting down the tablespace. Table reorgs are done within the existing tablespace, eliminating the need for excessive storage. Each moved row leaves behind a “reorg pointer” indicating its new location. This ensures rows are not read (or even reorged) more than once. Once the reorganization is complete, the pointers are removed. Refer to Figure 6.6.

No Staging Table With Staging Table

DATA INITIALLY DEFERRED REFRESH IMMEDIATE SET INTEGRITY FOR a1 IMMEDIATE CHECKED

CREATE TABLE s1 FOR a1 PROPAGATE IMMEDIATE SET INTEGRITY FOR s1 IMMEDIATE CHECKED . . .

TRAN 1: TRAN 1: t1 Refresh
Prunes s1
INSERT INTO t1 INSERT INTO t1
VALUES (1,2) a1 VALUES (1,2) a1
TRAN n: TRAN n:
INSERT INTO t1
INSERT INTO t1
VALUES (1,100) VALUES (1,100)
Figure 6.5

MQT staging table versus no staging table.

DB2 BI Fundamentals 193

As shown in Figure 6.7, online table reorganization can be run in two modes:

■■ Reclustering mode reorganizes the clustering index and the underly- ing data together.

TIME

Free FILL PAGE RANGE: MOVE and CLEAN to Fill Space

Figure 6.7

How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELIF1DD6A9
img
Uploaded by :
7eyDy9OE
Page 1 Preview
used with tables without clustering index
Sell Your Old Documents & Earn Wallet Balance