Oracle Error PLS-00323: subprogram or cursor is declared in a package specification and must be defined in the package body

前端 未结 3 964
有刺的猬
有刺的猬 2021-02-05 07:01

Can someone help me put my pl/sql procedure in a package? I\'ve tried and I\'m struggling with it:

This is what I have, for my package specification:

CRE         


        
3条回答
  •  一整个雨季
    2021-02-05 07:18

    "subprogram or cursor 'M115_EDIT' is declared in a package specification and must be defined in the package body"

    I got this error while i was working on my project.the reason for this was the a parameter name that was inside the procedure defined in the body did not match with the corresponding parameter name in the body.

    my specification:

    my body

    my market_code parameter is different in the body when compared with the specification where it is defined as sub_market_code.error occurred due to this difference. i changed the sub_market_code parameter in the specification to market_code so that it matches with the body and this solved the problem mentioned above.

    clearly 2 parameters that are mentioned in your body implementation of the procedure 'r_date' and 'dur' are not defined in the specification.error is due to this difference between the body and the specification.

提交回复
热议问题