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 : 25-05-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-04933 : initial service identifier is non-zero
  • ora-12037 : unknown export format
  • ora-00438 : %s Option not installed
  • ora-40219 : apply result table string is incompatible with current operation
  • ora-25139 : invalid option for CREATE TEMPORARY TABLESPACE
  • ora-30971 : illegal operation on the Path Table
  • ora-12833 : Coordinator's instance not a member of parallel_instance_group
  • ora-23470 : invalid status
  • ora-37060 : (XSMCSESS08) number is not a valid custom member in dimension workspace object.
  • ora-01580 : error creating control backup file string
  • ora-09266 : spawn: error starting an Oracle process
  • ora-01285 : error reading file string
  • ora-32842 : value for property string cannot be altered
  • ora-32313 : REFRESH FAST of "string"."string" unsupported after PMOPs
  • ora-15036 : disk 'string' is truncated
  • ora-03252 : initial extent size not enough for LOB segment
  • ora-01160 : file is not a string
  • ora-08429 : raw data has invalid digit in display type data
  • ora-25962 : join index prevents multitable insert or merge
  • ora-00721 : changes by release string cannot be used by release string
  • ora-16197 : Invalid DB_UNIQUE_NAME parameter specification
  • ora-23316 : the masterdef is string
  • ora-25427 : cannot downgrade database links after database link data dictionary has been upgraded
  • ora-01925 : maximum of string enabled roles exceeded
  • ora-14507 : partition corrupt. all rows do not fall within partition bounds
  • ora-29704 : cannot specify ACTIVE_INSTANCE_COUNT in 8.1.5 or earlier release
  • ora-12439 : invalid combination of policy options
  • ora-22600 : encountered 8.0.2 (Beta) VARRAY data that cannot be processed
  • ora-14135 : a LOB column cannot serve as a partitioning column
  • ora-01232 : cannot start online backup - file string is being made read-only
  • 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.