Autotrace displays a lot of statistics information as 0 ()

Source: Internet
Author: User

A friend used autotrace to view the database execution plan and found that the result is as follows. Many information in statistics is 0, which is definitely abnormal. Everything can be 0, and the consistent gets cannot be 0.

SQL> set autot onSQL> select count(*) from RACV_DATA.PARTY_DUMMY;   COUNT(*)----------        47 Elapsed: 00:00:00.00 Execution Plan----------------------------------------------------------Plan hash value: 3621440939 --------------------------------------------------------------------------| Id  | Operation          | Name| Rows| Cost (%CPU)| Time|--------------------------------------------------------------------------|   0 | SELECT STATEMENT   |             |     1 |     3   (0)| 00:00:01 ||   1 |  SORT AGGREGATE    |             |     1 |            |          ||   2 |   TABLE ACCESS FULL| PARTY_DUMMY |    47 |     3   (0)| 00:00:01 |--------------------------------------------------------------------------Statistics----------------------------------------------------------          0  recursive calls          0  db block gets          0  consistent gets          0  physical reads          0  redo size          0  bytes sent via SQL*Net to client          0  bytes received via SQL*Net from client          0  SQL*Net roundtrips to/from client          0  sorts (memory)          0  sorts (disk)          rows processed

Solution

SQL>  select owner,object_name from dba_objects where object_name=‘PLAN_TABLE‘; no rows selected SQL> @?/rdbms/admin/utlxplan.sql Table created.

Review statistics information

Statistics----------------------------------------------------------          0  recursive calls          0  db block gets          7  consistent gets          0  physical reads          0  redo size        522  bytes sent via SQL*Net to client        524  bytes received via SQL*Net from client          2  SQL*Net roundtrips to/from client          0  sorts (memory)          0  sorts (disk)          rows processed

Http://www.xifenfei.com/3306.html

Autotrace displays a lot of statistics information as 0 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.