Question: A development colleague reported that his test user could not execute the stored procedure, and the following error was reported when using the plsql remote connection to execute the stored procedure:
ORA-1031:Insufficient privileges.
Note:Debugging requires the DEBUG CONNECT SESSION system privilege.
Processing method:
It can be seen from the error message that the user does not have the debugging and execution permission of the stored procedure
You can log in and authorize the user with DBA authority:
$ sqlplus / as sysdba
SQL> grant DEBUG CONNECT SESSION to test;
Grant succeeded
After the authorization is completed, the user test can execute the stored procedure normally.