How to see PL/SQL Stored Function body in Oracle

前端 未结 3 1063
北海茫月
北海茫月 2021-01-01 11:02

I have a stored function in Oracle database pAdCampaign.fGetAlgoGroupKey. How to see the code of this function.?

3条回答
  •  無奈伤痛
    2021-01-01 11:21

    If is a package then you can get the source for that with:

        select text from all_source where name = 'PADCAMPAIGN' 
        and type = 'PACKAGE BODY'
        order by line;
    

    Oracle doesn't store the source for a sub-program separately, so you need to look through the package source for it.

    Note: I've assumed you didn't use double-quotes when creating that package, but if you did , then use

        select text from all_source where name = 'pAdCampaign' 
        and type = 'PACKAGE BODY'
        order by line;
    

提交回复
热议问题