Autotrace an self join : AUTOTRACE « SQL PLUS Session Environment « Oracle PL/SQL Tutorial

Oracle PL/SQL Tutorial
1. Introduction
2. Query Select
3. Set
4. Insert Update Delete
5. Sequences
6. Table
7. Table Joins
8. View
9. Index
10. SQL Data Types
11. Character String Functions
12. Aggregate Functions
13. Date Timestamp Functions
14. Numerical Math Functions
15. Conversion Functions
16. Analytical Functions
17. Miscellaneous Functions
18. Regular Expressions Functions
19. Statistical Functions
20. Linear Regression Functions
21. PL SQL Data Types
22. PL SQL Statements
23. PL SQL Operators
24. PL SQL Programming
25. Cursor
26. Collections
27. Function Procedure Packages
28. Trigger
29. SQL PLUS Session Environment
30. System Tables Data Dictionary
31. System Packages
32. Object Oriented
33. XML
34. Large Objects
35. Transaction
36. User Privilege
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL/SQL Tutorial » SQL PLUS Session Environment » AUTOTRACE 
29. 22. 4. Autotrace an self join
SQL>
SQL> create table t as select from all_objects where rownum < 50;

Table created.

SQL>
SQL>
SQL> alter session set sort_area_size = 1024000;

Session altered.

SQL>
SQL> set autotrace on
SQL>
SQL> select *
  2    from t myTable1, t myTable2
  3   where myTable1.object_id = myTable2.object_id
  4  /

OWNER                          OBJECT_NAME                    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID
------------------------------ ------------------------------ ------------------------------ ---------- --------------
OBJECT_TYPE         CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S OWNER
------------------- --------- --------- ------------------- ------- - - - ------------------------------
OBJECT_NAME                    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE      CREATED   LAST_DDL_
------------------------------ ------------------------------ ---------- -------------- ------------------- --------- ---------
TIMESTAMP           STATUS  T G S
------------------- ------- - - -
SYS                            ICOL$                                                                 20              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
ICOL$                                                                 20              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_USER1                                                               44             44
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_USER1                                                               44             44 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CON$                                                                  28             28
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CON$                                                                  28             28 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            UNDO$                                                                 15             15
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
UNDO$                                                                 15             15 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_COBJ#                                                               29             29
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_COBJ#                                                               29             29 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ#                                                                 3              3
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ#                                                                 3              3 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            PROXY_ROLE_DATA$                                                      25             25
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
PROXY_ROLE_DATA$                                                      25             25 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_IND1                                                                39             39
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_IND1                                                                39             39 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CDEF2                                                               51             51
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CDEF2                                                               51             51 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_PROXY_ROLE_DATA$_1                                                  26             26
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_PROXY_ROLE_DATA$_1                                                  26             26 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            FILE$                                                                 17             17
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
FILE$                                                                 17             17 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            UET$                                                                  13              8
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
UET$                                                                  13              8 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_FILE#_BLOCK#                                                         9              9
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_FILE#_BLOCK#                                                         9              9 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_FILE1                                                               41             41
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_FILE1                                                               41             41 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CON1                                                                48             48
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CON1                                                                48             48 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ3                                                                38             38
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ3                                                                38             38 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_TS#                                                                  7              7
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_TS#                                                                  7              7 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CDEF4                                                               53             53
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CDEF4                                                               53             53 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            IND$                                                                  19              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
IND$                                                                  19              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            SEG$                                                                  14              8
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
SEG$                                                                  14              8 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_TS#                                                                  6              6
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_TS#                                                                  6              6 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_FILE2                                                               42             42
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_FILE2                                                               42             42 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            COL$                                                                  21              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
COL$                                                                  21              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_TS1                                                                 43             43
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_TS1                                                                 43             43 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_UNDO2                                                               35             35
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_UNDO2                                                               35             35 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CLU$                                                                   5              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CLU$                                                                   5              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            PROXY_DATA$                                                           23             23
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
PROXY_DATA$                                                           23             23 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_PROXY_DATA$                                                         24             24
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_PROXY_DATA$                                                         24             24 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ1                                                                36             36
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ1                                                                36             36 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_COL2                                                                46             46
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_COL2                                                                46             46 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ2                                                                37             37
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ2                                                                37             37 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CCOL1                                                               54             54
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CCOL1                                                               54             54 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            TS$                                                                   16              6
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
TS$                                                                   16              6 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_FILE#_BLOCK#                                                         8              8
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_FILE#_BLOCK#                                                         8              8 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_USER#                                                               10             10
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_USER#                                                               10             10 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_UNDO1                                                               34             34
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_UNDO1                                                               34             34 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            BOOTSTRAP$                                                            56             56
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
BOOTSTRAP$                                                            56             56 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            FET$                                                                  12              6
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
FET$                                                                  12              6 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_TAB1                                                                33             33
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_TAB1                                                                33             33 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CCOL$                                                                 32             29
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CCOL$                                                                 32             29 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            USER$                                                                 22             10
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
USER$                                                                 22             10 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CON2                                                                49             49
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CON2                                                                49             49 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_COBJ#                                                               30             30
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_COBJ#                                                               30             30 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            OBJ$                                                                  18             18
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
OBJ$                                                                  18             18 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_COL3                                                                47             47
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_COL3                                                                47             47 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_OBJ#                                                                 2              2
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_OBJ#                                                                 2              2 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            TAB$                                                                   4              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
TAB$                                                                   4              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CDEF$                                                                 31             29
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CDEF$                                                                 31             29 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CDEF1                                                               50             50
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CDEF1                                                               50             50 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N


49 rows selected.


Execution Plan
----------------------------------------------------------
Plan hash value: 2135975663

---------------------------------------------------------------------------
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
---------------------------------------------------------------------------
|   SELECT STATEMENT   |      |    49 12544 |     5  (20)00:00:01 |
|*  |  HASH JOIN         |      |    49 12544 |     5  (20)00:00:01 |
|   |   TABLE ACCESS FULL| T    |    49 |  6272 |     2   (0)00:00:01 |
|   |   TABLE ACCESS FULL| T    |    49 |  6272 |     2   (0)00:00:01 |
---------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   - access("MYTABLE1"."OBJECT_ID"="MYTABLE2"."OBJECT_ID")

Note
-----
   - dynamic sampling used for this statement


Statistics
----------------------------------------------------------
        272  recursive calls
          0  db block gets
         41  consistent gets
          1  physical reads
          0  redo size
       4375  bytes sent via SQL*Net to client
        380  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          2  sorts (memory)
          0  sorts (disk)
         49  rows processed

SQL> alter session set sort_area_size = 10240000;

Session altered.

SQL>
SQL> select *
  2    from t myTable1, t myTable2
  3   where myTable1.object_id = myTable2.object_id
  4         and rownum < 50
  5  /

OWNER                          OBJECT_NAME                    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID
------------------------------ ------------------------------ ------------------------------ ---------- --------------
OBJECT_TYPE         CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S OWNER
------------------- --------- --------- ------------------- ------- - - - ------------------------------
OBJECT_NAME                    SUBOBJECT_NAME                  OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE      CREATED   LAST_DDL_
------------------------------ ------------------------------ ---------- -------------- ------------------- --------- ---------
TIMESTAMP           STATUS  T G S
------------------- ------- - - -
SYS                            ICOL$                                                                 20              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
ICOL$                                                                 20              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_USER1                                                               44             44
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_USER1                                                               44             44 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CON$                                                                  28             28
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CON$                                                                  28             28 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            UNDO$                                                                 15             15
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
UNDO$                                                                 15             15 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_COBJ#                                                               29             29
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_COBJ#                                                               29             29 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ#                                                                 3              3
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ#                                                                 3              3 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            PROXY_ROLE_DATA$                                                      25             25
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
PROXY_ROLE_DATA$                                                      25             25 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_IND1                                                                39             39
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_IND1                                                                39             39 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CDEF2                                                               51             51
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CDEF2                                                               51             51 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_PROXY_ROLE_DATA$_1                                                  26             26
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_PROXY_ROLE_DATA$_1                                                  26             26 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            FILE$                                                                 17             17
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
FILE$                                                                 17             17 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            UET$                                                                  13              8
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
UET$                                                                  13              8 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_FILE#_BLOCK#                                                         9              9
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_FILE#_BLOCK#                                                         9              9 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_FILE1                                                               41             41
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_FILE1                                                               41             41 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CON1                                                                48             48
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CON1                                                                48             48 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ3                                                                38             38
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ3                                                                38             38 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_TS#                                                                  7              7
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_TS#                                                                  7              7 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CDEF4                                                               53             53
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CDEF4                                                               53             53 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            IND$                                                                  19              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
IND$                                                                  19              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            SEG$                                                                  14              8
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
SEG$                                                                  14              8 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_TS#                                                                  6              6
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_TS#                                                                  6              6 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_FILE2                                                               42             42
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_FILE2                                                               42             42 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            COL$                                                                  21              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
COL$                                                                  21              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_TS1                                                                 43             43
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_TS1                                                                 43             43 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_UNDO2                                                               35             35
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_UNDO2                                                               35             35 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CLU$                                                                   5              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CLU$                                                                   5              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            PROXY_DATA$                                                           23             23
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
PROXY_DATA$                                                           23             23 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_PROXY_DATA$                                                         24             24
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_PROXY_DATA$                                                         24             24 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ1                                                                36             36
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ1                                                                36             36 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_COL2                                                                46             46
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_COL2                                                                46             46 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_OBJ2                                                                37             37
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_OBJ2                                                                37             37 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CCOL1                                                               54             54
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CCOL1                                                               54             54 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            TS$                                                                   16              6
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
TS$                                                                   16              6 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_FILE#_BLOCK#                                                         8              8
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_FILE#_BLOCK#                                                         8              8 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_USER#                                                               10             10
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_USER#                                                               10             10 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_UNDO1                                                               34             34
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_UNDO1                                                               34             34 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            BOOTSTRAP$                                                            56             56
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
BOOTSTRAP$                                                            56             56 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            FET$                                                                  12              6
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
FET$                                                                  12              6 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_TAB1                                                                33             33
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_TAB1                                                                33             33 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CCOL$                                                                 32             29
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CCOL$                                                                 32             29 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            USER$                                                                 22             10
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
USER$                                                                 22             10 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CON2                                                                49             49
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CON2                                                                49             49 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_COBJ#                                                               30             30
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_COBJ#                                                               30             30 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            OBJ$                                                                  18             18
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
OBJ$                                                                  18             18 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_COL3                                                                47             47
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_COL3                                                                47             47 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            C_OBJ#                                                                 2              2
CLUSTER             07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
C_OBJ#                                                                 2              2 CLUSTER          07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            TAB$                                                                   4              2
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
TAB$                                                                   4              2 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            CDEF$                                                                 31             29
TABLE               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
CDEF$                                                                 31             29 TABLE            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N

SYS                            I_CDEF1                                                               50             50
INDEX               07-FEB-06 07-FEB-06 2006-02-07:22:10:08 VALID   N N N SYS
I_CDEF1                                                               50             50 INDEX            07-FEB-06 07-FEB-06
2006-02-07:22:10:08 VALID   N N N


49 rows selected.


Execution Plan
----------------------------------------------------------
Plan hash value: 1415706426

----------------------------------------------------------------------------
| Id  | Operation           | Name | Rows  | Bytes | Cost (%CPU)| Time     |
----------------------------------------------------------------------------
|   SELECT STATEMENT    |      |    49 12544 |     5  (20)00:00:01 |
|*  |  COUNT STOPKEY      |      |       |       |            |          |
|*  |   HASH JOIN         |      |    49 12544 |     5  (20)00:00:01 |
|   |    TABLE ACCESS FULL| T    |    49 |  6272 |     2   (0)00:00:01 |
|   |    TABLE ACCESS FULL| T    |    49 |  6272 |     2   (0)00:00:01 |
----------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   - filter(ROWNUM<50)
   - access("MYTABLE1"."OBJECT_ID"="MYTABLE2"."OBJECT_ID")

Note
-----
   - dynamic sampling used for this statement


Statistics
----------------------------------------------------------
         15  recursive calls
          0  db block gets
         23  consistent gets
          0  physical reads
          0  redo size
       4375  bytes sent via SQL*Net to client
        380  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          4  sorts (memory)
          0  sorts (disk)
         49  rows processed

SQL> set autotrace off
SQL>
SQL> drop table t;

Table dropped.

SQL>
SQL>
29. 22. AUTOTRACE
29. 22. 1. Controlling the Report
29. 22. 2. set autotrace traceonly explain
29. 22. 3. SET AUTOTRACE OFF
29. 22. 4. Autotrace an self join
29. 22. 5. autotrace count(*)
29. 22. 6. autotrace merge command
29. 22. 7. autotrace table with/without an index
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.