PLS-00487: Invalid reference to variable 'string'



PLS-00487: Invalid reference to variable 'string'..

Answer / guest

Cause: A variable was referenced in a way that is
inconsistent with its datatype. For example, a scalar
variable might have been mistakenly referenced as a record,
as follows: DECLARE CURSOR emp_cur IS SELECT empno, ename,
sal FROM emp; emp_rec emp_cur%ROWTYPE; my_sal NUMBER(7,2);
BEGIN ... total_sal := total_sal + my_sal.sal; -- invalid ...

Action: Check the spelling of the variable name. Make sure
the variable was declared properly and that the declaration
and reference are consistent regarding datatype.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

QSM-00514: the size of must-retain summaries exceeds specified space limit

1 Answers  


PROT-00304: Failed to create dump file

1 Answers  


LSX-00125: "restriction" element is improperly defined

1 Answers  


ORA-26079: file "string" is not part of table string.string

1 Answers   Cisco,


DRG-11611: URL store: unknown protocol specified in string

1 Answers  


TNS-04017: Please wait. Shutdown in progress.

1 Answers  


NZE-28824: invalid encryption/decryption/signature state passed

1 Answers  


ORA-01953: command no longer valid, see ALTER USER

1 Answers  


ORA-09266: spawn: error starting an Oracle process

1 Answers  


ORA-25504: the system is already in quiesced state

1 Answers  


IMG-00807: no weights specified in weight string

1 Answers  


PCC-02328: undefined struct member

1 Answers  


Categories