The DBA_SOURCE view provides the source code listing of all objects in the database.

ownerTEXTUser name of the program owner.
schema_nameTEXTName of the schema in which the program belongs.
nameTEXTName of the program.
typeTEXTType of program. Possible values are: FUNCTION, PACKAGE, PACKAGE BODY, PROCEDURE, and TRIGGER.
lineINTEGERSource code line number relative to a given program.
textTEXTLine of source code text.