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 : 25-05-2017
ORA-19206

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

  • ora-16769 : the physical standby database is open read-only
  • ora-16136 : Managed Standby Recovery not active
  • ora-27142 : could not create new process
  • ora-36185 : (XSAGGR11) workspace object does not have any AGGCOUNT information.
  • ora-10362 : simulate a write error to take a file offline
  • ora-00125 : connection refused; invalid presentation
  • ora-36652 : (XSDUNION11) workspace object is not a string type dimension.
  • ora-34719 : (NLSCHARSET03) Character data loss in NTEXT/TEXT conversion
  • ora-38429 : invalid datatype for a stored attribute: string
  • ora-00601 : cleanup lock conflict
  • ora-16768 : SQL Apply unexpectedly offline
  • ora-14315 : cannot merge a partition with itself
  • ora-12486 : effective max labels and min labels cannot be changed
  • ora-00258 : manual archiving in NOARCHIVELOG mode must identify log
  • ora-25959 : join index must be of the bitmap type
  • ora-06616 : LU6.2 Driver: Attach to LU failed
  • ora-26083 : unsupported direct path stream version string
  • ora-06009 : NETASY: dialogue filename too long
  • ora-16767 : SQL Apply unexpectedly online
  • ora-14071 : invalid option for an index used to enforce a constraint
  • ora-33425 : (EIFMAKEF15) CAUTION: Exporting NTEXT objects using string for the EIF file character set can cause loss of data. To preserve all NTEXT data, export using the UTF8 character set for the EIF file.
  • ora-15153 : cluster not in rolling upgrade
  • ora-24036 : invalid SORT_ORDER column string specified for queue table
  • ora-04032 : pga_aggregate_target must be set before switching to auto mode
  • ora-14188 : sub-partitioning columns must form a subset of key columns of a UNIQUE index
  • ora-31530 : could not find published column string for CDC subscriber view string.string
  • ora-07474 : snclrd: close error, unable to close sgadef.dbf file.
  • ora-00208 : number of control file names exceeds limit of string
  • ora-02199 : missing DATAFILE/TEMPFILE clause
  • ora-38485 : invalid object type for the user-defined function
  • 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.