Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> PLSQL Query.

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: PLSQL Query.
 RAJNISH  Posted: Sep 04, 2008 03:22:28 AM

 Total Post: 92
 Joined: Jan, 2007






 Hi All,
can i call stand alone procedure from package.
my question is.i have one pkg i.e

create or replace package Test_pkg is
Procedure Testing_proc;------------I HAVE NOT DEFINE ON BODY.
end Test_pkg;

Testing_proc is stand alone not in Pakcage body.
can i call like this is it work?

--RAJNISH





 vino
Posted: Sep 04, 2008 05:10:56 AM  

 Total Post: 357
 Joined: Aug, 2008






 
Hi Rajnish,

The procedure you have specified will work. only begin and end statement is required to compile a proc


 RAJNISH
Posted: Sep 04, 2008 05:37:05 AM  

 Total Post: 92
 Joined: Jan, 2007






 
hi vino,
you meant to say i can call Stand Alone procedure via package specification without package body.
u meant to say that stand alone procedure should be there.

--RAJNISH

 babi
Posted: Sep 04, 2008 05:38:37 AM  

 Total Post: 16
 Joined: Aug, 2008






 
No. It is must to define testing_proc in package body. Otherwise it will raise error PLS-00323. Here is the demo.


create or replace package Test_pkg is
Procedure Testing_proc;
end Test_pkg;


create or replace procedure Testing_proc as
begin
dbms_output.put_line('HELLO');
end;
/



create or replace package body Test_pkg is
begin
NULL;
end Test_pkg;

It will raise the following error
PLS-00323: subprogram or cursor 'TESTING_PROC' is declared in a package specification and must be defined in the package body



 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Vinoth Kumar357
  Gopu Gopi340
  Gitesh Trivedi322
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software