参数use_stored_outlines

参数use_stored_outlines
SQL> alter system set use_stored_outlines=aaa;

System altered.
可以设置成功但是不能通过show parameter查看。
SQL> show parameter create_stored_outlines
NAME TYPE VALUE
------------------------------------ -------------------------------- ------------------------------
create_stored_outlines string FALSE

解释:
Session Parameter: USE_STORED_OUTLINES [ID 68642.1] <===这是一个session级别的参数
Parameter: USE_STORED_OUTLINES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is NOT an init.ora parameter but can be set using the command: <===不能再init.ora或spfile中设置,即使在系统级别设置该参数,重启DB之后即失效

ALTER SESSION SET USE_STORED_OUTLINES = TRUE | FALSE | category;

-or-

ALTER SYSTEM SET USE_STORED_OUTLINES = TRUE | FALSE | category;


Introduced: Oracle8i


Description
~~~~~~~~~~~
In Oracle8i it is possible to create stored plans (or outline plans) for
SQL statements. USE_STORED_OUTLINES controls whether the session uses
stored plans or not.

Stored outlines can be generated for a single statement or at the session or the instance level
=========
ALTER SESSION set create_stored_outlines = {TRUE|category|FALSE}
ALTER SYSTEM set create_stored_outlines = {TRUE|category|FALSE} [NOOVERRIDE]
CREATE OUTLINE outline [FOR CATEGORY category] ON statement
=========

More detailed information about stored outline, see the following document:
Using Stored Outlines [ID 132547.1]

How to Enable USE_STORED_OUTLINES Permanently (Doc ID 560331.1):
Create the following trigger to be run on startup of the database:

create or replace trigger enable_outlines_trig
after startup on database
begin
execute immediate('alter system set use_stored_outlines=true');
end;

Note: <===Oracle在将来的版本可能不支持stored outline
Stored outlines will be desupported in a future release in favor of SQL plan management. In Oracle Database 11g stored outlines continue to function as in past releases. However, Oracle strongly recommends that you use SQL plan management for new applications. SQL plan management creates SQL plan baselines, which offer superior SQL performance and stability compared with stored outlines.
For more information see:
Document 1359841.1 Plan Stability Features (Including SPM) Start Point


Automatic SQL Tuning - SQL Profiles. [ID 271196.1]
How To Use SQL Profiles for Queries Using Different Literals [ID 1253696.1]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值