ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 利用 trigger 修改 数据库启动USE_STORED_OUTLINES

利用 trigger 修改 数据库启动USE_STORED_OUTLINES

原创 Linux操作系统 作者:dvlue 时间:2011-03-25 17:14:39 0 删除 编辑

2010年8月15日星期日

Oracle : How to Enable USE_STORED_OUTLINES Permanently

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/7656893/viewspace-690518/,如需转载,请注明出处,否则将追究法律责任。

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

注册时间:2008-06-26

  • 博文量
    45
  • 访问量
    98518