目前我正在使用
(select 'S',DATA_TYPE,DATA_LENGTH from all_tab_columns where table_name like '&Source_Table' and column_name='&Source_Column'
minus
select 'S',DATA_TYPE,DATA_LENGTH from all_tab_columns where table_name like '&Target_Table' and column_name='&Target_Column')
UNION ALL
(
select 'S',DATA_TYPE,DATA_LENGTH from all_tab_columns where table_name like '&Target_Table' and column_name='&Target_Column'
minus
select 'S',DATA_TYPE,DATA_LENGTH from all_tab_columns where table_name like '&Source_Table' and column_name='&Source_Column')
但是上面的查询需要为每个表运行。所以我想编写一个脚本,它将使用文件/一次性条目中的表名和列名来获取源和目标之间的不匹配。