在T-SQL中,以下命令将返回当前运行的存储过程的名称:
OBJECT_NAME(@@PROCID) 
在PL/SQL中,当我将以下代码放在包的存储过程上时,它返回父包的名称而不是执行的存储过程.
$$PLSQL_UNIT
有没有办法在PL/SQL中获取执行程序的名称?
有没有办法获取Oracle包中当前正在执行的过程名称?
create or replace package test_pkg
as
    procedure proc1;
end test_pkg;
create or replace package body test_pkg
as
    procedure proc1 
    is
        -- // Get the Procedure Name here?? //
    end proc1;
end test_pkg;