Answers for "oracle list running stored procedures"

SQL
5

oracle list procedures

-- Depending on connected user grants:
SELECT * FROM USER_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE');
SELECT * FROM ALL_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE');
SELECT * FROM DBA_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE');
Posted by: Guest on June-08-2021
3

oracle show running procedures

SELECT 'CALLED PLSQL' AS STATUT,
       VS.USERNAME,
       VS.OSUSER,
       VS.PROGRAM,
       VS.MODULE,
       VS.ACTION,
       VS.SQL_EXEC_START,
       D_O.OBJECT_NAME,
       D_O.OBJECT_TYPE
FROM DBA_OBJECTS D_O
         INNER JOIN V$SESSION VS ON D_O.OBJECT_ID = VS.PLSQL_ENTRY_OBJECT_ID
UNION ALL
SELECT 'CURRENT PLSQL' AS STATUT,
       VS.USERNAME,
       VS.OSUSER,
       VS.PROGRAM,
       VS.MODULE,
       VS.ACTION,
       VS.SQL_EXEC_START,
       D_O.OBJECT_NAME,
       D_O.OBJECT_TYPE
FROM DBA_OBJECTS D_O
         INNER JOIN V$SESSION VS ON D_O.OBJECT_ID = VS.PLSQL_OBJECT_ID;
Posted by: Guest on January-15-2021

Code answers related to "oracle list running stored procedures"

Code answers related to "SQL"

Browse Popular Code Answers by Language