ALTER SESSION SET plsql_warnings = 'enable:all'
Statement processed.
CREATE OR REPLACE PROCEDURE plw6007
AUTHID DEFINER
AS
l_var NUMBER;
PROCEDURE not_used
IS
BEGIN
NULL;
END not_used;
BEGIN
DBMS_OUTPUT.put_line (l_var);
END plw6007;
Warning: PROCEDURE PLW6007 Line: 6 PLW-06006: uncalled procedure "NOT_USED" is removed.More Details: https://docs.oracle.com/error-help/db/ora-20001
CREATE OR REPLACE PACKAGE pkg_plw6007
AUTHID DEFINER
AS
PROCEDURE here_we_go;
END;
Package created.
CREATE OR REPLACE PACKAGE BODY pkg_plw6007
AS
PROCEDURE here_we_dont_go
IS
BEGIN
DBMS_OUTPUT.put_line ('Stop!');
END;
PROCEDURE here_we_go
IS
BEGIN
DBMS_OUTPUT.put_line ('Go!');
END;
END;
Warning: PACKAGE BODY PKG_PLW6007 Line: 3 PLW-06006: uncalled procedure "HERE_WE_DONT_GO" is removed.More Details: https://docs.oracle.com/error-help/db/ora-20001