AllExperts > Experts 
Search      

Oracle

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Oracle Answers
Question Library

Ask a question about Oracle
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Suchitra Joshi
Expertise
I can answer questions regarding SQL, PL/SQL, Procedures, Functions, Triggers, SQL Loader and some basic dba activities or performance tuning for Oracle 8i database. I cannot answer questions related to major dba activities, backup and recovery.

Experience
10+ years
D2K

Awards and Honors
OCP - SQL and PL/SQL
Brainbench certifications in Oracle Administration, Database, PL/SQL

 
   

You are here:  Experts > Computing/Technology > Oracle > Oracle > pl/sql

Topic: Oracle



Expert: Suchitra Joshi
Date: 6/4/2008
Subject: pl/sql

Question
what are the types of procedures?
what is the difference between stored procedures& stand-alone procedures?

Answer
Hi Smita,

As you pointed out, there are only two types of procedures - stored and stand alone.

Stored procedures are stored in the database. So they can be accessed by different applications (if proper grants are given). Maintenance is minimum since it is stored only in one place.

eg. create or replace procedure p1 as
   begin
      ...
   end;

The procedure p1 will be stored in the database.

Stand alone procedures are pl/sql blocks written in any application code. Since they are not stored in database, if another application requires same procedure, you will have to rewrite it in that application. So more maintainence cost. No easy access.

eg. procedure p2 is
   begin
      ...
   end;


Hope this helps

Regards

Suchitra

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.