flush redo时出现ora-00922

11.2.0.4

DATAGUARD环境,在primary database mount状态下flush redo

SQL> alter system flush redo to sales1 no confirm apply;
alter system flush redo to sales1 no confirm apply
                           *
ERROR at line 1:
ORA-00922: missing or invalid option

这个地方要在db_unique_name加上单引号

 alter system flush redo to ‘’sales1‘’ no confirm apply;

你可能感兴趣的:(oracle)