ORA-22166: collection is empty

Cause : Given ocllectino is emtpy.

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

Test i fcolleciton is mepty proir to ivnoking htis funtcion.

update : 17-08-2017
ORA-22166

ORA-22166 - collection is empty
ORA-22166 - collection is empty

  • ora-26002 : Table string has index defined upon it.
  • ora-14614 : List value 'string' specified twice in subpartition 'string'
  • ora-09926 : Unable to set effective privilege set of the server
  • ora-31697 : aborting operation at process order number string
  • ora-29386 : plan or consumer group string is mandatory and cannot be deleted or modified
  • ora-16611 : operation aborted at user request
  • ora-12090 : cannot online redefine table "string"."string"
  • ora-27071 : unable to seek to desired position in file
  • ora-19695 : fixed table x$krbmsft has not been populated
  • ora-32516 : cannot wait for ORADEBUG command completion; waited number ms for process string
  • ora-12663 : Services required by client not available on the server
  • ora-00287 : specified change number string not found in thread string
  • ora-02302 : invalid or missing type name
  • ora-31600 : invalid input value string for parameter string in function string
  • ora-25116 : invalid block number specified in the DUMP DATAFILE/TEMPFILE command
  • ora-01589 : must use RESETLOGS or NORESETLOGS option for database open
  • ora-01045 : user string lacks CREATE SESSION privilege; logon denied
  • ora-36914 : (XSAGDNGL50) In AGGMAP workspace object, LOAD_STATUS valueset workspace object contains both a child and it's ancestor.
  • ora-30000 : missing either trim specification or char expression in TRIM
  • ora-04012 : object is not a sequence
  • ora-28348 : index defined on the specified column cannot be encrypted
  • ora-12055 : materialized view definition contains cyclic dependencies with existing materialized views
  • ora-01125 : cannot disable media recovery - file string has online backup set
  • ora-16651 : requirements not met for enabling Fast-Start Failover
  • ora-06431 : ssaio: Invalid Block number
  • ora-01107 : database must be mounted for media recovery
  • ora-32617 : missing MEASURES keyword in MODEL clause
  • ora-01412 : zero length not allowed for this datatype
  • ora-38956 : Target platform string not cross platform compliant
  • ora-24371 : data would not fit in current prefetch buffer
  • 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.