ORA-06539: target of OPEN must be a query

Cause : The program attempted to perform an OPEN cursor operation on a dynamic statement that was not a query.

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

Ensure that the OPEN cursor operation is done on a dynamic query statement. -------------------------------------------------------- 06540 through 06549 reserved for pl/sql error handling

update : 25-06-2017

ORA-06539 - target of OPEN must be a query
ORA-06539 - target of OPEN must be a query

  • ora-16557 : the database is already in use
  • ora-09283 : sllfsk: error skipping records
  • ora-25016 : cannot specify column list for insert into nested table view column
  • ora-24774 : cannot switch to specified transaction
  • ora-16816 : incorrect database role
  • ora-00399 : corrupt change description in redo log
  • ora-00443 : background process "string" did not start
  • ora-24039 : Queue string not created in queue table for multiple consumers
  • ora-06116 : NETTCP: unable to create ORASRV process
  • ora-08180 : no snapshot found based on specified time
  • ora-14018 : partition bound list contains too few elements
  • ora-31622 : ORACLE server does not have string access to the specified file
  • ora-30204 : buffer is not large enougth
  • ora-16605 : unable to delete template, template is in use
  • ora-01754 : a table may contain only one column of type LONG
  • ora-14288 : index is not partitioned by Composite Range method
  • ora-15043 : ASM disk "string" is not a diskgroup member
  • ora-38770 : FLASHBACK DATABASE failed during recovery.
  • ora-10639 : Dump library cache during kksfbc-reparse-infinite-loop error
  • ora-26754 : cannot specify both one-to-one transformation function string and one-to-many transformation function string
  • ora-07228 : rtecho: unable to restore terminal to echo mode.
  • ora-12547 : TNS:lost contact
  • ora-28518 : data dictionary translation has illegal translation type
  • ora-19208 : parameter string of function string must be aliased
  • ora-22344 : can not specify CONVERT TO SUBSTITUTABLE option for ALTER TYPE other than NOT FINAL change
  • ora-00331 : log version string incompatible with ORACLE version string
  • ora-06813 : TLI Driver: the configured ethernet address is incorrect
  • ora-02183 : valid options: ISOLATION_LEVEL { SERIALIZABLE | READ COMMITTED }
  • ora-29342 : user string does not exist in the database
  • ora-16136 : Managed Standby Recovery not active
  • 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.