<?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: Re-build database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849259#M4880102</link>
    <description>&lt;P&gt;Well, usually DBUNLOAD -ac -d can be used to unload into an existing database with identical schema in one go, however when building a new consolidated from a bunch of SQL Remotes I see several issues:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I don't know how SQL Remote-specific values (i.e. the contents of the according system tables or the "max_identity" values for GLOBAL AUTOINCREMENTS) are handled here.&lt;/LI&gt;
&lt;LI&gt;Unless your remotes do contain fully different data sets each, you will have problems with duplicate data when simply reloading from all remotes: If a row has been shared between more than one remote, the unload from the second remote and the underlying LOAD TABLE will fail with a duplicate key violation.&lt;/LI&gt;
&lt;LI&gt;Statistics etc. may be wrong.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Just a few thoughts. Sorry, I do assume you are not only stressed but somewhat running out of time, so I hope the real SQL Remote experts like Reg have time to help you further.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 05:56:46 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2018-11-05T05:56:46Z</dc:date>
    <item>
      <title>Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaq-p/13849256</link>
      <description>&lt;P&gt;We have an issue with our main consolidated database which means we need to re-build it from the remote sites data and then re-extract the remote sites.&lt;/P&gt;
&lt;P&gt;I plan to copy over the remote site db's to our consolidated server. Then unload and reload them into the new copy of the consolidated db . Mu question is can this be done in one operation ? Or can I run a command to unload the remote DB data and then load it into to new copy of the consolidated DB ?&lt;/P&gt;
&lt;P&gt;Also will I need to copy the log files from the remote site to complete this operation ?&lt;/P&gt;
&lt;P&gt;Many thanks from a stressed guy !&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 04:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaq-p/13849256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T04:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849257#M4880100</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;We have an issue with our main consolidated database which means we need to re-build it &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just to clarify: You cannot restore from a backup of the consolidated and then "just re-apply" missing changes/messages from remotes that have sync'ed/replicated in between?&lt;/P&gt;
&lt;P&gt;Is that a SQL Remote or MobiLink setup?&lt;/P&gt;
&lt;P&gt;Note, I have no "quick" answer to your rebuilt plans...&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 04:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849257#M4880100</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-05T04:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849258#M4880101</link>
      <description>&lt;P&gt;Yes, that's correct. I have to rebuild consolidated from remote site DB's
(we have SQL Remote)&lt;/P&gt;
&lt;P&gt;My plan was to stop remote site DB, copy remote site DB over to CONSOL server.
Then unload remote site DB into data file.
Load this datafile into CONSOL DB.
Extract remote site USER DB, copy over to remote site then start. This should then begin replicating.&lt;/P&gt;
&lt;P&gt;I wanted to know if there was a way of unloading remote site DB and then load data into CONSOL in one hit ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Mark (still stressed !)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 05:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849258#M4880101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T05:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849259#M4880102</link>
      <description>&lt;P&gt;Well, usually DBUNLOAD -ac -d can be used to unload into an existing database with identical schema in one go, however when building a new consolidated from a bunch of SQL Remotes I see several issues:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I don't know how SQL Remote-specific values (i.e. the contents of the according system tables or the "max_identity" values for GLOBAL AUTOINCREMENTS) are handled here.&lt;/LI&gt;
&lt;LI&gt;Unless your remotes do contain fully different data sets each, you will have problems with duplicate data when simply reloading from all remotes: If a row has been shared between more than one remote, the unload from the second remote and the underlying LOAD TABLE will fail with a duplicate key violation.&lt;/LI&gt;
&lt;LI&gt;Statistics etc. may be wrong.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Just a few thoughts. Sorry, I do assume you are not only stressed but somewhat running out of time, so I hope the real SQL Remote experts like Reg have time to help you further.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 05:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849259#M4880102</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-05T05:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849260#M4880103</link>
      <description>&lt;P&gt;Each remote DB has unique data and key's so shouldn't be too much of a problem. &lt;/P&gt;
&lt;P&gt;I presume any record that has a autoincrement value will keep the value from the original store data ?&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 06:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849260#M4880103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849261#M4880104</link>
      <description>&lt;P&gt;Also, do I need to bring the LOG files across from the remote sites ? (some of them are very large and take time to copy) - can I just run the DB on it's own with no log file while I unload/reload ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 06:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849261#M4880104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T06:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849262#M4880105</link>
      <description>&lt;P&gt;When you are sure that these remotes must be re-extracted, you can cleanly shut them down and just copy and use the .db files to rebuild your consolidated.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 06:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849262#M4880105</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-05T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849263#M4880106</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I presume any record that has a autoincrement value will keep the value from the original store data ?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, as these rows have already got their autoincrement value, that value will be kept. (Aside: DBUNLOAD uses LOAD TABLE with the default clause DEFAULTS OFF, so a new default value would not be set even if the according column would be missing within the optional LOAD TABLE column list.)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 06:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849263#M4880106</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-05T06:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849264#M4880107</link>
      <description>&lt;P&gt;Okay, I'm just about to run some tests on some copies to see if it works ok.&lt;/P&gt;
&lt;P&gt;Thanks
Mark (little less stressed 90% !)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 06:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849264#M4880107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T06:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849265#M4880108</link>
      <description>&lt;P&gt;I presume I can run the new version on the consolidated with DBEng so no one can connect to it while we re-build ?&lt;/P&gt;
&lt;P&gt;Can i just delete the old log files before we start re-build ?&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849265#M4880108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T07:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849266#M4880109</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;so no one can connect to it &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No one except from the same machine...&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Can i just delete the old log files before we start re-build ?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What files do you mean?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849266#M4880109</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-05T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849267#M4880110</link>
      <description>&lt;P&gt;The old consolidated .log files&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849267#M4880110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-05T08:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849268#M4880111</link>
      <description>&lt;P&gt;Well, if you build a new consolidated database, it will have its own series of transaction logs and won't be able to use older logs, so for replication purposes they are no longer needed.&lt;/P&gt;
&lt;P&gt;However, in case your consolidated is not just a collector of remote data but does also have "its own data", you might check whether the old logs contain data that is not yet part of your new consolidated. For that purpose you might translate the old logs (possibly with the DBTRAN "-is Local" option) to check whether there are usable DML statements to run against the new database.&lt;/P&gt;
&lt;P&gt;That being said, I would generally not immediately delete old logs but move them to a secure place, just in case...&lt;/P&gt;
&lt;P&gt;Just my two cents, anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 03:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849268#M4880111</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-06T03:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849269#M4880112</link>
      <description>&lt;P&gt;Hi Volker&lt;/P&gt;
&lt;P&gt;I have extracted first remote site and at remote site when I try to connect it comes up with message below ? We extracted the DB on a 17.0.7.3390 build - the remote site is 17.0.9.4803 ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;[SAP][ODBC Driver][SQL Anywhere]Unable to start specified database: Server must be upgraded to start database C:\\sdata\\store08.db
    SQLCODE=-934
    SQLSTATE=08001&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 08:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849269#M4880112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-06T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849270#M4880113</link>
      <description>&lt;P&gt;Hm, I would ask that as a new question... &lt;/P&gt;
&lt;P&gt;FWIW, I would expect that error message under switched conditions, i.e. when the database file version is newer than the database server version.&lt;/P&gt;
&lt;P&gt;You may have a look at the SYSHISTORY entries for that database (checked on a database server that can run it, apparently:)...).&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 08:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849270#M4880113</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-06T08:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849271#M4880114</link>
      <description>&lt;P&gt;Okay, solved this, it was a PATH issue - we upgraded to 64 bit version from .0.7 -&amp;gt; .0.9. and it was still looking at the old (x86) install.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 10:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849271#M4880114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-06T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849272#M4880115</link>
      <description>&lt;P&gt;If I'm running dbeng and no one is connected can I run extract users at a level lower than 3 ?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 06:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849272#M4880115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-07T06:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849273#M4880116</link>
      <description>&lt;P&gt;Yes, isolation level 0 is sufficient if there are no connections that modify the contents of the published data during the extraction.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 08:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849273#M4880116</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-11-07T08:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849274#M4880117</link>
      <description>&lt;P&gt;Hi Volker&lt;/P&gt;
&lt;P&gt;We have now extracted all users (apart for some less urgent ones) However when I fire up the SQL Remote service on the consolidated I get an error.&lt;/P&gt;
&lt;P&gt;Not sure what to do here ? All the reloads and extractions seem to work fine and the remote sites are all working (including their SQL Remote services)&lt;/P&gt;
&lt;P&gt;HELP&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;PRE&gt;I. 2018-11-10 08:36:44. 
I. 2018-11-10 08:36:45. Scanning logs starting at offset 01178032419905
I. 2018-11-10 08:36:45. Transaction log "c:/sdata_log/consol.log" starts at offset 01178199173531
I. 2018-11-10 08:36:45. Processing transaction logs from directory "c:\\sdata_log"
I. 2018-11-10 08:36:45. Retrieving offline transaction logs through the engine from "c:/sdata_log/"
E. 2018-11-10 08:36:45. No off-line transaction log file found and on-line transaction log starts at offset 01178199173531.
I. 2018-11-10 08:36:45. We are looking for a transaction log file starting at offset 01178032419905.
I. 2018-11-10 08:36:46. Execution completed
&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Nov 2018 03:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849274#M4880117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-10T03:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re-build database</title>
      <link>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849275#M4880118</link>
      <description>&lt;P&gt;I think I have made a mistake (see post a bit further on) - I cleared the old consol db of all data, did a dbreload and then deleted the old log files by mistake. I then continued reloading data into the consolidated, then extracted all users. &lt;/P&gt;
&lt;P&gt;However when I now try and start dbremote it is giving me an error, I guess it's still  looking for the old files. Is there any way I can stop it looking for the older log files and just use the current one ? &lt;/P&gt;
&lt;P&gt;Otherwise I might have to start all over again ?&lt;/P&gt;
&lt;PRE&gt;I. 2018-11-10 08:36:44. 
I. 2018-11-10 08:36:45. Scanning logs starting at offset 01178032419905
I. 2018-11-10 08:36:45. Transaction log "c:/sdata_log/consol.log" starts at offset 01178199173531
I. 2018-11-10 08:36:45. Processing transaction logs from directory "c:\\sdata_log"
I. 2018-11-10 08:36:45. Retrieving offline transaction logs through the engine from "c:/sdata_log/"
E. 2018-11-10 08:36:45. No off-line transaction log file found and on-line transaction log starts at offset 01178199173531.
I. 2018-11-10 08:36:45. We are looking for a transaction log file starting at offset 01178032419905.
I. 2018-11-10 08:36:46. Execution completed&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Nov 2018 06:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/re-build-database/qaa-p/13849275#M4880118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-11T06:03:35Z</dc:date>
    </item>
  </channel>
</rss>

