In the RAC environment, the creation of spfile results in inconsistent database parameters between nodes.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.