Resync tables without Datapump

There are some data differences between streams source db and replicated db side. What are the best possible methods available for sync?

Here is how I do it using Smenu. At the end you have the code generated that you can copy and adapt.
[http://smenu.wiki.sourceforge.net/Streams+synchronize+master+slave+table+1|http://smenu.wiki.sourceforge.net/Streams+synchronize+master+slave+table+1]
There are 3 methods to achieve this goal:
- Using a data pump, exp/imp or rman restore tablespace
- Using a negative rule to stop replication, truncate target, insert * from source table, re instantiate table, drop negative rule
- Lock source table, truncate target, insert * from source table, re instantiate table, release target
a) First method is very heavy and the most safe but not always possible
b) Second and third differ only by the way you neutralize the replication.
Negative rule way has a problem when the source table is under continuous pressure.
1) if you place it before the insert, you won't miss any row before the select starts (enforcing consistency),
but all row inserted on source site between the end of the insert
and the drop rule neg will be missing for the neg rule will discard them from replication.
2) If you place the rule set after the start of the select insert, all rows that where inserted
between the start of the select and the established neg rule will be missing.
c) Locking the table is quite good, allows fined grained sync, but hamper activity on the source site during the resync operation
The real solution to reach hot resync consist in the uses of 2 session communicating with a shared context variable
used as semaphore where one session will lock/unlock the table for brief moment while the other session set/unset
the negative rule. But I have still to code this.
Note that all method but the full restore is potentially exposed to FK problems at target site.

Similar Messages

  • Displaying data in one row for  for 2 tables without relaiton

    I Have 2 tables without any relation and there is a common field and i want to display data like below
    table refdet
    1)
    refdt----------refbr----refamt----refcat
    10-aug-09---10-----34234-----101a
    10-aug-009--11----23245-----102a
    1-AUG-09----10----455.98----104A
    19-aug-09-12-----10000-------103B
    2) brdet
    trdt---------brn-----brtot-----------brcat
    11-aug09--10-----454000-------A
    09-aug-09-12-----550000-------B
    30-sep-09--10-----430000------A
    09-aug-09-11-----550000-------B
    i want to display data for each branch refdet.refbr = brdet.brn
    refdet
    Br10
    refdt----------refbr----refamt----refcat-----trdt---------brn-----brtot-----------brcat
    10-aug-09---10-----34234-----101a-------11-aug09--10-----454000-------A
    1-AUG-09----10----455.98----104A------30-sep-09--10-----430000------A
    Br 11
    10-aug-009--11----23245-----102a -------09-aug-09-11-----550000-------B
    Br12
    19-aug-09-12-----10000-------103B------09-aug-09----12-----550000-------B
    i tried the following query but its not working
    select distinct null as refdt,null as refbr,null as refamt,null as refcat,b.trdt,b.brn,b.brtot,b.brcat
    from brdet a,refdet b
    where a.refbr (+) = b.brn
    union all
    select distinct a.refdt,a.refbr,a.refamt,a.refcat,null as trdt,null as brn,null as brtot,null as brcat
    from brdet a,refdet b
    where a.refbr = b.brn (+)
    its not giving the records on each row for both side its creating separte rows for each records in both table.
    rgds
    jytohi
    -

    Hi jytohi,
    Please lean back for a moment and study your question. Ask yourself, is this a reasonable way to ask a question?
    Jopefully you'll reach the answer, "No it isn't, I need to.."
    1. Turn these
    1)
    refdt----------refbr----refamt----refcat
    2) brdet
    trdt---------brn-----brtot-----------brcatinto CREATE TABLE statements.
    2. Turn these
    10-aug-09---10-----34234-----101a
    10-aug-009--11----23245-----102a
    1-AUG-09----10----455.98----104A
    19-aug-09-12-----10000-------103B
    11-aug09--10-----454000-------A
    09-aug-09-12-----550000-------B
    30-sep-09--10-----430000------A
    09-aug-09-11-----550000-------Binto INSERT INTO statements
    3. Turn this
    refdet
    Br10
    refdt----------refbr----refamt----refcat-----trdt---------brn-----brtot-----------brcat
    10-aug-09---10-----34234-----101a-------11-aug09--10-----454000-------A
    1-AUG-09----10----455.98----104A------30-sep-09--10-----430000------A
    Br 11
    10-aug-009--11----23245-----102a -------09-aug-09-11-----550000-------B
    Br12
    19-aug-09-12-----10000-------103B------09-aug-09----12-----550000-------Binto properly formatted expected output, along with a reasonable explanation of why
    4. Turn this
    select distinct null as refdt,null as refbr,null as refamt,null as refcat,b.trdt,b.brn,b.brtot,b.brcat
    from brdet a,refdet b
    where a.refbr (+) = b.brn
    union all
    select distinct a.refdt,a.refbr,a.refamt,a.refcat,null as trdt,null as brn,null as brtot,null as brcat
    from brdet a,refdet b
    where a.refbr = b.brn (+)into a properly formatted query
    And last, put everything in into curly brackets {noformat}{noformat} to preserve formatting and blank space.
    Best regards
    Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to create Table in a Table without a ViewLink for Master/Detail

    Hi,
    Can we create a Table within Table in OA Page without using a view link. Need a Master Detail records to be displayed but I can't use a ViewLink. Is it possible to
    have a Table within Table without using a ViewLink. As I have DetailVO with multiple bind variables. I tried ViewLink but it didn't work so wondering if can achieve this
    using table in table without ViewLink
    Thanks

    Hi,
    I created a Table then in the table I created a detail in which I created another table I created a transient view attribute i.e. DetailFlag that I set to my outer table. When I run the page it does show me the Master records and showhide link but when I click on the show it throws an error saying:
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition  of type Attribute not found
    Even though all the items in Detail table are attached to VO attributes of DetailVO
    As I have a different MasterVO query with some bind variables and the DetailsVO query is different with some bind variables. Now how do I capture when a user clicks on Show and at that time wants to get some values from a selected master row and pass them to my DetailVO Query so the detail data for that selected master row shows. How do I get handle to the selected Row Data so to get the some values that need to be passed to the DetailVO.
    I tried following the guide but am not able to have it functioning.
    Here is what I have in my controller's processRequest method
         OAApplicationModule am = pageContext.getApplicationModule(webBean);
         System.out.println("******* 1");
         am.invokeMethod("initializeTables");
         OATableBean table =
          (OATableBean)webBean.findChildRecursive("OuterTable");
        if (table == null)
          MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "OuterTable") };
          throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
        table.queryData(pageContext, true);
        System.out.println("******* 2");Any help is appreciated.
    Thanks

  • Adding a single table without a logical join to another table (OBIEE 10g)

    Sometimes I want to just display a single table without a logical join to another table in the repository. However, everytime I move it to the Business Model and Mapping layer and perform a Global Consistency Check, it tells me that it needs a logical join and I am forced to create another table to join to it. Thus creating a dimension-fact relationship. There are times I don't need this relationship and just want to display some data. Is there anyway to get around this?
    Thanks in advance!

    Yes,You have to create a join.You cannot take single table to BMM layer.You can create an alias of the table.Join this alias and base table through any common column and take both tables to BMM and desired table to presentation layer.
    Another way is to create a view in physcial layer.Write a select statement like
    Select primary_key from Table
    Where primary_key is primary key of base table.Join this view ith base table and repeat the steps defined for Alias.
    Regards,
    Sandeep

  • Count the Records in  an internal table without a loop.

    How do i count the number of records in an internal table without using the loop  statement.
    The Describe statement give the total no. of records in the internal table.But i want the count of the key fields in the internal table
    For eg
    Row Field
    1       A
    2       A
    3       A
    4       B
    5       B
    6       C
    Count of A = 3
    Count of B = 2
    Count of C = 1

    Dilip,
      I think isn't posible. Only 3 ideas:
    1ª, make other table "table2", similar to your actual table.
         table2[] = yourtable[].
         delete table2 where key <> 'A'.
         describe table table2 lines contA.
        But depending the amount of data, you may have problems in performance or memory consumption...
    2ª, make other table, only with the keys fields and a count field,
        data begin table2
           key_field1,
           cont type i.
        end data.
       when you append lines to yourdata, make a collect to this table:
        table2-keys = yourtable-keys.
        table2-cont = 1.
       collect table2.
       But only works if you can modify the program where data is appended, and you may be carefull when data is deleted :-(...
    3ª if your data if filled in a select, you may fill the table2 of point 2ª, making a similar select but:
       select keyfields count( * ) into table table2
      from ...
      where (the same you have to fill your original table...)
       group by keys.
    But you have the same problem is data is deleted later...
    I hope that any of the three is useful for you...
    Edited by: Diego Alvarez on Jan 5, 2010 5:09 PM

  • Error: itab is a table without a header....

    Hi everybody,
    i get the following error after activation:
    "ITAB" is a table without a header line and therefore has no component called "NUM"..
    How can i solve this problem?
      TYPES: BEGIN OF i_itab,
               NUM TYPE I,
             END OF i_itab.
      DATA: itab TYPE TABLE OF i_tab.
      LOOP AT myTable INTO ls_mytable.
        itab-num = ls_mytable-nr.
        APPEND itab.
      ENDLOOP.
    regards,
    Sid
    Edited by: Sid on Jul 7, 2009 7:39 PM

    Sid wrote:>
    > Hi everybody,
    >
    > i get the following error after activation:
    >
    >  "ITAB" is a table without a header line and therefore has no component called "NUM"..
    >
    > How can i solve this problem?
    >
    >
    >   TYPES: BEGIN OF i_itab,
    >            NUM TYPE I,
    >          END OF i_itab.
    >         
    >   DATA: itab TYPE TABLE OF i_tab.

    >   LOOP AT myTable INTO ls_mytable.
    >
    >     itab-num = ls_mytable-nr.
    >     APPEND itab.
    >
    >   ENDLOOP.
    >
    Have a work area for the internal table itab. Code modified below :
       TYPES: BEGIN OF i_itab,
                NUM TYPE I,
              END OF i_itab.
       DATA: itab TYPE TABLE OF i_tab,
                  wa TYPE i_tab.
       LOOP AT myTable INTO ls_mytable.
         wa-num = ls_mytable-nr.
         APPEND wa to itab.
       ENDLOOP.
    Hope this helps.
    Regards,
    Anand Patil

  • Transaction data can be loaded into the Fact table without loading the

    Transaction data can be loaded into the Fact table without loading the corresponding master data (Example : Sales analysis transaction data can be loaded without populating any of its  dimension’s master data)
    a.     True
    b.     False

    Hi Kutti,
    True - You need to select the option in the infopackage - alwyas load even if no master data exists.
    Bye
    Dinesh

  • Creation of condition table without copy

    During creation of Condition table ( without copying any condition from available tables), Is it possible to see all field catalouges available? and if possible then how can we see all fields available to add desired ones into our table?

    Hi,
    SPRO >Sales and Distribution->Basic Functions>Pricing>Pricing Control-->Define Condition Tables
    In the above menu path you can find out the Field catalog what SAP has given if you want to add new field you can add provided
    If you done the Enhancements
    Regards,
    Prasanna

  • Create a new row in a table without using add new row button

    I want to add a new row to the table without using the add new row button of the table. I'm not able to display default row in the table. Though if click on apply the record appears after saving in the database. Any thoughts how to implement this functionality.

    Here is what you have to do.
    1) You have to handle this in processRequest()
    2) In the AM code , u need to check if there is already a row exisit or vo is blank
    if (vo.getFetchedRowCount() == 0)
    // first time
    vo.setMaxFetchSize(0); // THIS IS REQUIRED.
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    else
    //If already rows are there then you suppose to insert in the end
    // i assume you would have execute your vo
    YourVORowImpl row= (YourVORowImpl)vo.getRowAtRangeIndex(0);
    vo2.insertRowAtRangeIndex();
    It should work.

  • I want to create an internal table without using header line and occurs 0?

    hi experts,
    Can anybody help me to declare an internal table without using headerline and occurs 0 options but still i have to use the functionalities that occurs 0 and header line options provide.

    Hi Saisri,
    You can use the internal table without headerline and create a header for then internal table with the same structure. We need to use the header while manipulating with the data of the internal table.
    example:
    types: begin of ty_afpo,
                 kdauf type kdauf,
                 kdpos type kdpos,
                 ltrmp   type ltrmp,
               end   of ty_afpo.
    data : t_afpo type standard table of ty_afpo,  " internal table declaration
             wa_afpo type ty_afpo.                        " work area declaration
    <after populating the data into the internal table>
    loop at t_afpo into wa_afpo.
    write:/ wa_afpo-kdauf, wa_afpo-kdpos, wa_afpo-ltrmp.
    endloop.
    This I think shall give you a basic understanding of how things work.
    <b>Reward points if this helps,</b>
    Kiran

  • How to modify  a table without  setting system to modifiable

    Hi All
    Is there a way to modify a table without setting the system to modifiable either in SCC4 or SE06.
    We locked SCC4 in our system , however one tables are not able to modify.
    table name YAUTM
    Is there a way to bypass this?
    Edited by: Shou Woon Wee on Jan 11, 2008 3:09 AM

    Hi Shou......
    if it gives you a message....."the client is not modifiable"/ ALIAS "table not modifiable"  ...then from a security perspective....you cant, and you might not want to bypass it!
    SCC4 settings are meant to be for that!  Contact your Basis team for this.
    The only way to bypass this is thru ....sending changes through a transport request.
    Curiosity: what environment are you trying this out ? cant be sandbox or DEV!
    Regards
    Abhishek

  • Table without table name

    Is it possible to create a table without table name and retrieve the information from that table?
    Edited by: Kamesh on Sep 20, 2010 11:05 AM

    Kamesh wrote:
    Is it possible to create a table without table name and retrieve the information from that table?
    Edited by: Kamesh on Sep 20, 2010 11:05 AMNo, every table in a schema has to have a unique name. Any string will do.
    If the name does not conform to the standard rules for identifiers (including the rule about no special characters, such as spaces) then the name must be enclosed in double-quotes. As William pointed out, " " (with a single space between the quotes) is a name; it has a length of 1.
    This reminds me of a great story. It's so good, it probably didn't really happen, but it's so good, I'm going to repeat it anyway.
    IBM once had an "executive apptitude test" that they would give to job applicants. There were some questions you might call general knowlege or trivia questions, and each question had a weight (for example, answering an unimportant queestion might score one point, an important question might be 5 points.) One of the questions was "What is the standard width of a mobile home?", and the weight of the question was -20: answering the question correctly did serious harm to your score. The reasoning was that the more you knew about mobile homes, the less likely you were to be their kind of executive.
    I wonder if this was the same kind of trick question.
    I agree with Mtefft; the correct answer is something like "Why would you want to?"

  • Please recommend if we have options to read xml file and insert data into table without a temporary table.

    Please recommend if we have options to read xml file and insert data into table without a temporary table. 

    DECLARE @data XML;
    SET @data =N'<Root>
    <List RecordID="946236" />
    <List RecordID="946237" />
    <List RecordID="946238" />
    <List RecordID="946239" />
    <List RecordID="946240" />
    </Root>'
    INSERT INTO t (id) SELECT T.customer.value('@RecordID', 'INT') AS id
    FROM @data.nodes('Root/List')
     AS T(customer);
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Data fetch from table without Refresh and without using tab key.

    hi Friends,
    I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
    If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
    Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
    Andy

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

Maybe you are looking for

  • Question regarding Graphics - Print Forms

    Hi, This is a print forms question. We are on ECC 5.0, basis release 640 Currently, for all our SAPscripts, we have our graphics as TIF files stored as text modules. For our Smartforms, we loaded BMP files to the BDS using transaction SE78. Adobe bri

  • How to get videos off my ipod back on my computer

    I have to send my ipod back to have it fixed or replaced and Some of the videos I put on my ipod I deleted out of I tunes because my computer has a lack of space for all of it. I told the representative on the phone this and she told me someone onlin

  • Help with the connection statement

    Hi, I want the initialization of the database i.e., Class.forName(DEFAULT_DRIVER); Connection connection = DriverManager.getConnection(DEFAULT_URL); To be done in one method (in a class) and other methods should use this connection object inside.Is i

  • Upgrade/Replace G4 Dual MDD PPC to Intel Desktop

    I've been on on SSI Disability since 2004, being a 24 year survivor of a anaplastic Oligodendroglioma brain tumor diagnosis in 1988, with a need to replace my old PPC Mac to new hardware and software for compatibility with the newest Apple software,

  • Moving from Flash to Adobe Edge - concerns

    Lets Design makes flash banners for some of our clients (we also make flash games). We'd like to shft toward html5 animated banners. As a business we do not wish to take a risk and jump to using Adobe Edge / HTML5 if it's deemed too risky. I would li