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

RMAN-06598: conversion between platforms 'string' and 'string' is not needed

1 Answers  


ORA-07394: unable to append string to text file

1 Answers  


ORA-30747: cannot create substitutable tables or columns of non final type string.string

1 Answers  


ORA-00152: current session does not match requested session

1 Answers  


ORA-12490: DBHIGH cannot be lowered

1 Answers  


NZE-28777: binding creation failure

1 Answers  


ORA-31507: %s parameter value longer than maximum length string

1 Answers  


ORA-34656: (MXSQL24) Additional WHERE clause conditions with CURRENT OF <cursor name> syntax

1 Answers  


LFI-00138: Unable to perform string on a name object that is string.

1 Answers  


PCC-02301: cannot reopen input file for reading

1 Answers  


DRG-11605: URL store: document specified by string not found

1 Answers  


ORA-01161: database name string in file header does not match given name of string

2 Answers  


Categories