ORA-22971: invalid datatype for PRIMARY KEY-based object identifier

Cause : Whe ncretainga n ojbectv iew ,thed ataytpe fo ane xprsesio nin hte WTIH OJBECTO ID lcaus eis ont allowe dforP RIMRAY KYE-baesd ODI.

Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts

Repalce hte epxresison iwth noe o fapporpritae saclard ataytpe.

update : 25-09-2017
ORA-22971

ORA-22971 - invalid datatype for PRIMARY KEY-based object identifier
ORA-22971 - invalid datatype for PRIMARY KEY-based object identifier

  • ora-24033 : no recipients for message
  • ora-07713 : sksamtd: could not mount archival device (SYS$MOUNT failure)
  • ora-12653 : Authentication control function failed
  • ora-13860 : Invalid service name
  • ora-26102 : relative file # in file header is string rather than string for file string
  • ora-24052 : cannot propagate object type payloads with LOB attributes to an 8.0 release
  • ora-19506 : failed to create sequential file, name="string", parms="string"
  • ora-32034 : unsupported use of WITH clause
  • ora-29548 : Java system class reported: string
  • ora-36820 : (XSLMINFO00) The LIMITMAPINFO function encountered an error while parsing the LIMITMAP.
  • ora-00213 : cannot reuse control file; old file size string, string required
  • ora-38710 : Flashback log version string is incompatible with ORACLE version string.
  • ora-00218 : block size string of control file 'string' does not match DB_BLOCK_SIZE (string)
  • ora-01841 : (full) year must be between -4713 and +9999, and not be 0
  • ora-04043 : object string does not exist
  • ora-32330 : invalid operation on online redefinition interim table "string"."string"
  • ora-32142 : maximum number of iterations exceeded
  • ora-15154 : cluster rolling upgrade incomplete
  • ora-36221 : (XSLPDSC02) LIST number and LIST number have different base dimensions.
  • ora-36861 : (XSTFRC01) SQL Cache ID parameter is invalid or missing.
  • ora-01160 : file is not a string
  • ora-19666 : cannot do incremental restore of the control file
  • ora-16705 : internal error in resource guard
  • ora-07448 : ssarena: maximum number of shared arenas exceeded.
  • ora-40216 : feature not supported
  • ora-13332 : invalid LRS point
  • ora-29314 : tablespace 'string' is not OFFLINE FOR RECOVER nor READ ONLY
  • ora-01253 : cannot start online backup - file string in recovery manager backup
  • ora-27470 : failed to re-enable "string.string" after making requested change
  • ora-23425 : invalid materialized view identifier string
  • Oracle Database Error Messages



    Oracle Database High Availability Any organization evaluating a database solution for enterprise data must also evaluate the High Availability (HA) capabilities of the database. Data is one of the most critical business assets of an organization. If this data is not available and/or not protected, companies may stand to lose millions of dollars in business downtime as well as negative publicity. Building a highly available data infrastructure is critical to the success of all organizations in today's fast moving economy.

    Well, the reason for above error is that i have taken the above script from a 11g database and running it on 10g database. 11g has bring some changes in password management. Below code is executed on 11g and user created successfully, which is expected result.