Running ADSTATS.SQL In a RAC Environment Fails With ORA-20011 (Doc ID 2182497.1)

Last updated on MAY 06, 2017

Applies to:

Oracle Applications Technology Stack - Version 12.1.3 to 12.2.5 [Release 12.1 to 12.2]
Information in this document applies to any platform.

Symptoms

On : 12.1.0.2 version, Database

run SQL>@adstats.sql failed with Error:

ERROR at line 1:
ORA-20011: Approximate NDV failed: ORA-00600: internal error code, arguments:
[1350], [3], [23], [60], [AMERICAN], [0], [], [], [], [], [], []
ORA-06512: at "SYS.DBMS_STATS", line 36906
ORA-06512: at line 3
ORA-06512: at line 33


The issue can be reproduced with the following steps:
1. sqlplus / as sysdba
2. alter system enable restricted session;
3.@adstats.sql

Changes

 set RAC environment.

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