问题说明:
数据库在mount状态下执行报错如下:
SQL> alter system set log_archive_dest_2=’service=ruiadg2 NOAFFIRM LGWR SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=ruiadg’;
alter system set log_archive_dest_2=’service=ruiadg2 NOAFFIRM LGWR SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=ruiadg’*
ERROR at line 1:
ORA-01756: quoted string not properly terminated
原因定位:
sql格式或者语法错误
处理方法:
将 ’ 改为 ’ ,再次执行如下:
SQL> alter system set log_archive_dest_2='service=ruiadg2 NOAFFIRM LGWR SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=ruiadg';System altered.