Oracle11grjuard error ORA-02097: ORA-16053:

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

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.