Creating outlines
Outlines are automatically created for all SQL statements if the parameter CREATE_STORED_OUTLINE is set to TRUE.
You can create a stored outline for an individual statement by using the following syntax:
CREATE [OR REPLACE] [PUBLIC | PRIVATE] OUTLINEoutline_name[FROM {PUBLIC | PRIVATE}source_outline] FOR CATEGORYcategoryONSQL_statement
The CATEGORY clause allows you to group outlines into specific categories. If no category is specified, the outlines are placed in a default category. PUBLIC outlines, the default, are available to all users who are part of the PUBLIC security group. PRIVATE outlines are described shortly.
Outlines can be created and edited with the DBMS_OUTLN and DBMS_OUTLIN_EDIT packages. (See Chapter 10 for more information on these packages.) You can also use Enterprise Manager to create and edit outlines with Oracle9i. Outlines are stored in tables in the SYS schema and are visible through the *_OUTLINES and *_OUTLINE_HINTS views. For more information on these views, see Chapter 6.