Get a list of all functions and procedures in an Oracle database

后端 未结 3 1692
南笙
南笙 2020-12-04 12:17

I\'m comparing three Oracle schemas.

I want to get a list of all the functions and procedures used in each database. Is this possible via a query? (preferably includ

3条回答
  •  广开言路
    2020-12-04 12:35

    SELECT * FROM ALL_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE')
    

    The column STATUS tells you whether the object is VALID or INVALID. If it is invalid, you have to try a recompile, ORACLE can't tell you if it will work before.

提交回复
热议问题