【问题标题】:How to show this list of Info for a particular query?如何为特定查询显示此信息列表?
【发布时间】:2023-03-24 08:50:02
【问题描述】:

如何显示此信息列表。对于特定查询?

Statistics
----------------------------------------------------------
        369  recursive calls
       1689  db block gets
      48194  consistent gets
          2  physical reads
      46048  redo size
        822  bytes sent via SQL*Net to client
        810  bytes received via SQL*Net from client
          3  SQL*Net roundtrips to/from client
       1500  sorts (memory)
          0  sorts (disk)
      72512  rows processed

【问题讨论】:

标签: oracle performance plsql sql-execution-plan


【解决方案1】:

SQLPlus doc

SET AUTOTRACE ON STATISTICS AUTOTRACE 报告仅显示 SQL 语句执行统计。

SQL> conn my_dba_user/some_password@oracle_xe_server
Connected.
SQL> set autotrace traceonly stat
SQL> select * from all_users;

21 rows selected.

统计

      0  recursive calls
      0  db block gets
     20  consistent gets
      0  physical reads
      0  redo size
   1183  bytes sent via SQL*Net to client
    430  bytes received via SQL*Net from client
      3  SQL*Net roundtrips to/from client
      0  sorts (memory)
      0  sorts (disk)
     21  rows processed

SQL>

【讨论】:

    猜你喜欢
    • 2021-11-30
    • 1970-01-01
    • 2018-01-12
    • 1970-01-01
    • 2017-01-04
    • 1970-01-01
    • 1970-01-01
    • 2019-11-03
    • 2015-01-07
    相关资源
    最近更新 更多