![My Oracle Support Banner](/knowledge/oracle-support-banner-opt1.png)
ORA-20000 During Gather Stats Using User Defined Procedure
(Doc ID 2976056.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 19.0.0.0 and later
Information in this document applies to any platform.
Symptoms
- Below error is logged in error logs when executed through user defined stored procedure.
- However, when the procedure DBMS_STATS is directly executed through sql client like sqlplus/sql developer, it is executed successfully.
- gather_system_statistics role is given to the user
Changes
NA
Cause
|
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
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.