Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: script or utility to generate dml comparing two schemas

RE: script or utility to generate dml comparing two schemas

From: Ken Naim <ken_at_clubmom.com>
Date: Mon, 28 Jun 2004 16:18:02 -0400
Message-ID: <80C5610EF23BD411935200508B5C35EB046F1725@cmiechange>


By using the intersect and minus commands you can find all the rows = that
match or don't match.

This query will generate all the queries needed to find all rows that = are
identical followed by all rows that are in db1 that are not in db2 and = then
all rows in db2 that are not in db1.

select 'select * from '||table_name || ' intersect select * from

'||table_name || '@db2;' ||chr(10)
|| 'select * from '||table_name || ' minus select * from '||table_name =
||

'@db2;'||chr(10)||
'select * from '||table_name || '@db2 minus select * from '||table_name = ||
';' from all_tables

=20

Kenneth Naim
Director, Database Operations
ClubMom
401 Park Avenue South
5th Floor
New York, New York 10016
tel=A0=A0 646-435-6665
fax=A0 =A0646-435-6600
www.clubmom.com

-----Original Message-----
From: oracle-l-bounce_at_freelists.org =
[mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Juan Carlos Reyes Pacheco
Sent: Monday, June 28, 2004 4:02 PM
To: oracle-l_at_freelists.org
Subject: script or utility to generate dml comparing two schemas

Hi list
does any one has an script or know of a utility comparing rows between = two
databaes or schemas and generating DML.
NOT STRUCTURE,( DDL),=20
please.=20
=20
=20
=20
=20



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon Jun 28 2004 - 15:15:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US