Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

creating package body sub programme present but it shows as its not present

pauljohnyNov 23 2021

This is the script Why am in unable to create a package body ??
CREATE or replace PACKAGE ko_mailing_pkg AS
PROCEDURE mail(p_from varchar2,p_to varchar2,p_sub varchar2,p_body varchar2) ;end ko_mailing_pkg;
/

CREATE OR REPLACE PACKAGE BODY ko_mailing_pkg AS
PROCEDURE mail(p_from varchar2,p_to varchar2,p_sub varchar2,p_body varchar) IS
BEGIN
null;
END mail;
end ko_mailing_pkg;
but this throws error we can see the mail procedure clearly mentioned in package body
The output .. package created but not package body
SQL> start pb

Package created.

11 /

Warning: Package Body created with compilation errors.

SQL> show error
Errors for PACKAGE BODY KO_MAILING_PKG:

LINE/COL ERROR
-------- -----------------------------------------------------------------
3/12 PLS-00323: subprogram or cursor 'MAIL' is declared in a package
specification and must be defined in the package body

This post has been answered by Billy Verreynne on Nov 23 2021
Jump to Answer
Comments
Post Details
Added on Nov 23 2021
3 comments
84 views