<?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>topic Re: Max limit for ObjectId - any way of resetting it? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114738#M6537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reply. We have deleted data based on the age of the data - but no we haven't truncated it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Oracle will not allow you to reset a sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be the consequences of dropping and recreating the sequence? Could we also change the structure of the index so that it cycles rather than stop once it gets to 2^32.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Before we can suggest viable options, you need to describe that table -- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Is it versioned? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Part of a topology? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; What are the min, max, and mean objectid values? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure about the min. I think an overflow was being reported (i.e. -2^32-1). The max value was 2^32 -1. Not sure about the mean objectid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; How many features in the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Around 200 million.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 20:35:45 GMT</pubDate>
    <dc:creator>JonSmith1</dc:creator>
    <dc:date>2011-10-05T20:35:45Z</dc:date>
    <item>
      <title>Max limit for ObjectId - any way of resetting it?</title>
      <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114736#M6535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an old database (oracle 10) using arcsde 9.2 and it has stopped allowing rows to be inserted. On inspection I have noticed that that objectid field is at 2^32 -1 limit. Is there a way of resetting the objectid (or the respective sequence) back? Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 09:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114736#M6535</guid>
      <dc:creator>JonSmith1</dc:creator>
      <dc:date>2011-10-05T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Max limit for ObjectId - any way of resetting it?</title>
      <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114737#M6536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You had two billion features pass through without ever once truncating the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oracle will not allow you to reset a sequence.&amp;nbsp; Before we can suggest viable options,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to describe that table -- Is it versioned?&amp;nbsp; Part of a topology?&amp;nbsp; What operations&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;occur?&amp;nbsp; What are the min, max, and mean objectid values?&amp;nbsp; How many features in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114737#M6536</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-10-05T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Max limit for ObjectId - any way of resetting it?</title>
      <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114738#M6537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reply. We have deleted data based on the age of the data - but no we haven't truncated it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Oracle will not allow you to reset a sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be the consequences of dropping and recreating the sequence? Could we also change the structure of the index so that it cycles rather than stop once it gets to 2^32.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Before we can suggest viable options, you need to describe that table -- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Is it versioned? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Part of a topology? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; What are the min, max, and mean objectid values? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure about the min. I think an overflow was being reported (i.e. -2^32-1). The max value was 2^32 -1. Not sure about the mean objectid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; How many features in the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Around 200 million.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 20:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114738#M6537</guid>
      <dc:creator>JonSmith1</dc:creator>
      <dc:date>2011-10-05T20:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Max limit for ObjectId - any way of resetting it?</title>
      <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114739#M6538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The main problem with drop-and-replace on the sequence is that the sequence reader is probably&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;going to use MAX(objectid) to trash your effort.&amp;nbsp; 200M features is a lot of features to reload, so you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;might look at creating a NEWIDS table that pairs the orginal OBJECTID with "rownum as new_oid", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then UPDATE using that driver table.&amp;nbsp; THEN you can replace the sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the future, you might consider using partitions to manage the aging process, with LOCAL indexes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to keep them valid when you lop off the aged out fragment (the "delete" is instantanous, and you can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;organize the temporal chunks to reduce spatial fragmentation and swap partitions instantaneously&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as well -- nothing quite like a highly performanant very large table!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: The limit on a 32-bit integer is 2^31-1 -- -2^31 is the signed minimum and 2^32-1 is the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned maximum.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 23:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114739#M6538</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-10-05T23:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Max limit for ObjectId - any way of resetting it?</title>
      <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114740#M6539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vangelo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;gt;&amp;nbsp;&amp;nbsp; The main problem with drop-and-replace on the sequence is that the sequence reader is probably&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; going to use MAX(objectid) to trash your effort. 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Damn. I was hoping it wouldn't do something like that. Oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; so you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; might look at creating a NEWIDS table that pairs the orginal OBJECTID with "rownum as new_oid",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; then UPDATE using that driver table. THEN you can replace the sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. I am pursuing this idea. My one (maybe two) follow-up question is that the table (lets call it B1) also has S1 and F1 tables dependencies with a LOCATION field&amp;nbsp; that ties the three tables together. I guessing some time in the near future the same problem that happened with the OBJECTID will also happen with the LOCATION field. So I am further guessing that the same method will apply for fixing this as well. I'm not exactly sure the sequence that applies to this field though? Is there a way of tying the sequence to the field that it affects?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For the future, you might consider using partitions to manage the aging process, with LOCAL indexes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to keep them valid when you lop off the aged out fragment (the "delete" is instantanous, and you can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; organize the temporal chunks to reduce spatial fragmentation and swap partitions instantaneously&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; as well -- nothing quite like a highly performanant very large table!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heh. This was going to be the last item I was going to be working on for the project but then the customers thought it was in a good enough state as it was and decided to stop the project before I got around to working through how this was done. Well that was several years ago - I did say it was quite an old system. &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/images/icons/icon10.png"&gt;http://forums.arcgis.com/images/icons/icon10.png&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I wasn't sure how to handle the two tables (F1 and S1) that came off of it in Oracle 10g. I will raise that question in another post though as I'd be interested to know how this could be handled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 11:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114740#M6539</guid>
      <dc:creator>JonSmith1</dc:creator>
      <dc:date>2011-10-10T11:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Max limit for ObjectId - any way of resetting it?</title>
      <link>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114741#M6540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use the same procedure for hacking the SHAPE and FID columns in the business and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Fn' tables in an SDELOB storage layer (Sn could be fixed by placing the layer in LOAD_ONLY I/O &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mode), but this is much riskier.&amp;nbsp; You might be better off reloading the table with ST_GEOMETRY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;storage (which would eliminate the Fn/Sn issue) -- some of my colleagues used 'asc2sde' to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load a 340 million row table in only 22 hours, so the reload in the new format might take less &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;than a day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 12:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/max-limit-for-objectid-any-way-of-resetting-it/m-p/114741#M6540</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-10-10T12:30:51Z</dc:date>
    </item>
  </channel>
</rss>

