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 MARCH 22, 2022
Applies to:Primavera P6 Enterprise Project Portfolio Management - Version 184.108.40.206 and later
Information in this document applies to any platform.
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)
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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!