<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: manipulating sysremoteusers.confirm_received in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817758#M4848601</link>
    <description>&lt;P&gt;Translating the transaction logs of Remotes and apply them on Cons. is not that easy, because some transactions from Remotes are not applied 1:1 on the Cons. (Conflict triggers, and another triggers written for our special cases, that distinguishes whether the transcation is being applied over replication or as local).&lt;/P&gt;
&lt;P&gt;My question is, when I change the value of confirm_received &amp;amp; log_received, and later I can see it changed in SYSREMOTEUSERS, how can DBREMOTE ignore my changes on confirm_received and bring it again to its last value? How can i prevent this happening?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 07:05:12 GMT</pubDate>
    <dc:creator>Baron</dc:creator>
    <dc:date>2019-12-17T07:05:12Z</dc:date>
    <item>
      <title>manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaq-p/13817755</link>
      <description>&lt;P&gt;I have an installation of 2 DBs replicating using DBRemote.&lt;/P&gt;
&lt;P&gt;I lost the productive Cons. DB, but I have a backup of before 2 days (so now Remote DB. is dated 10.12.2019 and Cons. DB is dated 08.12.2019).&lt;/P&gt;
&lt;P&gt;Now I want to use this 2 days old Cons. DB, but it misses all the transactions of Remote DB since 2 days (between 08.12.2019 - 10.12.2019).&lt;/P&gt;
&lt;P&gt;What can I do in order to enforce the remote DB to resend all the transactions up 08.12.2012 (knowing that the Remote DB. was replicating against the lost Cons. till 10.12.2019, and knowing that the transaction logs of Remote DB still has the transactions of more than 2 days ago)?&lt;/P&gt;
&lt;P&gt;I tried to manipulate the SYSREMOTEUSERS: I changed log_send, log_sent, confirm_sent values on Remote DB and set it to the values of log_receieved, confirm_received on the backup Cons. DB (i.e. -2 days), and, additionally I changed the log_received, confirm_received values on Remote DB and set it to the values of log_send, log_sent, confirm_sent on the backup Cons.&lt;/P&gt;
&lt;P&gt;When I read the table SYSREMOTEUSERS then I see all the values are correct as I want, and when I start DBREMOTE then I see that the remote DB is generating the wanted packets (between 8.12.2019 - 10.12.2019) (The amount of generated packets tell me that they contain 2 days transactions), but the problem is that DBREMOTE additionaly (and unintendently) changes the value of confirm_received (on Remote DB) to the value of 10.12.2019!&lt;/P&gt;
&lt;P&gt;In other words, after starting DBREMOTE the value of confirm_received is set back to the last value!! and I dont know from where it could remember this offset (having that I have overritten SYSREMOTEUSERS)&lt;/P&gt;
&lt;P&gt;As a result, the Cons. DB does not accept those generated packets, because the confirmation offset is bigger than its current offset (the error message says, packets dont belong me!!).&lt;/P&gt;
&lt;P&gt;I know that manipulating SYSREMOTEUSERS is not documented, but how is considered to solve such situations? (Replicated against backed up cons.).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 05:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaq-p/13817755</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-17T05:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817757#M4848600</link>
      <description>&lt;P&gt;The need to restore the consolidated from an old backup is always a severe problem with SQL Remote and usually will require that the remotes that have replicated after the cons's backup was taken need to be re-extracted. At least that's the way to go unless you want to mess around with SYSREMOTEUSER settings... - That's why the docs tell the consolidated logs are crucial in a SQL Remote setup...&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Before you re-extract those remotes, you could usually try to get the active translog from the remotes and DBTRANslate it to get changes that have been made there after the last replication with the cons (as of its backup) has taken place, and check the according statements and apply them at the cons, if published data is affected. That way, one would hope that remotes could be re-extracted based on their current data.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 06:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817757#M4848600</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-17T06:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817758#M4848601</link>
      <description>&lt;P&gt;Translating the transaction logs of Remotes and apply them on Cons. is not that easy, because some transactions from Remotes are not applied 1:1 on the Cons. (Conflict triggers, and another triggers written for our special cases, that distinguishes whether the transcation is being applied over replication or as local).&lt;/P&gt;
&lt;P&gt;My question is, when I change the value of confirm_received &amp;amp; log_received, and later I can see it changed in SYSREMOTEUSERS, how can DBREMOTE ignore my changes on confirm_received and bring it again to its last value? How can i prevent this happening?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 07:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817758#M4848601</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-17T07:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817759#M4848602</link>
      <description>&lt;P&gt;That's probably a question for &lt;A href="http://sqlanywhere-forum.sap.com/users/71/reg-domaratzki"&gt;@Reg&lt;/A&gt;... - I can't tell that, except to ask whether you "cleaned" the message stores so no unwanted messages from before the cons's crash are sitting somewhere?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 07:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817759#M4848602</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-17T07:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817760#M4848603</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Translating the transaction logs of Remotes and apply them on Cons. is not that easy.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nobody said it would be... Therefore log backup is so crucial for consolidated databases. Are there no incremental log backups for the last two days? (I'm aware that it would still be a problem if the remote has replicated after the last log backup and has no backup itself, but at least the amount of data to be salvaged from the remote's log should be much smaller.)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 07:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817760#M4848603</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-17T07:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817761#M4848604</link>
      <description>&lt;P&gt;Do you mean whether during starting DBREMOTE some messages are read inside Remote (from Cons.).&lt;/P&gt;
&lt;P&gt;Here I can say no, the inbox folder for the Remote (select publisher_address from sysremotetype where type_name = 'file') was empty!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 07:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817761#M4848604</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-17T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817762#M4848605</link>
      <description>&lt;P&gt;Moreover, after starting DBREMOTE, only the value of  confirm_received was changed, and the value of log_received was still the same as my manipulation.&lt;/P&gt;
&lt;P&gt;So, the value of confirm_received is restored from somewhere in DB (ISYSREMOTEUSER?)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 07:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817762#M4848605</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-17T07:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817763#M4848606</link>
      <description>&lt;P&gt;Well, I meant inboxes for both databases (and "outboxes", if these are different folders, aka if the inbox of the remote is not also the outbox of the cons).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 08:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817763#M4848606</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-17T08:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817764#M4848607</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;In other words, after starting DBREMOTE the value of confirm_received
is set back to the last value!! and I dont know from where it could 
remember this offset (having that I have overritten SYSREMOTEUSERS)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Were there messages in the message system applied by the remote database when you ran dbremote?&lt;/P&gt;
&lt;P&gt;Reg&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 08:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817764#M4848607</guid>
      <dc:creator>regdomaratzki</dc:creator>
      <dc:date>2019-12-17T08:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817765#M4848608</link>
      <description>&lt;P&gt;No, moreover, I started DBREmote with -S (only send messages)! to make sure that no messages will be applied, but only send messages.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 08:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817765#M4848608</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-17T08:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817766#M4848609</link>
      <description>&lt;P&gt;I do the following:
&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;execute &lt;B&gt;remote reset cons_user&lt;/B&gt; (on Remote).&lt;/LI&gt;
&lt;LI&gt;Then I have sysremoteusers.log_received=0 &amp;amp;&amp;amp; sysremoteusers.confirm_received=0 &amp;amp;&amp;amp; syssubscriptions.created = syssubscriptions.started = current offset of DB.&lt;/LI&gt;
&lt;LI&gt;I change the values of syssubscriptions.created &amp;amp;&amp;amp; syssubscriptions.started to its same values before executing &lt;B&gt;step 1&lt;/B&gt;.&lt;/LI&gt;
&lt;LI&gt;I change the values of sysremoteusers.log_sent = sysremoteusers.confirm_sent=X, where X is my desired values (the last offset replicated to the backed up Cons.)&lt;/LI&gt;
&lt;LI&gt;Now Sysremoteusers has the values which I want (log_sent =confirm_sent=X; log_send = log_received = confirm_received = send_count = resend_count = receive_count = rereceive_count = 0; time_received = time_sent = null).&lt;/LI&gt;
&lt;LI&gt;Now I start DBREMOTE with -S, and then it generates the messages starting from X (exactly as I want), but the only problem is that now sysremoteusers.confirm_received is changed to the value before executing &lt;B&gt;step 1&lt;/B&gt;, and of course this value is written als header in the messages, so that the remote will reject those messages!
&lt;/LI&gt;&lt;/OL&gt;
Could you please help anyhow? &lt;A href="https://sqlanywhere-forum.sap.com/users/71/reg-domaratzki"&gt; &lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/71/reg-domaratzki"&gt;&lt;/A&gt;&lt;A href="http://sqlanywhere-forum.sap.com/users/71/reg-domaratzki"&gt;@reg&lt;/A&gt; &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 05:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817766#M4848609</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-19T05:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817767#M4848610</link>
      <description>&lt;P&gt;Actually I did more, so I unloaded the database after STEP 5, and I started looking for the value of &lt;B&gt;sysremoteusers.confirm_received&lt;/B&gt;, to see where is this value saved in DB, but I didnt find it neither in the &lt;B&gt;unload.sql&lt;/B&gt; nor in the &lt;B&gt;.dat&lt;/B&gt; files?&lt;/P&gt;
&lt;P&gt;So for me is a something mysterious and very magic!!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 05:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817767#M4848610</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-19T05:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817768#M4848611</link>
      <description>&lt;P&gt;Hm, if you do not understand those values and their calculation and meaning, then I doubt it is a good idea to use undocumented functions to manipulate them...  (Note, I do not claim to understand them fully, either...)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 05:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817768#M4848611</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-19T05:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817769#M4848612</link>
      <description>&lt;P&gt;I work with SQL Remote since more than 2 years, and I think I understand the meaning of the mentioned fields but I was always watching the values to check the health of the Replication, but this is the first time I manipulate its values (I must do it to restore my system)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 05:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817769#M4848612</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-19T05:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817770#M4848613</link>
      <description>&lt;P&gt;That certainly should be contained in the reload.sql file in the context of the remote user creation...&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 06:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817770#M4848613</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-19T06:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817771#M4848614</link>
      <description>&lt;P&gt;I can't tell whether Reg has more support to offer, but in my understanding the settings of the remote's SYSREMOTEUSER table should mirror those of the consolidated's backup (with mirrored roles, apparently), particularly if you want to have the statements in the remote that have been made after the last replication before the consolidated's backup time to be replicated to the cons, again.&lt;/P&gt;
&lt;P&gt;There should neither be a need to call REMOTE RESET nor to reload the remote.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 06:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817771#M4848614</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-19T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817772#M4848615</link>
      <description>&lt;P&gt;I swear that it is not contained in reload.sql in the &lt;B&gt; Create SQL Remote definitions &lt;/B&gt; section.&lt;/P&gt;
&lt;P&gt;Should I copy the whole section here?&lt;/P&gt;
&lt;P&gt;Note, I am unloading the DB before Step 6 and after Step 5.&lt;/P&gt;
&lt;P&gt;If you mean unloading the DB after Step 6, then yes, I should drop my swear.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 06:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817772#M4848615</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-19T06:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817773#M4848616</link>
      <description>&lt;P&gt;There should be a call to the undocumented function you are dealing with, at least that's my experience when using DBUNLOAD with according options... - But as stated, you should not need to reload the remote AFAICT.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 07:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817773#M4848616</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-19T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817774#M4848617</link>
      <description>&lt;P&gt;In addition, the database property "RemoteTrunc" might interfere with your manipulations.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 07:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817774#M4848617</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-12-19T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: manipulating sysremoteusers.confirm_received</title>
      <link>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817775#M4848618</link>
      <description>&lt;P&gt;Yes, there is a call to the undocumented function, but in the value of '0' was passed to the confirm_receieved parameter.
The parameters are exactly so:&lt;/P&gt;
&lt;P&gt;( 108, 2217130948 , 2217130948,0,0,0,0,0,0);&lt;/P&gt;
&lt;P&gt;Where, 108 is the User of Cons, 2217130948 is my X, and  all other parameters are 0.&lt;/P&gt;
&lt;P&gt;Once again, the problem is that when I run DBREMOTE then sysremoteusers.confirm_received gets the value of 19142614683, and the current offset on Cons (restored copy) is something like 19120000000 (i.e. &amp;lt; 19142614683), so that the Cons. will reject any messages coming from this (manipulated) Remote.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 08:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/manipulating-sysremoteusers-confirm-received/qaa-p/13817775#M4848618</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-12-19T08:12:29Z</dc:date>
    </item>
  </channel>
</rss>

