1. 是否具有不支持的数据类型
PRIM> select * from dba_logstdby_unsupported;
2. 存储类型
3. PL/SQL 包
4. SQL
5. DML
6. 主库中个表行可唯一被标识
# 主库中的表是否具有主键或非空唯一索引/约束
PRIM> select owner, table_name from dba_logstdby_not_unique where (owner, table_name) not in (select distinct owner, table_name from dba_logstdby_unsupported) and bad_column = 'Y';
# 如果可以确定某表数据是唯一的, 可以为表创建 Primary-Key Rely 约束
PRIM> alter table t add primary key (id) rely disable;
PRIM> select * from dba_logstdby_unsupported;
2. 存储类型
3. PL/SQL 包
4. SQL
5. DML
6. 主库中个表行可唯一被标识
# 主库中的表是否具有主键或非空唯一索引/约束
PRIM> select owner, table_name from dba_logstdby_not_unique where (owner, table_name) not in (select distinct owner, table_name from dba_logstdby_unsupported) and bad_column = 'Y';
# 如果可以确定某表数据是唯一的, 可以为表创建 Primary-Key Rely 约束
PRIM> alter table t add primary key (id) rely disable;
0 件のコメント:
コメントを投稿