DEBUG_EXTPROC

The DEBUG_EXTPROC package enables you to start up the extproc agent within a session. This utility package can help you debug external procedures.

This chapter contains the following topics:

DEBUG_EXTPROC Security Model

Your Oracle account must have EXECUTE privileges on the package and CREATE LIBRARY privileges.

DEBUG_EXTPROC Operational Notes

These operational notes apply to DEBUG_EXTPROC.

To install the package, run the script DBGEXTP.SQL.

SELECT SUBSTR(OBJECT_NAME, 1, 20)
FROM USER_OBJECTS
WHERE OBJECT_NAME = 'DEBUG_EXTPROC';

Having installed the package, proceed accordingly:

Because PL/SQL loads the shared library at runtime, the debugger you use may or may not automatically be able to track the new symbols from the shared library. You may have to issue some debugger command to load the symbols (for example, ‘share’ in gdb)

Rules and Limits

DEBUG_EXTPROC works only on platforms with debuggers that can attach to a running process.

Summary of DEBUG_EXTPROC Subprograms

The STARTUP_EXTPROC_AGENT procedure is the only DEBUG_EXTPROC subprogram.

Table 1 DEBUG_EXTPROC Package Subprograms

Subprogram Description
STARTUP_EXTPROC_AGENT Procedure Starts up the extproc agent process in the session

STARTUP_EXTPROC_AGENT Procedure

This procedure starts up the extproc agent process in the session. This enables you to get the PID of the executing process. This PID is needed to be able to attach to the running process using a debugger.

Syntax

DEBUG_EXTPROC.STARTUP_EXTPROC_AGENT;