Home >Database >Mysql Tutorial >Oracle scope/sid/deferred/reset 总结说明

Oracle scope/sid/deferred/reset 总结说明

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:10:391053browse

Oracle scope/sid/deferred/reset 总结说明,取消spfile中设置,有时需要恢复原来的参数默认设置但又忘记了原先的值可以用 reset

关于instance 设置参数(scope sid) 

alter system set parameter 时候:

语法为 alter system set parameter=value  scope=(both(default),spfile,memory) sid=sid|*(default *) COMMENT

【sid】:主要用在 rac 下 这样可以个rac中任意节点的instance设置参数,默认是*是所有instance

【deferred】表示 修改是 适用于将来的 session,是延迟行为.(重新连接生效)

【reset】取消spfile中设置,有时需要恢复原来的参数默认设置但又忘记了原先的值可以用 reset 重设原先默认值

alter system reset

1.有几个限制 必须 指定SID

2.顺序要求 scope=spfile,sid=

3.scope不可以等于 both,memory当 指定SID 时不允许内存中修改

 

SQL> alter system  reset open_cursors scope=spfile sid='*';

系统已更改。

可以看到 要加sid关键字, 顺序不能 错 ,,如果光指定sid 而没写scope=spfile 默认是 scope=both(包含在内存中修改)但指定SID 时候不允许在内存修改所以=both,=memory都不行报错(ORA-32009: 无法重置实例 * 的内存值 (从实例 xhtest 中))

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn