学习动态性能表(十)
[font=宋体]本视图显示运行超过[/font][font=Times New Roman]6[/font][font=宋体]秒的操作的状态。包括备份,恢复,统计信息收集,查询等等。[/font][font=Times New Roman] [/font]
[font=宋体]要监控查询执行进展状况,你必须使用[/font][font=Times New Roman]cost-based[/font][font=宋体]优化方式,并且:[/font]
[font=Wingdings]l
[/font][font=宋体]设置[/font][font=Times New Roman]TIMED_STATISTICS[/font][font=宋体]或[/font][font=Times New Roman]SQL_TRACE[/font][font=宋体]参数值为[/font][font=Times New Roman]true[/font][font=宋体]。[/font]
[font=Wingdings]l
[/font][font=宋体]通过[/font][font=Times New Roman]ANALYZE[/font][font=宋体]或[/font][font=Times New Roman]DBMS_STATS[/font][font=宋体]数据包收集对象统计信息。[/font]
[font=Times New Roman] [/font]
[font=宋体]你可以通过[/font][font=Times New Roman]DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS[/font][font=宋体]过程添加[/font][font=Times New Roman]application-specific[/font][font=宋体]长运行操作信息到本视图。关于[/font][font=Times New Roman]DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS[/font][font=宋体]的更多信息可以浏览:[/font][font=Times New Roman]Oracle Supplied PL/SQL Packages and Types Reference[/font][font=宋体]。[/font]
[font=Times New Roman] [/font]
[b][font=Times New Roman]V$SESSION_LONGOPS[/font][/b][b][font=宋体]列说明[/font][/b]
[b][font=Times New Roman] [/font][/b]
[font=Wingdings]l
[/font][font=Times New Roman]SID[/font][font=宋体]:[/font][font=Times New Roman]Session[/font][font=宋体]标识[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SERIAL#[/font][font=宋体]:[/font][font=Times New Roman]Session[/font][font=宋体]串号[/font]
[font=Wingdings]l
[/font][font=Times New Roman]OPNAME[/font][font=宋体]:操作简要说明[/font]
[font=Wingdings]l
[/font][font=Times New Roman]TARGET[/font][font=宋体]:操作运行所在的对象[/font]
[font=Wingdings]l
[/font][font=Times New Roman]TARGET_DESC[/font][font=宋体]:目标对象说明[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SOFAR[/font][font=宋体]:至今为止完成的工作量[/font]
[font=Wingdings]l
[/font][font=Times New Roman]TOTALWORK[/font][font=宋体]:总工作量[/font]
[font=Wingdings]l
[/font][font=Times New Roman]UNITS[/font][font=宋体]:工作量单位[/font]
[font=Wingdings]l
[/font][font=Times New Roman]START_TIME[/font][font=宋体]:操作开始时间[/font]
[font=Wingdings]l
[/font][font=Times New Roman]LAST_UPDATE_TIME[/font][font=宋体]:统计项最后更新时间[/font]
[font=Wingdings]l
[/font][font=Times New Roman]TIME_REMAINING[/font][font=宋体]:预计完成操作的剩余时间[/font][font=Times New Roman]([/font][font=宋体]秒[/font][font=Times New Roman])[/font]
[font=Wingdings]l
[/font][font=Times New Roman]ELAPSED_SECONDS[/font][font=宋体]:从操作开始总花费时间[/font][font=Times New Roman]([/font][font=宋体]秒[/font][font=Times New Roman])[/font]
[font=Wingdings]l
[/font][font=Times New Roman]CONTEXT[/font][font=宋体]:前后关系[/font]
[font=Wingdings]l
[/font][font=Times New Roman]MESSAGE[/font][font=宋体]:统计项的完整描述[/font]
[font=Wingdings]l
[/font][font=Times New Roman]USERNAME[/font][font=宋体]:执行操作的用户[/font][font=Times New Roman]ID[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SQL_ADDRESS[/font][font=宋体]:用于连接查询的列[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SQL_HASH_VALUE[/font][font=宋体]:用于连接查询的列[/font]
[font=Wingdings]l
[/font][font=Times New Roman]QCSID[/font][font=宋体]:[/font]
页:
[1]