<?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 SDE_XML_DOC2 System Table Maintenance in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879528#M6661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RDBMS: Oracle 12c&lt;/P&gt;&lt;P&gt;Parent Enterprise GDB : 10.3.1&lt;/P&gt;&lt;P&gt;Child Enterprise GDB : 10.4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few weeks ago I raised a question related to standalone python script of synchronization which takes long time to complete but didnt received any solution on that. In addition to that,&amp;nbsp; from database trace I found below statement taking more than 10 mins during synchronization process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;UPDATE SDE.sde_xml_doc2 SET xml_doc = :xml_doc, doc_property = :doc_prop ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt; xml_doc_val = :xml_doc_val &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;WHERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt; SDE_XML_ID IN ( :xml_id1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i saw the records in the "SDE.SDE_XML_DOC2" table, I found from one of column (XML_DOC_VAL) it stores logs for each synchronization process (runs as python script) and during synchronization it appends each day&amp;nbsp;logs due to which the above statement takes longer than expected. It also stores XML_DOC in BLOB segment along with&amp;nbsp;this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few starting lines of column &lt;SPAN&gt;(XML_DOC_VAL)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;output from table&amp;nbsp;&lt;SPAN&gt;"SDE.SDE_XML_DOC2"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;&amp;nbsp;; en ; 20171010 ; 07291500 ; 1.0 ; TRUE ; c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Toolboxes\Data Management Tools.tbx\SynchronizeChanges ; 20171010 ; 072915 ; SynchronizeChanges "Database Connections\gisdb_ARCDATA.sde" DTPS_KLDTPS_ARCDATA_ALL_FC_EXDATA "Database Connections\kldtps_ARCDATA.sde" BOTH_DIRECTIONS IN_FAVOR_OF_GDB1 BY_OBJECT DO_NOT_RECONCILE ; c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Toolboxes\Data Management Tools.tbx\SynchronizeChanges ;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is there any possibility to do housekeeping for this table and other system tables relevant to Synchronize process to improve the performance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2018 09:31:05 GMT</pubDate>
    <dc:creator>HiteshJilka</dc:creator>
    <dc:date>2018-11-29T09:31:05Z</dc:date>
    <item>
      <title>SDE_XML_DOC2 System Table Maintenance</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879528#M6661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RDBMS: Oracle 12c&lt;/P&gt;&lt;P&gt;Parent Enterprise GDB : 10.3.1&lt;/P&gt;&lt;P&gt;Child Enterprise GDB : 10.4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few weeks ago I raised a question related to standalone python script of synchronization which takes long time to complete but didnt received any solution on that. In addition to that,&amp;nbsp; from database trace I found below statement taking more than 10 mins during synchronization process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;UPDATE SDE.sde_xml_doc2 SET xml_doc = :xml_doc, doc_property = :doc_prop ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt; xml_doc_val = :xml_doc_val &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;WHERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt; SDE_XML_ID IN ( :xml_id1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i saw the records in the "SDE.SDE_XML_DOC2" table, I found from one of column (XML_DOC_VAL) it stores logs for each synchronization process (runs as python script) and during synchronization it appends each day&amp;nbsp;logs due to which the above statement takes longer than expected. It also stores XML_DOC in BLOB segment along with&amp;nbsp;this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few starting lines of column &lt;SPAN&gt;(XML_DOC_VAL)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;output from table&amp;nbsp;&lt;SPAN&gt;"SDE.SDE_XML_DOC2"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;&amp;nbsp;; en ; 20171010 ; 07291500 ; 1.0 ; TRUE ; c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Toolboxes\Data Management Tools.tbx\SynchronizeChanges ; 20171010 ; 072915 ; SynchronizeChanges "Database Connections\gisdb_ARCDATA.sde" DTPS_KLDTPS_ARCDATA_ALL_FC_EXDATA "Database Connections\kldtps_ARCDATA.sde" BOTH_DIRECTIONS IN_FAVOR_OF_GDB1 BY_OBJECT DO_NOT_RECONCILE ; c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Toolboxes\Data Management Tools.tbx\SynchronizeChanges ;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is there any possibility to do housekeeping for this table and other system tables relevant to Synchronize process to improve the performance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2018 09:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879528#M6661</guid>
      <dc:creator>HiteshJilka</dc:creator>
      <dc:date>2018-11-29T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: SDE_XML_DOC2 System Table Maintenance</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879529#M6662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those tables also store the GP history on the FC's in the EGDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to look at the following posts/tools for clearing up the GP history:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000011751" title="https://support.esri.com/en/technical-article/000011751"&gt;How To: Delete geoprocessing history from a geodatabase&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear Geoprocessing History -&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=3646c7d507f44dbbba7a950b15315a0d" title="https://www.arcgis.com/home/item.html?id=3646c7d507f44dbbba7a950b15315a0d"&gt;https://www.arcgis.com/home/item.html?id=3646c7d507f44dbbba7a950b15315a0d&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would start there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2018 13:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879529#M6662</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2018-11-29T13:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDE_XML_DOC2 System Table Maintenance</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879530#M6663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for helping in this query. In addition to this, I found that we can stop logging GP history&amp;nbsp;into SDE_XML_DOC2 table by adding a line of code in standalone python script. I found it from thread "&lt;A _jive_internal="true" class="jivelink11" href="https://community.esri.com/thread/33846" title="https://community.esri.com/thread/33846"&gt;https://community.esri.com/thread/33846&lt;/A&gt;".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.gp.logHistory&amp;nbsp;=&amp;nbsp;False&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-xml-doc2-system-table-maintenance/m-p/879530#M6663</guid>
      <dc:creator>HiteshJilka</dc:creator>
      <dc:date>2018-11-30T09:42:07Z</dc:date>
    </item>
  </channel>
</rss>

