Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

display a stored procedure

Posted on 2004-10-20
3
Medium Priority
?
2,231 Views
Last Modified: 2007-11-27
running oracle 8.1.7.2.  how can i display a stored procedure from the sqlplus command line?  i'm getting a bunch of junk on google and this is driving me nuts! thanks.

0
Comment
Question by:benpung
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
paquicuba earned 200 total points
ID: 12363710
To find the procedures:
SELECT OBJECT_NAME, OBJECT_TYPE FROM ALL_OBJECTS WHERE OBJECT_TYPE = 'PROCEDURE';
or
SELECT OBJECT_NAME, OBJECT_TYPE FROM USER_OBJECTS WHERE OBJECT_TYPE = 'PROCEDURE';

to see the text:
SELECT TEXT FROM ALL_SOURCE WHERE NAME = < procedure name>;
or
SELECT TEXT FROM USER_SOURCE WHERE NAME = < procedure name>;


Hope this helps!
0
 
LVL 1

Author Comment

by:benpung
ID: 12363732
Thanks!
0
 
LVL 23

Expert Comment

by:paquicuba
ID: 12364320
You're Welcome!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question