Just had this same problem in 2017...
Using oracle 11g
I think it is related to using a compound trigger, I tried the "same" logic in a regular trigger and it worked, but we really need the compound trigger, hoping someone has a solution
I'm having this problem in 2023, any idea on how to solve the
ORA-29470: Effective userid or roles are not the same as when cursor was parsed ?
@JorgeLuisYupanqui - there are many reasons for ORA-29470 see here Esri Support Search-Results
if you cannot find your issue there then please open a ticket with Esri Support to investigate your issue further.