Thursday, September 30, 2021

ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed

SQL> alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=my_dg,valid_for=(ALL_LOGFILES,ALL_ROLES)' sid='*';
alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=my_dg,valid_for=(ALL_LOGFILES,ALL_ROLES)' sid='*'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed

Syntax errors while setting LOG_ARCHIVE_DEST_n parameter cause ORA-16024. In above case, I was using a comma unnecessarily “DB_UNIQUE_NAME=my_dg,valid_for”. Make sure you are using correct syntax to avoid this error.

SQL> alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=my_dg valid_for=(ALL_LOGFILES,ALL_ROLES)' sid='*';

System altered.


No comments:

Post a Comment

Popular Posts - All Times