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 : 23-07-2017
ORA-21522

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-01617 : cannot mount: string is not a valid thread number
  • ora-24195 : attemp to retrieve the name list of a map message with size exceeding 1024
  • ora-30035 : Undo tablespace cannot be specified as default temporary tablespace
  • ora-12219 : TNS:missing community name from address in ADDRESS_LIST
  • ora-24328 : illegal attribute value
  • ora-32332 : cannot refresh materialized view "string"."string" as type evolution has occured
  • ora-17620 : failed to register the network adapter with Oracle Disk Manager library: string
  • ora-04079 : invalid trigger specification
  • ora-02069 : global_names parameter must be set to TRUE for this operation
  • ora-06122 : NETTCP: setup failure
  • ora-16226 : DDL skipped due to lack of support
  • ora-12669 : Shared server: outbound protocol does not support proxies
  • ora-09748 : pws_look_up: fork failed
  • ora-19768 : USING clause only valid with ENABLE CHANGE TRACKING
  • ora-02430 : cannot enable constraint (string) - no such constraint
  • ora-13185 : failed to generate initial HHCODE
  • ora-14629 : cannot drop the only subpartition of a partition
  • ora-01657 : invalid SHRINK option value
  • ora-01171 : datafile string going offline due to error advancing checkpoint
  • ora-03283 : specified datafile string does not exist
  • ora-15063 : ASM discovered an insufficient number of disks for diskgroup "string"
  • ora-02834 : Server unable to open file
  • ora-07710 : sksaprs: file name buffer too small
  • ora-36692 : (XSRELTBL00) The format of the HIERHEIGHT command is: HIERHEIGHT relation1[(dimension dimvalue, ...)] into relation2 [using relation3 | a | d] [levelorder lovs] [inhierarchy {variable | valueset}].
  • ora-19728 : data object number conflict between table string and partition string in table string
  • ora-06309 : IPA: No message queue available
  • ora-25295 : Subscriber is not allowed to dequeue buffered messages
  • ora-39766 : invaid stream specified for column array conversion
  • ora-30452 : cannot compute AVG(X), VARIANCE(X) or STDDEV(X), without COUNT(X) or SUM(X)
  • ora-00070 : command string is not valid
  • 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.