My Oracle Support Banner

Running Gather Optimizer Statistics On Schema Generates Error (Doc ID 854527.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 11.1]
Information in this document applies to any platform.


Gathering optimizer statistics on a specific schema fails with the following error:

ERROR at line 1:
ORA-01952: system privileges not granted to 'OUTLN'
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 3163
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 3411
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 3666
ORA-01403: no data Found
ORA-06512: at "SYS.DBMS_STATS", line 18490
ORA-06512: at line 1

- This is not reproduced in all schemas
- The same error reported from OEM and SQLPlus.

The error differs rom 10g to 11g:

1. Under
error: ORA-01952: system privileges not granted to 'OUTLN'

2. Under
error: ORA-01741: illegal zero-length identifier


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.