Failed to create the fast refresh on the materialized view

Hi, I am creating a materialized on the tables with fast refresh view on commit but I get an error message.

I have created the following logs:

Bonus CREATE MATERIALIZED VIEW LOG ON
Users TABLESPACE
WITH THE PRIMARY KEY
INCLUDING THE NEW VALUES

Used to CREATE MATERIALIZED VIEW LOG ON
Users TABLESPACE
WITH THE PRIMARY KEY
INCLUDING THE NEW VALUES

I then try to create the following:

Test.BAM CREATE MATERIALIZED VIEW

IMMEDIATE CONSTRUCTION
COOL OFF QUICKLY ON COMMIT
AS
SELECT a.dept_no, SUM (a.salary)
EMPLOYEE a, b bonus
WHERE a.employee_id = b.employee_id
GROUP BY dept_no

When I do that, I get the following error:

. ORA-12032: cannot use column rowid of materialized

view log on 'test '. "" BONUS ".

If I change to a full refresh, it works pretty well. If I create a MV with a fast refresh on a query just within the limits of the table bonus it also works very well, for example ' select * bonus where employee_id = 2'

What I am doing wrong? Also when looking at the notes for MV connects in some places, he said using the primary key and others, he says to the sequence of use and row_id. Which is correct and what difference does it make?

11.2 aix.

Thank you very much

I suggest that investigate you the reason why your MV is not quickly updatable with the following method:

(1) create MV_CAPABILITIES_TABLE with @?/rdbms/admin/utlxmv.sql

(2) exec ('BAM') dbms_mview.explain_mview

3)

column format a100 msgtxt

column related_text format a20

SELECT the possible, capability_name, related_text,

msgtxt

OF mv_capabilities_table;

That should tell you the reason why he isn't yet quickly updatable.

There was a popular quote on men and fishing, but I don't remember it for now :-)

Kind regards

Uwe Hesse

Tags: Database

Similar Questions

  • Error ORA-01115 creating the materialized view

    Hi friends,

    When I create a materialized view it by throwing some error

    CREATE THE PNR_RES_MV MATERIALIZED VIEW
    TABLESPACE FAS
    NOCACHE
    LOGGING
    NOCOMPRESS
    NOPARALLEL
    IMMEDIATE CONSTRUCTION
    REFRESH THE STRENGTH TO DEMAND
    WITH THE PRIMARY KEY
    AS
    SELECT C_CREATION_DATE, C_PNR, B.CARRIER_CD1, B.CARRIER_CD2, B.CURRENT_STATUS_CD, A.CANCELLED_IND, A.BOOKING_OFFC_NMBR,-, B.LEG_NMBR, C_PAX_NMBR
    COUNT (CASE WHEN TRIM (B.CURRENT_STATUS_CD) = "HK" AND (TRIM (C_CHANGE_OR_CANCELL_IND) = "OR C_CHANGE_OR_CANCELL_IND IS NULL) THEN 1 OTHER TRAILING NULL) CONFIRMED_COUNT,.
    COUNT (CASE WHEN (B.CURRENT_STATUS_CD) TRIM = "HK" AND (TRIM (C_CHANGE_OR_CANCELL_IND) = "or C_CHANGE_OR_CANCELL_IND IS NULL) null THEN 1 OTHER END) cancELLED_COUNT
    OF PNR_RES_LEG_PAX_MV B, PNR_RES HAS
    WHERE A.PNR = B.PNR
    AND a.CREATION_DATE = b.CREATION_DATE
    - and A.BOOKING_OFFC_NMBR = '1F'
    - AND C_PNR = 'XE76V. '
    AND A.FILE_UPDATE_DATE. A.UPDATE_DATE IN (SELECT MAX (D.FILE_UPDATE_DATE |)) (UPDATE_DATE) OF PNR_RES D WHERE D.PNR = B.PNR AND D.CREATION_DATE = B.CREATION_DATE)
    GROUP OF C_CREATION_DATE, C_PNR, B.CARRIER_CD1, B.CARRIER_CD2, B.CURRENT_STATUS_CD, A.CANCELLED_IND, A.BOOKING_OFFC_NMBR;



    When executing it it gives this error


    ORA-01115: reading block IO file error 4 (block # 63757)
    ORA-01110: data file 4: ' D:\APP\IGT\ORADATA\ORCL\USERS01. DBF'
    ORA-27070: async read/write failed
    OSD-04006: ReadFile() failure, unable to read the file
    S/O-error: (27 OS) the drive cannot find the sector requested.



    And I checked through RMAN

    RMAN > validate the audit logic datafile 4;

    From post 11 March 14
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 127 type device = DISK
    channel ORA_DISK_1: starting from the data file validation
    channel ORA_DISK_1: datafile (s) for specification validation
    Enter a number of file datafile = 00004 name = D:\APP\IGT\ORADATA\ORCL\USERS01. DBF
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure to validate the command channel ORA_DISK_1 11/03/2014 13:0
    04:12
    ORA-19501: read error on the file 'D:\APP\IGT\ORADATA\ORCL\USERS01. DBF', block numbe
    r 63745 (block size = 8192)
    ORA-27070: async read/write failed
    OSD-04016: error queuing an asynchronous i/o request.
    S/O-error: (27 OS) the drive cannot find the sector requested.



    Please suggest me what to do it is a mistake to associate related database or OS. DB version is - 11 GR 2


    Kind regards


    Arya


    This is the error message that you should focus:

    > O/S-error: (27 OS) the drive cannot find the sector requested.

    Run disk checker utilities, eventually the file system is damaged.

    Hemant K Collette

  • By creating the Materialized view all size changes to columns

    I'm creatine a materialized view based on the table in a different database.
    The table on which the created materialized view (database table) is to have the size of CHAR (1 byte) column. But in Materialized view this size columns showing as CHAR (3 bytes).

    Could u please help me.., why this is happening?

    Thank you
    Sachin

    Sachin thombare wrote:
    I'm creatine a materialized view based on the table in a different database.
    The table on which the created materialized view (database table) is to have the size of CHAR (1 byte) column. But in Materialized view this size columns showing as CHAR (3 bytes).

    Could u please help me.., why this is happening?

    Thank you
    Sachin

    Hello
    Do both the database involved in this have defined different character.
    If Yes, then this is a known behavior.

    Concerning
    Anurag Tibrewal.

  • Fast refresh of a materialized view works incorrect

    Hi all

    I created a MV using the sql below:

    create a materialized view WLS

    Refresh quickly

    activate the query rewriting

    as

    SELECT Employees.USER_NAME,

    Permissions.ROLE_NAME,

    Vouchers.VOUCHER_ID,

    EmployeeRoles.FROM_DATE,

    EmployeeRoles.TO_DATE,

    VoucherPatterns.rowid ACC_VOUCHER_PATTERNS_ROW_ID,

    Vouchers.ROWID ACC_VOUCHERS_ROW_ID,

    Ledgers.ROWID ACC_LEDGERS_ROW_ID,

    Employees.ROWID BANK_EMPLOYEES_ROW_ID,

    IncExcUnits.rowid INC_EXC_UNITS_ROW_ID,

    EmployeeRoles.rowid BANK_EMPLOYEE_ROLES_ROW_ID,

    ParentRoles.rowid PARENT_ROLES_ROW_ID,

    Roles.ROWID ROLES_ROW_ID,

    Permissions.ROWID PERMISSIONS_ROLES_ROW_ID,

    RolesMemberships.rowid ROLES_MEMBERSHIPS_ROW_ID

    OF ACC_VOUCHER_PATTERNS VoucherPatterns,.

    Good ACC_VOUCHERS,

    ACC_LEDGERS books,

    BANK_EMPLOYEES employees,

    BANK_EMPLOYEE_INC_EXC_UNITS IncExcUnits,

    BANK_EMPLOYEE_ROLES EmployeeRoles,

    ParentRoles ROLES,

    Roles,

    Permissions of ROLES,

    ROLES_MEMBERSHIPS RolesMemberships

    WHERE Vouchers.TYPE_VOUCHER_PATTERN_FK =

    VoucherPatterns.VOUCHER_PATTERN_ID

    AND VoucherPatterns.CONFIRM_COUNT = 2

    AND Vouchers.STATE = 'UIS.

    AND Vouchers.LEDGER_FK = Ledgers.LEDGER_ID

    AND Employees.ID = IncExcUnits.BKEM_ID (+)

    AND (((IncExcUnits.INC_EXCLUD_TYPE EST NULL ou))

    IncExcUnits.INC_EXCLUD_TYPE! = "EXC") AND

    Ledgers.ORGANIZATION_UNIT_FK = Employees.ORGU_ID) OR

    (Ledgers.ORGANIZATION_UNIT_FK = IncExcUnits.ORGU_ID AND)

    IncExcUnits.INC_EXCLUD_TYPE = 'INC'))

    AND EmployeeRoles.BKEM_ID = Employees.ID

    AND ParentRoles.ID = EmployeeRoles.ROLS_ID

    AND ParentRoles.IS_PERMISSION = n

    AND ParentRoles.ROLE_TYPE = 'ORG '.

    AND ParentRoles.ID = Roles.ROLS_ID

    AND Roles.IS_PERMISSION = n

    AND Roles.ROLE_TYPE = 'SYS '.

    AND Permissions.IS_PERMISSION = 'Y '.

    AND Permissions.ROLE_NAME = 'ACC_AccVoucherConfirm. '

    AND Roles.ID = RolesMemberships.ROLS_ID

    AND Permissions.ID = RolesMemberships.ROLS_ID_MEMBER_OF;

    Then I issued a SELECT statement * although it and that works very well.

    And then I manipulated the data in tables such as, according to the clause WHERE MV, it should return no rows.

    Intuitively it will return the last data placed on it, before updating the MV

    But it returns the same data after issuing the following command in PL/SQL Developer:

    Call dbms_mview.refresh ("list = > ' WLS", method = > 'F');

    And unfortunately what follows will fix:

    Call dbms_mview.refresh ("list = > ' WLS", method = > "C");

    Why the Quick cooling of a refreshable quick MV works fine when its full refresh works well?

    How ever after that defeat made changes to tables and deliver the fast refresh using the following command the MV will contain accurate updated data:

    Call dbms_mview.refresh ("list = > ' WLS", method = > 'F');

    It seems that there is bug in clear lines of Fast refreshable MV but upserts work very well.

    I tried to simulate the problem to a simple query with simple tables with sample data, but those who have no problem.

    Please help me,

    Thank you

    And the solution is simple,

    Just avoid using the OR condition described in the WHERE clause and use UNION ALL instead!

    Don't forget that you have a calculated column of unique Creator for each of your unions.

    Thanks to myself!

  • Refresh the Materialized View constructed from an external table commit?

    Is it possible to create a materialized with Refresh view on commit built from an external table?

    I think the answer is "no, because there is no way for the outer table report to the view materialized it has been changed," but I would like to be sure before I tell my client who has requested the opportunity to do this (or, Alternatively, to learn how Oracle hoops I have to cross in order to operate).

    I can create a Refresh on demand, it is not a question of not having the necessary permissions to create the materialized view itself.

    No, you can't. The outer table is not modified in a transactional way and there no materialized view logs, so there is no event to hang in and no delta to apply.

    However, you can use dbms_scheduler observer file that will ask for the presence of a file and load the data in a table or refresh a materialized view based on the external table.

    Justin

  • Re: view opaque and the materialized view

    Hi Experts,

    I want some clarification of opaque and view view in the physical layer OBIEE materialized

    -> what is the main difference between the opaque view and materialized in the RPD perspective view, we have to do this at the level of the RPD or DB.

    -> I want the list of opaque opinion and materialized in the RPD view how I should do.

    -> How opaque views will degrade the performance and how a materialized view will improve performance at the level of the report.

    -> In scenarios that we use view opaque and the view materialized (if possible with a scenario for the best permanent basis).

    Thanks in advance.

    I want some clarification of opaque and view view in the physical layer OBIEE materialized

    -> What is the main difference between opaque view and create the materialized view in the RPD point of view, we have to do this at the level of the RPD or DB.

    Opaque views is a SQL statement that is defined in the physical layer, OBIEE will use all in the construction of a SQL query. In a way it's not different from a database view, except it is set in OBIEE only. Alternatively, you can deploy an Opaque view, which pushes its definition in the database. Read more about it here: work with physical tables, Cubes and joins - 11 g Release 1 (11.1.1)

    A materialized view (MV) is a database concept where the results of a SQL statement are physicalised like a table, and therefore as OBIEE is a MV is just another physical array

    -> If I want a list of the opaque views and materialized in the RPD view how I should do.

    To find opaque views, use the function «Repository of applications» administration tool Search physical Tables and set up a filter on the Type = Select

    Screenshot: https://www.evernote.com/shard/s16/sh/5c843e47-bff1-4d4b-b847-be98f3a2ec09/cf060a6cd9805f687fa0b5b46f3f0020

    To find materialized views, you will need to query the catalog in your database (for example select object_name, object_type from user_objects where type_objet = "MATERIALIZED VIEW" ;) and compare it to the list of tables in your SPR)

    -> How opaque views will degrade the performance and how a materialized view will improve performance at the level of the report.

    A materialized view is materialized, in other words, the results are already stored in the database. This means usually there will be more efficient because all the joins and aggregations, etc. will be settled in advance.

  • performance of the queries on the main tables of the materialized view vs

    Hello

    I'm afraid of strange behavior in db, on my paintings of master UDBMOVEMENT_ORIG (26mil.rows) and UDBIDENTDATA_ORIG (18mil.rows) is created the materialized view TMP_MS_UDB_MV (UDBMOVEMENT stands for this object) that meets certain default conditions and the join on these paintings of master condition. MV got on the lines of 12milions. I created MV for poll not so huge objects, MV got 3GB, paintings of master toghether 12 GB. But I don't understand that physical reads and becomes compatible is less on MV that on the main tables, the final execution time is shorter on the master tables. See my journal below.

    Why?

    Thanks for the replies.


    SQL > set echo on
    SQL > @flush
    SQL > alter system flush buffer_cache;

    Modified system.

    Elapsed time: 00:00:00.20
    SQL > alter system flush shared_pool;

    Modified system.

    Elapsed time: 00:00:00.65
    SQL > SELECT
    UDBMovement.zIdDevice 2, UDBMovement.sDevice, UDBMovement.zIdLocal, UDBMovement.sComputer, UDBMovement.tActionTime, UDBIdentData.sCardSubType, UDBIdentData.sCardType, UDBMovement.cEpan, UDBMovement.cText, UDBMovement.lArtRef, UDBMovement.sArtClassRef, UDBMovement.lSequenz, UDBMovement.sTransMark, UDBMovement.lBlock, UDBMovement.sTransType, UDBMovement.lGlobalID, UDBMovement.sFacility, UDBIdentData.sCardClass, UDBMovement.lSingleAmount, UDBMovement.sVAT, UDBMovement.lVATTot, UDBIdentData.tTarifTimeStart, UDBIdentData.tTarifTimeEnd, UDBIdentData.cLicensePlate, UDBIdentData.lMoneyValue, UDBIdentData.lPointValue, UDBIdentData.lTimeValue, UDBIdentData.tProdTime, UDBIdentData.tExpireDate
    UDBMOVEMENT_orig UDBMovement 3, Udbidentdata_orig UDBIdentData
    4. WHERE
    5 UDBMovement.lGlobalId = UDBIdentData.lGlobalRef (+) AND UDBMovement.sComputer = UDBIdentData.sComputer (+)
    6 AND UDBMovement.sTransType > 0 AND UDBMovement.sDevice < 1000 AND UDBMovement.sDevice > = 0 AND UDBIdentData.sCardType IN (2) AND (bitand(UDBMovement.sSaleFlag,1) = 0 AND bitand(UDBMovement.sSaleFlag,4) = 0) AND UDBMovement.sArtClassRef < 100
    7 AND UDBMovement.tActionTime > = TO_DATE (May 5, 2011 00:00:00 ',' dd/mm/yyyy hh24:mi:ss') + 0.25 AND UDBMovement.tActionTime < TO_DATE (May 5, 2011 00:00:00 ',' dd/mm/yyyy hh24:mi:ss') + 0.5
    8 ORDER BY tActionTime, lBlock, lSequenz;

    4947 selected lines.

    Elapsed time: 00:00:15.84

    Execution plan
    ----------------------------------------------------------
    Hash value of plan: 1768406139

    ------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | TempSpc | Cost (% CPU). Time |
    ------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 7166 | 1238K | 20670 (1) | 00:04:09 |
    | 1. SORT ORDER BY | 7166 | 1238K | 1480K | 20670 (1) | 00:04:09 |
    | 2. NESTED LOOPS |
    | 3. NESTED LOOPS | 7166 | 1238K | 20388 (1) | 00:04:05 |
    |* 4 | TABLE ACCESS BY INDEX ROWID | UDBMOVEMENT_ORIG | 7142 | 809K | 7056 (1) | 00:01:25 |
    |* 5 | INDEX RANGE SCAN | IDX_UDBMOVARTICLE | 10709. 61 (0) | 00:00:01 |
    |* 6 | INDEX UNIQUE SCAN | UDBIDENTDATA_PRIM | 1 | | | 1 (0) | 00:00:01 |
    |* 7 | TABLE ACCESS BY INDEX ROWID | UDBIDENTDATA_ORIG | 1. 61. 2 (0) | 00:00:01 |
    ------------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    4 - filter("UDBMOVEMENT".") STRANSTYPE"> 0 AND 'UDBMOVEMENT '. "" SDEVICE ' < 1000 AND
    BITAND ("SSALEFLAG", 1) = 0 AND "UDBMOVEMENT". "" SDEVICE ' > = 0 AND BITAND ("UDBMOVEMENT". "SSALEFLAG «(, 4) = 0)" "
    5 - access("UDBMOVEMENT".") TACTIONTIME' > = TO_DATE (' 2011-05-05 06:00 ',' syyyy-mm-jj)
    ('HH24:mi:SS) AND "UDBMOVEMENT". "' TACTIONTIME ', TO_DATE (' 2011-05-05 12:00 ',' syyyy-mm-jj)
    ('HH24:mi:SS) AND "UDBMOVEMENT". ("' SARTCLASSREF" < 100)
    filter ("UDBMOVEMENT". "SARTCLASSREF" < 100)
    6 - access("UDBMOVEMENT".") LGLOBALID "=" UDBIDENTDATA. " "" LGLOBALREF "AND
    'UDBMOVEMENT '. "' SCOMPUTER"="UDBIDENTDATA." ("' SCOMPUTER")
    7 - filter("UDBIDENTDATA".") SCARDTYPE "= 2)


    Statistics
    ----------------------------------------------------------
    543 recursive calls
    0 db block Gets
    84383 compatible Gets
    4485 physical reads
    0 redo size
    533990 bytes sent via SQL * Net to client
    3953 bytes received via SQL * Net from client
    331 SQL * Net back and forth to and from the client
    kinds of 86 (memory)
    0 sorts (disk)
    4947 lines processed

    SQL > @flush
    SQL > alter system flush buffer_cache;

    Modified system.

    Elapsed time: 00:00:00.12
    SQL > alter system flush shared_pool;

    Modified system.

    Elapsed time: 00:00:00.74
    SQL > SELECT UDBMovement.zIdDevice, UDBMovement.sDevice, UDBMovement.zIdLocal, UDBMovement.sComputer, UDBMovement.tActionTime, UDBMovement.sCardSubType, UDBMovement.sCardType, UDBMovement.cEpan, UDBMovement.cText, UDBMovement.lArtRef, UDBMovement.sArtClassRef, UDBMovement.lSequenz, UDBMovement.sTransMark, UDBMovement.lBlock, UDBMovement.sTransType, UDBMovement.lGlobalID, UDBMovement.sFacility, UDBMovement.sCardClass, UDBMovement.lSingleAmount, UDBMovement.sVAT, UDBMovement.lVATTot, UDBMovement.tTarifTimeStart, UDBMovement.tTarifTimeEnd, UDBMovement.cLicensePlate, UDBMovement.lMoneyValue, UDBMovement.lPointValue, UDBMovement.lTimeValue, UDBMovement.tProdTime
    2. OF UDBMOVEMENT WHERE
    3 UDBMovement.sTransType > 0 AND UDBMovement.sDevice < 1000 AND UDBMovement.sDevice > = 0 AND UDBMovement.sCardType IN (2) AND (bitand(UDBMovement.sSaleFlag,1) = 0 AND bitand(UDBMovement.sSaleFlag,4) = 0) AND UDBMovement.sArtClassRef < 100
    4. AND UDBMovement.tActionTime > = TO_DATE (May 5, 2011 00:00:00 ',' the hh24: mi: ss' dd/mm/yyyy) + 0.25
    5 AND UDBMovement.tActionTime < TO_DATE (May 5, 2011 00:00:00 ',' the hh24: mi: ss' dd/mm/yyyy) + 0.5 ORDER BY tActionTime, lBlock, lSequenz;

    4947 selected lines.

    Elapsed time: 00:00:26.46

    Execution plan
    ----------------------------------------------------------
    Hash value of plan: 3648898312

    -----------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    -----------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | 2720 | 443K | 2812 (1) | 00:00:34 |
    | 1. SORT ORDER BY | 2720 | 443K | 2812 (1) | 00:00:34 |
    |* 2 | MAT_VIEW ACCESS BY INDEX ROWID | TMP_MS_UDB_MV | 2720 | 443K | 2811 (1) | 00:00:34 |
    |* 3 | INDEX RANGE SCAN | EEETMP_MS_ACTTIMEDEVICE | 2732 | 89 (0) | 00:00:02 |
    -----------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    2 - filter("UDBMOVEMENT".") STRANSTYPE"> 0 AND BITAND ("UDBMOVEMENT". "SSALEFLAG «(, 4) = 0 AND" "
    BITAND ("SSALEFLAG", 1) = 0 AND "UDBMOVEMENT". ("' SARTCLASSREF" < 100)
    3 - access("UDBMOVEMENT".") TACTIONTIME' > = TO_DATE (' 2011-05-05 06:00 ',' syyyy-mm-jj)
    ('HH24:mi:SS) AND "UDBMOVEMENT". "" SDEVICE ' > = 0 AND "UDBMOVEMENT". ' SCARDTYPE ' = 2 AND ".
    'UDBMOVEMENT '. "" TACTIONTIME "< TO_DATE(' 2011-05-05 12:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
    'UDBMOVEMENT '. ("' SDEVICE ' < 1000)
    filter ("UDBMOVEMENT". "SCARDTYPE"= 2 AND "UDBMOVEMENT"." SDEVICE' < 1000 AND
    'UDBMOVEMENT '. ("' SDEVICE ' > = 0)


    Statistics
    ----------------------------------------------------------
    449 recursive calls
    0 db block Gets
    6090 gets coherent
    2837 physical reads
    0 redo size
    531987 bytes sent via SQL * Net to client
    3953 bytes received via SQL * Net from client
    331 SQL * Net back and forth to and from the client
    168 sorts (memory)
    0 sorts (disk)
    4947 lines processed

    SQL > spool off

    Published by: MattSk on February 4, 2013 14:20

    >
    The second query makes a full table of materialized view scan.
    >
    What you base that statement on?

    I do not see any table full scan in terms of the second query. All I see is
    >
    * 2 MAT_VIEW ACCESS BY INDEX ROWID TMP_MS_UDB_MV 2720 443K 2811 (1) 00:00:34

  • 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.

  • 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.

  • Boot Camp install fails: cannot create the partition

    512SSD i7 MacBook Pro late 2013

    Boot Camp Assistant 6.0

    O/S 10.11.2

    true (paid for!) Windows 10 home

    Create USB boot exactly according to the instructions of the Boot Camp Assistant (time consuming)

    Re-partition Mac SSD in Colombia-British Deputy with 60 GB for windows partition

    Restart the system and boot of Windows Setup

    Enter the key to victory, everything works fine

    When you choose which partition to install windows, select 60 GB

    Installer of Win said partition is not formatted correctly, so I use the formatting tool in the installer

    Formatting tool seems to work but removes the volume name: it was Boot Camp and becomes Untitled

    60 GB re partition - select an installer says "failed to create the partition" or something similar

    Installer refuses to go forward and the only way out is to leave the Setup program

    Mac to Mac o/s boots

    Tried a couple of times and always the same result.

    Someone has an idea what I am doing wrong? I'm just following the instructions of the Boot Camp Assistant...

    This is the case, if you have any other than the USB storage and storage internal connected.

  • When you try to install PDF Creator, I get an error message: "error 5 - failed to create the directory, access is denied."

    access denied for the creation of a directory

    When you try to install PDF Creator, I get an error message: "error 5 - failed to create the directory, access is denied."  How can I fix this?

    When you try to install PDF Creator, I get an error message: "error 5 - failed to create the directory, access is denied."  How can I fix this?

    Only when you try to install this application?

    What about BullZIP PDF Printer?

    (You can uninstall - trying to figure out if it's a problem of Windows or the question of enforcement.)

  • Error: "failed to create the toolbar.

    Original title: Quick Launch toolbar

    I have a Windows XP Home SP3 PC and when I try to open the Quick Launch toolbar, I get a message "cannot create Toolbar".

    the quick lauch folder appears to be missing, but it is not recreated with the help of IE4UINIT. EXE and re register the dll recommended in the MS site doesn't help either.  The aims of registry keys to the MS site ion also seems also OK.
    Any other suggestions please?
    Hi wheelyjon,
     
    This problem may occur if the Quick Launch folder has been deleted.
     
    To resolve this problem, re-create the Quick Launch folder.
    See the following article to do the same thing:
  • Error message: cannot copy... Failed to create the directory or file.

    I get the Error Message ' cannot copy (a file USB Store n Go): failed to create the directory or file.»  All of a sudden I started getting error message is when I tried to copy to the USB mass storage: "F:" copy on the removable key worked for a proor very long in this message. And there are a lot of empty space.  The diagnosis says that everything works correctly.

    Dear Clarence

    Try first to unplug the mass storage device, then reconnect and format it by Righ click on Format.

    Then try to paste these files on this USB key again.

    If it fails this time then format your USB using HP USB stick formatting to http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?swItem=MTX-UNITY-I23839 tool

    Click Download on the page above. Install it and run it. This will guide you through the steps of formatting your USB drive in a few seconds...

    It is also useful for the repair of the almost dead usb keys.

    Concerning

    Zeeshan Ahmad

  • My Vista computer will not be stopped, randomly freezes and gives error Logon process has failed to create the security options dialog

    I have a laptop that has recently (in the last month) developed several questions. These issues are: computer does not, get the logon error message failed to create the dialog box options security when I hit Ctrl alt delete, computer hangs when more then another program is open. How can I solve them? My system is Vista Home premium 32 bit any help is appreciated.

    * original title - several issues need help *.

    Hello

    I forgot to include which could help with the connection of safety problem:

    How to restore the security settings to a known working state?
    (For Vista and XP)
    http://support.Microsoft.com/kb/313222

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Error 5: Access is denied: failed to create the installation directory...

    I am installing an "Advanced System Care" program I get an error message, Setup failed to create the directory 'C:\users\arthur\appdata\local\temp\is-rukl.temp '.

    error 5 access is denied

    I realized today that I think I got this error on several things, I tried to install recently.  I thought it was a problem with the actual program installer.

    I have no idea where to start even.  Thanks for any help you can give me

    The problem is with the security permissions on the temp of your profile folder. To correct it access %Temp% or C:\Users\[Username]\AppData\Local and right click the Temp folder and choose Properties, then click the Security tab, and click Advanced.

    On the permissions tab, you should see the permissions that are there. There are 3 that are:

    'SYSTEM' with a total control that applies to "this folder, subfolders and files.

    "Administrators" with full control that applies to "this folder, subfolders and files.

    "Your username" in the full control that applies to "this folder, subfolders and files.

    and all 3 must be inherited from the folder C:\Users\[Username]\.

    If you have the option "Include the permissions that can be inherited from the parent to this object" checked, then check it and click on continue if there are problems, then remove the permissions that are not inherited.

    Once you click on 'Apply' and click 'OK', you must have the permissions to write to the directory and you won't get the error messages more.

    Hope this has solved your problem

  • Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...

    Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...

    Hello mnaveen.kumar,

    Search the registry to see if this key was created. Sometimes, the installation program does not have permission to this key.

    HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.

    You can try to manually create the key to see if this will help.

    Please reply back and let us know if this can help.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for

  • AppStore not to download updates or applications

    I'm trying to update both apps, and I am installing an already purchased application. However, the process does not even start. Help, please.

  • SSD and HDD in P700 readers

    Hi people, New user and try to configure a P700. I'd be happy to set it up using a Tb for the boot drive SSD, 1 (or 2) 1 TB HDD 2nd disk and a disk drive HARD 3rd 4 TB 7200. From what I've read, it seems to me to be able to make the SSD 1 TB, but not

  • WT210 playback of an external sensor

    Hello I need help on the use of external sensor to read current in LabVIEW. Are there examples? What I did, the example of the "value of measuring Mode", I connect Config Ext sensor scaling. I don't know if it of fair or not. Any help would be much a

  • "HP Service Manager" software

    I have a desktop computer Pavilion p7-1241.  I received a newsletter from HP on software. However, I can't figure out what I need to do to the extent of the software on my computer.  I'm on the older side so I'm not too computer as I would like to be

  • Cannot set a network printer on an XP pc. Printer is connected to a pc win 7. PC are connected trough a Vdsl router

    3 PC connected to the internet via a vdsl router, wireless and lan connections. All PCs can get to internet. a XP pc is unable to set up the connection to a printer connected to the WIN 7 pc. The XP pc cannot connect to the shared files on pc win 7 h