SQL Language (MOSC)

MOSC Banner

ORA-01031 instead of ORA-01013 for cancelling an SQL Statement from Oracle 12.2 to Oracle 19

edited Sep 27, 2019 5:07AM in SQL Language (MOSC) 1 commentAnswered

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center