学习动态性能表(四)
[font=宋体]本视图包括[/font][font=Times New Roman]Shared pool[/font][font=宋体]中[/font][font=Times New Roman]SQL[/font][font=宋体]语句的完整文本,一条[/font][font=Times New Roman]SQL[/font][font=宋体]语句可能分成多个块被保存于多个记录内。[/font][font=宋体] 注:[/font][font=Times New Roman]V$SQLAREA[/font][font=宋体]只包括头[/font][font=Times New Roman]1000[/font][font=宋体]个字符。[/font]
[font=Times New Roman] [/font]
[b][font=Times New Roman]V$SQLTEXT[/font][/b][b][font=宋体]中的常用列[/font][/b]
[font=Times New Roman] [/font]
[font=Wingdings]l
[/font][font=Times New Roman]HASH_VALUE[/font][font=宋体]:[/font][font=Times New Roman]SQL[/font][font=宋体]语句的[/font][font=Times New Roman]Hash[/font][font=宋体]值[/font]
[font=Wingdings]l
[/font][font=Times New Roman]ADDRESS[/font][font=宋体]:[/font][font=Times New Roman]sql[/font][font=宋体]语句在[/font][font=Times New Roman]SGA[/font][font=宋体]中的地址[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SQL_TEXT[/font][font=宋体]:[/font][font=Times New Roman]SQL[/font][font=宋体]文本。[/font]
[font=Wingdings]l
[/font][font=Times New Roman]PIECE[/font][font=宋体]:[/font][font=Times New Roman]SQL[/font][font=宋体]语句块的序号[/font]
[font=Times New Roman] [/font]
[b][font=Times New Roman]V$SQLTEXT[/font][/b][b][font=宋体]中的连接列[/font][/b]
[size=9pt][font=Times New Roman]Column
View
Joined Column(s) [/font][/size]
[size=9pt][font=Times New Roman]HASH_VALUE, ADDRESS
V$SQL, V$SESSION
HASH_VALUE, ADDRESS[/font][/size]
[size=9pt][font=Times New Roman]HASH_VALUE. ADDRESS
V$SESSION
SQL_HASH_VALUE, SQL_ADDRESS[/font][/size]
[font=Times New Roman] [/font]
[font=宋体]示例:已知[/font][font=Times New Roman]hash_value:3111103299[/font][font=宋体],查询[/font][font=Times New Roman]sql[/font][font=宋体]语句:[/font]
select * from v$sqltext
where hash_value='3111103299'
order
by piece
[font=Times New Roman] [/font]
页:
[1]