ORA-19162: XP0004 - XQuery type mismatch: invalid argument types 'string', 'string' for function 'string'

Cause : The typ eof the ragumentst hat wer epassed ot the gievn functoin was nto valid.

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

Fix thea rgument sto be o fa type papropriaet for th egiven fnuction.

update : 25-05-2017

ORA-19162 - XP0004 - XQuery type mismatch: invalid argument types 'string', 'string' for function 'string'
ORA-19162 - XP0004 - XQuery type mismatch: invalid argument types 'string', 'string' for function 'string'

  • ora-15181 : Symbol [string] not found in library string, error [string]
  • ora-16152 : standby database is in 'no-data-loss' protected mode
  • ora-38862 : FLASHBACK DATABASE in progress
  • ora-27155 : could not execute file
  • ora-02472 : PL/SQL functions not allowed in hash expressions
  • ora-02255 : obsolete 7.1.5
  • ora-37184 : illegal value string for ADVMODE
  • ora-29295 : invalid mime header tag
  • ora-21525 : attribute number or (collection element at index) string violated its constraints
  • ora-13126 : unable to determine class for spatial table string
  • ora-29907 : found duplicate labels in primary invocations
  • ora-23309 : object string.string of type string exists
  • ora-33016 : (XSAGDNGL07) In AGGMAP workspace object, workspace object is not a valid operator or variable name.
  • ora-38452 : Expression Filter index name may not be longer than 25 characters
  • ora-01904 : DATAFILE keyword expected
  • ora-31697 : aborting operation at process order number string
  • ora-36920 : (XSVPMVTOPART01) workspace object cannot become anonymous because it has properties.
  • ora-25013 : OLD and PARENT values cannot be identical
  • ora-32001 : write to SPFILE requested but no SPFILE specified at startup
  • ora-24432 : The statement that was returned is not tagged.
  • ora-01236 : Error string occurred during initialization of file header access
  • ora-07880 : sdopnf: internal error
  • ora-38782 : cannot flashback database to non-guaranteed restore point 'string'
  • ora-31635 : unable to establish job resource synchronization
  • ora-09890 : osnTXtt: malloc failed
  • ora-03298 : cannot shrink datafile - file string is under hot backup
  • ora-19270 : XP0050 - treat failed - expected string got string
  • ora-24169 : rule condition has unrecognized variables
  • ora-24803 : illegal parameter value in lob read function
  • ora-28671 : UPDATE BLOCK REFERENCES may not be used on a partitioned index as a whole
  • 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.