ORA-12066: invalid CREATE MATERIALIZED VIEW command

Cause : The Replication API does not support the following options and types of materialized view: o ROWID materialized views o REFRESH ON COMMIT o ON PREBUILT TABLE o BUILD DEFERRED o NEVER REFRESH o ENABLE QUERY REWRITE

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

Create a PRIMARY KEY materialized view using REFRESH WITH PRIMARY KEY and/or remove the invalid options.

update : 24-06-2017
ORA-12066

ORA-12066 - invalid CREATE MATERIALIZED VIEW command
ORA-12066 - invalid CREATE MATERIALIZED VIEW command

  • ora-29534 : referenced object string.string could not be resolved
  • ora-30767 : OID type mismatch
  • ora-31005 : Path name length string exceeds maximum length string
  • ora-30506 : system triggers cannot be based on tables or views
  • ora-13837 : invalid HASH_VALUE
  • ora-23293 : Cannot rename a column which is part of a join index
  • ora-09241 : smsalo: error allocating SGA memory
  • ora-13066 : wrong feature geometry or element type
  • ora-09986 : wrong number of bytes read from SGA definition file
  • ora-23300 : %s
  • ora-06747 : TLI Driver: error in listen
  • ora-19591 : backup aborted because job time exceeded duration time
  • ora-10619 : Avoid assertions when possible
  • ora-04083 : invalid trigger variable 'string'
  • ora-09877 : sstascre: shmget error, unable to get a shared memory segment.
  • ora-16206 : database already configured as Logical Standby database
  • ora-14625 : subpartition contains rows corresponding to values being dropped
  • ora-32824 : schedule exists for source string and destination string
  • ora-30730 : referential constraint not allowed on nested table column
  • ora-17510 : Attempt to do i/o beyond file size
  • ora-15205 : requested mirror side unavailable
  • ora-23301 : mixed use of deferred rpc destination modes
  • ora-30016 : undo tablespace 'string' is already in use by this instance
  • ora-25953 : join index cannot be a functional index
  • ora-06703 : TLI Driver: send break message failed
  • ora-23374 : object group "string"."string" already exists
  • ora-16602 : object must be disabled to perform this operation
  • ora-30655 : cannot select FOR UPDATE from external organized table
  • ora-22323 : error table "string"."string" does not exist
  • ora-06771 : TLI Driver: error reading version
  • 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.