ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

scope三种动态修改

2022-03-31 19:34:45  阅读:87  来源: 互联网

标签:parameters effect 修改 参数 内存 三种 SCOPE scope


https://blog.csdn.net/dba_monkey/article/details/60141467

scope=memory scope=spfile scope=both 动态修改
scope=memory;---直接修改内存中的值
scope=spfile;---只改的磁盘上的参数,没有更改内存
scope=both;--同时修改内存和磁盘

ALTER SYSTEM 中 SCOPE=SPFILE/MEMORY/BOTH 的区别:
SCOPE = SPFILE
 The change is applied in theserverparameter file only. The effect is as follows:
■ For dynamic parameters, the change is effective at the next startup and is persistent.
■ For static parameters, the behavior. is the same as for dynamic parameters. This is the only SCOPE specification allowed for static parameters.
(此更改写入初始化参数文件,更改将在下次启动时生效。动态参数与静态参数都一样可以。也是静态参数唯一可以使用的方式。)

SCOPE = MEMORY
The change is applied in memory only. The effect is as follows:
■ For dynamic parameters, the effect is immediate, but it is not persistent because the server parameter file is not updated.
■ For static parameters, this specification is not allowed.
(只在内存上修改,立即生效,但重启后将不再生效,因为并没有写入到初始化参数文件。只适用于动态参数,静态参数则不允许。)

SCOPE = BOTH
The change is applied in both the server parameter file and memory. The effect is as follows:
■ For dynamic parameters, the effect is immediate and persistent.
■ For static parameters, this specification is not allowed.
(既写入到初始化参数文件,也在内存上修改,立即生效。同样也只适用于动态参数,静态参数则不允许。)

标签:parameters,effect,修改,参数,内存,三种,SCOPE,scope
来源: https://www.cnblogs.com/lh999/p/16083641.html

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有