How to check table difference QUICKLY?( symetic check, hash check, or ...)

Hi. Everyone.
I would like to know whether or not there is a difference
between tables. The two tables are located
at the differerent location, and network speed is very bad.
I am considering this two ways as belows.
1. symeteric check
(select * from table_A@location1
minus
select * from table_A@location2)
union all
(select * from table_A@location2
minus
select * from table_A@location1)
2. hash value check using dbms_utility.get_hash_value
select sum(dbms_utility.get_hash_value(
"column lists",1,power(2,16)-1)) xx
from table_A@location1
select sum(dbms_utility.get_hash_value(
"column lists",1,power(2,16)-1)) xx
from table_A@location2
Which one do you think is faster?
Additionally, is there better way to check table difference
as quickly as possible.
Thanks in advance.
Have a nice day.
Ho.
Message was edited by:
user507290
Message was edited by:
user507290

Hello
Another alternative may be to materialise the two remote tables localy and then do the comparison - perhaps using materialised views. If you can get the data locally, you can reliably try a few different methods and figure out which works best.
I know MINUS can be exceptionaly quick for comparing whole result sets, but it's not suited to all cases...in the same way that using sub queries/not exists is better in some cases than others.
HTH
David

Similar Messages

  • 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

  • Check table validation

    Hi all,
    I have created a customized table. In one field I have assigned check table and foreign key checkbox is checked. But when this table is updated through a program it goes on creating any entry. Entry is not restricted to the check table values only. It goed on creatting values which are not in the check table.
    How to avoid it?
    Regards,
    Jeetu

    Hey Matt,
    My 10 points was deducted when I had previously asked for points same as Ankesh.
    Just wanted to know what in cases like this ;-).
    Believe post by Ankesh has been removed by Moderator.
    Cheers,
    Jayant
    Edited by: Jayant Sahu on Dec 4, 2008 4:22 PM

  • Value and check tables

    Hi
    If check table is there for field validation then what is the exclusive use and purpose of value table. Also viceversa?

    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
    <REMOVED BY MODERATOR>
    GAURAV J.
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 3:29 PM

  • Unable to post in MI07 for sales order stock - Error Check Table XMSSA

    Hi,
    When I try to post in MI07, I get the following error Unable to post - Error 'Check Table XMSSA
    Unable to post - Error 'Check Table XMSSA: entry 0000000000010011000 CA01 E 1500004153 000010 does not exist
    It has something to do with sales order stock. But I am not sure what is causing the issue.
    SAP error details:
    Check table XMSSA: entry 000000000010011000 CA01 E 1500004152 000010   does not exist
    Message no. M7001
    Diagnosis
    In table XMSSA the entry 000000000010011000 CA01 E 1500004152 000010   is missing.
    Procedure
    Make sure your entries are correct.
    If table  has not been maintained correctly, please inform your systems administrator.
    Any ideas?

    Hi Guys ,
      I have faced this same issue . Found OSS note 1360365 . The issue is resolved after implementing this note .
    Regards
    Rajmohan G

  • I need to load the reference/check table data in to MDM Server - help

    Hi,
      I need to load the referece table/check table data from ECC50 into FTP server/Ports. I am intrested only in Material and vendor extraction. Is this is possible with MDMGX or I need to use old zreports to extract reference table data? Any help on this is appreciated.
    Thanks,
    Daniel.LA

    Hi Daniel,
    U have to use generic extratctor MDMGX to extract reference data(customizing data) from R/3.
    Prerequisite:
    MDMGX to be installed.
    Procedure to use it.
    A)Setup Execution.
    1) Define Object type as per ur requirement (drop down list standard objects are provided like customer,vendor,products etc.).
    2)Define Repository and ftp server name.
    3)Upload ports and check table.
    4)Maintain ports and check table.
    B)Execute Generation and Extraction.
    1)Generate XSD.
    2) Starrt Execution.
    For each check table u have to create a separate port in MDM Repository.
    zreport is a older version ,it can be but neednot contain latest updates in check table .
    Reward Points if helpful.
    Regards,
    Neethu Joy.

  • How to check table is creating or not

    Hi,
    I am creating only one table by running a table creation script(table.sql) which contain 366 partition.but I dont know whether table is creating or not.it is taking long time,sometimes I feel like script is hanging.even before running the script I have even spooled but spool file shows nothing. so how to check table is creating or not from background? can anyone please let me know abt this.this is bit urgent
    sql>spool table.log
    sql>@table_partition.sql

    hi,
    I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
    with regards;
    Boo

  • How to check table is NULL or not when a form load?

    How to check table is NULL or not when a form load?
    I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
    Sorry for bad English... 

    Maybe you can do this in form1's Form_Open event:
    if dcount("*", "table1") = 0 then
      Cancel = True
      Docmd.Openform "form2"
    end if
    -Tom. Microsoft Access MVP

  • How  to check  table have  exists any views in oracle

    hi,
    how to check table have exists any views in oracle

    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' You may use dba_dependencies to find views in different schema.

  • Difference between a value table and a check table?

    What is the difference between a value table and a 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.
    Check table
    For example you have Employee master table & Employee Transaction table.
    When ever an employee Transacts we need to check whether that employee exists , so we can refer to the employee master table.
    This is nothing but a Parent & Child relationship .  Here data can be maintained at client level , no development involved.
    As per DBMS what we call foregin key table, is called as check table in SAP.
    Reward points for the answer

  • How can we restrict the f4 help from check table in the pop up form.

    Hi,
    I am trying to control the F4 help values from check table coming in the form of pop up.

    When a user uses SM30 to add an entry into table, you often need to add more checks. If you were to add code inside, there is a big chance that it would be overwritten.
    The solution: go to table maintenance generator ( se56) => Enviroment => add event.
    [To add event in table main.|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc]

  • How to find the Check table for a field ?

    Hello All,
            I have the filed name f1.
    Now I want to know the check table of this field programatically and if this field has a configuration table then I need that table also.
    eg: if werks is the field the Master         Table is : MARC
                                    and Configuration Table is : T001W.
    Is this possible first of all programatically ?
    If yes can anyone help me out ?
    Regards,
    Deepu.K

    Hi again,
    1. I don't know the master table for the field werks
    A field is never independent. It is always linked to a table,
    otherwise the information is only half.
    2. So incase if we do not know the tablename,
       its best to query the table DD03L with WERKS,
      and filer out CHECKTABLE with *,
      and take any one record.
    regards,
    amit m.

  • How to create Check table for Field Maktx

    Hi Experts,
    I am create one ztable with fields Mandt, Matnr, Maktx, Type1 and Type2 etc.
    I need a create a check table for field MAKTX.
    If i give material number the its the material description also.
    Thanks in Advance,
    Purnaneelu.

    Hi,
    Actually i am create one ZTable with fields Mandt ,matnr, maktx, type1,type2 and type3
    Now i am entry the data for matnr,type1,type2 and type3 .
    Now i am going to TCode SE16n material is not appears, but the requirement is shows the description also
    STOP USING I AM in each and every sentence...and try to correct your english...so that people can understand your problem easily.
    Hope this suggestion will help you going forward at the time of posting your question at SDN.
    Wram regards,
    Abhishek

  • How to add check tables or search helps to search help parameters?

    Hello Forum!
    I have made a Z-Search help, and I have a problem with some of my parameters.
    The field (MARC)-EKGRP (Purchasing Group) has a check Table (T024) and the matching search help (H_T024).
    I seem to find no possibility to add this check Table search help to my EKGRP parameter in my Z-Searc Help.
    (Therefore, the End-User has to type it in Manually, there is no F4 funktionality...)
    Is there a way to do this?
    Thanx for replying!
    Kind Regards,
    Pieter
    PS: I´m experiencing the same problems with other fields as well: to parameter (MARA-)MFRNR I would like to add the seach Help 'KRED', for it appears on my Z-Search Help. And so on....

    Thanks, Archna Raja!
    This is certainly the right direction to look for a solution.
    However, i can not get it to work.
    In debugger Mode I have populated the SHLP-FIELDDESCR field 4AVAILABL  with X.
    Result: The button for the search help appears. But when I click on it, nothing happens.
    I than also tried this in combination with populating the fields:
    REFTABLE
    CHECKTABLE
    No search Help window opened..
    I did not find a fileld  where I can indicate the Search help in the SHLP Structure.
    Am I missing out on something?
    Kind Regards,
    Pieter
    PS: I´m trying to get a search help for The filed EKGRP.
          Check Table:  T024          Serach Help: H_T024
    Edited by: Pieter De Fré on Nov 30, 2010 11:38 AM

  • How to check tables integrity

    Hello all,
    we have a big problem in CO area. Since last week we can't calculate production order costs and product costs.
    We have check all the things we can, including notes, and the only thing we think that could solve the problem is to check the integrity of tables.
    Is there any program, transaction, or anything to make it?.
    thanks a lot.

    Hi,
    Please try this once more.
    Go to SE11.
    Enter the data dictionary table in the 'Database Table' field.
    Click 'Display' and press 'Enter'.
    The page 'Dictionary: Display Table' will open.
    Please click on the 'Entry Help/Check' tab.
    Observe the fields 'Foreign Key' and 'Check Table'.
    Reward if this is of help.

Maybe you are looking for

  • Computers can't find each other with home sharing

    My home sharing has worked before but now I can't get my two computers to "see" each other. I have tried just about everything. Any helpful hints?

  • Serial number profile

    I have create a profile for production orders as optional and the equipment as not required which is: MMSL     Maintain goods receipt and issue doc.     02     01 PPAU     Serial numbers in PP order     02     01 PPRL     PP order release     02     

  • Photosmart 7520 print in black and white?

    I have a photosmart 7520. I want to print a black and white tekst-formular, but since there's no ink left in the photo cartridge I can't print any thing. Is it not possible to print only black and white stuff, whith this printer? Thanks Thomas This q

  • Canot display oracle express home page

    hi i have difficulty opening up homepage oracle express 10 wheni try ti oepen it just goes blank saying explorer cannot open it i chngged the zone by putting 127.0.0.1 cananybody help plz thax

  • Data limit on shared workspace

    Is there a limitation to the size or volume of data that can be uploaded to a shared workspace?