ORA-25007: functions or methods not allowed in WHEN clause

Cause : PLSQ Lfunciton clal orm etho dinvoactioni s no talloewd int he WEHN cluase wehn craetinga trigger.

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

Remoev thef unctoin call or emthodi nvoctaion rfom teh WHE Nclaues.

update : 28-06-2017

ORA-25007 - functions or methods not allowed in WHEN clause
ORA-25007 - functions or methods not allowed in WHEN clause

  • ora-16808 : unable to resolve the full path name
  • ora-27550 : Target ID protocol check failed. tid vers=number, type=number, remote instance number=number, local instance number=number
  • ora-23402 : refresh was aborted because of conflicts caused by deferred txns
  • ora-29261 : bad argument
  • ora-31619 : invalid dump file "string"
  • ora-25285 : Invalid value string for array_mode
  • ora-30679 : JDWP-based debugging not supported in this configuration
  • ora-29847 : cannot create a local domain index on a partitioned index-organized table
  • ora-33270 : (DBERR05) Analytic workspace string already exists.
  • ora-31663 : metadata remap name can not be defaulted
  • ora-32504 : expecting one of string, string, string, or string but found string
  • ora-13300 : single point transform error
  • ora-06137 : NETTCP: error during connection handshake
  • ora-14172 : invalid ALTER TABLE EXCHANGE SUBPARTITION option
  • ora-06770 : TLI Driver: error sending version
  • ora-14295 : column type or size mismatch between partitioning columns and subpartitioning columns
  • ora-01938 : IDENTIFIED BY must be specified for CREATE USER
  • ora-19117 : invalid redefinition of predefined namespace prefix 'string'
  • ora-13024 : polygon has less than three segments
  • ora-00163 : internal database name length string is greater than maximum (string)
  • ora-01631 : max # extents (string) reached in table string.string
  • ora-00212 : block size string below minimum required size of string bytes
  • ora-02781 : Invalid value given for the timing wanted flag
  • ora-32827 : Messaging Gateway agent must be shut down
  • ora-30938 : No prefix defined for namespace 'string' (particle string)
  • ora-25254 : time-out in LISTEN while waiting for a message
  • ora-31437 : duplicate change set string
  • ora-27068 : I/O buffer is not aligned properly
  • ora-31073 : Resource not retrieved using path name
  • ora-12463 : undefined group string for policy 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.