<?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: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400759#M11286</link>
    <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1060"&gt;@VinceAngelo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have to&amp;nbsp;&lt;SPAN&gt;INSERT new rows from GDB to SDE but first check if data is already present in the SDE. &lt;STRONG&gt;Is there any examples for&amp;nbsp;INSERT new rows from GDB to SDE in&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;arcpy.ArcSDESQLExecute()?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 08:51:35 GMT</pubDate>
    <dc:creator>SumitMishra_016</dc:creator>
    <dc:date>2024-03-26T08:51:35Z</dc:date>
    <item>
      <title>Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400296#M11281</link>
      <description>&lt;P&gt;Please suggest a way to append data from GDB to&amp;nbsp;Oracle SDE and truncate if data in a field of matches with source using SDK.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 12:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400296#M11281</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-25T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400352#M11282</link>
      <description>&lt;P&gt;"TRUNCATE" is an unlogged removal process, so you probably mean "UPDATE" or "DELETE". "Append" is generally an INSERT. Your update criteria isn't very clear, so it's not easy to make a specific recommendation.&lt;/P&gt;&lt;P&gt;I've had good luck using FeatureClassToFeatureClass or FeatureClassToGeodatabase into a temporary table in the database, then using SQL to UPDATE changed rows, INSERT new rows, and DELETE removed rows. This was not in a versioned feature class, so I didn't have to deal with versioned views.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;arcpy.ArcSDESQLExecute()&lt;/FONT&gt;&lt;/STRONG&gt; can be used to issue the SQL from ArcPy. Not sure what the Pro SDK equivalent would be.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 15:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400352#M11282</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-03-25T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400759#M11286</link>
      <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1060"&gt;@VinceAngelo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have to&amp;nbsp;&lt;SPAN&gt;INSERT new rows from GDB to SDE but first check if data is already present in the SDE. &lt;STRONG&gt;Is there any examples for&amp;nbsp;INSERT new rows from GDB to SDE in&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;arcpy.ArcSDESQLExecute()?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 08:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400759#M11286</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-26T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400911#M11289</link>
      <description>&lt;P&gt;While possible, that's not what I was recommending. Using a binary loader is the fastest way to get all features into a staging table. Then it's a simple join to identify features not present:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;INSERT INTO table1 (
                 {long_list_of_columns})
SELECT           {long_list_of_columns_prefixed_with_"t."}
FROM             temptable t
LEFT OUTER JOIN  table1 p ON p.keyfield = t.keyfield
WHERE            p.keyfield IS NULL&lt;/LI-CODE&gt;&lt;P&gt;You would, of course, need an index on the &lt;FONT face="courier new,courier"&gt;keyfield&lt;/FONT&gt; (or keyfields) in &lt;FONT face="courier new,courier"&gt;table1&lt;/FONT&gt;, and have a mechanism for generating a reliable &lt;FONT face="courier new,courier"&gt;objectid&amp;nbsp;&lt;/FONT&gt;value (this was dirt easy with a &lt;FONT face="courier new,courier"&gt;serial&lt;/FONT&gt; column in PostgreSQL, but there should be a function you can use with Oracle).&lt;/P&gt;&lt;P&gt;Detecting the changed rows is a similar &lt;FONT face="courier new,courier"&gt;UPDATE&lt;/FONT&gt; statement. Identifying the rows to mark for deletion would flip the table order, and require an index on &lt;FONT face="courier new,courier"&gt;temptable(keyfield)&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;I've found that it's an order or magnitude or two faster to load the parallel table, then manifest deltas in a single commit, than to deal with variable duration downtime on the data during a TRUNCATE/INSERT/REINDEX&amp;nbsp; outage.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 14:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1400911#M11289</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-03-26T14:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1534832#M12035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1060"&gt;@VinceAngelo&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;How to use the geodatabase file in ArcGIS pro in binary loader?&lt;BR /&gt;Could you please explain step by step?&lt;BR /&gt;I have the data in local File Geodatabase and then I have same schema in Oracle Database. I want to know the fastest way to load the data from local fileGDB to EnterpriseGDB in Oracle. Also, I have Annoatation Feature classes in the geodatabase.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 07:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1534832#M12035</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-09-04T07:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1535222#M12043</link>
      <description>&lt;P&gt;I'm not real good with the step-by-step thing, and am forbidden by NDA to give explicit details . All I can say is that I used &lt;FONT face="courier new,courier"&gt;FeatureClassToFeatureClass&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;TableToTable&lt;/FONT&gt; to populate a few dozen tables as an interim data change set into a staging schema within the database, using a common randomly generated name prefix, then executed many tens of thousands of SQL statements (via &lt;FONT face="courier new,courier"&gt;arcpy.ArcSDESQLExecute&lt;/FONT&gt;) to manifest the change. The load took twenty minutes, and the base table population via SQL ten more, then the hierarchical data propagation took another twenty. 120+ million rows were processed and the services publishing the data remained live through the process.&lt;/P&gt;&lt;P&gt;I haven't attempted anything with annotation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 19:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1535222#M12043</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-09-04T19:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1535409#M12045</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1060"&gt;@VinceAngelo&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Can we use&amp;nbsp;Oracle SQL*Loader using .CTL file like below in cmd&lt;/P&gt;&lt;PRE&gt;sqlldr username&lt;SPAN class=""&gt;@server&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;password control&lt;SPAN class=""&gt;=&lt;/SPAN&gt;loader.ctl&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Filename: loader.ctl&lt;BR /&gt;LOAD DATA&lt;BR /&gt;INFILE 'data.dat' -- Input data file&lt;BR /&gt;APPEND INTO TABLE my_table -- Destination table in Oracle&lt;/P&gt;&lt;P&gt;FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' -- Specifies CSV format&lt;BR /&gt;(&lt;BR /&gt;column1, -- First column in Oracle table&lt;BR /&gt;column2, -- Second column&lt;BR /&gt;column3 -- Third column, etc.&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 08:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1535409#M12045</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-09-05T08:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite data from existing feature class in GDB to feature class in Oracle SDE using SDK or arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1535676#M12054</link>
      <description>&lt;P&gt;I haven't ever used SQL*Loader, so this should be asked as a different question (and not of me).&lt;/P&gt;&lt;P&gt;Populating new tables, adding&amp;nbsp;all appropriate indexes, then running INSERT/DELETE based on a LEFT OUTER JOIN&amp;nbsp; mismatch and&amp;nbsp;UPDATE on only the changed rows is the procedure I'm recommending. How you actually implement that is outside the scope of my answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 20:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/overwrite-data-from-existing-feature-class-in-gdb/m-p/1535676#M12054</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2024-09-05T20:41:27Z</dc:date>
    </item>
  </channel>
</rss>

