Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2008, 07:14 AM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default Problem in Materialized view

I created a materialized view log on table DUMMY_TAB as shown below:

create materialized view log on DUMMY_TAB with primary key including new values;

Primary key for the table DUMMY_TAB is trans_id.In this table if any date is added i want to refresh the materialized view.

Then i created materialized view on table DUMMY_TAB as follows:

create materialized view temp_view
build immediate
refresh fast
enable query rewrite as
SELECT ID, nvl2(MAX(CRE_DATE),MAX(CRE_DATE),MAX(TXN_DATE)) AS LAST_TXN_DT
from DUMMY_TAB group by ID

I got the errror:

ORA_12054:Cannot set the ON COMMIT refresh attribute for the materialized view.Can anyone help me how to resolve this error??
Reply
  #2  
Old August 29th, 2008, 09:53 AM
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: India
Age: 24
Posts: 2,017
Default

Please let us know which oracle version you are using??
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles