Last updated on JULY 09, 2012
Applies to:Oracle OLAP - Version 22.214.171.124 to 126.96.36.199 [Release 11.1 to 11.2]
Information in this document applies to any platform.
This problem can occur on any platform.
Cube MIT_CUBE is based on ACCOUNTS and RESULTCODES dimensions.
The cube is mapped to ALL_RESULTS table, the dimensions are mapped to ACCOUNTS_DIM and RESULTCODES_DIM tables respectively.
The following query, that refers to the ACCOUNTS_DIM only (it does not refer to the other dimension table) is not rewritten to the cube organized materialized view CB$MIT_CUBE:
SELECT a.account_id, sum(r.count)
FROM accounts_dim a, all_results r
WHERE a.account_id = r.account_id
GROUP BY a.account_id;
DBMS_MVIEW.EXPLAIN_REWRITE (<above_query>, 'CB$MIT_CUBE') gives
QSM-01284: materialized view CB$MIT_CUBE has an anchor table RESULTCODES_DIM not found in query
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms