Solved

display a stored procedure

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now