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 : 27-06-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-38786 : Flash recovery area is not enabled.
  • ora-13278 : failure to convert SRID to native format
  • ora-24318 : call not allowed for scalar data types
  • ora-25258 : cannot register for notifications on an 8.0 style exception queue
  • ora-36673 : (XSDPART11) Use simple leaf values to identify concat dimension values in a VALUES LESS THAN clause, rather than the format.
  • ora-12600 : TNS: string open failed
  • ora-32006 : %s initialization parameter has been deprecated
  • ora-24016 : cannot create QUEUE_TABLE, user string does not have execute privileges on QUEUE_PAYLOAD_TYPE string.string
  • ora-02785 : Invalid shared memory buffer size
  • ora-12413 : labels do not belong to the same policy
  • ora-32322 : PCT refresh of "string"."string" not allowed the sequence of DMLs/PMOPs
  • ora-36846 : (XSLMGEN16) AW name is greater than 30 bytes
  • ora-32844 : exceeded maximum number of string values
  • ora-40286 : remote operations not permitted on mining models
  • ora-27203 : skgfpqb: sbtpcquerybackup returned error
  • ora-00079 : variable string not found
  • ora-01228 : SET DATABASE option required to install seed database
  • ora-39961 : message specified was not found
  • ora-26095 : unprocessed stream data exists
  • ora-16047 : DGID mismatch between destination setting and standby
  • ora-12073 : request cannot be processed
  • ora-02457 : The HASH IS option must specify a valid column
  • ora-07685 : sou2os: supervisor stack set error
  • ora-23326 : object group "string"."string" is quiesced
  • ora-13861 : Statistics aggregation for client identifier string is already enabled
  • ora-22166 : collection is empty
  • ora-06536 : IN bind variable bound to an OUT position
  • ora-09704 : sstascre: ftok error in creating test and set pages.
  • ora-02342 : replacement type has compilation errors
  • ora-01195 : online backup of file string needs more recovery to be consistent
  • 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.