Oracle8 Error Messages
Release 8.0.4

A58312-01

Library

Product

Contents

Index

Prev Prev Next

22900-22919: SQL Nested Tables and Collections Messages

ORA-22900: select item of subquery within THE operator is not a collection

Cause: The subquery within THE operator must select a collection item.

Action: Change the subquery to select a collection item, then retry the operation.

ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type

Cause: An attempt was made to compare nested table, VARRAY, or LOB attributes of an object type in the absence of a MAP or ORDER method.

Action: Define a MAP or ORDER method for the type of the object type then retry the operation.

ORA-22902: CURSOR expression not allowed

Cause: CURSOR on a subquery is allowed only in the top-level SELECT list of a query.

Action: Remove the CURSOR expression and retry the operation.

ORA-22903: MULTISET expression not allowed

Cause: An attempt was made to use the MULTISET expression outside of a CAST to a nested table or VARRAY type.

Action: Put the MULTISET(subquery) expression inside a CAST to a nested table or VARRAY type.

ORA-22904: invalid reference to a nested table column

Cause: An invalid reference was made to a nested table column.

Action: Remove invalid reference to the nested table column and retry the operation.

ORA-22905: cannot access rows from a non nested table item

Cause: An attempt was made to access rows of an item whose type is not known at parse time or that is not of a nested table type.

Action: Use the CAST operator to cast the item to a nested table type.

ORA-22906: cannot perform DML on expression or on nested table view column

Cause: An attempt was made to perform a DML on a nested table view column where a nested table column of a base table is expected.

Action: Remove the DML statements on nested table view columns and retry the operation.

ORA-22907: invalid CAST to a type that is not a nested table or VARRAY

Cause: The CAST to a type was performed on something other than a nested table or VARRAY type.

Action: CAST only to a nested table or VARRAY type then retry the operation.

ORA-22908: reference to NULL table value

Cause: The evaluation of the THE subquery resulted in a NULL value implying a NULL table instance. The THE subquery must result in a single non-NULL table instance.

Action: Ensure that the evaluation of the THE subquery results in a single non-null table instance. If the error occurs in the context of an insert statement where the THE subquery was the target of an insert, then ensure that an empty nested table instance is created by updating the nested table column of the parent table's row specifying an empty nested table constructor.

ORA-22909: exceeded maximum VARRAY limit

Cause: The total number of elements used in VARRAY construction exceeds the specified VARRAY limit.

Action: Don't use the more than the specified limit of elements for VARRAY construction.

ORA-22910: cannot specify schema name for nested tables

Cause: Table name was qualified with schema name in the nested table storage clause.

Action: Respecify the nested table storage clause without the schema name qualification. By default, the store table for the nested table is created in the same schema as the containing table.

ORA-22911: duplicate storage specification for the nested table item

Cause: The storage clause is specified more than once for the nested table column.

Action: Remove the duplicate storage specification.

ORA-22912: specified column or attribute is not a nested table type

Cause: The storage clause is specified for a column or attribute that is not a nested table column or attribute.

Action: Specify a valid nested table column or attribute.

ORA-22913: must specify table name for nested table column or attribute

Cause: The storage clause is not specified for a column or attribute that is a nested table column or attribute.

Action: Specify a table name using the Nested Table storage clause.

ORA-22914: DROP of nested tables not supported

Cause: Attempt was made to DROP a nested table.

Action: Nested tables cannot be explicitly dropped. Nested tables can only be dropped by dropping their containing parent table.

ORA-22915: cannot ALTER nested tables to ADD/MODIFY columns

Cause: Attempt was made to ADD or MODIFY columns of a nested table.

Action: Columns cannot be added or modified for a nested table. You must ALTER the parent table's nested table column to cause any such change.

ORA-22916: cannot do an exact FETCH on a query with nested cursors

Cause: Exact FETCH on a query is not allowed if the query returns any cursors.

Action: Do not use an exact FETCH.

ORA-22920: row containing the LOB data to update is not locked

Cause: The row containing the LOB was not locked before the lob was updated.

Action: Lock the row containing the LOB before updating the LOB data.

ORA-22921: length of input buffer is smaller than amount requested

Cause: The buffer length was not big enough to hold the amount of data requested.

Action: Verify that the number of bytes/characters specified in the input amount parameter is not bigger than the number of bytes specified in the input buffer length parameter. Allocate more space for the input buffer if necessary.

ORA-22922: LOB does not exist

Cause: The lob associated with the input locator does not exist. The information in the locator does not refer to an existing LOB.

Action: Repopulate the locator by issuing a SELECT statement and retry the operation.

ORA-22923: amount of data specified in streaming lob write is 0

Cause: An attempt was made to write LOB data by the streaming mechanism (that is, unlimited write) but the input amount of data to stream was specified as 0. This means that an attempt is being made to write 0 bytes to the LOB data.

Action: Write more than 0 bytes to the LOB data.

ORA-22924: snapshot too old

Cause: The version of the LOB data needed for the consistent read was already overwritten by another writer.

Action: Use a larger version pool then retry the operation.

ORA-22925: operation would exceed maximum size allowed for a LOB

Cause: An attempt was made to write too much data to the LOB. LOB size is limited to 4 gigabytes.

Action: Either start writing at a smaller LOB offset or write less data to the LOB.

ORA-22926: input trim length is greater than current LOB length

Cause: The input trim length to which the LOB data will be trimmed was specified to be greater than the current length of the LOB data.

Action: Might not need to trim the LOB data because it is already smaller than the trim length specified. Or, if trimming the LOB data really is required, use a smaller trim length.

ORA-22927: invalid input LOB locator

Cause: An invalid input LOB locator was used; it was never initialized.

Action: Initialize the input LOB locator and pass the initialized LOB locator to the function.

ORA-22928: invalid privilege on directories

Cause: An attempt was made to grant or revoke an invalid privilege on a directory.

Action: Only CREATE, DELETE, READ and WRITE privileges can be granted or revoked on directories. Do not grant or revoke other privileges.

ORA-22929: invalid or missing directory name

Cause: The required directory name is invalid or missing.

Action: Specify a valid name.

ORA-22930: directory does not exist

Cause: Attempt to access a directory that does not exist.

Action: Make sure the name is correct.

ORA-22950: cannot order objects with without map or order method

Cause: Object types must have map or order methods defined for all comparisons other than equality and inequality comparisons.

Action: Define a map or order method for the object type.

ORA-22951: NULL returned by ORDER method

Cause: Order method used to compare two object values returned NULL.

Action: Redefine the order method to not return a NULL.

ORA-22970: object view is required here

Cause: Either the expression that was entered is not a view name or the name specified does not correspond to an object view.

Action: Replace the expression with the name of an object view and retry the operation.

ORA-22971: invalid datatype for primary key-based OID

Cause: When creating a typed view, the datatype of an expression in the WITH OID clause was not allowed for primary key-based OID.

Action: Replace the expression with one of appropriate scalar datatype and retry the operation.

ORA-22972: NULL value not allowed in primary key-based OID

Cause: A value constituting the primary key-based OID evaluated to NULL.

Action: Ensure the expressions in MAKE_REF system function or WITH OID clause of CREATE VIEW do not evaluate to NULL.

ORA-22973: size of primary key-based OID exceeds maximum column size

Cause: The size of the primary key-based OID of a typed view was too large.

Action: Specify fewer or smaller primary key columns in the WITH OID clause when creating the typed view.

ORA-22974: WITH OID clause required but not specified

Cause: WITH OID clause was not specified when creating a typed view.

Action: Specify the WITH OID clause, or create an untyped view instead, or create a typed view on a single typed table or view.

ORA-22975: cannot create a primary key-based REF to this object view

Cause: The object view specified in the MAKE_REF function did not have a primary key-based OID. A primary key-based REF cannot be created for such a view.

Action: Specify an object view that has a primary key-based OID in the MAKE_REF function.

ORA-22976: incorrect number of arguments to MAKE_REF

Cause: Number of arguments for MAKE_REF was different from the number of primary key attributes of the object view.

Action: Specify all the necessary arguments for MAKE_REF.

ORA-22977: missing or invalid attribute

Cause: Either the attribute name is missing in the WITH OBJECT OID clause or it is invalid.

Action: Specify a valid attribute of the object type of the object view.

ORA-22978: only simple attribute name is allowed in the WITH OBJECT OID clause

Cause: Attempted to specify a Nested attribute in the WITH OBJECT OID clause.

Action: Specify a top-level attribute of the object type of the object view.

ORA-22979: cannot INSERT a REF from an object view into a table

Cause: Attempt to insert a REF selected from an object view into the REF column of a table. Currently, such a REF cannot be stored in the database.

Action: Make sure the REF to be inserted into a REF column is selected from a table.

ORA-22990: LOB locators cannot span transactions

Cause: A LOB locator selected in one transaction cannot be used in a different transaction.

Action: Re-select the LOB locator and retry the operation.

ORA-22991: insufficient space allocated for argument name

Cause: The data to be returned in the argument is greater than the amount of space allocated for the argument.

Action: Allocate more space for the argument.

ORA-22992: cannot use LOB locators selected from remote tables

Cause: A remote LOB column cannot be referenced.

Action: Remove references to LOBs in remote tables.

ORA-22993: specified input amount is greater than actual source amount

Cause: Case 1: For LOB write, the amount of data received is different from the amount that was indicated would be sent.

Action: For Case 1: This will happen when using OCI's piecewise mechanism with polling or with a callback function. Modify the code either to send the amount specified or to pass 0 as the input amount so that any amount of data can be sent.

ORA-22994: source offset is beyond the end of the source LOB

Cause: The source offset for a LOB COPY or LOB LOADFROMFILE is beyond the end of the source LOB.

Action: Check the length of the LOB and then adjust the source offset.




Prev

Top

Next
Oracle
Copyright © 1997 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index