After the databases are installed at the production site and DR site, perform related configurations to ensure that the path and name of the spfile file at the production site are the same as those at the DR site.
Prerequisites
The databases at the production site and DR site have been prepared.
Context
When installing the databases at the production site and DR site, store the spfile file in the asm disk. The spfile paths created in different environments are different. As a result, the databases cannot be started.
Procedure
- Log in to the production application server as a user with the administrator rights and open the CLI.
- Run the srvctl config database -db fbdba command to query the path of the spfile file at the production site.
Database name fbdba is used as an example.
The command output is as follows:
[oracle@rac229 ~]$ srvctl config database -db fbdba
Database unique name: fbdba
Database name: fbdba
Oracle home: /u01/app/oracle/product/12.2.0/db_1
Oracle user: oracle
Spfile: +FBDBA/FBDBA/PARAMETERFILE/spfile.268.984771525
- Set the path of the spfile file at the DR site to be the same as that at the production site.
- Log in to the disaster recovery application server as a user with the administrator rights and open the CLI.
- Run the srvctl modify database -db fbdba -spfile+FBDBA/FBDBA/PARAMETERFILE/spfile.268.984771525 command to set the path of the spfile file at the DR site to be the same as that at the production site.
The +FBDBA/FBDBA/PARAMETERFILE/spfile.268.984771525 command is obtained from Step 2.
- Run the srvctl config database -db fbdba command to check whether the path of the spfile file at the DR site is the same as that at the production site. If yes, the configuration is successful.
Copyright © Huawei Technologies Co., Ltd.