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

后端 未结 3 1691
南笙
南笙 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:31

     SELECT * FROM all_procedures WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE') 
     and owner = 'Schema_name' order by object_name
    

    here 'Schema_name' is a name of schema, example i have a schema named PMIS, so the example will be

    SELECT * FROM all_procedures WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE') 
    and owner = 'PMIS' order by object_name
    

    Ref: https://www.plsql.co/list-all-procedures-from-a-schema-of-oracle-database.html

提交回复
热议问题