Oracle Streams Update conflict handler not working

Hello,
I've been working on the Oracle streams and this time we've to come up with Update conflict handler.
We are using Oracle 11g on Solaris10 env.
So far, we have implemented bi-directional Oracle Streams Replication and it is working fine.
Now, when i try to implement Update conflict handler - it executed successfully but it is not fulfilling the desired functionality.
Here are the steps i performed:
Steap -1:
create table test73 (first_name varchar2(20),last_name varchar2(20), salary number(7));
ALTER TABLE jas23.test73 ADD (time TIMESTAMP WITH TIME ZONE);
insert into jas23.test73 values ('gugg','qwer',2000,SYSTIMESTAMP);
insert into jas23.test73 values ('papa','sdds',2050,SYSTIMESTAMP);
insert into jas23.test73 values ('jaja','xzxc',2075,SYSTIMESTAMP);
insert into jas23.test73 values ('kaka','cvdxx',2095,SYSTIMESTAMP);
insert into jas23.test73 values ('mama','rfgy',1900,SYSTIMESTAMP);
insert into jas23.test73 values ('tata','jaja',1950,SYSTIMESTAMP);
commit;
Step-2:
conn to strmadmin/strmadmin to server1:
SQL> ALTER TABLE jas23.test73 ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
Step-3
SQL>
DECLARE
cols DBMS_UTILITY.NAME_ARRAY;
BEGIN
cols(1) := 'first_name';
cols(2) := 'last_name';
cols(3) := 'salary';
cols(4) := 'time';
DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
object_name => 'jas23.test73',
method_name => 'MAXIMUM',
resolution_column => 'time',
column_list => cols);
END;
Step-4
conn to strmadmin/strmadmin to server2
SQL>
DECLARE
cols DBMS_UTILITY.NAME_ARRAY;
BEGIN
cols(1) := 'first_name';
cols(2) := 'last_name';
cols(3) := 'salary';
cols(4) := 'time';
DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
object_name => 'jas23.test73',
method_name => 'MAXIMUM',
resolution_column => 'time',
column_list => cols);
END;
Step-5
And now, if i try to update the value of salary, then it is not getting handled by update conflict handler.
update jas23.test73 set salary = 1500,time=SYSTIMESTAMP where first_name='papa'; --server1
update jas23.test73 set salary = 2500,time=SYSTIMESTAMP where first_name='papa'; --server2
commit; --server1
commit; --server2
Note: Both the servers are into different timezone (i hope it wont be any problem)
Now, after performing all these steps - the data is not same at both sites.
Error(DBA_APPLY_ERROR) -
ORA-26787: The row with key ("FIRST_NAME", "LAST_NAME", "SALARY", "TIME") = (papa, sdds, 2000, 23-DEC-10 05.46.18.994233000 PM +00:00) does not exist in ta
ble JAS23.TEST73
ORA-01403: no data found
Please help.
Thanks.
Edited by: gags on Dec 23, 2010 12:30 PM

Hi,
When i tried to do it on Server-2:
SQL> ALTER TABLE jas23.test73 ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
it throws me an error,
Error -
ERROR at line 1:
ORA-32588: supplemental logging attribute all column exists

Similar Messages

  • Oracle Replication update conflict handler creating notifications

    Hi All,
    I want to use an update conflict handler that overwrites the records in the destination database, while notifying the dba about the conflict by creating a log entry to a log file (alert log or other custom log file).
    I know that I can use prebuilt overwrite update conflict handler to overwrite the conflicting record. As far as I know there is no way to create a log entry using this prebuilt conflict handlers.
    Is there a way to create a log entry via prebuilt conflict handlers?
    Or else I can use pl/sql to create a log entry and a pl/sql can be used as conflict handler.
    But how can I create a pl/sql overwrite conflict handler?
    Thank you,
    Sasika.

    You must create your own update conflict handler.
    Conflict handler is a PL/SQL procedure (usually in package). For given conflict type is defined what parameters this procedure must have.
    And in procedure you simply put locig you need:
    1/ write a log entry
    2/ update (overwrite) data in table

  • Air Stream 1200 USB modem not work in yosemite

    my Air Stream 1200 USB modem not work in yosemite but it work in Windows pc.

    May be there is an update available. Contact Air Stream.

  • After doing a widows update itunes will not work at all

    after doing a widows update itunes will not work at all

    hiya!
    I get the itunes has encounterd a problem and needs to close, sorry for the inconvenience error, no specific error number. I do not have QT installed,
    not having QT installed is what will be causing your itunes error message at the moment. let's try a careful standalone QT 7.1 install.
    download and save a copy of the QT 7.1 standalone installer to your hard drive. (we'll run the install from there rather than online.) switch off antivirus and antispyware applications prior to the install.
    Quicktime 7.1 Standalone Installer
    if that install goes through okay, does your itunes launch properly again?
    (if you get an error message on the QT standalone reinstall, let us know what it says. include error message numbers if you're getting any.)
    love, b

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Update Panel is not working browsers other than IE

    In SharePoint 2013, Update Panel is not working for firefox, chrome etc.

    Hi,
    From your description, my understanding is that you use
    <asp:UpdatePanel>tag in your code, but it does not work well in browsers except
    IE.
    I have test
    <asp:UpdatePanel>tag with code below, and it works well in IE, chrome, Firefox
    as the screenshot.
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
    <ContentTemplate>
    <asp:Label ID="lbl" runat="server" Text="Loaded" Visible="true"></asp:Label>
    <asp:Button ID="btn" runat="server" OnClick="btn_Click"/>
    </ContentTemplate>
    </asp:UpdatePanel>
    protected void btn_Click(object sender, EventArgs e)
    lbl.Text = "BUTTON CLICKED !";
    lbl.Visible = true;
    The screenshot below is my result(the first is result in Chrome, second is in Firefox and last is in IE):
    And you also could refer to this article:
    http://sharepoint.stackexchange.com/questions/72928/update-panel-not-working-in-firefox-2013
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Update debugger is not working

    Hi All,
    My problem is "Update debugger is not working" is not working.
    In VA02,  I am creating a EDI output type, before saving it i am going into debug mode activating the 'Update Debugger'.
    But after that a message is coming as 'Update debugging has been triggered' but debugger screen is not coming up.
    Please let me if you have inputs on this.
    Thanks
    Satyamkumar Jha

    >
    Satyamkumar Jha wrote:
    > Hi Saravraj ,
    >
    > Even if 1 session is opened then also it is not going for update debugging.
    >
    > Thanks
    > Satyam
    Did you check if a COMMIT statement is getting triggered(you can do that by placing a break point in the debugger at the statement COMMIT)? Click on F5 once the control reaches COMMIT statment and wait for a new session to
    get opened for debugging.
    Not sure, about the debugger that you are using(classical/New),  lately, I have faced issues with update debugging while using new debugger, it would be a good idea to cross-check in classical debugger.
    -Rajesh.

  • HT4972 My ipad 1 is stuck on IOS 4 as the IOS 5 update instructions do not work. When I use itunes update the software looks for an update file and the apple site doesn't have one!

    My ipad 1 is stuck on IOS 4 as these IOS 5 update instructions do not work. When I use itunes update the software looks for an IOS 5 software update file and the apple site doesn't seem have one anywhere!

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • After doing last Mavericks update, Messages is not working properly

    Since yesterday, after doing last Mavericks update, Messages is not working properly - the Dock icon is not bouncing nor showing any number for new messages. Very annoying, since I usually have Messages on background while working and I now i don't realize if people is chatting me unless I open the messages wondows.

    Hi,
    Check System Preferences > Notification is set for Messages
    In Messages > Preferences > General Section change the Sound option for Message Received.
    Restart the app and test this sound is (still) playing.
    Place app in background an iMessages "yourself" form your iPhone.
    Does the sound Play ?
    10:18 pm      Wednesday; November 13, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How do I uninstall the iPhoto update which does not work on maverick?

    How do I uninstall the iphoto update which does not work. ie it tells me my library is locked out and the recommended action by apple does not open the phot library first aid. ? i need to go back to the old iphoto.

    Terence, I was trying a way to message you directly - jumping on a recent thread seemed to be the only way (sorry, DEW45). 
    Terence, you seem to be the foremost expert on apeture and iphoto and have helped me many times in the past (thanks).  I have a question that you may be able to help with (anyone also feel free to take a stab).  I use blogger to upload my photos and host my blog (www.sippingespresso.com).  I spend hours organzing and editing photos - namely, I will enhance and sometimes alter an image in Apeture.  It always saves over the orginal file (at least for viewing purposes), which is fine by me.  But then when I go to upload the photos onto blogger it seems to always pull my dull, original image.  Obviously, I want the newer, bright, enhanced photo.
    I'm one step away from importing them, dragging them out of iphoto and into Photoshop, then editing the files and dragging them back into iphoto, deleting the originals and uploading from there.  There HAS to be a better way - please help!!  I've already posted far too many boring images without the beauty of Apeture's "auto enhance".
    Thanks in advance, Terence or anyone else. 

  • App store, Safari, software updates, icloud, do not work in Mavericks 10.9 using a proxy server

    App store, Safari, software updates, icloud, do not work in Mavericks 10.9. these problems are interrelated I am sure. Apple apps were working fine in 10.8.5 I could do software updates through a proxy server using password authentication. I reinstalled a new system 10.9 on another partition and it won't let me use Safari or update software using a proxy server. Firefox works fine (I am using it to post). I am very disappointed that this wasn not fully tested BEFORE releasing Mavericks. Any solutions would be greatly appreciated.

    I had this problem myself.
    Checked the system log with Console, and I found the entry:-
    Nov 11 11:16:41 teds-new-mac.ad.mycompany.co.uk ocspd[537]: Authentication challenge received for "10.203.39.212:8080", unable to obtain proxy server credential from System keychain.
    For some unknown reason, Mavericks seems to be looking in the System keychain, when these credentials are actually held in the Login keychain.
    So, I tried "Copy & Paste"  - copying the https user name & password from the Login keychain and pasting into the System keychain, which worked but it's not quite as straightforward as I initially thought.
    Pasting into the System Keychain was, I found a not-very-intuitive process:
    Having opened your Login Keychain, click once on the item to be copied and when it's highlighted, select "Copy" from the Edit menu or, of course, cmd+c.
    Select the System Keychain:- DO NOT CLICK THE PADLOCK IN THE TOP LEFT TO UNLOCK IT.
    From the Edit menu, select "Paste" or cmd+v.
    You will then get a dialogue box,, enter your administrator's password and select "Modify Keychain" or just hit return, as it's the default entry.
    I found a restart was in order before it recognised everything and would accept https pages without alert boxes, but YMMV.
    Funnily enough - and this is where it seems counter-intuitive, if you do click on the padlock and unlock the System Keychain, "Paste" is greyed out in the Edit menu and cmd+v has no effect.
    Exactly the opposite to what I'd expect..

  • HT4623 how to update to ios 6.1 when my update software is not working

    I have iPhone 4s how to update to ios 6.1 when my update software is not working when I click software updates the gear is turning and there is a message downloading and estimating time remaining but I stays like that for two days now nothing is happening what can I do?

    MICHAEL MI IPOD ES 4 Y TAMBIEN QUIERO DESCARGAR IO7 PERO ME MARCA ITUNES QUE EL IO7 ES UN BETTA Y EL 21 DE SEP ITUNES BUSCARA UNA ACTUALIZACIO DE SOFTWARE DE IOS Y EL QUE SIGUE ES EL 6.1.3 Y LUEGO EL 7.0 DESPUES EL IOS X Y DESPUES EL IOS 7.1.2 MI DUDA ES CON CUAL SE VA ACTUALIZAR MI IPOD4 EL 21 DE SEPTIEMBRE

  • Looks like updates via the App. store update option is not working again. Comments?

    Looks like updates via the App. store update option is not working again. Comments?

    There are a number of other threads from people reporting a problem with a blank Updates tab in the App Store app - it looks like there is a problem at Apple's end which they need to fix.
    Some posts are suggesting that you if you go into the Purchased tab in the App Store app you might be able to update the apps from there, though you will need to scroll through the list to find those with updates and individually update them.

  • PDF Preview Handler Not Working in Outlook 2010

    I have Win 7 Home Premium 64-bit and Outlook 2010.
    Everything was working fine, until a few months ago when the PDF Preview Handler stopped working. I got the typical message that others were having with the issue with Adobe Reader 9. I have Adobe Acrobat X Pro and have also used Adobe Reader X. I have tried the little registry fix app that is supposed to fix this issue, but it states that my registry is already correct. Has anyone found a resolution for this issue with Acrobat X and Outlook 2010? As a workaround I am using the Foxit PDF Preview Handler, but I have to reinstall it everytime Adobe Reader or Acrobat is udpated as for some reason Outlook then reverts back to the PDF Preview Handler, which is not working.
    Thanks,
    Merg

    Nope, using 32-bit. And I recently uninstalled Acrobat Pro completely and reinstalled it due to an issue with it not updating due to having the "Error Applying Transforms" issue. After I reinstalled, I updated it completely. I suppose I can try uninstalling and reinstalling again, but that seems like overkill.
    - Merg

  • ADF Custom error handler not working.

    Hi All,
    i am using jdev version 11.1.1.5.0. i have created one custom error handler class in model layer which extend DcErrorHandlerImpl class.
    and do the entry in Databinding.cpx file
    *<Application ErrorHandlerClass="mypackage.classname"/>*
    i have override getDisplayMessage(BindingContext ctx, Exception ex) method to show SQL Exception which comes from database table trigger.
    code is following-
    package com.in.jagran.view.services;
        import java.sql.SQLException;
        import oracle.adf.model.BindingContext;
        import oracle.adf.model.binding.DCErrorHandlerImpl;
        import oracle.jbo.JboException;
        public class AclasErrorHandler extends DCErrorHandlerImpl {
          public AclasErrorHandler(boolean setToThrow) {
            super(setToThrow);
            System.out.println("Inside Error Handler class");
          public AclasErrorHandler() {
              super(true);
           // this(true);
           * Returns the message that will be reported to JSF for each error that occurs.
           * Returning "null" is the way the custom error handler signals that a given exception
           * should not be reported to the client.
          @Override
          public String getDisplayMessage(BindingContext ctx, Exception ex)
            if (ex instanceof oracle.jbo.ValidationException) {
              return super.getDisplayMessage(ctx, ex);
            else {
              // Extract and return the error message that has to be displayed
              Exception exception = ex;
              String message = "";
              // If this exception is an instance of JboException,
              // try to find the cause by recursing over the eventual causing exceptions
              if (exception instanceof JboException)
                Throwable[] exceptionList = ((JboException)exception).getExceptions();
                while (exception instanceof JboException
                        && exceptionList != null && exceptionList.length > 0)
                  exception = (Exception)exceptionList[0];
                  if (exception instanceof JboException) {
                    exceptionList = ((JboException)exception).getExceptions();
              // *** Special processing of SQLExceptions
              if (exception instanceof SQLException) {
                message = exception.getMessage();
                // Ignore the lines in the error message that indicate the line number in the PLSQL code that the error resulted on.
                int ind = message.indexOf("ORA-06512");
                if (ind > 0)
                  message = message.substring(0, ind);
              // *** If the the reason for the JboException was data creation exception then display the message
              // of the top JboException (i.e. JBO-*****: Invalid numeric value, date format or time format)
              else if (exception instanceof NumberFormatException || exception instanceof IllegalArgumentException) {
                // Report the top exception
                message = ex.getMessage();
              // Otherwise report the message of the lowest exception in the hierarchy
              else {
                message = exception.getMessage();
              return message;
        }but it is not working for me.
    thanks in Advance.

    yes i have used dubugger.
    i have set break point to following line-
    return super.getDisplayMessage(ctx, ex);
    if (ex instanceof oracle.jbo.ValidationException) {
            return super.getDisplayMessage(ctx, ex);   
    }when atttribute validation done like i have attribute of type number and i have done the validation "must be greater than 0" now when i have given negative value control go to above line.
    and i have added following code also in handler class
            @Override
               public void reportException(DCBindingContainer dCBindingContainer,
                                           Exception exception) {
    System.out.println(exception.getMessage());
                       super.reportException(dCBindingContainer, exception);
                   }now when i have done commit operation control go to here and println statement print follwoing error on log window.
    JBO-26041: Failed to post data to database during "Rollback to Savepoint": SQL Statement "null".

Maybe you are looking for

  • Error while assigning Operating concer to Controlling Area

    Hi... while I am trying to assign operating concern to controlling area, the system is showing the following error message. Diagnosis Controlling area 7500 and operating concern 7500 have different fiscal year variants (01 and K4). However, for cost

  • External hard drive not showing in finder or disk utility

    1TB WD external hard drive is not showing in finder sidebar, destop, or disk utility. I have checked and all the preferences are ticked. The disk itself is showing a light and making a whirring sound during start up after being plugged into the power

  • Creating a Wireless Access Point

    Hey guys, My wireless router just died, my linux server has a wireless card in it and I've read that you can use this as a router - is there any documentation on how to do this? I have no clue where to start..

  • Fireworks has unexpectedly quit

    That's the message I get when i try to start Fireworks CS4. It pops up immediately and I can not even get to the splash screen. I had used Fireworks a few times when I installed it, but haven't needed it in several weeks. I have reinstalled with no l

  • Disk Utility - Verify Disk (???)

    I've got 3 Macs and the same issue is appearing on each. Observation #1 - it is not computer specific. Here's the question: In Disc Utility, if I click Verify Disk, I get the beachball - forever. I can use the Tiger install disk and it runs fine (but