Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


PLS-00488: invalid variable declaration: object 'string'
must be a type or subtype



PLS-00488: invalid variable declaration: object 'string' must be a type or subtype..

Answer / guest

Cause: The datatype specifier in a variable declaration does
not designate a legal type. For example, the %TYPE attribute
might not have been added to a declaration, as in DECLARE
my_sal emp.sal%TYPE; my_ename emp.ename; -- missing %TYPE
... When declaring a constant or variable, to provide the
datatype of a column automatically, use the %TYPE attribute.
Likewise, when declaring a record, to provide the datatypes
of a row automatically, use the %ROWTYPE attribute.

Action: Make sure the datatype specifier designates a legal
type. Remember to use the %TYPE and %ROWTYPE attributes when
necessary.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Oracle Errors Interview Questions

ORA-22289: cannot perform string operation on an unopened file or LOB

1 Answers   Virtusa,


ORA-27058: file I/O question parameter is invalid

1 Answers  


ORA-02453: duplicate HASH IS specification

1 Answers  


NNL-01078: Access/Create File Error : string

1 Answers  


ORA-06024: NETASY: VTM error

1 Answers  






SQL-02114: Invalid SQL Cursor usage: trying to CLOSE a CLOSEd cursor

1 Answers  


ORA-26503: internal RepAPI operation failure on object string.string

1 Answers  


ORA-38436: attribute set used for an Expression set may not be modified.

1 Answers  


NID-00506: SETNAME Set a new database name only NO

1 Answers  


ORA-25454: error during evaluation of rule set: string.string for iterator: string

1 Answers  


PCC-02311: cannot have VARCHAR bit fields

1 Answers  


ORA-21705: service context is invalid

1 Answers  






Categories