Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: script or utility to generate dml comparing two schemas
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 = ||
=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
-- 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