ORA-19161: XP0004 - XQuery type mismatch: invalid argument type 'string' for function 'string'

Cause : The typ eof the ragument htat was apssed tot he give nfunctio nwas notv alid.

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

Fix thea rgumentt o be ofa type spuported yb the gievn functoin.

update : 22-07-2017

ORA-19161 - XP0004 - XQuery type mismatch: invalid argument type 'string' for function 'string'
ORA-19161 - XP0004 - XQuery type mismatch: invalid argument type 'string' for function 'string'

  • ora-02428 : could not add foreign key reference
  • ora-25007 : functions or methods not allowed in WHEN clause
  • ora-01902 : SEGMENT keyword expected
  • ora-24437 : OCIStmtExecute called before OCIStmtPrepare2.
  • ora-12430 : invalid privilege number
  • ora-39210 : A PCTSPACE adjustment of string is invalid.
  • ora-12037 : unknown export format
  • ora-29836 : failed to validate referenced operators
  • ora-02290 : check constraint (string.string) violated
  • ora-35020 : (QFCHECK02) The analytic workspace and EIF file definitions of workspace object have mismatched dimensioning.
  • ora-27478 : job "string.string" is running
  • ora-21602 : operation does not support the specified typecode
  • ora-36883 : (XSSRF02) The first parameter of an AW single row function cannot be NULL.
  • ora-30083 : syntax error was found in interval value expression
  • ora-12354 : secondary object being dropped
  • ora-29541 : class string.string could not be resolved
  • ora-22629 : OCIAnyData is null
  • ora-12723 : regular expression too complex
  • ora-13831 : SQL profile name specified is invalid
  • ora-30745 : error occured while trying to add column "string" in table "string"
  • ora-12671 : Shared server: adapter failed to save context
  • ora-08468 : mask option string is not supported
  • ora-19772 : change tracking file name exceeds limit of string characters
  • ora-39104 : cannot call this function from a SQL parallel query slave process
  • ora-06122 : NETTCP: setup failure
  • ora-36671 : (XSDPART09) Leaves of workspace object have different datatypes. A partition dimension cannot have more than one datatype when RANGE partitioning is used.
  • ora-01334 : invalid or missing logminer dictionary processes context
  • ora-13402 : the rasterType is null or not supported
  • ora-13062 : topology IDs do not match in the feature table and the topology
  • ora-13644 : The user "string" is invalid.
  • 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.