DBMS_STATS: ORA-20000: Unable to analyze TABLE under XDB schema (Doc ID 1315184.1)

Last updated on NOVEMBER 03, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.
Checked for relevance on 28-May-2013

Symptoms

After granting the privilege 'analyze any table' to a user, it is not able to use DBMS_STATS to gather statistics for the XDB schema:


SQL> exec dbms_stats.gather_table_stats('XDB','APP_ROLE_MEMBERSHIP');
BEGIN dbms_stats.gather_table_stats('XDB','APP_ROLE_MEMBERSHIP'); END;

*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "XDB"."APP_ROLE_MEMBERSHIP", insufficient
privileges or does not exist
ORA-06512: at "SYS.DBMS_STATS", line 23143
ORA-06512: at "SYS.DBMS_STATS", line 23205
ORA-06512: at line 1




Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms