首页 > 数据库 > Oracle > Powerdesiger反向工程之缺少MV对应的表
通过查找发现缺少的这些表都是物化视图对应的实体表,通过跟踪PD后台调用数据库的SQL语句发现是其对应的SQL为:
select
t.owner,
t.table_name
from
sys.all_all_tables t
where
not exists (select 1 from sys.all_mviews s where s.owner = t.owner and t.table_name in (s.mview_name, s.update_log))
and t.iot_name is null
and nvl(t.dropped, 'NO') = 'NO'
and t.owner='TEST'
order by
t.owner, t.table_name
通过以上问题的原因就很明显了,是PD的SQL已经过滤MV部分的表了。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10130206/viewspace-1055954/ ,如需转载,请注明出处,否则将追究法律责任。