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

EXP-00068: tablespace string is offline

1 Answers  


ORA-12677: Authentication service not supported by database link

1 Answers  


ORA-39023: Version string is not supported.

1 Answers  


ORA-29392: cpu parameters for level string for plan string must be zero

1 Answers  


ORA-28530: Heterogeneous Services initialization error in NLS language ID

1 Answers  






ORA-01220: file based sort illegal before database is open

1 Answers  


RMAN-00550: parser package failed to load

1 Answers  


ORA-19904: test recovery not allowed for datafile string

1 Answers  


ORA-16025: parameter string contains repeated or conflicting attributes

1 Answers  


NID-00403: DBNEWID - Completed with validation errors.

1 Answers  


RMAN-06727: could not locate datafilecopy string

1 Answers  


ORA-13139: could not obtain column definition for string

1 Answers  


Categories