Skip Headers
Oracle® Database Reference
12c Release 1 (12.1)

E17615-24
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

DBA_HIST_SQLTEXT

DBA_HIST_SQLTEXT displays the text of SQL statements belonging to shared SQL cursors captured in the Workload Repository. This view captures information from V$SQL and is used with the DBA_HIST_SQLSTAT view.

Column Datatype NULL Description
DBID NUMBER NOT NULL Database ID
SQL_ID VARCHAR2(13) NOT NULL SQL identifier of the parent cursor in the library cache
SQL_TEXT CLOB   Full text for the SQL statement exposed as a CLOB column
COMMAND_TYPE NUMBER   Oracle command type definition
CON_DBID NUMBER   The database ID of the PDB for the sampled session
CON_ID NUMBER   The ID of the container that CON_DBID identifies. Possible values include:
  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data