My Oracle Support Banner

How to Determine the SQL_ID of a SQL Statement in a PL/SQL Block (Doc ID 741724.1)

Last updated on NOVEMBER 08, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 9.0.1.0 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

This article outlines how to determine the sql_id of a sql statement that resides in a PL/SQL block.
For SQL outside of a PL/SQL block, see:

<Document 1627387.1> How to Determine the SQL_ID for a SQL Statement

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.