<?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: ORA-29470: Effective userid or roles are not the same as when cursor was parsed, when trying to work with a compound trigger in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1062153#M7215</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/100859"&gt;@SamuelAbati&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 2021, I have the same issue.&lt;/P&gt;&lt;P&gt;Did you find any solution?&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 00:42:38 GMT</pubDate>
    <dc:creator>parksh</dc:creator>
    <dc:date>2021-05-27T00:42:38Z</dc:date>
    <item>
      <title>ORA-29470: Effective userid or roles are not the same as when cursor was parsed, when trying to work with a compound trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/719134#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I started receiving this error after creating a compound trigger in one of our features, in a oracle 11g database, the sde version is 10.4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trigger code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;create or replace TRIGGER trigger_trecho_teste_simples&lt;BR /&gt;FOR DELETE or UPDATE OF shape ON tr_eixo_lt_ope&lt;BR /&gt;COMPOUND TRIGGER&lt;/P&gt;&lt;P&gt;trechos num_list := num_list();&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; BEFORE EACH ROW IS&lt;BR /&gt; BEGIN&lt;BR /&gt; trechos.extend;&lt;BR /&gt; IF UPDATING THEN&lt;BR /&gt; trechos(trechos.count) := :NEW.PK_CD_TR_LT_OPE;&lt;BR /&gt; ELSE&lt;BR /&gt; trechos(trechos.count) := :OLD.PK_CD_TR_LT_OPE;&lt;BR /&gt; end if;&lt;BR /&gt; END BEFORE EACH ROW;&lt;/P&gt;&lt;P&gt;AFTER STATEMENT IS&lt;BR /&gt; BEGIN&lt;BR /&gt; for linha in (SELECT DISTINCT FK_CD_LT_OPE cod_lt FROM EIXO_LT_OPE_COM_TR_EIXO_LT_OPE WHERE FK_CD_TR_LT_OPE MEMBER OF trechos)&lt;BR /&gt; loop &lt;BR /&gt; MERGE INTO eixo_lt_ope lt_update &lt;BR /&gt; USING (select sde.st_aggr_union(TRECHO.shape) as trecho_agg, SUM(TRECHO.ext) as n_ext from TR_EIXO_LT_OPE TRECHO , EIXO_LT_OPE_com_TR_EIXO_LT_OPE EIXO_LINHA&lt;BR /&gt; where TRECHO.PK_CD_TR_LT_OPE = EIXO_LINHA.FK_CD_TR_LT_OPE &lt;BR /&gt; and EIXO_LINHA.FK_CD_LT_OPE = linha.cod_lt) results&lt;BR /&gt; ON (lt_update.PK_CD_LT_OPE = linha.cod_lt)&lt;BR /&gt; WHEN MATCHED THEN UPDATE SET&lt;BR /&gt; lt_update.shape = results.trecho_agg,&lt;BR /&gt; lt_update.ext = results.n_ext;&lt;BR /&gt; raise_application_error(-20001,'hi'); &lt;BR /&gt; end loop;&lt;BR /&gt; END AFTER STATEMENT;&lt;BR /&gt;END trigger_trecho_teste_simples;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Image of the stack trace (Couldn't copy it from arcmap) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/375704_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 20:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/719134#M128</guid>
      <dc:creator>SamuelAbati</dc:creator>
      <dc:date>2017-10-02T20:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-29470: Effective userid or roles are not the same as when cursor was parsed, when trying to work with a compound trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1062153#M7215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/100859"&gt;@SamuelAbati&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 2021, I have the same issue.&lt;/P&gt;&lt;P&gt;Did you find any solution?&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 00:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1062153#M7215</guid>
      <dc:creator>parksh</dc:creator>
      <dc:date>2021-05-27T00:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-29470: Effective userid or roles are not the same as when cursor was parsed, when trying to work with a compound trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1246612#M8156</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same problem here, have you found a solution?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 21:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1246612#M8156</guid>
      <dc:creator>JorgeLuisYupanqui</dc:creator>
      <dc:date>2023-01-09T21:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: ORA-29470: Effective userid or roles are not the same as when cursor was parsed, when trying to work with a compound trigger</title>
      <link>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1247458#M8157</link>
      <description>&lt;P&gt;Please, open a ticket with Esri Technical Support to troubleshoot this further.&lt;BR /&gt;&lt;BR /&gt;Tip:&amp;nbsp; read more in the link below&lt;BR /&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/sql-access-to-geodatabase-data.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/sql-access-to-geodatabase-data.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 21:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/ora-29470-effective-userid-or-roles-are-not-the/m-p/1247458#M8157</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2023-01-11T21:36:42Z</dc:date>
    </item>
  </channel>
</rss>

