<?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 Delete records - database lock issue in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660969#M2930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using ArcGIS GeoEvent manager 10.3.1 which gets input from GeoTab and collects data via feature service and store in SDE feature class. This is not versioned database. DBA folks alerting us particular delete record session takes more resource and results in LOCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL: &lt;TT&gt;&lt;STRONG style="color: #4444dd; font-size: 10.0pt;"&gt;DELETE&lt;/STRONG&gt;&lt;/TT&gt;&lt;TT&gt; &lt;/TT&gt;&lt;TT&gt;&lt;STRONG style="color: #4444dd; font-size: 10.0pt;"&gt;FROM&lt;/STRONG&gt;&lt;/TT&gt;&lt;TT&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; DATA.VEHICLES &lt;/SPAN&gt;&lt;/TT&gt;&lt;TT&gt;&lt;STRONG style="color: #4444dd; font-size: 10.0pt;"&gt;WHERE&lt;/STRONG&gt;&lt;/TT&gt;&lt;TT&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; OBJECTID = 7155 &lt;SPAN style="font-size: 12pt;"&gt;consumes more resource in the database. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt;"&gt;Please let me know if any one facing similar issue or any clue for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 20:31:41 GMT</pubDate>
    <dc:creator>LakshmananVenkatesan</dc:creator>
    <dc:date>2015-08-12T20:31:41Z</dc:date>
    <item>
      <title>Delete records - database lock issue</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660969#M2930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using ArcGIS GeoEvent manager 10.3.1 which gets input from GeoTab and collects data via feature service and store in SDE feature class. This is not versioned database. DBA folks alerting us particular delete record session takes more resource and results in LOCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL: &lt;TT&gt;&lt;STRONG style="color: #4444dd; font-size: 10.0pt;"&gt;DELETE&lt;/STRONG&gt;&lt;/TT&gt;&lt;TT&gt; &lt;/TT&gt;&lt;TT&gt;&lt;STRONG style="color: #4444dd; font-size: 10.0pt;"&gt;FROM&lt;/STRONG&gt;&lt;/TT&gt;&lt;TT&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; DATA.VEHICLES &lt;/SPAN&gt;&lt;/TT&gt;&lt;TT&gt;&lt;STRONG style="color: #4444dd; font-size: 10.0pt;"&gt;WHERE&lt;/STRONG&gt;&lt;/TT&gt;&lt;TT&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; OBJECTID = 7155 &lt;SPAN style="font-size: 12pt;"&gt;consumes more resource in the database. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt;"&gt;Please let me know if any one facing similar issue or any clue for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 20:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660969#M2930</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2015-08-12T20:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete records - database lock issue</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660970#M2931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello S R -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my experience working with external RDBMS like Oracle (which is limited), I don't think the issue you are encountering is GeoEvent specific. However, here is some advice I received from one of the database administrators in Esri Professional Services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To specifically address the message you quote below ... connect to the database as a data_editor, then delete the records from DATA.VEHICLES. You may find that you have to have your database administrator release locks on the data (refer to following bullet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Never use a data owner or administrative connection to publish feature services&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;Your database administrator should provide you data owner credentials for creating new feature classes (tables) in the database&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;You should disconnect and reconnect as a user with a data_editor role before publishing a feature class as a feature service.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;Use &lt;SPAN style="font-family: Helvetica, sans-serif;"&gt;or data_viewer role if you will not be adding, editing, or deleting features (not generally the case when using GeoEvent).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;A data_editor has select, insert, update, and delete privileges on the table&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;A data_viewer has only select privileges&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;What happens is that clients using the published feature service end up inheriting the publisher's privileges. So publishing as a data owner means that a client (e.g. GeoEvent) which interacts with the feature service to add features, update features, or delete features has the potential to acquire a full-table lock.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;When another client tries to access the data, through the same feature service, they also make their attempt as a data_owner, potentially acquiring a full-table lock. This can produce a deadlock situation where two data owners each have locks on the table, and end up locking each other out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You may find that the table's indexes have become fragmented. You may need to have your database administrator gather new statistics, reorganize the tables, and rebuild table indexes.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;Index fragmentation can quickly happen if the table has undergone large bulk inserts, updates, and deletes.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;This affects your DML (data manipulation language) performance ... e.g. insert, update, and delete operations.&lt;/LI&gt;&lt;LI&gt;You may need to have your database administrator run a database trace to investigate the DML execution plans in order to identify and address performance issues.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps -&lt;/P&gt;&lt;P&gt;RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 01:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660970#M2931</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2015-08-20T01:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete records - database lock issue</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660971#M2932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/7460"&gt;S R&lt;/A&gt;​ &lt;/P&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am looking for a way to bring in Geotab information as a layer in ArcGIS Online / Portal. Apparently, I do not see any other posts related to Geotab in Geonet. It will be great if you can point me in the right direction. I am thinking, setting up a streaming service to geotab in Geoevent processor is the way to go. However, I would much appreciate any information in regards to this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 16:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/delete-records-database-lock-issue/m-p/660971#M2932</guid>
      <dc:creator>ENVSSol</dc:creator>
      <dc:date>2016-07-14T16:07:04Z</dc:date>
    </item>
  </channel>
</rss>

