explain plan for
select *
From Customers
Where cust_city='Los Angeles'
And cust_state_province='CA';
select * from table(dbms_xplan.display());
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('&1'));
SET LONG 10000
SELECT * FROM TABLE(DBMS_XPLAN.display_sql_plan_baseline(plan_name=>'&plan_name'));
To use this feature, you must create a PLAN_TABLE table in your schema and then have the PLUSTRACE role granted to you. DBA privileges are required to grant the PLUSTRACE role. For information on how to grant a role and how to create the PLAN_TABLE table, see the Oracle9i SQL Reference. For more information about the roles and the PLAN_TABLE, see the Oracle9i SQL Reference and the AUTOTRACE variable of the SET command in SQL*Plus User's Guide and Reference.