Home > Ask the Oracle Database / Applications Experts > Questions & Answers > Calling a PL/SQL procedure
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Calling a PL/SQL procedure

Brian Peasland EXPERT RESPONSE FROM: Brian Peasland

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site
>
QUESTION POSED ON: 29 January 2003
How do I call a PL/SQL procedure? Can we call it in an SQL query as we do in SQL Server? What do we have to do to call it outside of Oracle?

>

Calling a PL/SQL procedure is really a function of your application, just as it is in SQL Server. If I am in SQL*Plus, then I can call any procedure as follows:

EXEC proc_name;
If I am in a PL/SQL block, I can call the stored procedure as follows:
proc_name;
It doesn't get any simpler than that!

For some additional examples, let's suppose that my application is a Java Server Page (JSP). Then, I can call a stored procedure with the following JSP code:

<%
CallableStatement cstmtMyProc =
ConncstmtMyProc.prepareCall("{call myProc}");
cstmtMyProc.execute();
%>
Hopefully, you've gotten the idea that calling a stored procedure varies depending on the application platform you are using. This is true of any RDBMS engine, including SQL Server and Oracle.

For More Information


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts