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-04-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-31155 : attribute string not in XDB namespace
  • ora-00337 : log file 'string' does not exist and no size specified
  • ora-02284 : duplicate INCREMENT BY specifications
  • ora-02711 : osnpvalid: write to validation channel failed
  • ora-31490 : could not attach to LogMiner session
  • ora-13606 : the specified task parameter element string is out of range for parameter string.
  • ora-01999 : password file cannot be updated in SHARED mode
  • ora-38852 : cannot mark the current instance (redo thread) as disabled
  • ora-25444 : invalid ROWID: string for table alias: string
  • ora-29930 : COMPUTE ANCILLARY DATA specified without the INDEX CONTEXT clause
  • ora-31007 : Attempted to delete non-empty container string/string
  • ora-16055 : FAL request rejected
  • ora-07255 : spini: cannot set up signal handler.
  • ora-29292 : file rename operation failed
  • ora-13775 : inconsistent datatype in input cursor
  • ora-00087 : command cannot be executed on remote instance
  • ora-26024 : SKIP_UNUSABLE_INDEXES requested and index segment was initially unusable
  • ora-25260 : AQ latch cleanup testing event
  • ora-24305 : bad bind or define context
  • ora-04064 : not executed, invalidated string
  • ora-23301 : mixed use of deferred rpc destination modes
  • ora-32162 : Read/Write SQL method not registered
  • ora-19666 : cannot do incremental restore of the control file
  • ora-01882 : timezone region string not found
  • ora-28009 : connection as SYS should be as SYSDBA or SYSOPER
  • ora-01661 : tablespace 'string' is already temporary
  • ora-08181 : specified number is not a valid system change number
  • ora-02073 : sequence numbers not supported in remote updates
  • ora-39205 : Transforms are not supported in transportable jobs.
  • ora-26732 : invalid file group string privilege
  • 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.