Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_XPLAN, 2 of 3
Subprogram | Description |
---|---|
Displays the contents of the plan table. |
DBMS_XPLAN.DISPLAY( table_name IN VARCHAR2 DEFAULT 'PLAN_TABLE', statement_id IN VARCHAR2 DEFAULT NULL, format IN VARCHAR2 DEFAULT 'TYPICAL');
To display the result of the last EXPLAIN
PLAN
command stored in the plan table:
SELECT * FROM table(DBMS_XPLAN.DISPLAY);
To display from other than the default plan table, "my_plan_table":
SELECT * FROM table(DBMS_XPLAN.DISPLAY('my_plan_table'));
To display the minimum plan information:
SELECT * FROM table(DBMS_XPLAN.DISPLAY('plan_table', null, 'basic'));
To display the plan for a statement identified by 'foo
', such as statement_id='foo'
:
SELECT * FROM table(DBMS_XPLAN.DISPLAY('plan_table', 'foo'));
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|