Reprint: determining dynamic parameters determine the dynamic parameters and static parameters and static parameters, modify

Reproduced in: https://www.cnblogs.com/andy6/p/6714593.html

Analyzing the dynamic parameters and static parameters, modified

View v $ parameter in ISSYS_MODIFIABLE columns can view parameter attributes, ISSYS_MODIFIABLE = 'IMMEDIATE' dynamic parameters, ISSYS_MODIFIABLE = 'FALSE' static parameters, ISSYS_MODIFIABLE = 'DERERRED' delay parameter (the current session is not effective, the subsequent session is valid).


1. Total number of parameters:
the SQL> SELECT COUNT (*) from V $ = issys_modifiable SYSTEM_PARAMETER WHERE 'IMMEDIATE';


  COUNT (*)
----------
       353


the SQL> SELECT COUNT (*) from V $ SYSTEM_PARAMETER WHERE = issys_modifiable 'FALSE';


  COUNT (*)
----------
       1 16


the SQL> SELECT COUNT (*) from V $ = issys_modifiable SYSTEM_PARAMETER WHERE 'DEFERRED';


  COUNT (*)
------- ---
         . 8


2. See oracle parameter is static or dynamic (based on the value of the determination ISSYS_MODIFIABLE)


SELECT name, value, ISSYS_MODIFIABLE from V $ WHERE parameter name = '




3. ALTER SYSTEM difference in the SCOPE = SPFILE / MEMORY / BOTH of:


SCOPE = SPFILE
.. (Write this change initialization parameter file, the changes will take effect next time you start the dynamic and static parameters are the same parameters can be used is the only static parameters way.)


SCOPE = the mEMORY
(only modified in memory, with immediate effect, but will no longer restart to take effect, because there is no written to the initialization parameter file. applies only to dynamic parameters, static parameters is not allowed.)


SCOPE = . bOTH
(both written to the initialization parameter file, also modify the memory, with immediate effect also applies only to dynamic parameters, static parameters is not allowed.)


modify the parameters of 4.


dynamic parameter modification:


SQL> System the SET the UNDO_RETENTION the ALTER scope = both-10800 =;


. the Altered System


static parameter modification, you need to specify scope = spfile next start:
SQL> the ALTER the SET System Processes = 151 scope = both-;
the ALTER the SET System Processes = 151 scope = both-
                 *
ERROR AT Line 1:
ORA -02 095: Not specified CAN BE Modified Parameter Initialization


the SQL> ALTER System Processes SET = 151 = SPFILE scope;


. System altered


Note: (scope = spfile or the scope = both) does not modify any parameters are automatically synchronized to the pfile, it will only SPFILE written, it is modified to create the best create pfile from spfile, manual synchronization parameters Parameter End pfile, pfile to ensure that the next time through the database can be started normally.

View v $ parameter in ISSYS_MODIFIABLE columns can view parameter attributes, ISSYS_MODIFIABLE = 'IMMEDIATE' dynamic parameters, ISSYS_MODIFIABLE = 'FALSE' static parameters, ISSYS_MODIFIABLE = 'DERERRED' delay parameter (the current session is not effective, the subsequent session is valid).


1. Total number of parameters:
the SQL> SELECT COUNT (*) from V $ = issys_modifiable SYSTEM_PARAMETER WHERE 'IMMEDIATE';


  COUNT (*)
----------
       353


the SQL> SELECT COUNT (*) from V $ SYSTEM_PARAMETER WHERE = issys_modifiable 'FALSE';


  COUNT (*)
----------
       1 16


the SQL> SELECT COUNT (*) from V $ = issys_modifiable SYSTEM_PARAMETER WHERE 'DEFERRED';


  COUNT (*)
------- ---
         . 8


2. See oracle parameter is static or dynamic (based on the value of the determination ISSYS_MODIFIABLE)


SELECT name, value, ISSYS_MODIFIABLE from V $ WHERE parameter name = '




3. ALTER SYSTEM difference in the SCOPE = SPFILE / MEMORY / BOTH of:


SCOPE = SPFILE
.. (Write this change initialization parameter file, the changes will take effect next time you start the dynamic and static parameters are the same parameters can be used is the only static parameters way.)


SCOPE = the mEMORY
(only modified in memory, with immediate effect, but will no longer restart to take effect, because there is no written to the initialization parameter file. applies only to dynamic parameters, static parameters is not allowed.)


SCOPE = . bOTH
(both written to the initialization parameter file, also modify the memory, with immediate effect also applies only to dynamic parameters, static parameters is not allowed.)


modify the parameters of 4.


dynamic parameter modification:


SQL> System the SET the UNDO_RETENTION the ALTER scope = both-10800 =;


. the Altered System


static parameter modification, you need to specify scope = spfile next start:
SQL> the ALTER the SET System Processes = 151 scope = both-;
the ALTER the SET System Processes = 151 scope = both-
                 *
ERROR AT Line 1:
ORA -02 095: Not specified CAN BE Modified Parameter Initialization


the SQL> ALTER System Processes SET = 151 = SPFILE scope;


. System altered


Note: (scope = spfile or the scope = both) does not modify any parameters are automatically synchronized to the pfile, it will only SPFILE written, it is modified to create the best create pfile from spfile, manual synchronization parameters Parameter End pfile, pfile to ensure that the next time through the database can be started normally.

Guess you like

Origin www.cnblogs.com/liang-ning/p/11903502.html