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-33883: (MAKEDCL36) You cannot use the string attribute when you define an EXTERNAL partition with an existing target.

1 Answers  


ORA-30677: session is already connected to a debugger

1 Answers  


PLS-00994: Cursor Variables cannot be declared as part of a package

1 Answers   CTS,


ORA-29895: duplicate base datatype specified

1 Answers  


ORA-04033: Insufficient memory to grow pool

1 Answers  






ORA-30685: package version is not compatible with Oracle version

1 Answers  


PCB-00310: AT clause is an Oracle extension

1 Answers  


ORA-13517: Baseline (id = string) does not exist

1 Answers  


RMAN-06124: error while looking up datafilecopy key: number

1 Answers  


ORA-25303: Buffered operation allowed only on the owner instance

1 Answers  


ORA-04011: sequence string must range between string and string

1 Answers  


ORA-16570: operation requires restart of database "string"

1 Answers  


Categories