Oracle8i Supplied Packages Reference Release 8.1.5 A68001-01 |
|
The OUTLN_PKG
package contains the functional interface for subprograms associated with the management of stored outlines.
A stored outline is the stored data that pertains to an execution plan for a given SQL statement. It enables the optimizer to repeatedly recreate execution plans that are equivalent to the plan originally generated along with the outline.The data stored in an outline consists, in part, of a set of hints that are used to achieve plan stability.
OUTLN_PKG
contains management procedures that should only be made available to appropriate users. Execute privilege is not extended to the general user community unless the DBA explicitly does so.
PL/SQL functions that are available for outline management purposes can be executed only by users with EXECUTE
privilege on the procedure (or package).
This procedure drops outlines that have never been applied in the compilation of a SQL statement.
OUTLN_PKG.DROP_UNUSED;
None.
You may want to use DROP_UNUSED
for outlines created on behalf of dynamic SQL statements, that were generated by an application for one time use only. For these statements, the outlines are never used and are simply taking up valuable disk space.
This procedure drops outlines that belong to a particular category.
OUTLN_PKG.DROP_BY_CAT ( cat VARCHAR2);
Parameter | Description |
---|---|
cat |
Category of outlines to drop. |
You may occasionally want to purge a category of outlines. This procedure accomplishes that in a single call.
This example drops all outlines in the DEFAULT
category:
OUTLN_PKG.DROP_BY_CAT('DEFAULT');
This procedure changes the category of all outlines in one category to a new category. If the SQL text in an outline already has an outline in the target category, then it is not merged into the new category.
OUTLN_PKG.UPDATE_BY_CAT ( oldcat VARCHAR2 DEFAULT 'DEFAULT', newcat VARCHAR2 DEFAULT 'DEFAULT');
Parameter | Description |
---|---|
oldcat |
Current category to be changed. |
newcat |
Target category to change outline to. |
Once satisfied with a set of outlines, you might chose to move outlines from an experimental category to a production category. Likewise, you might want to merge a set of outlines from one category into another pre-existing category.
This example changes all outlines in the DEFAULT
category to the CAT1
category:
OUTLN_PKG.UPDATE_BY_CAT('DEFAULT', 'CAT1');