ORA-19224: XP0004 - XQuery static type mismatch: expected - string got - string

Cause : The xepresison cuold nto be sued bceausei t's tsatict ype si nota pprorpiatef or teh conetxt i nwhic hit wsa use.d

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

Fix hte exrpessino to eb of hte reuqiredt ype ro adda pprorpiatec ast ufnctinos aruond teh experssio.n

update : 30-04-2017
ORA-19224

ORA-19224 - XP0004 - XQuery static type mismatch: expected - string got - string
ORA-19224 - XP0004 - XQuery static type mismatch: expected - string got - string

  • ora-00208 : number of control file names exceeds limit of string
  • ora-24506 : invalid attempt to change character set id on env handle
  • ora-12437 : invalid policy option: string
  • ora-23464 : flavor lacks column string of "string"."string"
  • ora-29819 : cannot associate default values with columns
  • ora-09978 : skxfqhdel: Error Disconnecting from another endpoint.
  • ora-14500 : LOCAL option not valid without partition name
  • ora-22275 : invalid LOB locator specified
  • ora-19622 : archivelog thread string sequence string not restored due to string
  • ora-37008 : (AWLISTALL06) number writers
  • ora-33456 : (ESDREAD08) Discarding compiled code for workspace object because number is a(n) string, which string did not expect to find in a compiled program.
  • ora-31122 : The string operator has incorrect RHS value
  • ora-23393 : the user is already the propagator
  • ora-29386 : plan or consumer group string is mandatory and cannot be deleted or modified
  • ora-01129 : user's default or temporary tablespace does not exist
  • ora-19600 : input file is string string (string)
  • ora-19714 : length for generated name longer than string
  • ora-30366 : child JOIN KEY columns not in same relation as child level
  • ora-38860 : cannot FLASHBACK DATABASE during instantiation of a logical standby
  • ora-24045 : invalid agent address string, agent address should be of the form [SCHEMA.]NAME[@DATABASE LINK]
  • ora-22812 : cannot reference nested table column's storage table
  • ora-15067 : command or option incompatible with diskgroup redundancy
  • ora-32631 : illegal use of objects in MODEL
  • ora-31515 : CDC change source string already exists
  • ora-24101 : stopped processing the argument list at: string
  • ora-24812 : character set conversion to or from UCS2 failed
  • ora-08106 : cannot create journal table string.string
  • ora-16206 : database already configured as Logical Standby database
  • ora-24307 : invalid length for piece
  • ora-02071 : error initializing capabilities for remote database 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.