Execution plan for the specified statement_id : explain plan « SQL Plus « Oracle PL / SQL

Home
Oracle PL / SQL
1.Aggregate Functions
2.Analytical Functions
3.Char Functions
4.Constraints
5.Conversion Functions
6.Cursor
7.Data Type
8.Date Timezone
9.Hierarchical Query
10.Index
11.Insert Delete Update
12.Large Objects
13.Numeric Math Functions
14.Object Oriented Database
15.PL SQL
16.Regular Expressions
17.Report Column Page
18.Result Set
19.Select Query
20.Sequence
21.SQL Plus
22.Stored Procedure Function
23.Subquery
24.System Packages
25.System Tables Views
26.Table
27.Table Joins
28.Trigger
29.User Previliege
30.View
31.XML
Oracle PL / SQL » SQL Plus » explain plan 




Execution plan for the specified statement_id
    


SQL>
SQL> UNDEFINE v_statement_id;
SQL>
SQL> SELECT id ||
  2    DECODE(id, 0'', LPAD(' '2*(level - 1))) || ' ' ||
  3    operation || ' ' ||
  4    options || ' ' ||
  5    object_name || ' ' ||
  6    object_type || ' ' ||
  7    DECODE(cost, NULL, '', 'Cost = ' || position)
  8  AS execution_plan
  9  FROM plan_table
 10  CONNECT BY PRIOR id = parent_id
 11  AND statement_id = '&&v_statement_id'
 12  START WITH id = 0
 13  AND statement_id = '&v_statement_id';
Enter value for v_statement_id:
old  11: AND statement_id = '&&v_statement_id'
new  11: AND statement_id = ''
old  13: AND statement_id = '&v_statement_id'
new  13: AND statement_id = ''

no rows selected

SQL>

   
    
    
    
  














Related examples in the same category
1.explain plan for query
2.explain plan for select statement
3.Explain sql statement
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.