show_cached_text_long

Description

Displays the SQL text for cached statements longer than 16K.

Syntax

show_cached_text_long(statement_id)

Parameters

statement_id

is the ID of the statement. Derived from the SSQLID column of monCachedStatement.

Examples

Example 1

This selects the SQL text from the monCachedStatement monitoring table (the result set has been shortened for easier readability):

select show_cached_text_long(SSQLID) as sql_text, StatementSize from monCachedStatement
sql_text                                                                                                              StatementSize
-----------------------------------------------------------------------------------------------------------------------
SELECT first_column ...... 
188888

Usage