ORA-25004: WHEN clause is not allowed in INSTEAD OF triggers

Cause : WHEN clause is specified in an INSTEAD OF trigger.

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

Remove the WHEN clause when creating an INSTEAD OF trigger.

update : 26-09-2017

ORA-25004 - WHEN clause is not allowed in INSTEAD OF triggers
ORA-25004 - WHEN clause is not allowed in INSTEAD OF triggers

  • ora-13148 : failed to generate SQL filter
  • ora-22996 : NEXT extent size is smaller than LOB chunksize
  • ora-28141 : error in creating audit index file
  • ora-13065 : cannot delete a child layer with a parent layer
  • ora-24393 : invalid mode for creating connection pool
  • ora-16822 : new primary database not yet ready for standby database reinstatement
  • ora-16032 : parameter string destination string cannot be translated
  • ora-28504 : ROWID not found in ROWID cache for heterogeneous database link
  • ora-12511 : TNS:service handler found but it is not accepting connections
  • ora-13149 : failed to generate next sequence number for spatial table string
  • ora-13420 : the SRID of the geometry parameter was not null
  • ora-23501 : refresh template cannot be instantiated for database with compatibilty equal to or less than 8.0
  • ora-16544 : modifying DG_BROKER_START requires SID='*' qualifier
  • ora-01259 : unable to delete datafile string
  • ora-27142 : could not create new process
  • ora-30339 : illegal dimension attribute name
  • ora-29298 : Character set mismatch
  • ora-09810 : Unable to get process ID from connection
  • ora-09813 : Unable to get directory status
  • ora-16184 : DB_UNIQUE_NAME string hashes to the same value as DB_UNIQUE_NAME string
  • ora-02281 : duplicate or conflicting CACHE/NOCACHE specifications
  • ora-02302 : invalid or missing type name
  • ora-19770 : invalid change tracking file name
  • ora-40285 : label not in the model
  • ora-40109 : inconsistent logical data record
  • ora-22801 : invalid object row variable
  • ora-04055 : Aborted: "string" formed a non-REF mutually-dependent cycle with "string".
  • ora-15034 : disk 'string' does not require the FORCE option
  • ora-09749 : pws_look_up: port lookup failure
  • ora-02437 : cannot validate (string.string) - primary key violated
  • 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.