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-04-2017

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

  • ora-14453 : attempt to use a LOB of a temporary table, whose data has alreadybeen purged
  • ora-04077 : WHEN clause cannot be used with table level triggers
  • ora-34514 : (MXOPERR) You cannot string string data in the expression that begins with 'string'.
  • ora-10243 : simulated error for test string of K2GTAB latch cleanup
  • ora-12810 : PARALLEL_MAX_SERVERS must be less than or equal to string
  • ora-24505 : cannot change character set id on the handle
  • ora-01784 : RECOVERABLE cannot be specified with database media recovery disabled
  • ora-32632 : incorrect subquery in MODEL FOR cell index
  • ora-36271 : (XSCGMDLAGG11) workspace object is not in the dimension list of valueset workspace object.
  • ora-07418 : sfareq: Database writer got error in timing function.
  • ora-01072 : cannot stop ORACLE; ORACLE not running
  • ora-13121 : layer type type mismatch with topo_geometry layer type
  • ora-26032 : index string.string loading aborted after string keys
  • ora-29352 : event 'string' is not an internal event
  • ora-06771 : TLI Driver: error reading version
  • ora-16705 : internal error in resource guard
  • ora-16031 : parameter string destination string exceeds string character limit
  • ora-19016 : attributes cannot occur after element specifications
  • ora-02287 : sequence number not allowed here
  • ora-02817 : Read failed
  • ora-04094 : table string.string is constraining, trigger may not modify it
  • ora-01259 : unable to delete datafile string
  • ora-12720 : operation requires database is in EXCLUSIVE mode
  • ora-13188 : cell decode failed
  • ora-24793 : Test DTP service start and stop
  • ora-14135 : a LOB column cannot serve as a partitioning column
  • ora-23365 : site string does not exist
  • ora-15199 : Internal ASM tracing event number 15199
  • ora-23291 : Only base table columns may be renamed
  • ora-10388 : parallel query server interrupt (failure)
  • 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.