Skip to Main Content
DB2 Cube Views: A Primer
book

DB2 Cube Views: A Primer

by Corinne Baragoin, Geetha Balasubramaniam, Bhuvaneshwari Chandrasekharan, Landon DelSordo, Jan B. Lillelund, Julie Maw, Annie Neroda, Paulo Pereira, Jo A. Ramos
September 2003
Beginner to intermediate content levelBeginner to intermediate
754 pages
18h 9m
English
IBM Redbooks
Content preview from DB2 Cube Views: A Primer
Chapter 4. Using the cube model for summary tables optimization 185
Is the table really an MQT?
You can ALTER an MQT and make it a real table with the following command:
ALTER TABLE mqt SET MATERIALIZED QUERY AS DEFINITION ONLY;
You can check the status of a table with:
SELECT TABNAME, TYPE FROM SYSCAT.TABLES WHERE TABNAME = ‘mqt_name’;
Is the MQT accessible?
An MQT may be in a CHECK PENDING NO ACCESS state. This occurs:
1. After initial creation prior to population
2. When a staging table is created
3. On a staging table after a
SET INTEGRITY IMMEDIATE CHECKED is run on a base
table following a LOAD INSERT
4. On a REFRESH IMMEDIATE MQT after a
LOAD INSERT and SET INTEGRITY on
the base table
You can determine its status with:
SELECT TABNAME, STATUS ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert Cube Development with SSAS Multidimensional Models

Expert Cube Development with SSAS Multidimensional Models

Chris Webb, Alberto Ferrari, Marco Russo
Oracle Essbase & Oracle OLAP

Oracle Essbase & Oracle OLAP

Michael Schrader, Dan Vlamis, Mike Nader, Chris Claterbos, Dave Collins, Mitch Campbell, Floyd Conrad

Publisher Resources

ISBN: 0738499730Purchase book