InamTaj
InamTaj

Reputation: 276

How to see code of a stored Procedure in PL/SQL

I have made multiple procedures in pl/sql oracle, using APEX.

I want to see pl/sql code for my Procedures.

I need a query to do this operation, not through wizards and stuff.

Kindly help me?

Upvotes: 0

Views: 6613

Answers (1)

InamTaj
InamTaj

Reputation: 276

Well I found the solution. Very simple.

SELECT TEXT 
FROM USER_SOURCE 
WHERE NAME = 'PROCEDURE NAME';

Note that procedure name must be in capitals.

For example:

SELECT TEXT 
FROM USER_SOURCE 
WHERE NAME = 'SELECTION_SORT';

Upvotes: 2

Related Questions