Compare 2 Schema's [message #184173] |
Tue, 25 July 2006 11:04 |
faiz_hyd
Messages: 294 Registered: February 2006
|
Senior Member |
|
|
Hello
Can some body give some scripts or any steps to compare 2 schema's objects like tables, datatypes, sequences, views,(almost all except PACKAGES,PROCEDURE,FUNCTIONS,TYPE OBJECTS)
My aim to synchronize 2 schemas in different tables for example
between TEST database and Developement Database
user is same like scott available in both DB's
Any help using script or any tools is appreciated.
Regards
[Updated on: Tue, 25 July 2006 11:05] Report message to a moderator
|
|
|
|
|
Re: Compare 2 Schema's [message #184477 is a reply to message #184179] |
Wed, 26 July 2006 13:51 |
faiz_hyd
Messages: 294 Registered: February 2006
|
Senior Member |
|
|
Hi,
Thanks for follow up,
I used Toad but strange things in the output script,
It is listing some constraints and Indexes saying to Drop them in the schema which i am comparing,
where as if i search for those Constraints or Indexes i couldn't fine
I used
user_constraints
User_indexes
all_cons_columns
Still in confusion from where Toad is getting those constraints/Indexes and Some Tables and Views also.
Thanks
|
|
|
|
Re: Compare 2 Schema's [message #184482 is a reply to message #184479] |
Wed, 26 July 2006 14:17 |
faiz_hyd
Messages: 294 Registered: February 2006
|
Senior Member |
|
|
Thanks Mahesh
I checked twice there is no '$' in the constraint /index/table name and as a example here it is , but after comparison Toad output gives 10 constaints/20 index and some views and some tables to be dropped to synchronize which i couldn't find, Still in confusion may be i am missing some thing then.
SQL> select * from user_indexes where index_name='XIF_NOT_TXNID';
no rows selected
SQL> select * from user_constraints where constraint_name='NN_USR_TMZ';
no rows selected
disconnect
conn system/xxxx@yyy
select * from dba_constraints where constraint_name='NN_USR_TMZ' and owner='R1APP60'
no rows selected
Thanks
|
|
|
|
|
Re: Compare 2 Schema's [message #226891 is a reply to message #184173] |
Mon, 26 March 2007 19:40 |
rbedick
Messages: 2 Registered: March 2007
|
Junior Member |
|
|
You might want to consider DB Side-By-Side (http://www.schematodoc.com). It lets you create xml snapshots of a database's metadata. You can then compare any two snapshots to identify differences in primary keys, fields (datatype, size, nullable, defaults), indexes, check constraints, foreign keys, triggers, views and stored procedures. You can compare two different databases or the same database at two different points in time.
|
|
|