首页 > 开发 > 综合 > 正文

scope=memory scope=spfile scope=both

2024-07-21 02:52:03
字体:
来源:转载
供稿:网友
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 = MEMORYThe 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 = BOTHThe 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.(既写入到初始化参数文件,也在内存上修改,立即生效。同样也只适用于动态参数,静态参数则不允许。)
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表