您的位置:首页 > 运维架构 > Linux

LINUX上SAMBA,NFS的基本配置和自动挂载

2012-09-16 22:03 399 查看
autotrace:

目的是为了给出执行SQL时,实际进行了多少工作

@?/rdbms/admin/utlxplan

create public synonym plan_table for plan_table;

grant all on plan_table to public ;

@?/sqlplus/admin/plustrce.sql

grant plustrace to public;

grant select_catalog_role to scott; (Oracle 的sqldeveloper需要执行此语句)

使用:

SQL> set autotrace on

SQL> 运行你的SQL.

能够看到如下内容。

Statistics

----------------------------------------------------------

0 recursive calls

0 db block gets

32 consistent gets

0 physical reads

0 redo size

801 bytes sent via SQL*Net to client

416 bytes received via SQL*Net from client

2 SQL*Net roundtrips to/from client

2 sorts (memory)

0 sorts (disk)

14 rows processed

统计(Statistics)内容说明:

recursive calls:本SQL语句所嵌套调用的SQL的数目。

db block gets:逻辑读;从高速缓存中读取的总块数。

consistent gets:逻辑读;一致性读。

physical reads:物理读;从数据文件中的读数据、或者从temp中的读数据。

redo size:重做数据的大小。

bytes sent via SQL*Net to client:

bytes received via SQL*Net from client:

SQL*Net roundtrips to/from client:

sorts (memory):内存中的排序

sorts (disk):交换到临时表空间中的排序

rows processed:受影响的行。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: