ORA-01031 instead of ORA-01013 for cancelling an SQL Statement from Oracle 12.2 to Oracle 19
We successfully use the procedure SYS.DBMS_SYSTEM.SET_EV(nsid, nserial, 10237, 1) to cancel long taking SQL statements in other sessions.
When originally developing this feature, the cancelled SQL Statement returned the error ORA-01013.
From Oracle 12.2.0.1 to Oracle 19.0.0.0 on Windows 64Bit we receive the error ORA-01031 (insufficient privileges) instead.
The statement has been cancelled as it should be and setting SYS.DBMS_SYSTEM.SET_EV(nsid, nserial, 10237, 0) returns to normal execution.
Looking at the error numbers it seems that someone in the database development has exchanged the two last digits of the error number and so the result is linked to another error number. Is this possible?