My Oracle Support Banner

Error 'ORA-00932 - Inconsistent datatypes: expected BINARY got NUMBER' When Executing the Primavera Statistics-Gathering Scripts on an Oracle 12c Database (Doc ID 2111114.1)

Last updated on DECEMBER 03, 2019

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 the schema owner and connect to the P6 database.
2. Run the <P6 version>\database\scripts\common\orpm_stats_gather.sql script.
3. View the log file.

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.