In the RAC environment, the creation of spfile results in inconsistent database parameters between nodes. If this command is used in the rac environment, problems may occur because spfile is created in
In the RAC environment, the creation of spfile results in inconsistent database parameters between nodes. If this command is used in the rac environment, problems may occur because spfile is created in
When you first access RAC, You need to specify the location when creating a spfile, for example:
Create spfile = 'xxxxx' from pfile;
$ Oracle_HOME/dbs/init $ ORACLE_SID.ora
The content is only shared with the spfile information in the disk.
For example:
[Oracle @ rac1 dbs] $ strings initdex1.ora
SPFILE = '+ BACKUPS/dex/spfiledex. ora'
If the spfile is created incorrectly
For example, run the following command:
Create spfile from pfile = 'xxxxx ';
If this command is run in the rac environment, a problem occurs because spfile is created in $ ORACLE_HOME/dbs/spfile $ ORACLE_SID.ora by default, when oracle is started, it first searches for files starting with spfile. If it finds files starting with spfile, pfile will not be used, and new changes will not take effect ,, in this way, the parameters of the two rac nodes are different, which has serious consequences.
The solution is.
1. Run the following command on the node that runs the create spfile from pfile = 'xxxxx' command:
Create spfile = '+ BACKUPS/dex/spfiledex. ora' from pfile = 'xxxxx' (this pfile contains the new content );
2. Close the database.
3. Edit $ ORACLE_HOME/dbs/init $ ORACLE_SID.ora.
Add the following content
SPFILE = '+ BACKUPS/dex/spfiledex. ora'
4. Rename the spfile $ ORACLE_HOME/dbs/spfile $ ORACLE_SID.ora.
Mv $ ORACLE_HOME/dbs/spfile $ ORACLE_SID.ora $ ORACLE_HOME/dbs/spfile $ ORACLE_SID.ora.bk
5. Restart each node.