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 : 26-09-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-25274 : AQ Buffered Queue event
  • ora-00207 : control files are not for the same database
  • ora-39113 : Unable to determine database version
  • ora-19957 : database should have no datafiles in unknown state
  • ora-01152 : file string was not restored from a sufficiently old backup
  • ora-14157 : invalid subpartition name
  • ora-30341 : dropped level has references
  • ora-16028 : new string causes less destinations than LOG_ARCHIVE_MIN_SUCCEED_DEST requires
  • ora-16090 : archive log to be replaced not created by managed standby process
  • ora-14050 : invalid ALTER INDEX MODIFY PARTITION option
  • ora-14109 : partition-extended object names may only be used with tables
  • ora-10579 : Can not modify control file during test recovery
  • ora-02174 : Missing required thread number
  • ora-12091 : cannot online redefine table "string"."string" with materialized views
  • ora-37137 : (XSCCOMP12) You cannot CHGDFN workspace object because it is a COMPRESSED COMPOSITE.
  • ora-01934 : circular role grant detected
  • ora-13275 : spatial index creation failure on unsupported type
  • ora-33024 : (XSAGDNGL11) AGGMAP workspace object contains duplicate information.
  • ora-38740 : Usable blocks value string is not valid.
  • ora-28153 : Invalid client initial role specified: 'string'
  • ora-14114 : partitioned table cannot have column with object, REF, nested table, array datatype
  • ora-13860 : Invalid service name
  • ora-28530 : Heterogeneous Services initialization error in NLS language ID
  • ora-24408 : could not generate unique server group name
  • ora-19104 : invalid XQueryX: missing attribute string
  • ora-26709 : Streams RFS restart
  • ora-16035 : missing required keyword string
  • ora-02254 : DEFAULT not allowed here
  • ora-13913 : The threshold cannot be set when SYSAUX is offline.
  • ora-24160 : name string already exists in the name value pair list
  • 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.