My Oracle Support Banner

ORA-20001 Error Occurs When Executing DBMS_STATS.GATHER_SCHEMA_STATS With a Schema That Contains Hyphen (Doc ID 2915373.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database - Standard Edition - Version and later
Information in this document applies to any platform.


Executing DBMS_STATS.GATHER_SCHEMA_STATS on a schema that contains hyphen will result in an ORA-20001 error.

An example of execution is as follows:



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.