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 : 29-05-2017
ORA-25004

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

  • ora-16561 : cannot remove an active instance
  • ora-01200 : actual file size of string is smaller than correct size of string blocks
  • ora-25181 : missing ON keyword for NESTED INDEX
  • ora-24790 : cannot mix OCI_TRANS_RESUME and transaction isolation flags
  • ora-08000 : maximum number of session sequence lists exceeded
  • ora-12666 : Dedicated server: outbound transport protocol different from inbound
  • ora-31514 : change set string disabled due to capture error
  • ora-02261 : such unique or primary key already exists in the table
  • ora-13426 : invalid window parameter for subset operation
  • ora-22153 : source variable-length array is not initialized
  • ora-22303 : type "string"."string" not found
  • ora-10922 : Temporary tablespace group is empty
  • ora-12601 : TNS:information flags check failed
  • ora-32848 : foreign queue DOMAIN required for JMS unified connections
  • ora-25958 : join index where clause predicate may only contain column references
  • ora-31030 : Unable to retrieve XML document
  • ora-19269 : XQ0049 - variable string defined multiple times
  • ora-31458 : an internal error occurred
  • ora-33429 : (EIFMAKEF17) CAUTION: NTEXT expression will be exported with type TEXT.
  • ora-01192 : must have at least one enabled thread
  • ora-09205 : sfqio: error reading or writing to disk
  • ora-40222 : data mining model export failed, job name=string, error=string
  • ora-29532 : Java call terminated by uncaught Java exception: string
  • ora-19102 : XQuery string literal expected
  • ora-24147 : rule string.string does not exist
  • ora-24190 : length of payload exceeds string
  • ora-27144 : attempt to kill process failed
  • ora-30028 : Automatic Undo Management event for NTP testing
  • ora-31613 : Master process string failed during startup.
  • ora-12730 : invalid equivalence class in regular expression
  • 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.