<?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: Alternative to replication for copying features in SDE? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563718#M44088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeremy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your approach sounds good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any other data/logic tied to this feature class that also need to be brought down?&amp;nbsp; i.e, are there any relationship class, feature linked annos associated with this feature class?&amp;nbsp; If yes, then you need to account for those as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sendhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 21:12:13 GMT</pubDate>
    <dc:creator>SendhilKolandaivel</dc:creator>
    <dc:date>2013-04-08T21:12:13Z</dc:date>
    <item>
      <title>Alternative to replication for copying features in SDE?</title>
      <link>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563715#M44085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We need to replicate data from SDE 10.0 to SDE 9.2, which is not possible using replicas due to all the changes between versions 9.2 and 10.&amp;nbsp; I know of at least one case where someone is doing this very thing using Python, but I unfortunately do not have access to their script and have no idea how they're doing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, they are copying a featureclass from SDE 10 to SDE 9.2, while SDE 9.2 is running and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;also&lt;/SPAN&gt;&lt;SPAN&gt; while that featureclass is being &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;accessed&lt;/SPAN&gt;&lt;SPAN&gt; in the 9.2 SDE.&amp;nbsp; I have tried a few options to do this and always run into locks on the 9.2 featureclass since it is currently in use by other users/applications.&amp;nbsp; We pretty much need to do what a replica does:&amp;nbsp; synchronize changes (adds/deletes/modifications) in the featureclass between the two databases without having to stop the database or block access to the featureclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would you go about accomplishing this in Python?&amp;nbsp; I have searched through the geoprocessing documentation and simply cannot figure out how to do this.&amp;nbsp; All of my searches lead back to replication, but again, creating a replica that will move data from SDE 10 to SDE 9.2 is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any and all ideas would be most appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 20:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563715#M44085</guid>
      <dc:creator>JeremyRead</dc:creator>
      <dc:date>2013-04-05T20:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to replication for copying features in SDE?</title>
      <link>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563716#M44086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, well I think I've figured out &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;what&lt;/SPAN&gt;&lt;SPAN&gt; to do, but I don't know &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;how&lt;/SPAN&gt;&lt;SPAN&gt; yet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; To search for differences between the feature classes and then find what features have been added, modified or deleted:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;SearchCursor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; To update features in the target feature class that have been updated in the source feature class:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;UpdateCursor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; To delete features in the target feature class that have been deleted from the source feature class:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;UpdateCursor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp; To add features to the target feature class that have been deleted from the source feature class:&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;InsertCursor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have to figure out how to actually compare the feature classes, store the differences somewhere, then read from the differences and update the target feature class accordingly.&amp;nbsp; Since I am basically just making edits, I don't have to worry about whether or not the feature class is being accessed (read-only, so it will only be viewed while I am making the edits; it won't be edited by anyone else).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 02:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563716#M44086</guid>
      <dc:creator>JeremyRead</dc:creator>
      <dc:date>2013-04-06T02:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to replication for copying features in SDE?</title>
      <link>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563717#M44087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I've basically gotten this working (not to the finished script yet, though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using search cursors to build dictionaries of the feature classes, only providing an ID field and a modified date field (which is used to key off of for Updates).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I compare the dictionaries and anything that is in the source featureclass, but not the target, is added to a list of "adds".&amp;nbsp; Anything that is in the target feature class, but not in the source, is added to a list of "deletes".&amp;nbsp; Anything that is in both feature classes but has a different "modified date" is added to a list of "updates".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am then using insert/update cursors to iterate through the rows of the feature classes, and making edits where appropriate until they have identical data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll post the finalized script later once it is ready.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 20:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563717#M44087</guid>
      <dc:creator>JeremyRead</dc:creator>
      <dc:date>2013-04-08T20:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to replication for copying features in SDE?</title>
      <link>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563718#M44088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeremy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your approach sounds good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any other data/logic tied to this feature class that also need to be brought down?&amp;nbsp; i.e, are there any relationship class, feature linked annos associated with this feature class?&amp;nbsp; If yes, then you need to account for those as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sendhil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 21:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alternative-to-replication-for-copying-features-in/m-p/563718#M44088</guid>
      <dc:creator>SendhilKolandaivel</dc:creator>
      <dc:date>2013-04-08T21:12:13Z</dc:date>
    </item>
  </channel>
</rss>

