当前位置: 代码迷 >> 综合 >> ORA-01756: quoted string not properly terminated 处理方法
  详细解决方案

ORA-01756: quoted string not properly terminated 处理方法

热度:24   发布时间:2024-01-03 14:12:18.0

问题说明:
数据库在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.
  相关解决方案