这种事情的简单版本我自己做过。比如:A B 两个用户的数据表 TEST,比较结构,当然用 DBA_TAB_COLS 中的信息来比较比较两个用户下的对象,当然用 DBA_OBJECTS 来比较,我是说看看对象类型个数是否一致。再细节的比较就很麻烦了。
使用oracle自己带的change manager可以参考oracle文档
你是不是要这个呀desc table_name 可以查询表的结构 select field_name,... from ... 可以查询字段的值select * from all_tables where table_name like '%' select * from all_tab_columns where table_name='??'
table a1 and table a2 if ((a1 minus a2) union (a2 minus a1)) = null then table a1 is the same as table a2. of course,the constuct of the two tables shoulb be same!!
User_A在table1中加了一个字段
User_B通过一个比较可以得到数据库变更前后的不同。
--------------------------------------------
这个问题在用SqlServer的人中了解的较多。
select field_name,... from ... 可以查询字段的值select * from all_tables where table_name like '%'
select * from all_tab_columns where table_name='??'
if ((a1 minus a2) union (a2 minus a1)) = null
then table a1 is the same as table a2.
of course,the constuct of the two tables shoulb be same!!
即比较函数,过程,表结构等~~