Category Archives: PLS Database Error Messages

PLS-00223: paramaterless procedure ‘string’ used as function

oracle

PLS-00223: paramaterless procedure 'string' used as function
Cause: An identifier being referenced as a parameterless function actually represents a procedure.
Action: Check the spelling and declaration of the identifier. Also confirm that the declaration is placed correctly in the block structure. If necessary, change the declaration of the identifier or change the reference so that it does not require a return value.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00222: no function with name ‘string’ exists in this scope

oracle

PLS-00222: no function with name 'string' exists in this scope
Cause: An identifier being referenced as a function was not declared or actually represents another object (for example, it might have been declared as a procedure).
Action: Check the spelling and declaration of the identifier. Also confirm that the declaration is placed correctly in the block structure.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00221: ‘string’ is not a procedure or is undefined

oracle

PLS-00221: 'string' is not a procedure or is undefined
Cause: An identifier being referenced as a procedure was not declared or actually represents another object (for example, it might have been declared as a function).
Action: Check the spelling and declaration of the identifier. Also confirm that the declaration is placed correctly in the block structure.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00220: simple name required in this context

oracle

PLS-00220: simple name required in this context
Cause: A qualified name such as A.B or A.B.C is not permitted here.
Action: Use a simple name such as A instead.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00219: label ‘string’ reference is out of scope

oracle

PLS-00219: label 'string' reference is out of scope
Cause: A block or loop label was used to qualify a variable (as in outer_block.date) that was not declared or is not within the scope of the label. The variable name might be misspelled, its declaration might be faulty, or the declaration might be placed incorrectly in the block structure.
Action: Check the spelling and declaration of the variable name. Also confirm that the declaration is placed correctly in the block structure.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00218: a variable declared NOT NULL must have an initialization assignment

oracle

PLS-00218: a variable declared NOT NULL must have an initialization assignment
Cause: In general, variables that have no initialization clause in their declaration are automatically initialized to NULL. This is illogical for NOT NULL variables; therefore, an initialization clause is required.
Action: Add an initialization clause to the variable declaration. If the initialization is too complicated for the syntax, one can add a function call (in a later release).

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00217: NUMBER scale constraint must be in range (-84 .. 127)

oracle

PLS-00217: NUMBER scale constraint must be in range (-84 .. 127)
Cause: A NUMBER variable was declared with a scale that is outside the legal range. Declarations such as N NUMBER(10,345) or N NUMBER(10,-100) are not supported.
Action: Change the illegal NUMBER scale constraint, making sure that it lies in the range -84 .. 127.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00216: NUMBER precision constraint must be in range (1 .. 38)

oracle

PLS-00216: NUMBER precision constraint must be in range (1 .. 38)
Cause: A NUMBER variable was declared with a precision that is outside the legal range. Declarations such as N NUMBER(800) or N NUMBER(123,10) are not supported.
Action: Change the illegal NUMBER precision constraint, making sure that it lies in the range 1 .. 38.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00215: String length constraints must be in range (1 .. 32767)

oracle

PLS-00215: String length constraints must be in range (1 .. 32767)
Cause: When a character variable was declared, a length outside the legal range was specified. For example, the following declarations are illegal: 

flag CHAR(0); -- illegal; zero length 

name VARCHAR2(-10); -- illegal; negative length
Action: Change the length constraint, making sure that it lies in the range 1 .. 32767.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/

PLS-00214: BEGIN…END block nesting is too deep

oracle

PLS-00214: BEGIN...END block nesting is too deep
Cause: The number of levels of nesting in the PL/SQL block is too large. Blocks can be nested up to 255 levels deep, depending on the availability of system resources such as memory.
Action: Reorganize the block structure to avoid nesting at too deep a level. For example, move the lowest-level sub-block to a higher level.

Back to previous menu

https://support.oracle.com/

http://www.oracle.com/