I Defined SP1, Sp2 (sp=StoreProcedures)In Package Specification but I Implemented Sp1, sp2, sp3, sp4, sp5
then What type of Error You will find????

Answer Posted / ashokram s

As Ramesh said
when creating the package body with procs that are not declared in specification, no error will be throwed. But when executing you cant execute the undeclared procs:

SQL> SET SERVEROUTPUT ON;
SQL> EXEC jan.sp1;
hello

PL/SQL procedure successfully completed.

SQL> EXEC jan.sp2;
how are you

PL/SQL procedure successfully completed.

SQL> EXEC jan.sp3;
BEGIN jan.sp3; END;

*
ERROR at line 1:
ORA-06550: line 1, column 11:
PLS-00302: component 'SP3' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql performance tuning?

651


List and explain the different types of join clauses supported in ansi-standard sql?

1032


Can you rollback after commit?

717


where are cookies actually stored on the hard disk? : Sql dba

786


Is sql better than excel?

701






What is delimiter sql?

704


Why function is used in sql?

678


Explain what is sql?

825


What does (+) mean in sql joins?

739


What is rollback?

786


what is try_catch block in procedure

1393


How do I audit the sql sent to the server?

731


Explain the update statement in sql

731


In pl/sql, what is bulk binding, and when/how would it help performance?

736


How do I truncate a sql log file?

741