Problem in Materialized view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Preeti Bajaj
    New Member
    • Aug 2008
    • 1

    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_DA TE),MAX(CRE_DAT E),MAX(TXN_DATE )) AS LAST_TXN_DT
    from DUMMY_TAB group by ID

    I got the errror:

    ORA_12054:Canno t set the ON COMMIT refresh attribute for the materialized view.Can anyone help me how to resolve this error??
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Please let us know which oracle version you are using??

    Comment

    • Madhusmita Biswal
      New Member
      • Feb 2010
      • 6

      #3
      on_commit_refre sh_materialized _view

      read the link below


      link

      Comment

      Working...