几个视图的功能,来自官方文档
v$sqltext
V$SQLTEXT displays the text of SQL statements belonging to shared SQL cursors in the SGA.
V$SESSION
V$SESSION displays session information for each current session.
v$wait_chains
V$WAIT_CHAINS displays information about blocked sessions. A wait chain is comprised of sessions that are blocked by one another. Each row represents a blocked and blocker session pair. If a wait chain is not a cyclical wait chain, then the last row for the chain does not have a blocker.
找到造成等待的SQL
- select * from v$sqltext
- where
- (hash_value,address) in
- (
- SELECT DECODE(sql_hash_value, 0, prev_hash_value, sql_hash_value),
- DECODE(sql_hash_value, 0, prev_sql_addr,sql_address)
- FROM v$session
- where sid in (select sid from v$wait_chains)
- );
Oracle 11g 获取当前的Trace文件在Red Hat Linux 5.4 (虚拟机) 上安装 Oracle 11g R2 RAC (ASM)相关资讯 oracle数据库教程
- Oracle raw数据类型介绍 (01/29/2013 10:05:53)
- 监听器注册与ORA-12514 错误分析 (11/13/2012 14:30:08)
- Oracle SQL的cursor理解 (11/13/2012 14:16:17)
| - Oracle 如何强制刷新Buffer Cache (01/29/2013 10:02:46)
- dblink致Oracle库的SCN变成两库的 (11/13/2012 14:24:41)
- Linux操作系统下完全删除Oracle数 (11/13/2012 08:25:52)
|
本文评论 查看全部评论 (0)