0

I think code is correct but compiler throws this exception:

Error(6,1): PLS-00201: el identificador 'DKMS_OUTPUT.PUT_LINE' se debe declarar

This is code I´m trying to run:

SET SERVEROUTPUT ON;
SET VERIFY OFF;

BEGIN
  p_sumar(5,4);
  p_sumar(8,9);
END;
/
CREATE OR REPLACE PROCEDURE p_sumar (numero1 NUMBER, numero2 NUMBER)
IS
resultado NUMBER;
BEGIN
resultado:=numero1+numero2;
DKMS_OUTPUT.PUT_LINE('La suma es: ' ||resultado);
END p_sumar;
/
Cale Sweeney
  • 1,014
  • 1
  • 15
  • 37
Pedro R
  • 11
  • 2
  • Does this answer your question? [PLS-00201 - identifier must be declared](https://stackoverflow.com/questions/23526870/pls-00201-identifier-must-be-declared) – erwan Apr 09 '20 at 15:49
  • Should it be ```DBMS_OUTPUT``` instead of ```DKMS_OUTPUT```? – Jay Ehsaniara Apr 10 '20 at 02:44

1 Answers1

1

Just solved problem by myself, there was an spell mistake in DKMS_OUTPUT.PUT_LINE(..) it´s dbms:output....

Pedro R
  • 11
  • 2