有些时候我们在执行下面命令添加主体站点的时候会碰到ORA-23375错误。
SQL> execute dbms_repcat.add_master_database(gname=>'rep',master=>'orcl2.com',use_existing_objects=>true,copy_rows=>false,propagation_mode=>'synchronous');
ERROR at line 1:
ORA-23375: feature is incompatible with database version at ORCL2.COM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2159
ORA-06512: at "SYS.DBMS_REPCAT", line 146
ORA-06512: at line 1
上面的这个错误,通常表示我们在创建repadmin用户的时候缺少了几步授权的命令,按照如下步骤正确创建repadmin用户。
create user repadmin identified by repadmin default tablespace users temporary tablespace temp;
execute dbms_defer_sys.register_propagator('repadmin');
grant execute any procedure to repadmin;
execute dbms_repcat_admin.grant_admin_any_repgroup('repadmin');
execute dbms_repcat_admin.grant_admin_any_schema(username => '"REPADMIN"');
grant comment any table to repadmin;
grant lock any table to repadmin;
grant select any dictionary to repadmin;
网上的一些其它文档通常缺少的是下面这两步:
grant lock any table to repadmin;
grant select any dictionary to repadmin;