How to guarantee two tables are in sync both ways on 10gR2?

a table at x database and b table at y database are wanted to be in sync.
if the request was in one way a dblink and a materialized view with refresh on commit would do the trick. but changes wanted to be replicated both ways, so I thought a trigger based solution but wanted to have your opinions if there is any clever trick for this kind of a need.
Thank you.

please correct me if I am wrong, by streams you meand async change data capture from redo logs right? In my opinion this is not easy to configure, and since these are two small parameter tables, so it will be throwing a rock to a frog?

Similar Messages

  • Events entered on my iphone calendar do not appear on my ipad calendar, but events entered the other way around (on Ipad DO appear instantly on my phone calendar. How can I get these calendars to sync both ways instantly?

    Events entered on my iphone calendar do not appear on my ipad calendar, but events entered the other way around (on Ipad DO appear instantly on my phone calendar. How can I get these calendars to sync both ways instantly?

    If you're trying to sync an iCloud calendar, go to Settings>Mail,Contacts,Calendars>Default Calendar on your iPhone and make sure you have selected your iCloud calendar as your default.

  • How to know  if two tables are identical in the data they contain

    Hello,
    How do i know if two tables are identical in the data they contain ?

    Oais,
    If table structure is same or the columns you are interested to compare. You can use following example.
    select
           OWNER, OBJECT_NAME, SUBOBJECT_NAME, OBJECT_ID, DATA_OBJECT_ID
           , OBJECT_TYPE, CREATED, LAST_DDL_TIME, TIMESTAMP, STATUS
           , TEMPORARY, GENERATED, SECONDARY
    from   NEW_ME Tbl1
    minus
    select
           OWNER, OBJECT_NAME, SUBOBJECT_NAME, OBJECT_ID, DATA_OBJECT_ID
           , OBJECT_TYPE, CREATED, LAST_DDL_TIME, TIMESTAMP, STATUS
           , TEMPORARY, GENERATED, SECONDARY
    from   NEW_ME1 Tbl2

  • How to find how/if two tables are related?

    Hello Frnds,
    If there an FM which can tell if two tables are related so that a join can be performed on them and if yes, it can tell on which field they are related?
    Regards,
    Arpit

    thanks,
    Rich, tables will be taken as input from user as parameters and hence will be dynamic. I want to use this logic for the purpose where user wud like to know, for example, which all DEL for SO are created by same user. Now in this case I want to know if there is relation between LIKP, LIPS and VBAK. But if user wants to see which all GR were created by same user who created POs, tables will be MKPF, MSEG and EKKO.
    SO what I am trying to say is tables will change as per input but I need to before before processing logic, if there any relation exsits between input table at all or not?
    Regards,
    Arpit

  • How to keep two HD's in sync?

    How to keep two HD's in sync? They both contain my Sample Libraries, one is in my desktop the other in my laptop…essentially they contain the same items, but, the thing is: when I'm working on one I begin to delete, modify and add to the pool, and so the two become out of sync.
    It's hard to know what exactly I've changed where. (So, what I usually do is take out things that I edit and re-save them separately, just in case, but this creates vast quantities of unnecessary duplicates).
    So, what I'd like, would be if I could just keep both of the in sync somehow?
    Here's what I'm thinking:
    What if I was to use Carbon Copy Cloner, and just clone one onto the other, back and forth regularly? (Using incremental backup BTW) Would that be a good idea? I'd be worried that things might get corrupted by being overwritten/modified so regularly? Or would that be OK? I mean what if I had changed a small portion of a sample on one HD and then CCC'd onto the other, is it going to detect such a change? And will it always safely copy it across?
    Thank you so much for any help.

    emirium wrote:
    It's hard to know what exactly I've changed where.
    Here's what I'm thinking:
    What if I was to use Carbon Copy Cloner, and just clone one onto the other, back and forth regularly? (Using incremental backup BTW)
    If you are very strict about changing just one drive at a time, you can use CCC or ChronoSync and I think it will be fine.
    BUT...if you are talking about making changes to both drives and trying to reconcile them, then you need ChronoSync or something similar. Because they allow you to preview exactly which files will be changed, in which direction, before you commit. I use a different utility (FoldersSynchronizer) for this purpose; it looks like ChronoSync achieves this through their Analyze window. At time I have stopped potential unintentional data loss by always previewing the changes.

  • How to join two tables

    hi
    how to join two tables using inner join  if the first table has two primary keys and second table has 3 primary keys

    Would describe type of joins in ABAP, which might differ with other joins.
    The join syntax represents a recursively nestable join expression. A join expression consists of a left-hand and a right- hand side, which are joined either by means of INNER JOIN or LEFT OUTER JOIN. Depending on the type of join, a join expression can be either an inner (INNER) or an outer (LEFT OUTER) join. Every join expression can be enclosed in round brackets. If a join expression is used, the SELECT command circumvents SAP buffering.
    On the left-hand side, either a single database table, a view dbtab_left, or a join expression join can be specified. On the right-hand side, a single database table or a view dbtab_right as well as join conditions join_cond can be specified after ON. In this way, a maximum of 24 join expressions that join 25 database tables or views with each other can be specified after FROM.
    AS can be used to specify an alternative table name tabalias for each of the specified database table names or for every view. A database table or a view can occur multiple times within a join expression and, in this case, have various alternative names.
    The syntax of the join conditions join_cond is the same as that of the sql_cond conditions after the addition WHERE, with the following differences:
    At least one comparison must be specified after ON.
    Individual comparisons may be joined using AND only.
    All comparisons must contain a column in the database table or the view dbtab_right on the right-hand side as an operand.
    The following additions not be used: NOT, LIKE, IN.
    No sub-queries may be used.
    For outer joins, only equality comparisons (=, EQ) are possible.
    If an outer join occurs after FROM, the join condition of every join expression must contain at least one comparison between columns on the left-hand and the right-hand side.
    In outer joins, all comparisons that contain columns as operands in the database table or the view dbtab_right on the right-hand side must be specified in the corresponding join condition. In the WHERE condition of the same SELECT command, these columns are not allowed as operands.
    Resulting set for inner join
    The inner join joins the columns of every selected line on the left- hand side with the columns of all lines on the right-hand side that jointly fulfil the join_cond condition. A line in the resulting set is created for every such line on the right-hand side. The content of the column on the left-hand side may be duplicated in this case. If none of the lines on the right-hand side fulfils the join_cond condition, no line is created in the resulting set.
    Resulting set for outer join
    The outer join basically creates the same resulting set as the inner join, with the difference that at least one line is created in the resulting set for every selected line on the left-hand side, even if no line on the right-hand side fulfils the join_cond condition. The columns on the right-hand side that do not fulfil the join_cond condition are filled with null values.
    Note
    If the same column name occurs in several database tables in a join expression, they have to be identified in all remaining additions of the SELECT statement by using the column selector ~.
    Example
    Join the columns carrname, connid, fldate of the database tables scarr, spfli and sflight by means of two inner joins. A list is created of the flights from p_cityfr to p_cityto. Alternative names are used for every table.
    PARAMETERS: p_cityfr TYPE spfli-cityfrom,
    p_cityto TYPE spfli-cityto.
    DATA: BEGIN OF wa,
    fldate TYPE sflight-fldate,
    carrname TYPE scarr-carrname,
    connid TYPE spfli-connid,
    END OF wa.
    DATA itab LIKE SORTED TABLE OF wa
    WITH UNIQUE KEY fldate carrname connid.
    SELECT ccarrname pconnid f~fldate
    INTO CORRESPONDING FIELDS OF TABLE itab
    FROM ( ( scarr AS c
    INNER JOIN spfli AS p ON pcarrid = ccarrid
    AND p~cityfrom = p_cityfr
    AND p~cityto = p_cityto )
    INNER JOIN sflight AS f ON fcarrid = pcarrid
    AND fconnid = pconnid ).
    LOOP AT itab INTO wa.
    WRITE: / wa-fldate, wa-carrname, wa-connid.
    ENDLOOP.
    Example
    Join the columns carrid, carrname and connid of the database tables scarr and spfli using an outer join. The column connid is set to the null value for all flights that do not fly from p_cityfr. This null value is then converted to the appropriate initial value when it is transferred to the assigned data object. The LOOP returns all airlines that do not fly from p_cityfr.
    PARAMETERS p_cityfr TYPE spfli-cityfrom.
    DATA: BEGIN OF wa,
    carrid TYPE scarr-carrid,
    carrname TYPE scarr-carrname,
    connid TYPE spfli-connid,
    END OF wa,
    itab LIKE SORTED TABLE OF wa
    WITH NON-UNIQUE KEY carrid.
    SELECT scarrid scarrname p~connid
    INTO CORRESPONDING FIELDS OF TABLE itab
    FROM scarr AS s
    LEFT OUTER JOIN spfli AS p ON scarrid = pcarrid
    AND p~cityfrom = p_cityfr.
    LOOP AT itab INTO wa.
    IF wa-connid = '0000'.
    WRITE: / wa-carrid, wa-carrname.
    ENDIF.
    ENDLOOP.

  • How to print two tables adjacent to each other?

    Hi,
    Scenario
    I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
    Requirement
    The two tables need to be printed adjacent to each other.
    Approach followed until now
    1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
    2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

    Dear Andres,
    I tried as per you suggestion and it works fine. Thanks a lot.
    Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
    As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
    Final table structure:
    Column1      Column2(Table)             Blank             Column3          Column4(Table)
    Settings maintained:
    I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
    The settings for Column 2 & 4 (tables) are maintained as:
    1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
    2. The body row is 'Flowed' with direction 'Western Text'
    (The Border 'Edges' for the tables, columns is maintained as 'None')
    Issue:
    The sample data has around 10 entries in the (final)  table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

  • How to comapare two tables data difference

    Hi all,
    Can any one tell me how to compare two tables data of two different data bases .
    Table names are same in both databases.
    Thanks You
    Regards,
    P Prakash

    833560 wrote:
    I don't have privilege to create data base link ,If the database has no link so that you can query the the data, you have two options.
    Find someone with the privilege to create the link and write a query like this
    Re: Efficient way to comapre two tables.
    Which as I mention may not be quick,
    Kindly tell me some other way .But will be quicker than your other option which is to dump the data into two spreadsheets and start reading.

  • HT4859 My two iPhones are not sync'd identically from the iCloud ...  Why?

    My two iPhones are not syncing identically from the iCloud .... Anybody know why?

    What isn't the same?

  • How to update two tables with trigger

    Hi:
    how to update two tables with trigger ?
    I have two tables :
    (1)ASIA
    MI number;
    (2)ASIA_P
    ID number;
    When I insert a new value into the asia.MI ,I also can
    insert the same value into the asia_p.id field.
    I have write a trigger as follows but it does't work.
    create or replace trigger MI_TRG
    before insert on asia
    for each row
    declare
    seq number;
    begin
    select MI_SEQ.Nextval into seq from dual;
    :new.MI:=seq;
    insert into ASIA_PRO(MI_ID)
    values
    (seq);
    end MI_TRG;
    How to realize it ?
    thanks
    zzm

    Why do you say it does not work?

  • How to make two tables from one single taable

    Hi,
    i have one table with 100 records and i want to create two tables each with 50 records and with no duplicates. if i will do on bases on empno then i have to check the min and max emp no and then divide them in two tables, is there any automate way of performing this task.
    Regards,
    Abida

    Hi,
    A rather quick and dirty solution, but definitely works.
    I used the HR sample schema (employees table) for this.
    hsaprd@706447>create table tab1 as select * from employees where rownum <51;
    Table created.
    hsaprd@706447>select count(*) from tab1;
    COUNT(*)
    50
    hsaprd@706447>create table tab2 as select * from employees where employee_id nnot in (select employee_id from tab1);
    Table created.
    hsaprd@706447>select count(*) from tab2;
    COUNT(*)
    56
    hsaprd@706447>
    Hope this helps!
    -Anand

  • I am not able to sync my outlook contacts with my iphone (both ways) noting that the calendar and notes are suncing perfectly (both ways)?

    I am not able to sync my outlook contacts with my iphone (both ways) noting that the calendar and notes are suncing perfectly (both ways)?

    You cannot sync Outlook 2011 directly with an iPhone, but if you go to the Tools menu and choose Sync Services, you can have Outlook sync with iCal and Address Book, which will then sync with the iPhone. And if your business is using Microsoft Exchange, you can set the iPhone up to communicate and sync directly with the Exchange server.
    Regards.

  • Cannot Sync my new contacts from I phone 4s to outlook but can sync a new contact from outlook 2010 to iphone. I could earlier sync both ways

    Cannot Sync my new contacts from I phone 4s to outlook but can sync a new contact from outlook 2010 to iphone.
    I could earlier sync both ways
    what could the problem be

    If your iMac is running 10.9, with contacts and calednar, Maverick is designed to sync those through the icloud
    http://support.apple.com/kb/PH12117
    " If you use OS X Mavericks v.10.9 or later, your contacts, calendars, and other info are updated on your computers and iOS devices via iCloud."

  • How to join two tables and get the supply delivery date next to order?

    So there are two tables. One has customer's order no, ordered date, order quantity, available quantity and code of article-
    The other table comes form supply side where we have supply order no, article number, ordered qty, and delivery date.
    We keep stock so this can not be MOT (made to order) system.
    What i need is correct date of arrival to appear next to cusotmers spoecirfic order. The older cusotmers order get's the parts first, second oldest order is next in line etc.
    here is any example
    customer's order
    ref order
    art. code
    ordered qty
    available qty
    order date
    1809202491
    700497
    60
    0
    3.7.2014
    1809200528
    700497
    13
    0
    20.6.2014
    1809198640
    700497
    7
    0
    9.6.2014
    supply order
    supply order
    art. code
    qty orderd
    date of arrival
    4501243378
    700497
    50
    4.8.2014
    4501263437
    700497
    20
    6.10.2014
    There is actually a 3rd "table" and that sort of connects the two and that is stock on hand per art. code.
    The main issue is that stock is assigned to purchase orders only when it actually arrives in the warehouse.
    A human can easilly connect the dates of when the stock will arrive and quantities with correct customer's order. In this case the firts order will get 50 pcs in August while 10 pcs will remain on backorders. The missing 10 pcs Will arrive in October. The second order will get 10 pcs in october and 3 will remain on backorders with no delivery date. While the third customer orders does not have a delivery date.
    So how to make the SAP do this calculations and display the arrival date next to date of customer's order?

    I checked the instructions as i do not have access to this part. It seem this is a query. We had issues with queries in the past as not all codes from orders would appear in them. They never found the reason why that is happening.
    However, I think the main issue is that the information here is not connected and is separately provided for supply and for sales. So i doubt it can be connected in this query.
    edit: as you can see the only connection is stock on hand.
    and total number of various items we have is close to 100.000 of various article codes.

  • Change Data Capture How to Tell which you are running Sync or Asyn

    Hi ,
    I am taking over a new system that has change data capture running, but Im really confused how this is running. Most of the CDC is set up using Sync(triggers), but I have about 5 tables that DO NOT have system generated triggers on them. I know Streams is NOT running/configured. I know Capture is not running/configured (because nothing in DBA_CAPTURE table). I can tell that these 5 tables are still getting updated in the change table schema. I can not figure out how the 5 tables that DO NOT have triggers on them are updating the change data set tables.
    I had thought the the 5 tables, must be configured with HOTLOG, but when I look at the CHANGE_SETS table they all (including these 5 tables) are set to CHANGE SOURCE NAME = SYNC SOUCE. I would expected that to be HOTLOG_SOURCE. So I "assume" they aren't set up using Asnc. hot log mode. So maybe the other Async modes are used, but not pushed to another database? Is that possible?
    Any other ideas on how to figure out how the CDC is set up for these 5 tables?
    thanks for your help.

    Thanks for the reply, but I think I must have not stated the problem clearly. I dont WANT to set the source I want to figure out how this CDC is working. I see ALL the sources are currently set to SYNC_SOURCE. Almost all of the tables are set up with system triggers on them, but 5 dont have system triggers, yet the source says SYNC_SOURCE. I did validate that the change tables are getting updated for these tables. my question is how are they getting updated? I "assume" since they dont have system triggers ont eh table they aren't synchoronus cdc (like the other tables are). yet the source says SYNC_SOURCE. What am I missing? How can I tell if the redo log is populating those changes tables? Im pretty sure it is (Becuase there aren't triggers or jobs running), but Im curious if there is a way to tell for sure.
    Thanks,

Maybe you are looking for

  • Severe overheating of 17" MacBook Pro (2009) with 3.06 GHz processor

    For around a year and a half I have been dealing with a computer that constantly overheats very quickly, presumably because I ordered a 3.06 GHz Intel Core 2 Duo CPU for my 17" MacBook Pro without realizing that it would make the surface of the compu

  • Deleted videos or photos do not appear in iPhoto trash, Deleted videos or photos do not appear in iPhoto trash

    Hello, I'm trying to free up space on my MacBook Air by deleting videos & photos, but when I attempt to do so, the supposed deleted items do not appear in the iPhoto trash.  Even if I drag to the trashcan in the list.  What am I doing wrong?  I delet

  • Gmail vs. MobileMe for IMAP

    I'm thinking about canceling my MobileMe account. The only features I really use are iDisk and email/calendar/contacts sync. I'm using Dropbox now instead of iDisk (much faster), and Spanning Sync to keep my Google calendar and contacts in sync. That

  • Export layers to files change from index color?

    Hello, can someone tell me how to change it where when I run the Export files to layers script in CS4 my pngs are saved as RGB instead of index color?  My original PSD that I am running the script on is RGB and it's driving me crazy that it's saving

  • Can't just install 6.0, must first install 4.8, then upgrade

    HI, Anyone else had this? I did a clean install of XP and installed 6.0 (thank goodness I have all install files since 4.7). However, though it installed okay, it left me with the problem of QT playing mp3 samples on websites, though I had all settin