15.01.2013 Views

Oracle Database 11g The Complete Reference (Osborne ORACLE ...

Oracle Database 11g The Complete Reference (Osborne ORACLE ...

Oracle Database 11g The Complete Reference (Osborne ORACLE ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 26: Using Materialized Views 443<br />

-- details when enabled.<br />

MSGTXT VARCHAR(2000),-- Text associated with MSGNO.<br />

SEQ NUMBER); -- Useful in ORDER BY clause when<br />

-- selecting from this table.<br />

Once the EXPLAIN_MVIEW procedure has been executed, you can query MV_CAPABILITIES_<br />

TABLE to determine your options.<br />

select Capability_Name, Msgtxt<br />

from MV_CAPABILITIES_TABLE<br />

where Msgtxt is not null;<br />

For the LOCAL_BOOKSHELF materialized view, the query returns:<br />

CAPABILITY_NAME<br />

------------------------------<br />

MSGTXT<br />

------------------------------------------------------------<br />

PCT_TABLE<br />

relation is not a partitioned table<br />

REFRESH_FAST_AFTER_INSERT<br />

the detail table does not have a materialized view log<br />

REFRESH_FAST_AFTER_ONETAB_DML<br />

see the reason why REFRESH_FAST_AFTER_INSERT is disabled<br />

REFRESH_FAST_AFTER_ANY_DML<br />

see the reason why REFRESH_FAST_AFTER_ONETAB_DML is disabled<br />

REFRESH_FAST_PCT<br />

PCT is not possible on any of the detail tables in the<br />

materialized view<br />

REWRITE_FULL_TEXT_MATCH<br />

query rewrite is disabled on the materialized view<br />

REWRITE_PARTIAL_TEXT_MATCH<br />

query rewrite is disabled on the materialized view<br />

REWRITE_GENERAL<br />

query rewrite is disabled on the materialized view<br />

REWRITE_PCT<br />

general rewrite is not possible or PCT is not possible on<br />

any of the detail tables<br />

PCT_TABLE_REWRITE<br />

relation is not a partitioned table<br />

10 rows selected.

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

Saved successfully!

Ooh no, something went wrong!