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-14043: only one partition may be added

1 Answers  


PCC-00117: Invalid ARRAYLEN length variable type

1 Answers  


ORA-00272: error writing archive log string

1 Answers  


ORA-34210: (MXCHGDCL18) You cannot change workspace object to a dimension composite because one or more surrogates has been defined for it.

1 Answers  


ORA-27160: process requested to perform operation

1 Answers  






RMAN-06454: duplexed backups require Enterprise Edition

1 Answers  


SQL*Loader-00705: Internal error

1 Answers  


ORA-13050: unable to construct spatial object

1 Answers  


NNL-01072: Administrative region name: string

1 Answers  


LPX-00324: "~S" is not a valid value for the lang attribute of xsl:sort

1 Answers  


ORA-37080: Advice requested for hierarchy with too many levels

1 Answers  


ORA-14109: partition-extended object names may only be used with tables

1 Answers  


Categories