Running Gather Optimizer Statistics On Schema Generates Error
Last updated on JUNE 26, 2017
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 188.8.131.52 [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:
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 10.2.0.4
error: ORA-01952: system privileges not granted to 'OUTLN'
2. Under 184.108.40.206
error: ORA-01741: illegal zero-length identifier
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