Materialized View [message #646474] |
Thu, 31 December 2015 11:39 |
|
arunOracle
Messages: 2 Registered: December 2015 Location: India
|
Junior Member |
|
|
Hi,
I'm trying to create materialized view for complex that include inner join clause in the query ,and this view should automatically gets updated(refresh fast) with the data matching this condition for every new data committed in database level.
I'm trying this approach to increase a performance measure when it comes to large data model(100+ tables).
And even i have create materialized view log for all the table with ROWID,PRIMARY KEY..
Sample format:
create materialized view test_view build immediate refresh fast on commit as
SELECT INTTABLE.COLUMN1 AS "init col",
TABLE1.COLUMN1 AS "tab1 col" ,
TABLE2.COLUMN1 AS "tab2 col",
TABLE3.COLUMN1 AS "tab3 col"
FROM TABLE1
INNER JOIN TABLE3
ON TABLE1.COLUMN1 = TABLE3.COLUMN2
INNER JOIN TABLE2
ON TABLE2.COLUMN1 = TABLE3.COLUMN3
INNER JOIN INTTABLE
ON INTTABLE.COLUMN1 = TABLE2.COLUMN2
Error Message:
Error at Command Line : 11 Column : 12
Error report -
SQL Error: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
12054. 00000 - "cannot set the ON COMMIT refresh attribute for the materialized view"
*Cause: The materialized view did not satisfy conditions for refresh at
commit time.
*Action: Specify only valid options.
|
|
|
|
|
|
|