Error "ORA-00932 - Inconsistent Datatypes: Expected BINARY Got NUMBER" When Executing the Primavera Gather-Statistics Scripts on an Oracle 12c Database (Doc ID 2111114.1)

Last updated on JULY 17, 2017

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 8.3.2.0 and later
Information in this document applies to any platform.

Symptoms

Attempting to gather database statistics using the Primavera-provided scripts fails with the following error in the log file:

Default collecting for [table]                  (tables = ACTIVITYCODEHIERARCHY through WRK_LOG_RESULTS)
begin
*
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected BINARY got NUMBER
ORA-06512: at "SYS.DBMS_STATS", line 34634
ORA-06512: at line 2

The issue can be reproduced at will with the following steps:
1. Login to SQLPlus as 'admuser' and connect to the P6 database
2. Run orpm_stats_gather.sql
3. View log file

Changes

 

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