Prev | Current Page 250 | Next

Richard Niemiec

"Oracle Database 10g Performance Tuning Tips & Techniques"

For example, you may need to alter the
outline to reflect significant changes in data volumes and distribution. You can use the rebuild
clause of the alter outline command to regenerate the hints used during query execution, as
shown next:
alter outline YTD_SALES rebuild;
You can also rename an outline via the rename clause of the alter outline command, as
shown here:
alter outline YTD_SALES rename to YTD_SALES_REGION;
You can change the category of an outline via the change category clause, as shown in the
following example:
alter outline YTD_SALES_REGION change category to DEFAULT;
To manage stored outlines, use the DBMS_OUTLN package, which gives you the following
capabilities:
Drop outlines that have never been used
Drop outlines within a specific category
Move outlines from one category to another
Create outlines for specific statements
Update outlines to the current version??™s signature
Reset the usage flag for an outline
?– 
?– 
?– 
?– 
?– 
?– 
142 Oracle Database 11g DBA Handbook
Each of these capabilities has a corresponding procedure within DBMS_OUTLN. To drop
outlines that have never been used, execute the DROP_UNUSED procedure, as shown in the
following example:
execute DBMS_OUTLN.DROP_UNUSED;
You can clear the ???used??? setting of an outline via the CLEAR_USED procedure. Pass the name
of the outline as the input variable to CLEAR_USED:
execute DBMS_OUTLN.CLEAR_USED('YTD_SALES_REGION');
To drop all the outlines within a category, execute the DROP_BY_CAT procedure.


Pages:
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
perfumy fm Stal rezerwacja hoteli pomiary wiatru Nike Buty Męskie Air Flex Trainer Lea