1
I got this trial:
CREATE OR REPLACE PROCEDURE buscaturma(cod in INTEGER) AS
nomeT varchar2(20);
BEGIN
dbms_output.put_line('inicio');
IF (cod=0)then
dbms_output.put_line('ZERO');
ELSE
SELECT DS_TURMA
into nomeT
FROM TURMA
WHERE CD_TURMA = cod;
END IF;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Não foi possível verificar');
END;
And I run with that call:
EXECUTE buscaturma(2);
Error message:
Error from line : 22 in command - EXECUTE lookup(2) Bug report - ORA-06550: line 1, column 8: PLS-00905: Object DBAMV.BUSCATURMA is invalid ORA-06550: line 1, column 8: PL/SQL: Statement Ignored 06550. 00000 - "line %s, column %s: n%s" *Cause: Usually a PL/SQL Compilation error. *Action:
I think there’s a few extra semicolons in there.
– Victor Stafusa
On which line ?
– alexjosesilva
Can fix the error. but only get the message: anonymized block completed.
– alexjosesilva