You may get the following error message when attempting to execute a statement like:
ALTER SYSTEM SET DB_DOMAIN=yocoya.com SCOPE=SPFILE;
ORA-02095: specified initialization parameter cannot be modified
Certain initialization parameters are not modifiable using ALTER SYSTEM, so the only way to change their value is to perform the following steps:
- CREATE PFILE='path to pfile' FROM SPFILE;
- save a backup copy of this pfile in case of troubles!
- edit the initialization parameter contained in the pfile;
- restart the db using the newly created pfile instead of the default spfile: STARTUP PFILE='...';
- CREATE SPFILE FROM PFILE='path to file';
- restart the db normally, using the default spfile.
If you look at the dynamic view V$PARAMETER, there is a column called ISSYS_MODIFIABLE, if the value of this column is FALSE, then the parameter is not modifiable using ALTER SYSTEM.
You can find a list of modifiable parameters in the Reference Manual (11g, 10gR2, 10gR1).
See message translations for ORA-02095 and search additional resources.
updated June 4: see Graeme's comment.