Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

View Source code for the Procedure/function/package

2779499Jul 16 2015 — edited Jul 16 2015

How can i extract the source of Procedure using query

I am using the below sql

SELECT

LISTAGG(TEXT,' ') WITHIN GROUP (ORDER BY LINE)

  FROM USER_SOURCE

WHERE name ='PACK'

AND TYPE='PACKAGE BODY'

ORDER BY line;

SELECT * FROM USER_OBJECTS

But it is throwing error since string is more than 4000 bytes.

ORA-01489: result of string concatenation is too long

01489. 00000 -  "result of string concatenation is too long"

*Cause:    String concatenation result is more than the maximum size.

*Action:   Make sure that the result is less than the maximum size.

How to resolve it?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2015
Added on Jul 16 2015
18 comments
13,809 views