View table and Master table don't match

I am setting up Materialize view replication between two systems connected over a WAN. The number of rows in the master table does not match the number of rows in the Table at the view site. Is there a way I can monitor/watch or otherwise see what replicated transaction are being applied to the view. I know that rows are added to and deleted from this table over the course the the day.

If the master table is always changing, the two tables will never match completely. Take the following scenario:
time 0: Insert row A in master table
time 1: Begin refresh of remote MV
time 2: Insert row B in master table
time 3: End refresh of remote MV
At this point, the master table will have two rows (A & B) while the remote table only has row A. If there is a materialized view log on the master table, row B will be present in the log and will replicate on the next refresh. I'm not aware of any utility that lets you view the data in the materialized view log in a particularly human-readable form, however-- that data is stored in a RAW column.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Inserting to a table using same table and master table

    [code]
    I have a table  test_master where I have stored the status of the individual claims  ; the status would be changed quarterly basis.
    I have another table test_detail which will store status chages on each quarter.The curr_status column will store the status from test_master; and  prev_status will be the curr_status for the previous  trans_id from test_detail table itself
    create table test_master( claim_id number,
                            status varchar2(10));
    insert into  test_main VALUES (100, 'L1');                
    insert into  test_main VALUES (101, 'L2');   ---- first quarter data.. it will be purged at the begining of second quarter
    insert into  test_main VALUES (102, 'L1');
    insert into  test_main VALUES (103, 'L3');
    insert into  test_main VALUES (100,  'L2');
    insert into  test_main VALUES (101,  'L2');    ---- second quarter data.. it will be purged at the begining of third quarter  
    insert into  test_main VALUES (102,  'L1');
    insert into  test_main VALUES (103,  'L4');
    insert into  test_main VALUES (100,  'L4');
    insert into  test_main VALUES (101,  'L5');    ---- third quarter data.. it will be purged at the begining of fourth quarter  
    insert into  test_main VALUES (102,  'L6');
    insert into  test_main VALUES (103,  'L7');
    create table test_detail( trans_id number,
                              claim_id number,
                              prev_status varchar(20),
                              curr_status varchar2(21
    prev_status =  curr_status of  the previous id for same claim_id s
    curr_status =  status from TEST_MASTER
    how to write an insert statement to insert records in TEST_DETAIL to have below expected data?
    id     claim_id       PREV_STATUS      CURR_STATUS
    1          100                               null               L1    ---prev_status will be null for the first run
    1          101                               null               L2
    1          102                               null               L1
    1          103                               null               L3
    2          100                               L1                L2
    2          101                               L2                L2
    2          102                               L1                L1
    2          103                               L3                L4
    3          100                               L2                L4
    3          101                               L2                L5
    3          102                               L1                L6
    3          103                               L4                L7
    [/code]
    Thanks
    -Ann

    Hi,
    Do you really need to store prev_status in test_detail?  You can always compute it on the fly, using the analytic LAG function, and you won't have to worry about re-computing it when test_detail is updated.
    If test_detail will never be updated, and performance is important, then you may want to store prev_status.  Here's one way to do that.
    When you're ready to archive the data from test_main, then run this INSERT statement:
    INSERT INTO test_detail (trans_id, claim_id,  prev_status,      curr_status)
               SELECT        &2,     m.claim_id,  d.curr_status,    m.status
               FROM             test_main    m
               LEFT OUTER JOIN  test_detail  d  ON   d.claim_id  = m.claim_id
                                                AND  d.trans_id  = &1
    Where &1 is the previous trans_id (the highest value already in test_detail), and &2 is the new trans_id (&1 + 1).
    The first time you run this, when test_detail is empty, it doesn't matter what value you use for &1; you can use 0.
    After you've confirmed that this worked, then you can start putting new data into test_main.
    I assume that test_master and test_main are the same table.

  • Details about TA kk01 and master tables

    hi SAP Technical Guru's
    pls provide details about TA KK01 (statistical key figures) and master tables.
    best regards,
    m.srinivas.

    Hi
    TA     Report            * Header Description*
    KKO1   SAPMKCEE       Create Drilldown Report
    Go to SE 38 and check this report, you can also find the master data tables used by clicking f1 and then the technical settings button on the tool bar.
    Regards
    Divya

  • Deleted and adjusted the Master data table, sid table and text table

    Deleted and adjusted the master data table, sid table and text table of an zinfoobject after removing and adding attributes to that zinfoobject and was trying to activate it and system was giving me messages that cannot activate infoobject something like this.
    So, i deleted and adjusted the master data table, sid table and text table. Since then getting messages right after executing the query because in that query that infoobject is getting used.
    So the messages i am getting is:
    SID 9 for characteristic Zinfoobject could not be converted CL_RSDM_READ_MASTER_DATA->_SIDVAL_DIRECT_READ2
    System error in program SAPLRRK0 and form MEGA_SORT_M_02-02- (see long text)
    Please help me in fixing this whole thing.
    Thanks
    SAPBW

    SAP BW,
    After adjusting your Master Data IOBJ and deleting and reloading the data - run a change run to adjust the references to the SIDs and then see if your query runs - run program RSDDS_AGGREGATES_MAINTAIN from se38 and select your IOBJ in the next screen..
    Arun
    Assign points if useful
    P.S I did notice that in your earlier post for the same topic - you have had 12 answers / suggestions Please maintain only one thread as previously suggested..
    My 0.02
    Message was edited by:
            Arun Varadarajan

  • From and/or subject don't match msg body

    Hello all. Two weeks ago I posted this problem under a different head, but got no replies, so let me try again as it is messing up maybe 5% of my email.
    Every morning I collect email--from 40 to 70 messages, many forwarded from Gmail--and message filtering usually works efficiently to transfer from Inbox to folders. But somewhere along the line, 1 to 3 emails get muddled together: the from and/or subject don't match the text, and sometimes the displayed text includes the Msg Source, including text, from some other, unrelated email.
    I've been using FF and TB for more than 10 years now, and believe this kind of email muddling dates only to the last couple months. I use the latest Thunderbird under Windows 7 on a Dell desktop. I have 4 hopefully innocent addons. Of course I can send screenshots and forward the message source for analysis.
    Hoping this time to attract attention to the problem! Thanks!

    This is an indication of file corruption. Lack of maintenance on your email folders is the usual cause of this.
    You can try to repair the file tables and see if that helps. Be prepared to lose messages if the corruption is too bad.
    Right click the problem folder. Select Properties and then Repair Folder.
    Then read this article about best practices to help prevent this in the future.
    http://kb.mozillazine.org/Keep_it_working_-_Thunderbird

  • Check table and value table -Example

    Hi Experts
                  Please give me the step by step procedure to create the check table and value table, and how to work on it.
    Thanks in advance.
    Regards
    Rajaram

    Hi
    Check Table is for Field level Validation whereas Value table is for Domain Level Validations.
    Value Table proposes table for check table.
    I think you are clear with this.
    more elaborate.
    Check Table
    The Check Table is the table used by system to check if a data exist or not exist.
    While creating a table if you want to be sure that a field can have some values
    and these are in a certain table, you can give IT this table as CHECK TABLE.
    Value Table
    This is maintained at Domain Level.
    When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator.
    Here only allowed values is H or S.
    When ever you use this Domain, the system will forces you to enter only these values.
    This is a sort of master check . .
    To be maintained as a customization object.
    This mean that if you want to enter values to this table you have to create a development request & transport the same.
    Differences:
    1)check table will carry out the check for input values for the table field being entered in any application
    and value table will provide values on F4 help for that table field.
    2)The check table defines the foreign keys and is part of the table definition.
    The value table is part of the domain definition.
    check table is validation at field level.
    value table is at domain level.
    Value table is defined at the domain level and is used to provide F4 help for all the fields which refer to that domain.
    Check table is defined against a field in SE11 if you want the values in that field to be checked against a list of valid values. For e.g. if you are using the field matnr in a table you could define MARA as the check table.
    Also while defining a check table SAP proposes the value table as check table by default. Referring to the previous example if you tried to define a check table for the matnr field SAP would propose MARA as the check table.
    1. what is the purpose / use ?
    -- so that the user can select values
    from some master table , for that field !!!!
    2. This is done by
    CHECK TABLE (foreign key concept)
    (and not value table)
    3. When we create a check table for a field,
    then
    some DEFAULT table is PROPOSED
    4. that DEFAULT table is nothing
    but PICKED up from the domain of that field,
    and shown from the value of VALUE TABLE.
    CHECK TABLE -it is a parent table.
    for example..
    i have two tables ZTAB1 and ZTAB2.
    I have one common field in both the tables,i can make any ztable to be the check table .If i make Ztab1 to be the check table then when i have to make an entry in ztab2 i will check whether ztab1 is having that value or not..
    its also field level checking..
    Valuetable-It is nothing but default check table.
    one parent can have n number of child tables.For example
    For ztable we have zchild1 and zchild2 tables r there.
    Its domain level checking..When zchild2 uses the same domain as used by zchild1 then the system automatically generates a popup saying a check table already exists would u want to maintain it.
    go to domain and then press the value tab u can see the valuetable at the end...
    Please refer the links below,
    d/r b/n check and value table?
    wjhat is the exct difference between check table and value table
    what is the check table and value table
    check table and value table
    Re: wjhat is the exct difference between check table and value table
    http://www.sap-img.com/abap/difference-between-a-check-table-and-a-value-table.htm

  • Wat is the exact differences between clustered table and pooled table

    hi,
       can you tell me ravi...wat is the exact differences between clustered table and pooled table
    with regards//
    anilreddyg

    Hi Anil Reddy
    Pooled Tables, Table Pools, Cluster Tables, and Table Clusters
    These types of tables are not transparent in the sense that they are not legible or manageable directly using the underlying database system tools. They are managed from within the R/3 environment from the ABAP dictionary and also at runtime when they are loaded into application memory.Pool and cluster tables are logical tables. Physically, these logical tables are arranged as records of transparent tables. The pool and cluster tables are grouped together in other tables, which are of the transparent type. The tables that group together pool tables are known as table pools, or just pools; similarly, table clusters, or just
    clusters, are the tables which group cluster tables.Not all operations that can be performed over transparent tables can be executed over pool or cluster tables.
    For instance, you can manage these tables using Open SQL calls from ABAP, but not Native SQL.These tables are meant to be buffered and loaded in memory, because they are commonly used for storing internal control information and other types of data with no external (business) relevance. SAP recommends that tables of pool or cluster type be used exclusively for control information such as
    program parameters, documentation, and so on. Transaction and application data should be stored in transparent tables.
    Table Pools
    From the point of view of the underlying DBMS as from the point of view of the ABAP dictionary, a table pool is a transparent table containing a group of pooled tables which, when created, were assigned to this table pool.
    Field Type Description
    TABNAME CHAR(10) Table name
    VARKEY CHAR(n) Maximum key length n =< 110
    DATALN INT2(5) Length of the VARDATA record returned
    VARDATA RAW(m) Maximum length of the data varies according to DBMS
    Table Clusters
    Similarly to pooled tables, cluster tables are logical tables which, when created, are assigned to a table cluster. Therefore, a table cluster, or just cluster, groups together several tables of type clusters.Several logical rows from different cluster tables are brought together in a single physical record. The records
    from the cluster tables assigned to a cluster are thus stored in a single common table in the database.A cluster contains a transparent cluster key which must be located at the start of the key of all logical cluster tables to be included in the cluster. As well, a cluster contains a long field (VARDATA), which contains the
    data of the cluster tables for this key. If the data does not fit into a field, continuation records are created.
    Field Type Description
    CLKEY1 CHAR(*) First key fields
    CLKEY2 CHAR(*) Second key field
    CLKEYN CHAR(*) nth key field
    PAGENO INT2(5) Number of the next page
    TIMESTMP CHAR(14) Time stamp
    PAGELG INT2(5) Length of the VARDATA record returned
    VARDATA RAW(*) Maximum length of the data section; varies according to database system
    Working with Tables
    The dictionary includes many functions for working with tables. There are five basic operations you can perform on tables: display, create, delete, modify, copy. Please do not confuse displaying a table with displaying the table entries (table contents). In order to display a table, it must previously exist; otherwise the system will display an error message in the status bar. For the following example, the table TABNA is used. To display this table, from the main dictionary screen, enter the table name in the Object name
    input field with the radio button selected next to Tables. Then, click on the Display button at the bottom of the screen, or press the F7 function key, or, alternatively,
    select Dictionary object Display from the menu.
    In this screen, you can see table information such as
    ¨ Table type, shown next to the name of the object. In the example, it is a transparent table.
    ¨ Short text description.
    ¨ Name of the user who made the last change, and the date of the change.
    ¨ Master language.
    ¨ Table status. On the screen, you can see this table is saved and active.
    ¨ Development class. For information on development classes, refer to Chap. 6.
    Delivery class, which sets the maintenance group for the table. It controls how tables will behave during client copy procedures, upgrades, and so forth.¨
    Tab. Maint. Allowed flag, which indicates whether you can generate a screen for maintaining table entries.
    ¨Then, on the lower part of the screen, you can see the table fields with all associated characteristics such as:
    ¨ Field name.
    ¨ Key indicator. When set, this field is the primary key, or part of it.
    ¨ Data element.
    ¨ Basic data type.
    ¨ Length.
    ¨ Check table.
    ¨ Short text, describing the field.
    Additional information about the table can be displayed by selecting the corresponding functions from the menu or directly from the application toolbar, such as keys, indexes, or technical settings
    Standard table:
    The key access to a standard table uses a sequential search. The time required for an access is linearly dependent on the number of entries in the internal table.
    You should usually access a standard table with index operations.
    Sorted table:
    The table is always stored internally sorted by its key. Key access to a sorted table can therefore use a binary search. If the key is not unique, the entry with the lowest index is accessed. The time required for an access is logarithmically dependent on the number of entries in the internal table.
    Index accesses to sorted tables are also allowed. You should usually access a sorted table using its key.
    Hash table:
    The table is internally managed with a hash procedure. All the entries must have a unique key. The time required for a key access is constant, that is it does not depend on the number of entries in the internal table.
    You cannot access a hash table with an index. Accesses must use generic key operations (SORT, LOOP, etc.).
    Index table:
    The table can be a standard table or a sorted table.
    Index access is allowed to such an index table. Index tables can be used to define the type of generic parameters of a FORM (subroutine) or a function module.
    Just have a look at these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/74/83015785d811d295a800a0c929b3c3/frameset.htm
    Regards
    Sreeni

  • DATA BASE TABLE AND INTERNAL TABLE

    Dear Friends,
    please help me out in getting complete information about database table and internal table.
    you can email me at < Removed by moderator - please maintain e-mail iDs in Business Card>
    Message was edited by:
            Arun Varadarajan

    Hi Hazi,
    <b>DATABASE Tables :</b>
    This are the tables which are stored in the database (eg Oracle , informix , DB2 etc..) Physically. u can view it from T-codes SE11 or SE16. here in SE11 u can create ur own Transparent table.
    for more information...
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/dictionary_tutorial.html
    <b>Internal Tables.</b>
    While generating reports or other objects we are not modifying the database tables directly first we are selecting the data of the database table into the internal tables... so that we can reduce the database access time and network traffic .. which is highly needed in R/3 system..
    internal tables are not exist phyiscally in the system. its like a array. the existance of the internal tables is upto the program execution in which u r declaring nd using it...
    for more information..
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/internaltables_tutorial.html
    Hope it will solve ur problem..
    <b>Reward points if useful..</b>
    Thanks & Regards
    ilesh 24x7

  • What is FACT table and FLAT table?

    Hello,
             Kindly tell me what is mean by FACT table and FLAT table and how it is use in the BI system ?also tell me can i see these table in the system ?if yes then please tell me the procedure to see the content of the FACT and FLAT table.   And also tell me about the SID table and how to see it.

    Cube consists of Fact tables and Dimension tables.
    The structure of these tables are "Flat".
    Cube consists of two factables... 'F' - Fact table and 'E' - Fact table.
    The naming convention will be..
    /BIC/F<..Cube name..>   for F Fact table
    /BIC/E<..Cube name..>   for E Fact table
    Eg: for cube "EMPLOYEE" the names are..
    /BIC/FEMPLOYEE
    /BIC/EEMPLOYEE
    The dimention tables have naming convention..
    /BIC/D....
    You can check these tables in SE11 or you can use the transaction LISTSCHEMA and then provide the Cube name.
    SID's tables are used to link the master data with the dimention tables.

  • REG:Internal table and Database table

    Hi Xperts,
    Can you tell me /give me a sample code so as to
    Compare the data present in the database table and internal table.i.e
    Wheher the data in the db table matches with the data in the internal table
    Thanks.

    Hello,  
    First make sure that data is there in the internal table
    TABLES : Declare your table example MARA, VBAK etc
    TYPES: BEGIN OF ITAB1,
    Declare your fields here
    example
    v_mat(10) type c,
    v_code(5) type I,
    END OF ITAB1.
    IF NOT ITAB[] is INITIAL.
    LOOP AT
    END IF.
    To compare the data with DB tables, read the database table and copy into the internal table ITAB2
    Then compare the ITAB and ITAB1
    IF ITAB1[] = ITAB2[]
    END IF
    See these links for [Creating Internal Tables|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/content.htm]
    [Comparing Internal Tables|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3841358411d1829f0000e829fbfe/content.htm]
    See this for more about [Processing Internal Tables|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36ae358411d1829f0000e829fbfe/content.htm]
    Declaring the internal table in ABAP objects
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

  • Dimension table and fact table exists data physically

    Hi experts,
    can anyone plz tell me weather dimension table and fact table exists data physically or not/

    Hi..Sudheer
    SAPu2019s BW is based on "Enhanced Star schema" or "Info Cubes" database design.This database design has a central database table, known as u2018Fact Tableu2019 which is surrounded by associated dimension tables.
    Fact table is surrounded by dimensional tables. Fact table is usually very large, that means it contains
    millions to billions of records.
    These dimension tables doesn't contain data  it contain references to the pointer tables that point to the master data tables which in turn contain Master data objects such as customer, material and destination country stored in BW as Info objects. An InfoObjects can contain single field definitions such as transaction data or complex Customer Master Data that hold attributes, hierarchy and customer texts that are stored in their own tables.
    SID is surrogate ID generated by the system. The SID tables are created when we create a master data IO. In SAP BW star schema, the distinction is made between two self contained areas: Infocube & master data tables/SID tables.
    The master data doesn't reside in the satr schema but resides in separate tables which are shared across all the star schemas in SAP BW. A numer ID is generated which connects the dimension tables of the infocube to that of the master data tables.
    The dimension tables contain the dim ID and SID of a particular IO. Using this SID the attributes and texts of an master data Io is accessed.
    The SID table is connected to the associated master data tables via teh char key.
    Fact table(Transaction data,DIM ID)<>Dimention Table(SID and Dim ID)<->Masterdata table(SID,IO)
    Thanks,
    Abha

  • Diff between custom table and cutomized table

    hi,
    can any one let me know the terms custom table and customized table is same or is there any difference in between these two.
    in case of any difference please let me know.
    regards

    hi,
    Customizing table is
    a very SPECIAL MASTER TABLE
    where VERY IMPORTANT RECORDS
    are maintained.
    2. Such records, affect calculations / flow / logic etc .
    3. Important thing about customizing table,
    is that it will ask for REQUEST NUMBER,
    whenever we try to add / modify any record in it.

  • Import Table and Template Table

    Hi all,
    I have a question regarding Data Services Component. What are the difference between "Import Table" and "Template Table"?
    Thanks,

    Hi,
    Template table means temporary table. It will take all the input data. We don't need to create this table. Import table means you are importing already created table. That means you had already defined the field names and field lengths. Hope this helps.
    Thanks,

  • Difference between Temp table and Variable table and which one is better performance wise?

    Hello,
    Anyone could you explain What is difference between Temp Table (#, ##) and Variable table (DECLARE @V TABLE (EMP_ID INT)) ?
    Which one is recommended to use for better performance?
    also Is it possible to create CLUSTER and NONCLUSTER Index on Variable table?
    In my case: 1-2 days transactional data are more than 3-4 Millions. I tried using both # and table variable and found table variable is faster.
    Is that Table variable using Memory or Disk space?
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Check following link to see differences b/w TempTable & TableVariable: http://sqlwithmanoj.com/2010/05/15/temporary-tables-vs-table-variables/
    TempTables & TableVariables both use memory & tempDB in similar manner, check this blog post: http://sqlwithmanoj.com/2010/07/20/table-variables-are-not-stored-in-memory-but-in-tempdb/
    Performance wise if you are dealing with millions of records then TempTable is ideal, as you can create explicit indexes on top of them. But if there are less records then TableVariables are good suited.
    On Tables Variable explicit index are not allowed, if you define a PK column, then a Clustered Index will be created automatically.
    But it also depends upon specific scenarios you are dealing with , can you share it?
    ~manoj | email: http://scr.im/m22g
    http://sqlwithmanoj.wordpress.com
    MCCA 2011 | My FB Page

  • How can I get data in flat file from Pool table and cluster table ?

    Hi,
    I am working in one Achiving project. My requirement is to get data into flat file from Cluster table and pool table.
    Is there any tool avilable to download data into flat file from pool table and cluster table ?
    if table name given in the selection screen then data will be downloaded into flat file.
    waiting for quick response.
    Best Regards,
    Bansidhar

    Data cannot be retrived directly form the cluster table
    as the Cluster results are stored in Cluster Key say for example PCLkey
    and form that Key we need to fetch the data
    these clustes are not the part of PNP or PNPCE tables
    for ur info kindly check

Maybe you are looking for

  • How do i check what is open on my macbook pro

    my computer is slow on start-up and when i move to different windows all i get is a spinning disc

  • SLD error after upgrade to SP13

    Hi experts, Our enterprise portal instance has a local sld running in the WAS. Recently, we upgraded from SP09 to SP13. After this, we are not able to connect to sld from webdynpro administrator. Given below is the log file content in SLD. #10 12/23/

  • Link to Installation Doc

    I have the document "Oracle Workflow - Installation Notes for Oracle Database, Release 2.6.3, February 2004, Part No. B12169-01" as a hard copy. Would it be possible for someone to provide the link to this document? I didn't find it in my documentati

  • TS1503 Why do I have so much "other" space filled up and how do I get rid of it?

    When I plug my phone into my computer my "other" field is taking up 9.3 GB of my space on my phone. How do I get rid of it?! And, what is it even??

  • Why is HeadlessException explicitly thrown in AWT and swing?

    Hi there, I just noticed that HeadlessException is explicitly thrown in some of the constructors in AWT and swing components since J2SE 1.4. Given that it's a RuntimeException (unchecked) it doesn't need to be included in the throws clause of the met