© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. Nuijten, P. BarelModern Oracle Database Programminghttps://doi.org/10.1007/978-1-4842-9166-5_17

17. Introspecting PL/SQL

Alex Nuijten1   and Patrick Barel2
(1)
Oosterhout, Noord-Brabant, The Netherlands
(2)
Almere, Flevoland, The Netherlands
 

Knowing what is going on in an executing PL/SQL block can provide valuable information. Setting client_identifier, module, and action from within a PL/SQL block can help track what each session is doing. In the DBMS_SESSION package, there are supporting procedures and functions for this.

Within the DBMS_UTILITY package are procedures and functions that can identify the call stack in case of an unexpected exception. Even ...

Get Modern Oracle Database Programming: Level Up Your Skill Set to Oracle's Latest and Most Powerful Features in SQL, PL/SQL, and JSON now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.