<?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: db_stream_prepare_stmt::db_sda_prepare_stmt: OCIStmtPrepare Error (0). in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186477#M7455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-I fact it is a versioned sde table that caused the issue. I’m able to see the record in ArcCatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-Not it does not occurred  when I do a select with WHERE (FILENUMBER = 'N2015F0001' and  CLIENTNAME = 'Peter's Expediting Ltd.') on the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot go further than that, but I have include our dba in the conversation, so he may contact you later on that topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theory : I thinks there is something wrong with the table where the versions are stored, it is like if the reference has be lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 16:53:46 GMT</pubDate>
    <dc:creator>EricLussier1</dc:creator>
    <dc:date>2016-12-13T16:53:46Z</dc:date>
    <item>
      <title>db_stream_prepare_stmt::db_sda_prepare_stmt: OCIStmtPrepare Error (0).</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186475#M7453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did someone&amp;nbsp;ever get that kind of error ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;db_sda_prepare_stmt: Error parsing SQL statement: SELECT&amp;nbsp; V__2891.*&amp;nbsp; FROM (SELECT b.OBJECTID,b.FILENUMBER,b.CLIENTNAME,b.CLIENTADDRESS,b.GLOBALID&amp;nbsp; FROM NT_LIMS_COPY.LAND_Clients_T b WHERE b.OBJECTID NOT IN (SELECT /*+ HASH_AJ */ SDE_DELETES_ROW_ID FROM NT_LIMS_COPY.D2891 WHERE DELETED_AT&lt;BR /&gt;&amp;nbsp;IN (SELECT l.lineage_id FROM SDE.state_lineages l WHERE l.lineage_name = :source_lineage_name AND l.lineage_id &amp;lt;= :source_state_id) AND SDE_STATE_ID = 0) UNION ALL SELECT a.OBJECTID,a.FILENUMBER,a.CLIENTNAME,a.CLIENTADDRESS,a.GLOBALID&amp;nbsp; FROM NT_LIMS_COPY.A2891 a,SDE.state_lineages SL WHE&lt;BR /&gt;RE (a.OBJECTID, a.SDE_STATE_ID) NOT IN (SELECT /*+ HASH_AJ */ SDE_DELETES_ROW_ID,SDE_STATE_ID&amp;nbsp; FROM NT_LIMS_COPY.D2891 WHERE DELETED_AT IN (SELECT l.lineage_id FROM SDE.state_lineages l WHERE l.lineage_name = :source_lineage_name AND l.lineage_id &amp;lt;= :source_state_id) AND SDE_STATE_ID &amp;gt; 0&lt;BR /&gt;) AND a.SDE_STATE_ID = SL.lineage_id AND SL.lineage_name = :source_lineage_name AND SL.lineage_id &amp;lt;= :source_state_id ) V__2891&amp;nbsp; WHERE (FILENUMBER = 'N2015F0001' and&amp;nbsp; CLIENTNAME = 'Peter's Expediting Ltd.').&lt;/P&gt;&lt;P&gt;db_stream_prepare_stmt::db_sda_prepare_stmt: OCIStmtPrepare Error (0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception: Underlying DBMS error [Table_Name][STATE_ID = 2092]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be apreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186475#M7453</guid>
      <dc:creator>EricLussier1</dc:creator>
      <dc:date>2016-12-13T16:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: db_stream_prepare_stmt::db_sda_prepare_stmt: OCIStmtPrepare Error (0).</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186476#M7454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric, the important part of this error is the "&lt;SPAN style="background-color: #ffffff;"&gt;Error parsing SQL statement". With that in mind:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;1. Does this versioned feature class have issues drawing? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;2. Does it only occur when you apply the select clause (i.e.&amp;nbsp;&lt;SPAN&gt;WHERE (FILENUMBER = 'N2015F0001' and&amp;nbsp; CLIENTNAME = 'Peter's Expediting Ltd.'))? Do other selections work?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;3. Can you apply the bind variables from SQL Server and run the query via SSMS?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;4. It seems to be pointing out 2092 as a bad state_id value, can you run the diagnose version metadata and diagnose version tables tools to see if any errors are found?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;5. Is this unique to this version of the data? Or do all versions fail on the same query?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186476#M7454</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2016-12-13T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: db_stream_prepare_stmt::db_sda_prepare_stmt: OCIStmtPrepare Error (0).</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186477#M7455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-I fact it is a versioned sde table that caused the issue. I’m able to see the record in ArcCatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-Not it does not occurred  when I do a select with WHERE (FILENUMBER = 'N2015F0001' and  CLIENTNAME = 'Peter's Expediting Ltd.') on the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot go further than that, but I have include our dba in the conversation, so he may contact you later on that topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theory : I thinks there is something wrong with the table where the versions are stored, it is like if the reference has be lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/db-stream-prepare-stmt-db-sda-prepare-stmt/m-p/186477#M7455</guid>
      <dc:creator>EricLussier1</dc:creator>
      <dc:date>2016-12-13T16:53:46Z</dc:date>
    </item>
  </channel>
</rss>

