I get "failed to set the refresh attribute COMMIT for the materialized view" when I try to create a MV using a table and another MV

Experts,

I'm trying to create a YOUNG refreshable ON COMMIT MV (xyz) using a table (circuit) and quickly updateable on validation MV (abc), but get an error:

SQL error: ORA-12054: cannot set the attribute ON COMMIT refresh for the materialized view

12054 00000 - "cannot set the refresh attribute COMMIT for the materialized view.

* Cause: The materialized view did not meet the requirements for update to

moment of validation.

* Action: Specify only valid options.

1] MV abc
= MV abc defined as below =.

CREATE MATERIALIZED view abc_MV

Immediate CONSTRUCTION

REFRESH QUICKLY YOU COMMIT using constraints of trust

WITH ROWID AS SELECT n.*,.

n.ROWID noderowid

node n

where n.nodetype in (1610000069,1610007267);


-Above works OK and MV connect you on table node is created successfully

=====================================================

[ 2] Circuit Board

======================================================

CREATE MATERIALIZED VIEW LOG ON Cramer.Circuit WITH SEQUENCE, ROWID ( ) -all columns of table ofcircut parentheses

INCLUDING THE NEW VALUES;

-More top works OK and MV connect you on table circuit is created successfully

======================================================



[3] trying to create MV xyz

======================================================

CREATE MATERIALIZED VIEW LOG ON cramer.abc_MV WITH SEQUENCE, ROWID ( ) -all columns of abc_MV brackets

INCLUDING THE NEW VALUES;

-Above works OK and log on ABC MV MV gets created successfully

-Problematic step below

Xyz_MV CREATE MATERIALIZED VIEW

IMMEDIATE CONSTRUCTION

REFRESH QUICKLY YOU COMMIT using constraints of trust

AS

SELECT c., c.rowid circuit_rowid, n.rowid tr_rowid

the circuit c, abc_mv n

where circuit2startnode = n.nodeid

and c.rpplanId = n.rpplanId;
==========================================================

Clues on how to solve this problem and make quickly updatable ON Commit MV xyz

Thanks in advance.

Chanchal,

If you can read my original post carefully you may have noticed that all these restrictions will not apply in my case.

All,

In any case I found the solution to my problem.

There are a few additional restrictions for materialized views multilayer

Additional Restrictions for master materialized views

The following types of materialized views may not be masters of editable materialized views:

  • ROWIDmaterialized views
  • Complex materialized views
  • Read-only materialized views

I've updated the underlying MV abc below and everything worked like a charm

CREATE MATERIALIZED view abc_MV

Immediate CONSTRUCTION

REFRESH QUICKLY YOU COMMIT using constraints of trust

IN SELECT

n.*, n.rowid noderowid, nt.rowid nodetyperowid

the node n, nodetype_m nt

where n.node2nodetype = nt.nodetypeid

and nt.nodetypeid in (1610000069,1610007267);

Note: To ADD a join without which I was getting error below (although had primary key on the table of the node)

SQL error: ORA-23415: materialized view log for "NODE" does not save the primary key

23415 00000 - "view the log for materialized \"%s\".\"%s\"does not save the primary key.

* Cause: A primary key materialized view is refreshed quickly, but the

The materialized view log does not record the primary key information.

* Action: Use CREATING MATERIALIZED VIEW LOG... Command to add a PRIMARY KEY to

start recording of the primary key information in the materialized view

Newspaper.

Tags: Database

Similar Questions

  • My downloads keep getting interrupted even of the Microsoft site when you try to download Windows 7 upgrade advisor.

    My downloads keep getting interrupted even of the Microsoft site when you try to download windows 7 upgrade advisor.

    Am running vista with IE9 on laptop Fujitsu Siemens Esprimo Mobile

    Any suggestions please?

    Hello Rogerpipe

    Try to disable your temporary security software and try to download the tool Upgrade Advisor. If this does not work then put the system in a clean boot and see if the problem still occurs.
    Steps to perform a clean boot.
  • Can't see the region list when you try to create

    Hi guys,.

    I am trying to create the list box, but it cannot access my application when I try to create a region.

    In the database Application example, easiily can I do,.

    http://i.imgur.com/26ASO.PNG

    but in my application, the option is missing.

    http://i.imgur.com/oGiJQ.PNG


    I tried to go to 21. Scarlet theme but no luck as well. Not sure what I should do to create a list box.

    APEX 4.1.1

    Hello

    First go to shared components and create a list entry. Now, go to the wizard in any page, and you should see the list item.

  • Getting the error "the device reported unexpected or invalid data for a command. (oxC0AA02FF) when you try to create the system repair disc

    original title: error 0xC0AA02FF

    I try to use a "USB" "cruzer" to create a disc repair system, but when I click on this drive to create it I get the following error message:

    "The device reported unexpected or invalid data for a command.  (oxC0AA02FF)

    Hello

    What method did you follow to create the system repair disc?

    I suggest you to create the system with different USB repair disc and check if it helps.

    Means all try the methods and check them off below if it helps.

    Method 1:

    Try to put the computer in a clean boot state, and then check if it helps.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I also suggest you to perform check disk (chkdsk) on the computer and see if it helps.

    http://Windows.Microsoft.com/en-us/Windows7/check-a-drive-for-errors

    Note: You may lose a small amount of data while performing the check disk.

    I also inform you that the data on the USB key will be lost. You should take a backup.

    You can also check with the reference article below:

    http://Windows.Microsoft.com/en-us/Windows7/create-a-system-repair-disc

  • My Toshiba Windows Vista says that failed to load the user profile when I try to log in.

    He said also the user profile service service has no logon. I have not changed my password.

    Hello

    1st thing to try is the system in safe mode restore to before the problem

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    If that does not solve it read more

    read the tutorial below

    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    When you log on a Windows Vista-based or a Windows 7 computer by using a temporary profile, you receive the following error message:

    The user profile Service has not logon. User profile cannot be loaded.

    http://support.Microsoft.com/kb/947215#letmefixit

    Your user profile was not loaded correctly! You have been logged on with a temporary profile.

    http://support.Microsoft.com/kb/947242

    If you tried to log on to Windows and received an error message telling you that your user profile is damaged, you can try to fix it. You will need to create a new profile and then copy the files from the existing to the new profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • Need help with the error message when you try to transfer a file from one laptop to another.

    I'm trying to transfer a file from one laptop to another using Belkin transfer cable. While trying to install software for my old laptop, I get an error message as follows WET7CABLE ERROR OPEN. LOG FILE. I tried with the support of Belkin and they referred me to Microsoft. Please help me with this question.
    Thank you
    Nelson Santiago

    Hello

    It is a matter of easy transfer Windows.
    Read on this and the solution here:

    http://support.Microsoft.com/kb/980870

    Kind regards

    Joel

  • CC of Lightroom book Module will not show the cover and the back cover when I try to create a book.

    Hello

    I recently installed the latest update of Lightroom CC on 09/12/15. I imported a bunch of pictures of customer so that I can make an album. I made this countless times before, but this time, when I've imported the photos and entered the book module it exceeds all the photos but do not give me a model for a front and back cover. Is it hidden? I searched everywhere on lightroom to try to fix it, but can't see what I can change. I even stop and restart Lightroom, but the same thing happens. No rear and front cover. What can I do? Help, please.

    Hi kathleenp75670290,

    Could if it you please let me know the exact version of Lightrooom, click Help > about Lightroom.

    And also what operating system are you working?

    Also could you please attach a screenshot of the book without pictures in Module?

    Kind regards

    Tanuj

  • When you try to create a system image, receive the error code 0 x 81000019

    Get the error code when you try to create a system image on a 900 + GB hard drive with 900 GB of free space. Keeps telling me that there is not enough space to create the image of the shadow. I'm trying the disk image has only 40 GB of data. What is going on? Using Windows 7 64 bit Pro.

    Many hours of searching the Web for answers about a year ago, said that relatively few people have this problem and proposed solutions in the forums have been complex, machine dependent and seem to fail for most of the people who have tried a fix...

    So when I gave up and called Microsoft... they told me to take my problem to anyone assembled my computer...

    The man who built my machine told me not to worry, simply store all my files on the cloud, as he does...

    So now I store my important stuff on a spare drive, we have installed in the box, go to live with the inability to make appropriate backups and restore points...

    All my old computers is standard backups without any hassle... Just this new machine with Win7.

    (The only "new" thing was a disc SSD C... can't believe it would make one difference either, other than speed... and many people use them in 2011...)

  • Do not to use the materialized view

    I wonder if we've already created a materialized view, can we prefer not to use this point of view, materialized for a query? I want to say can we determine if a query uses MV and other queries don't use MV?  Thank you.

    Hello Indra,

    I'm not completely sure about that, but you can read (with examples) concerning the indications- NO_REWRITE and REWRITE

    Text over the doc links:

    Council of REWRITING:

    The REWRITE Council instructs the optimizer to rewrite a query regarding the materialized views when possible, regardless of cost. Use the REWRITE trick with or without a display list. If you use REWRITE with a view list and the list contains an eligible materialized view, then Oracle uses this view regardless of its cost.

    Tip NO_REWRITE:

    The NO_REWRITE Council tells the optimizer to disable the rewrite of the query to the query block, of the substitution of the definition of the parameter QUERY_REWRITE_ENABLED .

    Be aware! -The NOREWRITE suspicion has been deprecated. Use the NO_REWRITE hint instead.

    Read here: setting QUERY_REWRITE_ENABLED

    -Nordine

  • I get a message "uninstalled failed" when you try to uninstall all applications of CC 2014 and the cleaning tool is of no help. Any ideas?

    I get a message "uninstalled failed" when you try to uninstall all applications of CC 2014 and the cleaning tool is of no help. Any ideas?

    Hello

    If please close the process below for task/monitor activity Manager and try again.

    Hope that helps!

    Kind regards

    Sheena

  • The Materialized View - ORA-12052: is unable to fast refresh materialized view

    Hello

    I was hitting my head all day trying to create materialized views. I have made some progress, but have hit a brick wall, unfortunately!

    Basically, I have been invited to take a view and see if I can get the benefits of performance by transforming all or part of it in materialized views. Because the underlying tables of the config is updated quite frequently, I want to fast refresh materialized views on commit. However, when I try to create a materialized view containing an outer join in an aggregated materialized view table, I get ORA-12052: is unable to fast refresh materialized view.

    I went through the documentation and also Rob van Wijkvery useful series of blogs on the topic (especially http://rwijk.blogspot.co.uk/2009/09/fast-refreshable-materialized-view.html) but have not found anything that matches. Maybe I missed something somewhere along the line, or maybe I'm asking just something completely impossible?

    My db is 11.2.0.2.

    Here's the test scripts, I've worked with that:

    drop materialized view test1_test2_mv;
    Drop materialized view test2 journal;
    drop table test2;
    Drop materialized view test1_mv newspaper;
    drop materialized view test1_mv;
    Drop materialized view test1 journal;
    drop table test1;

    create table test1 (identification number,
    type varchar2 (10),
    number of Val,
    update_time date,
    constraint t1_pk primary key (id, type, val));

    Insert into test1
    Select 1, 'a', 1001, sysdate - 10/24 Union double all the
    Select 1, 'b', 1003, sysdate - 9/24 Union double all the
    Select 1, 'c', 1002, sysdate - 8/24 Union double all the
    Select 1, had ', 1004, sysdate - 7/24 Union double all the
    Select 1, 'e', 1005, sysdate - 6/24 Union double all the
    Select 1, 'c', 1006, sysdate - 5/24 Union double all the
    Select 2, 'a', 1002, sysdate - 4/24 Union double all the
    Select 2, 'b', 1005, sysdate - 3/24 Union double all the
    Select 3, 'a', 1001, sysdate - 2/24 Union double all the
    Select 3, 'c', 1006, sysdate - 1/24 Union double all the
    Select 3, 'e', 1008, sysdate - 2/24 Union double all the
    Select option 4, has ', 1004, sysdate - 3/24 Union double all the
    Select 5, 'b', 1002, sysdate - 4/24 Union double all the
    Select 5, 'g', 1001, sysdate - 5/24 Union double all the
    Select 6, 'h', 1004, sysdate - 6/24 Union double all the
    Select 7, 'b', 1007, sysdate - 7/24 Union double all the
    Select 7, had ', 1001, sysdate - 8/24 double;

    commit;

    Select * from test1;


    CREATE MATERIALIZED VIEW LOG ON test1
    WITH rowid, primary key (update_time)
    including the new values;


    Test1_mv CREATE MATERIALIZED VIEW
    IMMEDIATE CONSTRUCTION
    COOL OFF QUICKLY ON COMMIT
    Did YOU SELECT id,
    MAX (case when type = "there" end of val) THAT col_a,.
    MAX (case when type = 'b', then val end) AS col_b,.
    MAX (case when type = 'c' then end val) AS col_c,.
    MAX (case when type = ' then end of val) AS col_d,
    MAX (update_time) AS update_time
    OF test1
    WHERE TYPE in ('a',
    « b »,
    « c »,
    a ')
    GROUP BY id;

    CREATE MATERIALIZED VIEW LOG ON test1_mv
    WITH rowid
    including the new values;


    create table test2 (identification number,
    col2 number,
    COL3 varchar2 (10),
    number of COL4,
    constraint t2_pk primary key (id));

    Insert into test2
    Select 1, 1, 'bob', 1 double Union all
    Select 2, 1, "sue", 1 double Union all
    Select 3, 1, 'tom', 1 double Union all
    Select 4, 1, 'jay', 1 double Union all
    Select 5, 1, 'art', 1 double Union all
    Select 6, 1, 'kay', 1 double Union all
    Select 7, 1, 'max', 1 double Union all
    Select 8, 1, 'tim', 1 double Union all
    Select 9, 1, "liz", 1 from dual;

    commit;


    CREATE MATERIALIZED VIEW LOG ON test2
    WITH rowid, primary key
    including the new values;


    Test1_test2_mv CREATE MATERIALIZED VIEW
    IMMEDIATE CONSTRUCTION
    COOL OFF QUICKLY ON COMMIT
    LIKE SOME t2.rowid,.
    T1.ID,
    T1.col_a,
    T1.col_b,
    T1.col_c,
    T1.col_d,
    T1.update_time,
    T2.col2,
    T2. COL3
    OF test1_mv t1,.
    Test2 t2
    WHERE (+) t1.id = t2.id; -symbol of outer join is not correctly displayed on the forums without space, grr!

    ORA-12052: is unable to fast refresh materialized view TEST1_TEST2_MV

    Y at - it any way I can get the materialized view fast refresh on commit or I asking the impossible?

    Add t1.rowid:

    SQL > CREATE MATERIALIZED VIEW test1_test2_mv

    2 BUILD IMMEDIATE

    3 QUICK REFRESH YOU COMMIT

    4 AS t2.rowid SELECT rid2,

    5 t1.rowid rid1,

    6 t1.id

    T1.col_a 7,.

    T1.col_b 8,.

    T1.col_c 9,.

    T1.col_d 10,

    T1.update_time 11,

    T2.col2 12,

    13 t2.col3

    14 OF test1_mv t1,

    15 test2 T2

    16 WHERE t1.id = t2.id

    17.

    Materialized view created.

    SQL > select * from test1_test2_mv

    2.

    RID2 RID1 ID COL_A, COL_B, COL_C COL_D UPDATE_TIME COL2 COL3

    ------------------ ------------------ ---------- ---------- ---------- ---------- ---------- ------------------- ---------- ----------

    AAAYB6AANAAAANDAAA AAAYB/AANAAAAN/AAA 1 1001 1003 1006 1004 25 / 06 / 2014 12:54:16 1 bob

    AAAYB6AANAAAANDAAB AAAYB/AANAAAAN/AAB 2 1002 1005 25 / 06 / 2014 1 sue 14:54:16

    AAAYB6AANAAAANDAAC AAAYB/AANAAAAN/AAC 3 1001 1006 25 / 06 / 2014 16:54:16 1 tom

    AAAYB/AANAAAAN/AAD AAAYB6AANAAAANDAAD 4 1004 25/06/2014 14:54:16 1 jay

    AAAYB6AANAAAANDAAE AAAYB / AANAAAAN / AAE 5 1002 2014/06/25 13:54:16 1 art

    AAAYB6AANAAAANDAAF AAAYB/AANAAAAN/AAG 7 1007 1009 25 / 06 / 2014 10:54:16 max 1

    AAAYB/AANAAAAN/AAH                                                                                                        1 tim

    AAAYB/AANAAAAN/AAF                                                                                                        1 kay

    AAAYB/AANAAAAN/AAI                                                                                                        1 liz

    9 selected lines.

    SQL > update of test2

    2 set col3 = "fly."

    3 where id = 7

    6 m

    1 line update.

    SQL > validation

    2.

    Validation complete.

    SQL > select * from test1_test2_mv

    2.

    RID2 RID1 ID COL_A, COL_B, COL_C COL_D UPDATE_TIME COL2 COL3

    ------------------ ------------------ ---------- ---------- ---------- ---------- ---------- ------------------- ---------- ----------

    AAAYB6AANAAAANDAAA AAAYB/AANAAAAN/AAA 1 1001 1003 1006 1004 25 / 06 / 2014 12:54:16 1 bob

    AAAYB6AANAAAANDAAB AAAYB/AANAAAAN/AAB 2 1002 1005 25 / 06 / 2014 1 sue 14:54:16

    AAAYB6AANAAAANDAAC AAAYB/AANAAAAN/AAC 3 1001 1006 25 / 06 / 2014 16:54:16 1 tom

    AAAYB/AANAAAAN/AAD AAAYB6AANAAAANDAAD 4 1004 25/06/2014 14:54:16 1 jay

    AAAYB6AANAAAANDAAE AAAYB / AANAAAAN / AAE 5 1002 2014/06/25 13:54:16 1 art

    AAAYB/AANAAAAN/AAH                                                                                                        1 tim

    AAAYB/AANAAAAN/AAF                                                                                                        1 kay

    AAAYB/AANAAAAN/AAI                                                                                                        1 liz

    AAAYB6AANAAAANDAAF AAAYB/AANAAAAN/AAG 7 1007 1009 25 / 06 / 2014 10:54:16 1 rob

    9 selected lines.

  • MSN - CRASH - TECH MSN TOLD - not able to use msn and I get a msg in the event viewer that the error is NTDLL. DLL

    MSN TECH SAID TELL WINDOWS CE PROBLEM I am STICK - not able to use msn and I get a msg in the event viewer that the error is NTDLL. DLL and talked with msn. Called MSN windows Dept. -How can I correct this situation?

    Hello

    Did you change your computer?

    Method 1:

    I suggest you perform the clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I also suggest you to follow the link and check.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

  • Getting the error "of your browser cookies disabled. Please activate. "When you try to connect to an account G-Mail and iGoogle

    I get the following message when you try to sign has G-mail: "the cookies of your browser feature is disabled. Please activate. "It's the only hit program and all the solutions proposed to date have failed. 'the cookies feature' seems to work fine for all other applications jut not count G-mail and iGoogle. Any help? Thank you.

    Hello

    1. what browser do you use?

    2 did you change on your computer before the show?

    Follow the items listed below and later a update on the State of the question.

    The functionality of the browser cookies is disabled

    http://support.Google.com/accounts/bin/answer.py?hl=en&answer=61416

    'The cookies of your browser... feature. »

    http://support.Google.com/mail/bin/answer.py?hl=en&answer=9525

    Hope this helps!

  • How can I get a query in the search field to open in a new tab or a new window, and the current window?

    How can I get a query in the search field to open in a new tab or a new window, and the current window?

    If you are looking through the search bar in the Navigation toolbar, this preference can be changed to research it open in a tab.

    Type of topic: config in the address bar and press ENTER. Then answer "I'll be careful." Type this pref in the search at the top.

    Browser.Search.openintab = double click to switch to true

  • My gmail and Icloud accounts disappear from the list under "Mailbox store" in the mail. When I try to recreate my gmail account using the "new mailbox...» "I get the message"this account already exists. " What can I do to recover my mailboxes.

    I use YOSEMITE 10.10.5.

    My gmail and Icloud mailboxes (and several smart mailboxes) disappear from the list under "Mailbox store" in the mail. When I try to recreate my gmail account using the "new mailbox...» "(using the sign on the side down and to the left of the screen in Mail +) I get the message"this mailbox already exists. ». What can I do to recover my mailbox?

    Restart the Mac and Mail.

Maybe you are looking for