This is because the just-executed altersystemsetdb_unique_name
This is because the newly executed alter system set db_unique_name =
The following error occurs when you execute the command to configure the Dataguard:
SQL> alter system set log_archive_dest_1 = 'location =/u01/app/Oracle/flash_recovery_area/HYOMS/archivelog valid_for = (all_logfiles, all_roles) db_unique_name = hyoms01 ';
Alter system set log_archive_dest_1 = 'location =/u01/app/oracle/flash_recovery_area/HYOMS/archivelog valid_for = (all_logfiles, all_roles) db_unique_name = hyoms01'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified the value is invalid
ORA-16053: DB_UNIQUE_NAME hyoms01 is not in the Data Guard Configuration
This is because the newly executed alter system set db_unique_name = 'hyoms01 'scope = spfile; no database has recognized
You can restart the database.
SQL> select * from V $ DATAGUARD_CONFIG;
DB_UNIQUE_NAME
------------------------------
Hyoms
Hyoms01
Hyoms02
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
SQL> select * from V $ DATAGUARD_CONFIG;
DB_UNIQUE_NAME
------------------------------
Hyoms01
Hyoms02
SQL> alter system set log_archive_dest_1 = 'location =/u01/app/oracle/flash_recovery_area/HYOMS/archivelog valid_for = (all_logfiles, all_roles) db_unique_name = hyoms01 ';
System altered.