"ORA-20000: Insufficient Privileges" When Executing DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC As A Non-SYSDBA User
(Doc ID 2046333.1)
Last updated on JANUARY 21, 2020
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 and later
Information in this document applies to any platform.
When trying to execute DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC as a non-SYSDBA user, the following errors occur:
BEGIN DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC; END;
ERROR at line 1:
ORA-20000: Insufficient privileges
ORA-06512: at "SYS.DBMS_STATS", line 44284
ORA-06512: at line 1
Is there a way for non-SYSDBA users to execute DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC ?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document