ORA-21522: attempted to use an invalid connection in OCI (object mode only)

Cause : User attempted to use an invalid connection or a connection that has been terminated in an OCI environment (object mode), or user attempted to dereference a REF obtained from a connection which has been terminated.

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

Ensure that the connection exists and is still valid.

update : 26-04-2017

ORA-21522 - attempted to use an invalid connection in OCI (object mode only)
ORA-21522 - attempted to use an invalid connection in OCI (object mode only)

  • ora-00071 : process number must be between 1 and string
  • ora-09368 : Windows 3.1 Two-Task driver unable to spawn ORACLE
  • ora-37175 : column string is not a column of source data
  • ora-22804 : remote operations not permitted on object tables or user-defined type columns
  • ora-12198 : TNS:could not find path to destination
  • ora-08176 : consistent read failure; rollback data not available
  • ora-19608 : %s is not a backup piece
  • ora-19028 : Invalid ADT parameter passed to toObject() function
  • ora-24126 : invalid CASCADE_FLAG passed to DBMS_REPAIR.string procedure
  • ora-30400 : identical JOIN KEY clauses
  • ora-24341 : bad mode specified
  • ora-13827 : null or zero length attribute specified in SQL profile collection
  • ora-02235 : this table logs changes to another table already
  • ora-06790 : TLI Driver: poll failed
  • ora-24812 : character set conversion to or from UCS2 failed
  • ora-29390 : some resource plans are not part of any top-plan
  • ora-26663 : error queue for apply process string must be empty
  • ora-16146 : standby destination control file enqueue unavailable
  • ora-25106 : only one of PARALLEL or NOPARALLEL clause may be specified
  • ora-27001 : unsupported device type
  • ora-13628 : Insufficient privileges to access the task belonging to the specified user
  • ora-36168 : (XSMXAGGR10) COUNTVAR variable workspace object must have the same dimensionality as workspace object
  • ora-16538 : no match on requested item
  • ora-16117 : processing
  • ora-12612 : TNS:connection is busy
  • ora-09878 : sstascre/sstasat: shmat error, unable to attach tas write page
  • ora-12820 : invalid value for DEGREE
  • ora-00480 : LCK* process terminated with error
  • ora-37001 : You have one or more attached but unupdated analytic workspaces.
  • ora-25283 : either agent's name or address needed for non-repudiation
  • 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.