Solved

display a stored procedure

Posted on 2004-10-20
3
2,215 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 50 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

820 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