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 : 29-05-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-31078 : error in SQL mapping information
  • ora-12077 : temporary updatable materialized view log does not exist
  • ora-35810 : (XSINPUTERR) The command has requested more input than was supplied in the command string.
  • ora-26662 : unable to process STREAMS Data Dictonary information for object
  • ora-25253 : listen failed, queue string.string is not enabled for dequeue
  • ora-28652 : overflow segment attributes cannot be specified
  • ora-30444 : rewrite terminated by the sql analyzer
  • ora-06440 : ssaio: the asynchronous read returned incorrect number of bytes
  • ora-26576 : cannot acquire SR enqueue
  • ora-27464 : invalid schedule type string
  • ora-01072 : cannot stop ORACLE; ORACLE not running
  • ora-23332 : group string is in use; cannot drop
  • ora-31020 : The operation is not allowed, Reason: string
  • ora-28236 : invalid Triple DES mode
  • ora-30727 : duplicate referential constraint for a REF column
  • ora-23360 : only one materialized view for master table "string" can be created
  • ora-29536 : badly formed source: string
  • ora-26706 : cannot downgrade capture process
  • ora-34296 : (MXDCL36) A NUMBER dimension must be defined with a fixed precision and scale, using the form NUMBER(precision) or NUMBER(precision, scale).
  • ora-13066 : wrong feature geometry or element type
  • ora-19235 : XQ0015 - unsupported must-understand extension
  • ora-14014 : maximum number of partitioning columns is 16
  • ora-16530 : invalid buffer or length
  • ora-36406 : (VCACHE00) 'number' is an invalid value for the VARCACHE option. The only permissible values are 'SESSION', 'VARIABLE', and 'NONE'.
  • ora-01370 : Specified restart SCN is too old
  • ora-19735 : wrong creation SCN - control file expects initial plugged-in datafile
  • ora-19242 : XQ0022 - namespace declaration attribute must be a literal
  • ora-27487 : invalid object privilege for a string
  • ora-12600 : TNS: string open failed
  • ora-06815 : TLI Driver: could not link SPX and IPX streams
  • 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.