Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle PL/SQL Self Study Questions

Oracle Tips by Burleson Consulting

 



1. What are some of the advantages of using PL/SQL over traditional procedural languages?

Answer: In traditional languages such as COBOL, Fortran, or C++, the SQL statements must be embedded inside the program and the program can be run through special pre-compiler to detect the SQL statements and replace them with native calls to the database management system. PL/SQL is superior to native programming languages in the respect that didn’t the database access is somewhat transparent. PL/SQL also has the advantage of being able to be called independently from client side applications.

2. What is the concept of Row-oriented processing, and why is it important for relational database access?

Answer: SQL is not a row-oriented language. The result set from an SQL statement could be a single row or 10,000 rows. Hence, native SQL is not appropriate type of language when we need to interrogate individual rows within a set. The relational model offers us the ability to declare and use cursors in order to extract or results set, and interrogate data, one row at a time.

3. What is the basic difference between a stored procedure and a function within Oracle?

Answer: Functions and stored procedures are identical in terms of the type of code that can be placed within them, but functions have a restriction that they must always return a value to the calling program.

4. What are the three types of looping constructs within PL/SQL?

Answer: Oracle’s PL/SQL provides three types of loop structures. We have the standard for loop structure, which allows looping for specific number of iterations, the repeat until looping construct, and the while loop construct. These three types of looping constructs are very similar to those in traditional procedural languages such as Visual Basic and C++.

5. Why does Feuerstein make such a big deal about modularity in chapter 15 of your readings?

Answer: the benefits of modular programming are very well known within the IT community. Modularity allows code re-use, provides a mechanism for the elimination of code redundancy, and also makes procedural code easier to read and understand.

6. Why is it important to place stored procedures and functions within packages?

Answer: When stored procedures and functions are encapsulated into a package, the package can be cached inside the Oracle SGA thereby making it ineligible for paging and fully resident in the RAM. This will make all of the procedures run far faster than stored procedures and functions that are not pinned inside the Oracle SGA.
 

For a complete overview of Oracle PL/SQL, see the book "Easy Oracle PL/SQL Programming".  It's only $9.95 and has a downloadable code depot:

http://www.rampant-books.com/book_2005_1_easy_plsql.htm

Note: These exercises may use the pubsdb.sql script that can be downloaded at this link.


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational