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-22062: invalid input string [string]

1 Answers  


ORA-07251: spcre: semget error, could not allocate any semaphores.

1 Answers  


ORA-02045: too many local sessions participating in global transaction

1 Answers  


ORA-01575: timeout waiting for space management resource

1 Answers  


KUP-04068: internal error fetching attribute string

1 Answers  






ORA-02074: cannot string in a distributed transaction

1 Answers  


ORA-36673: (XSDPART11) Use simple leaf values to identify concat dimension values in a VALUES LESS THAN clause, rather than the <LEAF: VALUE> format.

1 Answers  


ORA-10576: Give up restoring recovered datafiles to consistent state: some error occurred

1 Answers  


ORA-00397: instance recovery process terminated with error

1 Answers  


ORA-08464: input raw decimal data contains more than 42 digits

1 Answers  


ORA-40106: positive target value not specified for computing Lift

1 Answers  


TNS-12667: Shared server: outbound transport protocol different from inbound

1 Answers  


Categories