ITPub博客

首页 > 数据库 > Oracle > 使用触发器让USE_STORED_OUTLINES参数永久起作用

使用触发器让USE_STORED_OUTLINES参数永久起作用

原创 Oracle 作者:yyp2009 时间:2014-03-31 08:48:43 0 删除 编辑

Applies to:

Oracle Server - Enterprise Edition - Version: 8.1.7 to 11.1.0.6
Information in this document applies to any platform.

Goal

A Stored Outline will only be used when the parameter USE_STORED_OUTLINES is set persistently.  If parameter is set  using alter session or by defining in  pfile/spfile  the change is not permanent and will no longer be set after database has been restarted.
A STARTUP trigger needs to be defined in order to make this setting persistent after restart of database

Solution

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;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13750068/viewspace-1132926/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-10-17

  • 博文量
    330
  • 访问量
    1029055