當使用spfile時,不用重啟就能生效的初始化參數,可以通過v$parameter.ISSYS_MODIFIABLE欄位來判斷。
v$parameter.ISSYS_MODIFIABLE參數
Indicates whether the parameter can be changed with ALTER SYSTEM and when the change takes effect:
IMMEDIATE - Parameter can be changed with ALTER SYSTEM regardless of the type of parameter file used to start the instance. The change takes effect immediately.
DEFERRED - Parameter can be changed with ALTER SYSTEM regardless of the type of parameter file used to start the instance. The change takes effect in subsequent sessions.
FALSE - Parameter cannot be changed with ALTER SYSTEM unless a server parameter file was used to start the instance. The change takes effect in subsequent instances.
- SQL> select distinct issys_modifiable from v$parameter;
-
- ISSYS_MODIFIABLE
- ----------------
- IMMEDIATE
- FALSE
- DEFERRED
-
- SQL> select name,issys_modifiable from v$parameter where name='sga_target';
-
- NAME ISSYS_MODIFIABLE
- -------------------------------------------------------------------------------- ----------------
- sga_target IMMEDIATE
- SQL> select name,issys_modifiable from v$parameter where name='remote_login_passwordfile';
-
- NAME ISSYS_MODIFIABLE
- -------------------------------------------------------------------------------- ----------------
- remote_login_passwordfile FALSE