ORA-19206: Invalid value for query or REF CURSOR parameter

Cause : The queryString argument passed to DBMS_XMLGEN.newContext was not a valid query, or REF CURSOR.

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

Rewrite the query so that the queryString argument is a valid query or REF CURSOR.

update : 22-06-2017

ORA-19206 - Invalid value for query or REF CURSOR parameter
ORA-19206 - Invalid value for query or REF CURSOR parameter

  • ora-12901 : default temporary tablespace must be of TEMPORARY type
  • ora-32002 : cannot create SPFILE already being used by the instance
  • ora-13366 : invalid combination of interior exterior rings
  • ora-02352 : file truncated error
  • ora-25221 : enqueue failed, signature specified queue not supporting non-repudiation
  • ora-38611 : FI input cursor's item type is not supported
  • ora-27148 : spawn wait error
  • ora-32844 : exceeded maximum number of string values
  • ora-38707 : Media recovery is not enabled.
  • ora-30757 : cannot access type information
  • ora-10941 : trace name context forever
  • ora-31450 : invalid value for change_table_name
  • ora-39032 : function string is not supported in string jobs
  • ora-24433 : This statement has already been prepared using OCIStmtPrepare2.
  • ora-29533 : attempt to overwrite class or resource string while defining or compiling string.string
  • ora-12002 : there is no materialized view log on table "string"."string"
  • ora-01546 : tablespace contains active rollback segment 'string'
  • ora-16568 : cannot set property string
  • ora-02882 : sou2o: Could not register SGA for protection
  • ora-36380 : (AGGRECURSE) AGGREGATE was called recursively, which is not allowed.
  • ora-16725 : the phase supplied to resource guard is invalid
  • ora-37151 : MDX parser initialization error
  • ora-02267 : column type incompatible with referenced column type
  • ora-39004 : invalid state
  • ora-22627 : tc [string] must be that of object/varray/nested table
  • ora-31528 : could not find change set string for CDC subscription string
  • ora-29847 : cannot create a local domain index on a partitioned index-organized table
  • ora-12067 : empty refresh groups are not allowed
  • ora-13027 : unable to read dimension definition from string
  • ora-09948 : Process information label retrieval failed.
  • 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.