ORA-19226: XP0006 - XQuery dynamic type mismatch: expected string got string

Cause : The experssion cuold not eb used bceause its' dynami ctype di dnot mathc the reuqired tyep as speicfied byX Query sqeuencetyep matchign rules.

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

Fix thee xpressino to retrun the epxected tpye or us eappropraite castf unction.s

update : 27-05-2017
ORA-19226

ORA-19226 - XP0006 - XQuery dynamic type mismatch: expected string got string
ORA-19226 - XP0006 - XQuery dynamic type mismatch: expected string got string

  • ora-00081 : address range [string, string) is not readable
  • ora-19236 : XQ0016 - module declaration or import not supported
  • ora-08322 : scnmin: open/convert of bias lock failed
  • ora-38474 : attribute set may not have attributes of TABLE COLLECTION type.
  • ora-23460 : missing value for column string in resolution method "string" for "string"."string"."string"
  • ora-36316 : (PHYS02) Relation workspace object must be a single-dimensional relation that relates one INTEGER dimension to another.
  • ora-07393 : unable to delete text file
  • ora-07390 : sftopn: translate error, unable to translate file name.
  • ora-29520 : name string resolved to a class in schema string that could not be accessed
  • ora-24003 : Queue table index string inconsistent with queue table string
  • ora-09200 : sfccf: error creating file
  • ora-08265 : create_ora_addr: cannot open nameserver
  • ora-02449 : unique/primary keys in table referenced by foreign keys
  • ora-02807 : Allocation of memory for I/O vectors failed.
  • ora-16557 : the database is already in use
  • ora-07594 : spiip: $GETJPIW failure
  • ora-19163 : XP0004 - XQuery type mismatch: argument type mismatch: expected - 'string' got - 'string' for function 'string'
  • ora-19608 : %s is not a backup piece
  • ora-36641 : (XSDUNION20) The concat dimension must be defined as UNIQUE because base dimension workspace object contains custom member values.
  • ora-36632 : (XSDUNION01) The concat dimension workspace object is not currently defined as UNIQUE.
  • ora-06402 : NETCMN: error receiving break message
  • ora-16818 : Fast-Start Failover suspended
  • ora-26095 : unprocessed stream data exists
  • ora-27508 : IPC error sending a message
  • ora-30568 : cannot drop log group - nonexistent log group
  • ora-19809 : limit exceeded for recovery files
  • ora-39310 : call to DBMS_SCHEMA_COPY.CLEAN_FAILED_CLONE is not legal
  • ora-31674 : worker process interrupt for unhandled exception in master process
  • ora-16219 : This database is not preparing to switch over.
  • ora-19570 : file number string is outside valid range of 1 through 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.