Oracle training, SQL tutorials, Oracle tutorials  and Oracle consulting

 

For Better, Faster, Smarter, Oracle Solutions

 

Oracle PLSQLTutorial -
An introduction to using PL/SQL with Oracle (Part 7)

This is part 7 of our introductory Oracle PL/SQL tutorial designed to show you how to make effective use of PL/SQL . This article will explore the use of PL/SQL stored procedures in Oracle.

Using Oracle PL/SQL Stored Procedures

 

 

 

 

 

 

In these tutorials, so far, we've looked at the language elements, the pros and cons of using Oracle PLSQL, a brief example of using PL/SQL in the real world and so on. (See here for previous articles).

This tutorial looks at the use of PL/SQL stored procedures in Oracle. Note the term procedure in this context includes both stand-alone Oracle PL/SQL procedures and functions as well as PL/SQL packages.

 


Let's consider, the advantages and disadvantages of using stored procedures and which, by the way, apply to Java stored procedures as well as Oracle PL/SQL stored procedures.

Advantages of stored procedures in Oracle:

Disadvantages:

Now that we've looked at the pros and cons of using stored procedures in Oracle, what can we do with them ? The answer to that is almost anything. PL/SQL stored procedures are just named blocks of PL/SQL that are stored in the database. Therefore all of the language elements of PL/SQL and all of the PL/SQL data types are available to stored procedures just as they are to any other PL/SQL block.

In conclusion, stored procedures is one feature of Oracle that you should be using if you want to improve the performance and scalability of your applications. The disadvantages are easily outweighed by the advantages and the use of packages to combine related objects (procedures, functions and variables) into one physical unit enhances these advantages.

For reviews of book on Oracle PL/SQL and other aspects of Oracle as well as links to other resources see our Oracle resources page. You might also be interested in our beginner's SQL tutorial or our other Oracle tutorials.

Oracle PL/SQL tutorial Part 6                                                 Oracle PL/SQL tutorial Part 8

---------------------------------------

Looking for more Oracle tips and tricks ? Take a short cut now and subscribe to our ezine and you'll find plenty of them. Just fill in the form and the next issue will soon be winging its way to you.

Smartsoft Computing Ltd
Bristol, England

Tel: 0845 0031320

Contact Us

Click here to view our privacy policy .

This site uses hitslink.com to gather statistical information about our visitors. View hitslink privacy policy .

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. UNIX is a registered trademark of The Open Group in the United States and other countries.

© Copyright Smartsoft Computing Ltd 2001-2008. All rights reserved.


Search for: