Den fulde forespørgsel for en lagret procedure (ikke i en pakke):
select text
from all_source
where owner = 'MYSCHEMA'
and type = 'PROCEDURE'
and name = 'MY_PROCEDURE'
order by line;
Hvis du er tilsluttet som bruger MYSCHEMA, kan du bruge USER_SOURCE:
select text
from user_source
where type = 'PROCEDURE'
and name = 'MY_PROCEDURE'
order by line;
Andre værdier for TYPE er:
- TYPE KROPP
- FUNKTION
- TRIGGER
- TYPE
- JAVA-KILDE
- PAKKEBOD
- PAKKE