1. 程式人生 > >select count(*) from v$lock 查詢慢

select count(*) from v$lock 查詢慢

pre query run against 優化 9.1 sql slow sel

select count(*) from v$lock 查詢慢 解決方法,具體原因看官方優化文檔哈

SQL> set time on 
00:51:52 SQL> select count(*) from v$lock;

  COUNT(*)
----------
        35

00:55:10 SQL> select /*+ rule */ count(*) from v$lock;

  COUNT(*)
----------
        35

00:55:38 SQL> 

官方的解決方法
Query Against v$lock Run from OEM Performs Slowly (文檔 ID 1328789.1)

select count(*) from v$lock 查詢慢