My Oracle Support Banner

How to Retrieve DML Statements Text and Values from Bind Variables (Doc ID 363590.1)

Last updated on DECEMBER 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata 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.
Checked for relevance on 17-Sep-2010


This document explains how to retrieve

  1. The DML and SELECT statements text
  2. The values of the bind variables

Example : we want to retrieve the full SELECT statement text executed on SCOTT.DEPT and the values used in the bind variables of the following :

SQL> select * from scott.dept where deptno >= :b1 and deptno<= :b2;


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

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

In this Document

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