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

Does normalization improve performance?

552


How does rowid help in running a query faster?

965


What is primary key and unique key?

542


Explain about various levels of constraint.

519


What are the different ways to optimize a sql query?

484






Does inner join return duplicate rows?

518


Is it possible to sort a column using a column alias?

601


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

550


How do I run sql profiler?

584


What are the advantages of pl sql?

603


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3105


Why indexing is needed?

516


How many commands are there in sql?

545


What is difference between rank () row_number () and dense_rank () in sql?

575


What is record data type?

512